Skip to content

AppDeploymentParams

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

types/app.AppDeploymentParams

The parameters to deploy an app

  • Omit<CreateAppParams, "onCompleteAction" | "args" | "note" | "skipSending" | "skipWaiting" | "atc">

    ↳ AppDeploymentParams

• approvalProgram: string | Uint8Array

The approval program as raw teal (string) or compiled teal, base 64 encoded as a byte array (Uint8Array)

Omit.approvalProgram

src/types/app.ts:135


• clearStateProgram: string | Uint8Array

The clear state program as raw teal (string) or compiled teal, base 64 encoded as a byte array (Uint8Array)

Omit.clearStateProgram

src/types/app.ts:137


• Optional createArgs: AppCallArgs

Any args to pass to any create transaction that is issued as part of deployment

src/types/app.ts:323


• Optional createOnCompleteAction: "no_op" | "opt_in" | "close_out" | "update_application" | "delete_application" | NoOpOC | OptInOC | CloseOutOC | UpdateApplicationOC | DeleteApplicationOC

Override the on-completion action for the create call; defaults to NoOp

src/types/app.ts:325


• Optional deleteArgs: AppCallArgs

Any args to pass to any delete transaction that is issued as part of deployment

src/types/app.ts:329


• Optional deployTimeParams: TealTemplateParams

Any deploy-time parameters to replace in the TEAL code

src/types/app.ts:315


• Optional existingDeployments: AppLookup

Optional cached value of the existing apps for the given creator

src/types/app.ts:321


• Optional fee: AlgoAmount

The flat fee you want to pay, useful for covering extra fees in a transaction group or app call

Omit.fee

src/types/transaction.ts:40


• from: SendTransactionFrom

The account (with private key loaded) that will send the transaction

Omit.from

src/types/app.ts:133


• Optional maxFee: AlgoAmount

The maximum fee that you are happy to pay (default: unbounded) - if this is set it’s possible the transaction could get rejected during network congestion

Omit.maxFee

src/types/transaction.ts:42


• Optional maxRoundsToWaitForConfirmation: number

The maximum number of rounds to wait for confirmation, only applies if skipWaiting is undefined or false, default: wait up to 5 rounds

Omit.maxRoundsToWaitForConfirmation

src/types/transaction.ts:44


• metadata: AppDeployMetadata

The deployment metadata

src/types/app.ts:313


• Optional onSchemaBreak: OnSchemaBreak | "replace" | "fail" | "append"

What action to perform if a schema break is detected

src/types/app.ts:317


• Optional onUpdate: "replace" | "fail" | "append" | OnUpdate | "update"

What action to perform if a TEAL update is detected

src/types/app.ts:319


• Optional populateAppCallResources: boolean

Whether to use simulate to automatically populate app call resources in the txn objects. Defaults to true when there are app calls in the group.

Omit.populateAppCallResources

src/types/transaction.ts:46


• schema: AppStorageSchema

The storage schema to request for the created app

Omit.schema

src/types/app.ts:152


• Optional suppressLog: boolean

Whether to suppress log messages from transaction send, default: do not suppress

Omit.suppressLog

src/types/transaction.ts:38


• Optional transactionParams: SuggestedParams

Optional transaction parameters

Omit.transactionParams

src/types/app.ts:139


• Optional updateArgs: AppCallArgs

Any args to pass to any update transaction that is issued as part of deployment

src/types/app.ts:327