Skip to content

Contract

@algorandfoundation/algorand-typescript


@algorandfoundation/algorand-typescript / arc4 / Contract

Class: Contract

Defined in: packages/algo-ts/src/arc4/index.ts:11

The base type for all ARC4 contracts in Algorand TypeScript

Extends

Constructors

new Contract()

new Contract(): Contract

Returns

Contract

Inherited from

BaseContract.constructor

Methods

approvalProgram()

approvalProgram(): boolean

Defined in: packages/algo-ts/src/arc4/index.ts:16

Default implementation of an ARC4 approval program, routes transactions to ABI or bare methods based on application args and on completion actions

Returns

boolean

Overrides

BaseContract.approvalProgram


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

Inherited from

BaseContract.clearStateProgram