Skip to content

algokit_utils.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.

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

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’”

Bases: str, enum.Enum

Enum representing different create types for application transactions.

DELETE_APPLICATION = ‘DeleteApplication’

Section titled “DELETE_APPLICATION = ‘DeleteApplication’”

Represents bare call and create actions for an application.

The list of allowed call actions

The list of allowed create actions

Represents the approval and clear program bytecode.

The base64 encoded approval program bytecode

The base64 encoded clear program bytecode

Bases: str, enum.Enum

Enum representing different compiler types.

Represents compiler version information.

The git commit hash of the compiler

The major version number

The minor version number

The patch version number

Information about the compiler used.

The type of compiler used

Version information for the compiler

Network-specific application information.

The application ID on the network

Information about scratch space variables.

The scratch slot number

The type of the scratch variable

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

Global state schema.

The number of byte slices in global state

The number of integers in global state

Local state schema.

The number of byte slices in local state

The number of integers in local state

Application state schema.

The global state schema

The local state schema

Template variable information.

The type of the template variable

The optional value of the template variable

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

Event information.

The list of event arguments

The name of the event

The optional description of the event

Method actions information.

The optional list of allowed call actions

The optional list of allowed create actions

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

Method argument information.

The type of the argument

The optional default value

The optional description

The optional name

The optional struct type name

Box storage requirements.

The box key

The number of bytes to read

The number of bytes to write

The optional application ID

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

Method return information.

The type of the return value

The optional description

The optional struct type name

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

Bases: str, enum.Enum

PC offset method types.

Source code location information.

The list of program counter values

The optional error message

The optional source code

The optional TEAL version

Storage key information.

The storage key

The type of the key

The type of the value

The optional description

Storage map information.

The type of the map keys

The type of the map values

The optional description

The optional key prefix

Storage keys for different storage types.

The box storage keys

The global state storage keys

The local state storage keys

Storage maps for different storage types.

The box storage maps

The global state storage maps

The local state storage maps

Application state information.

The storage keys

The storage maps

The state schema

Program source information.

The PC offset method

The list of source info entries

Source information for approval and clear programs.

The approval program source info

The clear program source info

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”