Algorand TypeScript

    Type Alias LogicSigOptions

    Defines optional configuration for a logic signature

    type LogicSigOptions = {
        avmVersion?: 10 | 11;
        name?: string;
        scratchSlots?: (number | NumberRange)[];
    }
    Index

    Properties

    avmVersion?: 10 | 11

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

    name?: string

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

    scratchSlots?: (number | NumberRange)[]

    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.

    MMNEPVFCICPMFPCPTTAAATR