Algorand TypeScript
    Preparing search index...

    Type Alias CompiledContract

    Provides compiled programs and state allocation values for a Contract. Created by calling compile(ExampleContractType)

    type CompiledContract = {
        approvalProgram: [bytes, bytes];
        clearStateProgram: [bytes, bytes];
        extraProgramPages: uint64;
        globalBytes: uint64;
        globalUints: uint64;
        localBytes: uint64;
        localUints: uint64;
    }
    Index

    Properties

    approvalProgram: [bytes, bytes]

    Approval program pages for a contract, after template variables have been replaced and compiled to AVM bytecode

    clearStateProgram: [bytes, bytes]

    Clear state program pages for a contract, after template variables have been replaced and compiled to AVM bytecode

    extraProgramPages: uint64

    By default, provides extra program pages required based on approval and clear state program size, can be overridden when calling compile(ExampleContractType, { extraProgramPages: ... })

    globalBytes: uint64

    By default, provides global num bytes based on contract state totals, can be overridden when calling compile(ExampleContractType, { globalBytes: ... })

    globalUints: uint64

    By default, provides global num uints based on contract state totals, can be overridden when calling compile(ExampleContractType, { globalUints: ... })

    localBytes: uint64

    By default, provides local num bytes based on contract state totals, can be overridden when calling compile(ExampleContractType, { localBytes: ... })

    localUints: uint64

    By default, provides local num uints based on contract state totals, can be overridden when calling compile(ExampleContractType, { localUints: ... })