Skip to content

Arc56Contract

class algokit_utils.applications.app_spec.arc56.Arc56Contract

ARC-0056 application specification.

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

arcs : list[int]

The list of supported ARC version numbers

bare*actions *: BareActions_

The bare call and create actions

methods : list[Method]

The list of contract methods

name : str

The contract name

state : State

The contract state information

structs : dict[str, list[StructField]]

The contract struct definitions

byte*code *: ByteCode | None_ = None

The optional bytecode for approval and clear programs

compiler*info *: CompilerInfo | None_ = None

The optional compiler information

desc : str | None = None

The optional contract description

events : list[Event] | None = None

The optional list of contract events

networks : dict[str, Network] | None = None

The optional network deployment information

scratch*variables *: dict[str, ScratchVariables] | None_ = None

The optional scratch variable information

source : Source | None = None

The optional source code

source*info *: SourceInfoModel | None_ = None

The optional source code information

template*variables *: dict[str, TemplateVariables] | None_ = None

The optional template variable information

static from_dict(application_spec: dict) → Arc56Contract

Create Arc56Contract from dictionary.

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

static from_json(application_spec: str) → Arc56Contract

static from_arc32(arc32_application_spec: str | algokit_utils.applications.app_spec.arc32.Arc32Contract) → Arc56Contract

static get_abi_struct_from_abi_tuple(decoded_tuple: Any, struct_fields: list[StructField], structs: dict[str, list[StructField]]) → dict[str, Any]

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

dictify() → dict

get_arc56_method(method_name_or_signature: str) → Method