Types app
@algorandfoundation/algokit-utils / types/app
Module: types/app¶
Table of contents¶
Enumerations¶
Interfaces¶
- AppCallParams
- AppCallTransactionResult
- AppCallTransactionResultOfType
- AppCompilationResult
- AppDeployMetadata
- AppDeploymentParams
- AppLookup
- AppMetadata
- AppReference
- AppState
- AppStorageSchema
- BoxName
- BoxReference
- BoxValueRequestParams
- BoxValuesRequestParams
- CompiledTeal
- CoreAppCallArgs
- CreateAppParams
- RawAppCallArgs
- TealTemplateParams
- UpdateAppParams
Type Aliases¶
Variables¶
- ABI_RETURN_PREFIX
- APP_DEPLOY_NOTE_DAPP
- APP_PAGE_MAX_SIZE
- DELETABLE_TEMPLATE_NAME
- UPDATABLE_TEMPLATE_NAME
Type Aliases¶
ABIAppCallArg¶
Ƭ ABIAppCallArg: ABIArgument
| TransactionToSign
| Transaction
| Promise
\<SendTransactionResult
> | SendTransactionResult
| undefined
An argument for an ABI method, either a primitive value, or a transaction with or without signer, or the unawaited async return value of an algokit method that returns a SendTransactionResult
Defined in¶
ABIAppCallArgs¶
Ƭ ABIAppCallArgs: CoreAppCallArgs
& { method
: ABIMethodParams
| ABIMethod
; methodArgs
: ABIAppCallArg
[] }
App call args for an ABI call
Defined in¶
ABIReturn¶
Ƭ ABIReturn: { decodeError
: undefined
; rawReturnValue
: Uint8Array
; returnValue
: ABIValue
} | { decodeError
: Error
; rawReturnValue
: undefined
; returnValue
: undefined
}
The return value of an ABI method call
Defined in¶
AppCallArgs¶
Ƭ AppCallArgs: RawAppCallArgs
| ABIAppCallArgs
Arguments to pass to an app call either: * The raw app call values to pass through into the transaction (after processing); or * An ABI method definition (method and args)
Defined in¶
AppCallType¶
Ƭ AppCallType: "no_op"
| "opt_in"
| "close_out"
| "clear_state"
| "update_application"
| "delete_application"
The type of call / on-completion action for a smart contract call.
Equivalent of algosdk.OnApplicationComplete
, but as a more convenient string enum.
no_op
: Normal smart contract call, no special on-complete actionopt_in
: Opt-in to smart contract local storageclose_out
: Close-out local storage storageclear_state
: Clear local storage stateupdate_application
: Update the smart contractdelete_application
: Delete the smart contract
Defined in¶
BoxIdentifier¶
Ƭ BoxIdentifier: string
| Uint8Array
| SendTransactionFrom
Something that identifies a box name - either a:
* Uint8Array
* string
(that will be encoded to a Uint8Array)
* SendTransactionFrom
(encoded into the public key address of the corresponding account)
Defined in¶
Variables¶
ABI_RETURN_PREFIX¶
• Const
ABI_RETURN_PREFIX: Uint8Array
First 4 bytes of SHA-512/256 hash of "return" for retrieving ABI return values
Defined in¶
APP_DEPLOY_NOTE_DAPP¶
• Const
APP_DEPLOY_NOTE_DAPP: "ALGOKIT_DEPLOYER"
The app create/update ARC-2 transaction note prefix
Defined in¶
APP_PAGE_MAX_SIZE¶
• Const
APP_PAGE_MAX_SIZE: 2048
The maximum number of bytes in a single app code page
Defined in¶
DELETABLE_TEMPLATE_NAME¶
• Const
DELETABLE_TEMPLATE_NAME: "TMPL_DELETABLE"
The name of the TEAL template variable for deploy-time permanence control
Defined in¶
UPDATABLE_TEMPLATE_NAME¶
• Const
UPDATABLE_TEMPLATE_NAME: "TMPL_UPDATABLE"
The name of the TEAL template variable for deploy-time immutability control