Skip to content

applications.app_spec.arc56

StructFieldRepresents a field in a struct type.
CallEnumEnum representing different call types for application transactions.
CreateEnumEnum representing different create types for application transactions.
BareActionsRepresents bare call and create actions for an application.
ByteCodeRepresents the approval and clear program bytecode.
CompilerEnum representing different compiler types.
CompilerVersionRepresents compiler version information.
CompilerInfoInformation about the compiler used.
NetworkNetwork-specific application information.
ScratchVariablesInformation about scratch space variables.
SourceSource code for approval and clear programs.
GlobalGlobal state schema.
LocalLocal state schema.
SchemaApplication state schema.
TemplateVariablesTemplate variable information.
EventArgEvent argument information.
EventEvent information.
ActionsMethod actions information.
DefaultValueDefault value information for method arguments.
MethodArgMethod argument information.
BoxesBox storage requirements.
RecommendationsMethod execution recommendations.
ReturnsMethod return information.
MethodMethod information.
PcOffsetMethodPC offset method types.
SourceInfoSource code location information.
StorageKeyStorage key information.
StorageMapStorage map information.
KeysStorage keys for different storage types.
MapsStorage maps for different storage types.
StateApplication state information.
ProgramSourceInfoProgram source information.
SourceInfoModelSource information for approval and clear programs.
Arc56ContractARC-0056 application specification.

class algokit_utils.applications.app_spec.arc56.StructField

Section titled “class algokit_utils.applications.app_spec.arc56.StructField”

Represents a field in a struct type.

The name of the struct field

The type of the struct field, either a string or list of StructFields

class algokit_utils.applications.app_spec.arc56.CallEnum

Section titled “class algokit_utils.applications.app_spec.arc56.CallEnum”

Bases: str, enum.Enum

Enum representing different call types for application transactions.

DELETE*APPLICATION *= ‘DeleteApplication’_

Section titled “DELETE*APPLICATION *= ‘DeleteApplication’_”

UPDATE*APPLICATION *= ‘UpdateApplication’_

Section titled “UPDATE*APPLICATION *= ‘UpdateApplication’_”

class algokit_utils.applications.app_spec.arc56.CreateEnum

Section titled “class algokit_utils.applications.app_spec.arc56.CreateEnum”

Bases: str, enum.Enum

Enum representing different create types for application transactions.

DELETE*APPLICATION *= ‘DeleteApplication’_

Section titled “DELETE*APPLICATION *= ‘DeleteApplication’_”

class algokit_utils.applications.app_spec.arc56.BareActions

Section titled “class algokit_utils.applications.app_spec.arc56.BareActions”

Represents bare call and create actions for an application.

The list of allowed call actions

The list of allowed create actions

class algokit_utils.applications.app_spec.arc56.ByteCode

Section titled “class algokit_utils.applications.app_spec.arc56.ByteCode”

Represents the approval and clear program bytecode.

The base64 encoded approval program bytecode

The base64 encoded clear program bytecode

class algokit_utils.applications.app_spec.arc56.Compiler

Section titled “class algokit_utils.applications.app_spec.arc56.Compiler”

Bases: str, enum.Enum

Enum representing different compiler types.

class algokit_utils.applications.app_spec.arc56.CompilerVersion

Section titled “class algokit_utils.applications.app_spec.arc56.CompilerVersion”

Represents compiler version information.

The git commit hash of the compiler

The major version number

The minor version number

The patch version number

class algokit_utils.applications.app_spec.arc56.CompilerInfo

Section titled “class algokit_utils.applications.app_spec.arc56.CompilerInfo”

Information about the compiler used.

The type of compiler used

Version information for the compiler

class algokit_utils.applications.app_spec.arc56.Network

Section titled “class algokit_utils.applications.app_spec.arc56.Network”

Network-specific application information.

The application ID on the network

class algokit_utils.applications.app_spec.arc56.ScratchVariables

Section titled “class algokit_utils.applications.app_spec.arc56.ScratchVariables”

Information about scratch space variables.

The scratch slot number

The type of the scratch variable

class algokit_utils.applications.app_spec.arc56.Source

Section titled “class algokit_utils.applications.app_spec.arc56.Source”

Source code for approval and clear programs.

The base64 encoded approval program source

The base64 encoded clear program source

Get decoded approval program source.

  • Returns: Decoded approval program source code

Get decoded clear program source.

  • Returns: Decoded clear program source code

class algokit_utils.applications.app_spec.arc56.Global

Section titled “class algokit_utils.applications.app_spec.arc56.Global”

Global state schema.

The number of byte slices in global state

The number of integers in global state

class algokit_utils.applications.app_spec.arc56.Local

Section titled “class algokit_utils.applications.app_spec.arc56.Local”

Local state schema.

The number of byte slices in local state

The number of integers in local state

class algokit_utils.applications.app_spec.arc56.Schema

Section titled “class algokit_utils.applications.app_spec.arc56.Schema”

Application state schema.

The global state schema

The local state schema

class algokit_utils.applications.app_spec.arc56.TemplateVariables

Section titled “class algokit_utils.applications.app_spec.arc56.TemplateVariables”

Template variable information.

The type of the template variable

The optional value of the template variable

class algokit_utils.applications.app_spec.arc56.EventArg

