Skip to content

Arc32Contract

class algokit_utils.applications.app_spec.arc32.Arc32Contract

ARC-0032 application specification

See <https://github.com/algorandfoundation/ARCs/pull/150>

approval*program *: str_

clear*program *: str_

contract : algosdk.abi.Contract

hints : dict[str, MethodHints]

schema : StateDict

global*state_schema *: algosdk.transaction.StateSchema_

local*state_schema *: algosdk.transaction.StateSchema_

bare*call_config *: MethodConfigDict_

dictify() → dict

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

static from_json(application_spec: str) → Arc32Contract

export(directory: pathlib.Path | str | None = None) → None

Write out the artifacts generated by the application to disk.

Writes the approval program, clear program, contract specification and application specification to files in the specified directory.

  • Parameters: directory – Path to the directory where the artifacts should be written. If not specified, uses the current working directory