Skip to content

types/app-spec

@algorandfoundation/algokit-utils / types/app-spec

Ƭ ABIType: string

The string name of an ABI type

src/types/app-spec.ts:212


Ƭ AVMType: "uint64" | "bytes"

AVM data type

src/types/app-spec.ts:268


Ƭ CallConfigValue: "NEVER" | "CALL" | "CREATE" | "ALL"

The various call configs:

  • NEVER: Will not be called
  • CALL: Can be called during a non-create call i.e. app id != 0
  • CREATE: Can be called during a create call i.e. app id = 0
  • ALL: Can be during a create OR non-create call

src/types/app-spec.ts:183


Ƭ DefaultArgument: { data: ABIMethodParams ; source: "abi-method" } | { data: string ; source: "global-state" } | { data: string ; source: "local-state" } | { data: string | number ; source: "constant" }

Defines a strategy for obtaining a default value for a given ABI arg.

src/types/app-spec.ts:228


Ƭ FieldName: string

The name of a field

src/types/app-spec.ts:209


Ƭ HintSpec: Record<string, Hint>

A lookup of encoded method call spec to hint

src/types/app-spec.ts:167


Ƭ StateSchema: Object

Schema spec summary for global or local storage

NameTypeDescription
num_byte_slicesnumberNumber of byte slots
num_uintsnumberNumber of uint slots

src/types/app-spec.ts:317


Ƭ StructElement: [FieldName, ABIType]

The elements of the struct/tuple: FieldName, ABIType

src/types/app-spec.ts:215

arc32ToArc56(appSpec): Arc56Contract

Converts an ARC-32 Application Specification to an ARC-56 Contract

NameTypeDescription
appSpecAppSpecThe ARC-32 Application Specification

Arc56Contract

The ARC-56 Contract

Example

const arc56AppSpec = arc32ToArc56(arc32AppSpec);

src/types/app-spec.ts:16