Skip to content

Create Publication

We are looking for publications that demonstrate building dApps or smart contracts!
See the full list of Gitcoin bounties that are eligible for rewards.

Types app spec

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

Module: types/app-spec

Table of contents

Interfaces

Type Aliases

Type Aliases

ABIType

Ƭ ABIType: string

The string name of an ABI type

Defined in

src/types/app-spec.ts:67


AVMType

Ƭ AVMType: "uint64" | "bytes"

AVM data type

Defined in

src/types/app-spec.ts:123


CallConfigValue

Ƭ 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

Defined in

src/types/app-spec.ts:38


DefaultArgument

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

Defined in

src/types/app-spec.ts:83


FieldName

Ƭ FieldName: string

The name of a field

Defined in

src/types/app-spec.ts:64


HintSpec

Ƭ HintSpec: Record\<string, Hint>

A lookup of encoded method call spec to hint

Defined in

src/types/app-spec.ts:22


StateSchema

Ƭ StateSchema: Object

Schema spec summary for global or local storage

Type declaration
Name Type Description
num_byte_slices number Number of byte slots
num_uints number Number of uint slots
Defined in

src/types/app-spec.ts:172


StructElement

Ƭ StructElement: [FieldName, ABIType]

The elements of the struct/tuple: FieldName, ABIType

Defined in

src/types/app-spec.ts:70