Skip to content

BaseContract

@algorandfoundation/algorand-typescript


@algorandfoundation/algorand-typescript / index / BaseContract

Class: abstract BaseContract

Defined in: packages/algo-ts/src/base-contract.ts:9

The base type for all Algorand TypeScript contracts

Extended by

Constructors

new BaseContract()

new BaseContract(): BaseContract

Returns

BaseContract

Methods

approvalProgram()

abstract approvalProgram(): boolean | uint64

Defined in: packages/algo-ts/src/base-contract.ts:13

The program to be run when the On Completion Action is != ClearState (3)

Returns

boolean | uint64


clearStateProgram()

clearStateProgram(): boolean | uint64

Defined in: packages/algo-ts/src/base-contract.ts:18

The program to be run when the On Completion Action is == ClearState (3)

Returns

boolean | uint64