/** * This file was automatically generated by @algorandfoundation/algokit-client-generator. * DO NOT MODIFY IT BY HAND. * requires: @algorandfoundation/algokit-utils: ^7 */ import { type AlgorandClient } from '@algorandfoundation/algokit-utils/types/algorand-client'; import { ABIReturn } from '@algorandfoundation/algokit-utils/types/app'; import { Arc56Contract } from '@algorandfoundation/algokit-utils/types/app-arc56'; import { AppClient as _AppClient, AppClientMethodCallParams, AppClientParams, AppClientBareCallParams, CallOnComplete, ResolveAppClientByCreatorAndName, ResolveAppClientByNetwork, CloneAppClientParams } from '@algorandfoundation/algokit-utils/types/app-client'; import { TransactionComposer, AppCallMethodCall, RawSimulateOptions, SkipSignaturesSimulateOptions } from '@algorandfoundation/algokit-utils/types/composer'; import { SendParams, SendAtomicTransactionComposerResults } from '@algorandfoundation/algokit-utils/types/transaction'; import { Address, modelsv2, OnApplicationComplete, Transaction, TransactionSigner } from 'algosdk'; export declare const APP_SPEC: Arc56Contract; /** * A state record containing binary data */ export interface BinaryState { /** * Gets the state value as a Uint8Array */ asByteArray(): Uint8Array | undefined; /** * Gets the state value as a string */ asString(): string | undefined; } /** * Expands types for IntelliSense so they are more human readable * See https://stackoverflow.com/a/69288824 */ export type Expand = T extends (...args: infer A) => infer R ? (...args: Expand) => Expand : T extends infer O ? { [K in keyof O]: O[K]; } : never; /** * The argument types for the HelloFactory contract */ export type HelloFactoryArgs = { /** * The object representation of the arguments for each method */ obj: { 'test_logicsig()address': Record; 'test_compile_contract()void': Record; 'test_compile_contract_tmpl()void': Record; 'test_compile_contract_prfx()void': Record; 'test_compile_contract_large()void': Record; 'test_arc4_create()void': Record; 'test_arc4_create_tmpl()void': Record; 'test_arc4_create_prfx()void': Record; 'test_arc4_create_large()void': Record; 'test_arc4_create_modified_compiled()void': Record; 'test_arc4_update()void': Record; 'test_other_constants()void': Record; 'test_abi_call_create_params()void': Record; }; /** * The tuple representation of the arguments for each method */ tuple: { 'test_logicsig()address': []; 'test_compile_contract()void': []; 'test_compile_contract_tmpl()void': []; 'test_compile_contract_prfx()void': []; 'test_compile_contract_large()void': []; 'test_arc4_create()void': []; 'test_arc4_create_tmpl()void': []; 'test_arc4_create_prfx()void': []; 'test_arc4_create_large()void': []; 'test_arc4_create_modified_compiled()void': []; 'test_arc4_update()void': []; 'test_other_constants()void': []; 'test_abi_call_create_params()void': []; }; }; /** * The return type for each method */ export type HelloFactoryReturns = { 'test_logicsig()address': string; 'test_compile_contract()void': void; 'test_compile_contract_tmpl()void': void; 'test_compile_contract_prfx()void': void; 'test_compile_contract_large()void': void; 'test_arc4_create()void': void; 'test_arc4_create_tmpl()void': void; 'test_arc4_create_prfx()void': void; 'test_arc4_create_large()void': void; 'test_arc4_create_modified_compiled()void': void; 'test_arc4_update()void': void; 'test_other_constants()void': void; 'test_abi_call_create_params()void': void; }; /** * Defines the types of available calls and state of the HelloFactory smart contract. */ export type HelloFactoryTypes = { /** * Maps method signatures / names to their argument and return types. */ methods: Record<'test_logicsig()address' | 'test_logicsig', { argsObj: HelloFactoryArgs['obj']['test_logicsig()address']; argsTuple: HelloFactoryArgs['tuple']['test_logicsig()address']; returns: HelloFactoryReturns['test_logicsig()address']; }> & Record<'test_compile_contract()void' | 'test_compile_contract', { argsObj: HelloFactoryArgs['obj']['test_compile_contract()void']; argsTuple: HelloFactoryArgs['tuple']['test_compile_contract()void']; returns: HelloFactoryReturns['test_compile_contract()void']; }> & Record<'test_compile_contract_tmpl()void' | 'test_compile_contract_tmpl', { argsObj: HelloFactoryArgs['obj']['test_compile_contract_tmpl()void']; argsTuple: HelloFactoryArgs['tuple']['test_compile_contract_tmpl()void']; returns: HelloFactoryReturns['test_compile_contract_tmpl()void']; }> & Record<'test_compile_contract_prfx()void' | 'test_compile_contract_prfx', { argsObj: HelloFactoryArgs['obj']['test_compile_contract_prfx()void']; argsTuple: HelloFactoryArgs['tuple']['test_compile_contract_prfx()void']; returns: HelloFactoryReturns['test_compile_contract_prfx()void']; }> & Record<'test_compile_contract_large()void' | 'test_compile_contract_large', { argsObj: HelloFactoryArgs['obj']['test_compile_contract_large()void']; argsTuple: HelloFactoryArgs['tuple']['test_compile_contract_large()void']; returns: HelloFactoryReturns['test_compile_contract_large()void']; }> & Record<'test_arc4_create()void' | 'test_arc4_create', { argsObj: HelloFactoryArgs['obj']['test_arc4_create()void']; argsTuple: HelloFactoryArgs['tuple']['test_arc4_create()void']; returns: HelloFactoryReturns['test_arc4_create()void']; }> & Record<'test_arc4_create_tmpl()void' | 'test_arc4_create_tmpl', { argsObj: HelloFactoryArgs['obj']['test_arc4_create_tmpl()void']; argsTuple: HelloFactoryArgs['tuple']['test_arc4_create_tmpl()void']; returns: HelloFactoryReturns['test_arc4_create_tmpl()void']; }> & Record<'test_arc4_create_prfx()void' | 'test_arc4_create_prfx', { argsObj: HelloFactoryArgs['obj']['test_arc4_create_prfx()void']; argsTuple: HelloFactoryArgs['tuple']['test_arc4_create_prfx()void']; returns: HelloFactoryReturns['test_arc4_create_prfx()void']; }> & Record<'test_arc4_create_large()void' | 'test_arc4_create_large', { argsObj: HelloFactoryArgs['obj']['test_arc4_create_large()void']; argsTuple: HelloFactoryArgs['tuple']['test_arc4_create_large()void']; returns: HelloFactoryReturns['test_arc4_create_large()void']; }> & Record<'test_arc4_create_modified_compiled()void' | 'test_arc4_create_modified_compiled', { argsObj: HelloFactoryArgs['obj']['test_arc4_create_modified_compiled()void']; argsTuple: HelloFactoryArgs['tuple']['test_arc4_create_modified_compiled()void']; returns: HelloFactoryReturns['test_arc4_create_modified_compiled()void']; }> & Record<'test_arc4_update()void' | 'test_arc4_update', { argsObj: HelloFactoryArgs['obj']['test_arc4_update()void']; argsTuple: HelloFactoryArgs['tuple']['test_arc4_update()void']; returns: HelloFactoryReturns['test_arc4_update()void']; }> & Record<'test_other_constants()void' | 'test_other_constants', { argsObj: HelloFactoryArgs['obj']['test_other_constants()void']; argsTuple: HelloFactoryArgs['tuple']['test_other_constants()void']; returns: HelloFactoryReturns['test_other_constants()void']; }> & Record<'test_abi_call_create_params()void' | 'test_abi_call_create_params', { argsObj: HelloFactoryArgs['obj']['test_abi_call_create_params()void']; argsTuple: HelloFactoryArgs['tuple']['test_abi_call_create_params()void']; returns: HelloFactoryReturns['test_abi_call_create_params()void']; }>; }; /** * Defines the possible abi call signatures. */ export type HelloFactorySignatures = keyof HelloFactoryTypes['methods']; /** * Defines the possible abi call signatures for methods that return a non-void value. */ export type HelloFactoryNonVoidMethodSignatures = keyof HelloFactoryTypes['methods'] extends infer T ? T extends keyof HelloFactoryTypes['methods'] ? MethodReturn extends void ? never : T : never : never; /** * Defines an object containing all relevant parameters for a single call to the contract. */ export type CallParams = Expand & { /** The args for the ABI method call, either as an ordered array or an object */ args: Expand; }>; /** * Maps a method signature from the HelloFactory smart contract to the method's arguments in either tuple or struct form */ export type MethodArgs = HelloFactoryTypes['methods'][TSignature]['argsObj' | 'argsTuple']; /** * Maps a method signature from the HelloFactory smart contract to the method's return type */ export type MethodReturn = HelloFactoryTypes['methods'][TSignature]['returns']; /** * Exposes methods for constructing `AppClient` params objects for ABI calls to the HelloFactory smart contract */ export declare abstract class HelloFactoryParamsFactory { /** * Constructs a no op call for the test_logicsig()address ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testLogicsig(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_compile_contract()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testCompileContract(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_compile_contract_tmpl()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testCompileContractTmpl(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_compile_contract_prfx()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testCompileContractPrfx(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_compile_contract_large()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testCompileContractLarge(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_arc4_create()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testArc4Create(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_arc4_create_tmpl()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testArc4CreateTmpl(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_arc4_create_prfx()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testArc4CreatePrfx(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_arc4_create_large()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testArc4CreateLarge(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_arc4_create_modified_compiled()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testArc4CreateModifiedCompiled(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_arc4_update()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testArc4Update(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_other_constants()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testOtherConstants(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_abi_call_create_params()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testAbiCallCreateParams(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; } /** * A client to make calls to the HelloFactory smart contract */ export declare class HelloFactoryClient { /** * The underlying `AppClient` for when you want to have more flexibility */ readonly appClient: _AppClient; /** * Creates a new instance of `HelloFactoryClient` * * @param appClient An `AppClient` instance which has been created with the HelloFactory app spec */ constructor(appClient: _AppClient); /** * Creates a new instance of `HelloFactoryClient` * * @param params The parameters to initialise the app client with */ constructor(params: Omit); /** * Checks for decode errors on the given return value and maps the return value to the return type for the given method * @returns The typed return value or undefined if there was no value */ decodeReturnValue(method: TSignature, returnValue: ABIReturn | undefined): MethodReturn; /** * Returns a new `HelloFactoryClient` client, resolving the app by creator address and name * using AlgoKit app deployment semantics (i.e. looking for the app creation transaction note). * @param params The parameters to create the app client */ static fromCreatorAndName(params: Omit): Promise; /** * Returns an `HelloFactoryClient` instance for the current network based on * pre-determined network-specific app IDs specified in the ARC-56 app spec. * * If no IDs are in the app spec or the network isn't recognised, an error is thrown. * @param params The parameters to create the app client */ static fromNetwork(params: Omit): Promise; /** The ID of the app instance this client is linked to. */ get appId(): bigint; /** The app address of the app instance this client is linked to. */ get appAddress(): Address; /** The name of the app. */ get appName(): string; /** The ARC-56 app spec being used */ get appSpec(): Arc56Contract; /** A reference to the underlying `AlgorandClient` this app client is using. */ get algorand(): AlgorandClient; /** * Get parameters to create transactions for the current app. A good mental model for this is that these parameters represent a deferred transaction creation. */ readonly params: { /** * Makes a clear_state call to an existing instance of the HelloFactory smart contract. * * @param params The params for the bare (raw) call * @returns The clearState result */ clearState: (params?: Expand) => import("@algorandfoundation/algokit-utils/types/composer").AppCallParams; /** * Makes a call to the HelloFactory smart contract using the `test_logicsig()address` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testLogicsig: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the HelloFactory smart contract using the `test_compile_contract()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testCompileContract: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the HelloFactory smart contract using the `test_compile_contract_tmpl()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testCompileContractTmpl: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the HelloFactory smart contract using the `test_compile_contract_prfx()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testCompileContractPrfx: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the HelloFactory smart contract using the `test_compile_contract_large()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testCompileContractLarge: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the HelloFactory smart contract using the `test_arc4_create()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testArc4Create: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the HelloFactory smart contract using the `test_arc4_create_tmpl()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testArc4CreateTmpl: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the HelloFactory smart contract using the `test_arc4_create_prfx()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testArc4CreatePrfx: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the HelloFactory smart contract using the `test_arc4_create_large()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testArc4CreateLarge: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the HelloFactory smart contract using the `test_arc4_create_modified_compiled()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testArc4CreateModifiedCompiled: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the HelloFactory smart contract using the `test_arc4_update()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testArc4Update: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the HelloFactory smart contract using the `test_other_constants()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testOtherConstants: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the HelloFactory smart contract using the `test_abi_call_create_params()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testAbiCallCreateParams: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; }; /** * Create transactions for the current app */ readonly createTransaction: { /** * Makes a clear_state call to an existing instance of the HelloFactory smart contract. * * @param params The params for the bare (raw) call * @returns The clearState result */ clearState: (params?: Expand) => Promise; /** * Makes a call to the HelloFactory smart contract using the `test_logicsig()address` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testLogicsig: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the HelloFactory smart contract using the `test_compile_contract()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testCompileContract: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the HelloFactory smart contract using the `test_compile_contract_tmpl()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testCompileContractTmpl: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the HelloFactory smart contract using the `test_compile_contract_prfx()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testCompileContractPrfx: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the HelloFactory smart contract using the `test_compile_contract_large()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testCompileContractLarge: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the HelloFactory smart contract using the `test_arc4_create()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testArc4Create: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the HelloFactory smart contract using the `test_arc4_create_tmpl()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testArc4CreateTmpl: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the HelloFactory smart contract using the `test_arc4_create_prfx()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testArc4CreatePrfx: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the HelloFactory smart contract using the `test_arc4_create_large()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testArc4CreateLarge: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the HelloFactory smart contract using the `test_arc4_create_modified_compiled()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testArc4CreateModifiedCompiled: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the HelloFactory smart contract using the `test_arc4_update()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testArc4Update: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the HelloFactory smart contract using the `test_other_constants()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testOtherConstants: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the HelloFactory smart contract using the `test_abi_call_create_params()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testAbiCallCreateParams: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; }; /** * Send calls to the current app */ readonly send: { /** * Makes a clear_state call to an existing instance of the HelloFactory smart contract. * * @param params The params for the bare (raw) call * @returns The clearState result */ clearState: (params?: Expand) => Promise<{ groupId: string; txIds: string[]; returns?: ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; return?: ABIReturn | undefined; }>; /** * Makes a call to the HelloFactory smart contract using the `test_logicsig()address` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testLogicsig: (params?: CallParams & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ groupId: string; txIds: string[]; returns?: ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; return: (undefined | HelloFactoryReturns['test_logicsig()address']); }>; /** * Makes a call to the HelloFactory smart contract using the `test_compile_contract()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testCompileContract: (params?: CallParams & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ groupId: string; txIds: string[]; returns?: ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; return: (undefined | HelloFactoryReturns['test_compile_contract()void']); }>; /** * Makes a call to the HelloFactory smart contract using the `test_compile_contract_tmpl()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testCompileContractTmpl: (params?: CallParams & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ groupId: string; txIds: string[]; returns?: ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; return: (undefined | HelloFactoryReturns['test_compile_contract_tmpl()void']); }>; /** * Makes a call to the HelloFactory smart contract using the `test_compile_contract_prfx()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testCompileContractPrfx: (params?: CallParams & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ groupId: string; txIds: string[]; returns?: ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; return: (undefined | HelloFactoryReturns['test_compile_contract_prfx()void']); }>; /** * Makes a call to the HelloFactory smart contract using the `test_compile_contract_large()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testCompileContractLarge: (params?: CallParams & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ groupId: string; txIds: string[]; returns?: ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; return: (undefined | HelloFactoryReturns['test_compile_contract_large()void']); }>; /** * Makes a call to the HelloFactory smart contract using the `test_arc4_create()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testArc4Create: (params?: CallParams & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ groupId: string; txIds: string[]; returns?: ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; return: (undefined | HelloFactoryReturns['test_arc4_create()void']); }>; /** * Makes a call to the HelloFactory smart contract using the `test_arc4_create_tmpl()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testArc4CreateTmpl: (params?: CallParams & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ groupId: string; txIds: string[]; returns?: ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; return: (undefined | HelloFactoryReturns['test_arc4_create_tmpl()void']); }>; /** * Makes a call to the HelloFactory smart contract using the `test_arc4_create_prfx()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testArc4CreatePrfx: (params?: CallParams & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ groupId: string; txIds: string[]; returns?: ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; return: (undefined | HelloFactoryReturns['test_arc4_create_prfx()void']); }>; /** * Makes a call to the HelloFactory smart contract using the `test_arc4_create_large()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testArc4CreateLarge: (params?: CallParams & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ groupId: string; txIds: string[]; returns?: ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; return: (undefined | HelloFactoryReturns['test_arc4_create_large()void']); }>; /** * Makes a call to the HelloFactory smart contract using the `test_arc4_create_modified_compiled()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testArc4CreateModifiedCompiled: (params?: CallParams & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ groupId: string; txIds: string[]; returns?: ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; return: (undefined | HelloFactoryReturns['test_arc4_create_modified_compiled()void']); }>; /** * Makes a call to the HelloFactory smart contract using the `test_arc4_update()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testArc4Update: (params?: CallParams & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ groupId: string; txIds: string[]; returns?: ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; return: (undefined | HelloFactoryReturns['test_arc4_update()void']); }>; /** * Makes a call to the HelloFactory smart contract using the `test_other_constants()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testOtherConstants: (params?: CallParams & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ groupId: string; txIds: string[]; returns?: ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; return: (undefined | HelloFactoryReturns['test_other_constants()void']); }>; /** * Makes a call to the HelloFactory smart contract using the `test_abi_call_create_params()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testAbiCallCreateParams: (params?: CallParams & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ groupId: string; txIds: string[]; returns?: ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; return: (undefined | HelloFactoryReturns['test_abi_call_create_params()void']); }>; }; /** * Clone this app client with different params * * @param params The params to use for the the cloned app client. Omit a param to keep the original value. Set a param to override the original value. Setting to undefined will clear the original value. * @returns A new app client with the altered params */ clone(params: CloneAppClientParams): HelloFactoryClient; /** * Methods to access state for the current HelloFactory app */ state: {}; newGroup(): HelloFactoryComposer; } export type HelloFactoryComposer = { /** * Calls the test_logicsig()address ABI method. * * @param args The arguments for the contract call * @param params Any additional parameters for the call * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions */ testLogicsig(params?: CallParams): HelloFactoryComposer<[...TReturns, HelloFactoryReturns['test_logicsig()address'] | undefined]>; /** * Calls the test_compile_contract()void ABI method. * * @param args The arguments for the contract call * @param params Any additional parameters for the call * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions */ testCompileContract(params?: CallParams): HelloFactoryComposer<[...TReturns, HelloFactoryReturns['test_compile_contract()void'] | undefined]>; /** * Calls the test_compile_contract_tmpl()void ABI method. * * @param args The arguments for the contract call * @param params Any additional parameters for the call * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions */ testCompileContractTmpl(params?: CallParams): HelloFactoryComposer<[...TReturns, HelloFactoryReturns['test_compile_contract_tmpl()void'] | undefined]>; /** * Calls the test_compile_contract_prfx()void ABI method. * * @param args The arguments for the contract call * @param params Any additional parameters for the call * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions */ testCompileContractPrfx(params?: CallParams): HelloFactoryComposer<[...TReturns, HelloFactoryReturns['test_compile_contract_prfx()void'] | undefined]>; /** * Calls the test_compile_contract_large()void ABI method. * * @param args The arguments for the contract call * @param params Any additional parameters for the call * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions */ testCompileContractLarge(params?: CallParams): HelloFactoryComposer<[...TReturns, HelloFactoryReturns['test_compile_contract_large()void'] | undefined]>; /** * Calls the test_arc4_create()void ABI method. * * @param args The arguments for the contract call * @param params Any additional parameters for the call * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions */ testArc4Create(params?: CallParams): HelloFactoryComposer<[...TReturns, HelloFactoryReturns['test_arc4_create()void'] | undefined]>; /** * Calls the test_arc4_create_tmpl()void ABI method. * * @param args The arguments for the contract call * @param params Any additional parameters for the call * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions */ testArc4CreateTmpl(params?: CallParams): HelloFactoryComposer<[...TReturns, HelloFactoryReturns['test_arc4_create_tmpl()void'] | undefined]>; /** * Calls the test_arc4_create_prfx()void ABI method. * * @param args The arguments for the contract call * @param params Any additional parameters for the call * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions */ testArc4CreatePrfx(params?: CallParams): HelloFactoryComposer<[...TReturns, HelloFactoryReturns['test_arc4_create_prfx()void'] | undefined]>; /** * Calls the test_arc4_create_large()void ABI method. * * @param args The arguments for the contract call * @param params Any additional parameters for the call * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions */ testArc4CreateLarge(params?: CallParams): HelloFactoryComposer<[...TReturns, HelloFactoryReturns['test_arc4_create_large()void'] | undefined]>; /** * Calls the test_arc4_create_modified_compiled()void ABI method. * * @param args The arguments for the contract call * @param params Any additional parameters for the call * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions */ testArc4CreateModifiedCompiled(params?: CallParams): HelloFactoryComposer<[...TReturns, HelloFactoryReturns['test_arc4_create_modified_compiled()void'] | undefined]>; /** * Calls the test_arc4_update()void ABI method. * * @param args The arguments for the contract call * @param params Any additional parameters for the call * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions */ testArc4Update(params?: CallParams): HelloFactoryComposer<[...TReturns, HelloFactoryReturns['test_arc4_update()void'] | undefined]>; /** * Calls the test_other_constants()void ABI method. * * @param args The arguments for the contract call * @param params Any additional parameters for the call * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions */ testOtherConstants(params?: CallParams): HelloFactoryComposer<[...TReturns, HelloFactoryReturns['test_other_constants()void'] | undefined]>; /** * Calls the test_abi_call_create_params()void ABI method. * * @param args The arguments for the contract call * @param params Any additional parameters for the call * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions */ testAbiCallCreateParams(params?: CallParams): HelloFactoryComposer<[...TReturns, HelloFactoryReturns['test_abi_call_create_params()void'] | undefined]>; /** * Makes a clear_state call to an existing instance of the HelloFactory smart contract. * * @param args The arguments for the bare call * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions */ clearState(params?: AppClientBareCallParams): HelloFactoryComposer<[...TReturns, undefined]>; /** * Adds a transaction to the composer * * @param txn A transaction to add to the transaction group * @param signer The optional signer to use when signing this transaction. */ addTransaction(txn: Transaction, signer?: TransactionSigner): HelloFactoryComposer; /** * Returns the underlying AtomicTransactionComposer instance */ composer(): Promise; /** * Simulates the transaction group and returns the result */ simulate(): Promise & { simulateResponse: modelsv2.SimulateResponse; }>; simulate(options: SkipSignaturesSimulateOptions): Promise & { simulateResponse: modelsv2.SimulateResponse; }>; simulate(options: RawSimulateOptions): Promise & { simulateResponse: modelsv2.SimulateResponse; }>; /** * Sends the transaction group to the network and returns the results */ send(params?: SendParams): Promise>; }; export type HelloFactoryComposerResults = Expand;