Skip to content

CompiledContract

Algorand TypeScript


Algorand TypeScript / index / CompiledContract

CompiledContract = object

Defined in: compiled.ts:11

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

readonly approvalProgram: readonly [bytes, bytes]

Defined in: compiled.ts:15

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


readonly clearStateProgram: readonly [bytes, bytes]

Defined in: compiled.ts:19

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


readonly extraProgramPages: uint64

Defined in: compiled.ts:23

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


readonly globalBytes: uint64

Defined in: compiled.ts:31

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


readonly globalUints: uint64

Defined in: compiled.ts:27

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


readonly localBytes: uint64

Defined in: compiled.ts:39

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


readonly localUints: uint64

Defined in: compiled.ts:35

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