Section titled “class algokit_utils.applications.app_spec.arc56.EventArg”

Event argument information.

The type of the event argument

The optional description of the argument

The optional name of the argument

The optional struct type name

class algokit_utils.applications.app_spec.arc56.Event

Section titled “class algokit_utils.applications.app_spec.arc56.Event”

Event information.

The list of event arguments

The name of the event

The optional description of the event

class algokit_utils.applications.app_spec.arc56.Actions

Section titled “class algokit_utils.applications.app_spec.arc56.Actions”

Method actions information.

The optional list of allowed call actions

The optional list of allowed create actions

class algokit_utils.applications.app_spec.arc56.DefaultValue

Section titled “class algokit_utils.applications.app_spec.arc56.DefaultValue”

Default value information for method arguments.

The default value data

source : Literal[‘box’, ‘global’, ‘local’, ‘literal’, ‘method’]

Section titled “source : Literal[‘box’, ‘global’, ‘local’, ‘literal’, ‘method’]”

The source of the default value

The optional type of the default value

class algokit_utils.applications.app_spec.arc56.MethodArg

Section titled “class algokit_utils.applications.app_spec.arc56.MethodArg”

Method argument information.

The type of the argument

The optional default value

The optional description

The optional name

The optional struct type name

class algokit_utils.applications.app_spec.arc56.Boxes

Section titled “class algokit_utils.applications.app_spec.arc56.Boxes”

Box storage requirements.

The box key

The number of bytes to read

The number of bytes to write

The optional application ID

class algokit_utils.applications.app_spec.arc56.Recommendations

Section titled “class algokit_utils.applications.app_spec.arc56.Recommendations”

Method execution recommendations.

The optional list of accounts

The optional list of applications

The optional list of assets

The optional box storage requirements

inner*transaction_count *: int | None_ = None

Section titled “inner*transaction_count *: int | None_ = None”

The optional inner transaction count

class algokit_utils.applications.app_spec.arc56.Returns

Section titled “class algokit_utils.applications.app_spec.arc56.Returns”

Method return information.

The type of the return value

The optional description

The optional struct type name

class algokit_utils.applications.app_spec.arc56.Method

Section titled “class algokit_utils.applications.app_spec.arc56.Method”

Method information.

The allowed actions

The method arguments

The method name

The return information

The optional description

The optional list of events

The optional readonly flag

The optional execution recommendations

Convert to ABI method.

  • Raises: ValueError – If underlying ABI method is not initialized
  • Returns: ABI method

class algokit_utils.applications.app_spec.arc56.PcOffsetMethod

Section titled “class algokit_utils.applications.app_spec.arc56.PcOffsetMethod”

Bases: str, enum.Enum

PC offset method types.

class algokit_utils.applications.app_spec.arc56.SourceInfo

Section titled “class algokit_utils.applications.app_spec.arc56.SourceInfo”

Source code location information.

The list of program counter values

The optional error message

The optional source code

The optional TEAL version

class algokit_utils.applications.app_spec.arc56.StorageKey

Section titled “class algokit_utils.applications.app_spec.arc56.StorageKey”

Storage key information.

The storage key

The type of the key

The type of the value

The optional description

class algokit_utils.applications.app_spec.arc56.StorageMap

Section titled “class algokit_utils.applications.app_spec.arc56.StorageMap”

Storage map information.

The type of the map keys

The type of the map values

The optional description

The optional key prefix

class algokit_utils.applications.app_spec.arc56.Keys

Section titled “class algokit_utils.applications.app_spec.arc56.Keys”

Storage keys for different storage types.

The box storage keys

The global state storage keys

The local state storage keys

class algokit_utils.applications.app_spec.arc56.Maps

Section titled “class algokit_utils.applications.app_spec.arc56.Maps”

Storage maps for different storage types.

The box storage maps

The global state storage maps

The local state storage maps

class algokit_utils.applications.app_spec.arc56.State

Section titled “class algokit_utils.applications.app_spec.arc56.State”

Application state information.

The storage keys

The storage maps

The state schema

class algokit_utils.applications.app_spec.arc56.ProgramSourceInfo

Section titled “class algokit_utils.applications.app_spec.arc56.ProgramSourceInfo”

Program source information.

The PC offset method

The list of source info entries

class algokit_utils.applications.app_spec.arc56.SourceInfoModel

Section titled “class algokit_utils.applications.app_spec.arc56.SourceInfoModel”

Source information for approval and clear programs.

The approval program source info

The clear program source info

class algokit_utils.applications.app_spec.arc56.Arc56Contract

Section titled “class algokit_utils.applications.app_spec.arc56.Arc56Contract”

ARC-0056 application specification.

See https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0056.md

The list of supported ARC version numbers

The bare call and create actions

The list of contract methods

The contract name

The contract state information

The contract struct definitions

The optional bytecode for approval and clear programs

The optional compiler information

The optional contract description

The optional list of contract events

The optional network deployment information

The optional scratch variable information

The optional source code

The optional source code information

The optional template variable information

Create Arc56Contract from dictionary.

  • Parameters: application_spec – Dictionary containing contract specification
  • Returns: Arc56Contract instance

to_json(indent: int | None = None) → str

Section titled “to_json(indent: int | None = None) → str”