ContractProxy
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.
Type declaration
Section titled “Type declaration”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()
Section titled “bareCreate()”bareCreate(
fields?):ApplicationCallInnerTxn
Create a bare application call itxn to create the contract.
Parameters
Section titled “Parameters”fields?
Section titled “fields?”BareCreateApplicationCallFields
Specify values for transaction fields which should override the default values.
Returns
Section titled “Returns”Type Parameters
Section titled “Type Parameters”TContract
Section titled “TContract”TContract extends Contract