Skip to content

LogicSigOptions

Algorand TypeScript


Algorand TypeScript / index / <internal> / LogicSigOptions

LogicSigOptions = object

Defined in: logic-sig.ts:31

Defines optional configuration for a logic signature

optional avmVersion: 10 | 11 | 12 | 13

Defined in: logic-sig.ts:36

Determines which AVM version to use, this affects what operations are supported. Defaults to value provided on command line (which defaults to current mainnet version)


optional name: string

Defined in: logic-sig.ts:41

Override the name of the logic signature when generating build artifacts. Defaults to the class name


optional scratchSlots: (number | NumberRange)[]

Defined in: logic-sig.ts:49

Allows you to mark a slot ID or range of slot IDs as “off limits” to Puya. These slot ID(s) will never be written to or otherwise manipulating by the compiler itself. This is particularly useful in combination with op.gload_bytes / op.gload_uint64 which lets a contract in a group transaction read from the scratch slots of another contract that occurs earlier in the transaction group.