DefaultArgument
DefaultArgument = {
data:ABIMethodParams;source:"abi-method"; } | {data:string;source:"global-state"; } | {data:string;source:"local-state"; } | {data:string|number;source:"constant"; }
Defined in: algokit-utils-ts/src/types/app-spec.ts:228
Defines a strategy for obtaining a default value for a given ABI arg.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ data: ABIMethodParams; source: "abi-method"; }
data:
ABIMethodParams
source
Section titled “source”source:
"abi-method"
The default value should be fetched by invoking an ABI method
Type Literal
Section titled “Type Literal”{ data: string; source: "global-state"; }
data:
string
The key of the state variable
source
Section titled “source”source:
"global-state"
The default value should be fetched from global state
Type Literal
Section titled “Type Literal”{ data: string; source: "local-state"; }
data:
string
The key of the state variable
source
Section titled “source”source:
"local-state"
The default value should be fetched from the local state of the sender user
Type Literal
Section titled “Type Literal”{ data: string | number; source: "constant"; }
data:
string|number
The static default value to use.
source
Section titled “source”source:
"constant"
The default value is a constant.