Skip to content

ContractProxy

Algorand TypeScript


Algorand TypeScript / arc4 / ContractProxy

ContractProxy<TContract> = CompiledContract & object

Defined in: arc4/c2c.ts:79

Conditional type which maps an ARC4 compatible contract to a proxy object which allows for constructing application call transactions for all available ABI and bare methods. Also includes the compiled contract result data.

call: { [key in keyof TContract as key extends “approvalProgram” | “clearStateProgram” ? never : TContract[key] extends AnyFunction ? key : never]: ContractProxyMethod<TContract[key]> }

Get methods for calling ABI and bare methods on the target contract

bareCreate(fields?): ApplicationCallInnerTxn

Create a bare application call itxn to create the contract.

BareCreateApplicationCallFields

Specify values for transaction fields which should override the default values.

ApplicationCallInnerTxn

TContract extends Contract