Skip to content

AppFactoryParams

@algorandfoundation/algokit-utils / types/app-factory / AppFactoryParams

types/app-factory.AppFactoryParams

Parameters to create an app client

algorand: AlgorandClient

AlgorandClient instance

src/types/app-factory.ts:56


Optional appName: string

Optional override for the app name; used for on-chain metadata and lookups. Defaults to the ARC-32/ARC-56 app spec name.

src/types/app-factory.ts:62


appSpec: string | Arc56Contract | AppSpec

The ARC-56 or ARC-32 application spec as either:

  • Parsed JSON ARC-56 Contract
  • Parsed JSON ARC-32 AppSpec
  • Raw JSON string (in either ARC-56 or ARC-32 format)

src/types/app-factory.ts:53


Optional defaultSender: string | Address

Optional address to use for the account to use as the default sender for calls.

src/types/app-factory.ts:65


Optional defaultSigner: TransactionSigner

Optional signer to use as the default signer for default sender calls (if not specified then the signer will be resolved from AlgorandClient).

src/types/app-factory.ts:68


Optional deletable: boolean

Whether or not the contract should have deploy-time permanence control set, undefined = ignore. If specified here will get used in calls to deploy and create calls unless overridden in those calls.

Useful if you want to vend multiple contracts from the same factory without specifying this value for each call.

src/types/app-factory.ts:89


Optional deployTimeParams: TealTemplateParams

Optional deploy-time TEAL template replacement parameters. If specified here will get used in calls to deploy and create calls unless overridden in those calls.

Useful if you want to vend multiple contracts from the same factory without specifying this value for each call.

src/types/app-factory.ts:98


Optional updatable: boolean

Whether or not the contract should have deploy-time immutability control set, undefined = ignore. If specified here will get used in calls to deploy and create calls unless overridden in those calls.

Useful if you want to vend multiple contracts from the same factory without specifying this value for each call.

src/types/app-factory.ts:80


Optional version: string

The version of app that is / will be deployed; defaults to 1.0

src/types/app-factory.ts:71