Skip to content

Arc32Contract

class algokit_utils.applications.app_spec.arc32.Arc32Contract

Section titled “class algokit_utils.applications.app_spec.arc32.Arc32Contract”

ARC-0032 application specification

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

global*state_schema *: algosdk.transaction.StateSchema_

Section titled “global*state_schema *: algosdk.transaction.StateSchema_”

local*state_schema *: algosdk.transaction.StateSchema_

Section titled “local*state_schema *: algosdk.transaction.StateSchema_”

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

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

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

Section titled “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