/** * 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 Contract contract */ export type ContractArgs = { /** * The object representation of the arguments for each method */ obj: { 'test_array()void': Record; 'test_array_extend()void': Record; 'test_array_multiple_append()void': Record; 'overhead()void': Record; 'test_array_too_long()void': Record; 'test_array_copy_and_extend()void': Record; 'test_array_evaluation_order()void': Record; 'test_array_assignment_maximum_cursage()void': Record; 'test_allocations(uint64)void': { num: bigint | number; }; 'test_iteration()void': Record; 'test_quicksort()void': Record; 'test_unobserved_write()void': Record; }; /** * The tuple representation of the arguments for each method */ tuple: { 'test_array()void': []; 'test_array_extend()void': []; 'test_array_multiple_append()void': []; 'overhead()void': []; 'test_array_too_long()void': []; 'test_array_copy_and_extend()void': []; 'test_array_evaluation_order()void': []; 'test_array_assignment_maximum_cursage()void': []; 'test_allocations(uint64)void': [num: bigint | number]; 'test_iteration()void': []; 'test_quicksort()void': []; 'test_unobserved_write()void': []; }; }; /** * The return type for each method */ export type ContractReturns = { 'test_array()void': void; 'test_array_extend()void': void; 'test_array_multiple_append()void': void; 'overhead()void': void; 'test_array_too_long()void': void; 'test_array_copy_and_extend()void': void; 'test_array_evaluation_order()void': void; 'test_array_assignment_maximum_cursage()void': void; 'test_allocations(uint64)void': void; 'test_iteration()void': void; 'test_quicksort()void': void; 'test_unobserved_write()void': void; }; /** * Defines the types of available calls and state of the Contract smart contract. */ export type ContractTypes = { /** * Maps method signatures / names to their argument and return types. */ methods: Record<'test_array()void' | 'test_array', { argsObj: ContractArgs['obj']['test_array()void']; argsTuple: ContractArgs['tuple']['test_array()void']; returns: ContractReturns['test_array()void']; }> & Record<'test_array_extend()void' | 'test_array_extend', { argsObj: ContractArgs['obj']['test_array_extend()void']; argsTuple: ContractArgs['tuple']['test_array_extend()void']; returns: ContractReturns['test_array_extend()void']; }> & Record<'test_array_multiple_append()void' | 'test_array_multiple_append', { argsObj: ContractArgs['obj']['test_array_multiple_append()void']; argsTuple: ContractArgs['tuple']['test_array_multiple_append()void']; returns: ContractReturns['test_array_multiple_append()void']; }> & Record<'overhead()void' | 'overhead', { argsObj: ContractArgs['obj']['overhead()void']; argsTuple: ContractArgs['tuple']['overhead()void']; returns: ContractReturns['overhead()void']; }> & Record<'test_array_too_long()void' | 'test_array_too_long', { argsObj: ContractArgs['obj']['test_array_too_long()void']; argsTuple: ContractArgs['tuple']['test_array_too_long()void']; returns: ContractReturns['test_array_too_long()void']; }> & Record<'test_array_copy_and_extend()void' | 'test_array_copy_and_extend', { argsObj: ContractArgs['obj']['test_array_copy_and_extend()void']; argsTuple: ContractArgs['tuple']['test_array_copy_and_extend()void']; returns: ContractReturns['test_array_copy_and_extend()void']; }> & Record<'test_array_evaluation_order()void' | 'test_array_evaluation_order', { argsObj: ContractArgs['obj']['test_array_evaluation_order()void']; argsTuple: ContractArgs['tuple']['test_array_evaluation_order()void']; returns: ContractReturns['test_array_evaluation_order()void']; }> & Record<'test_array_assignment_maximum_cursage()void' | 'test_array_assignment_maximum_cursage', { argsObj: ContractArgs['obj']['test_array_assignment_maximum_cursage()void']; argsTuple: ContractArgs['tuple']['test_array_assignment_maximum_cursage()void']; returns: ContractReturns['test_array_assignment_maximum_cursage()void']; }> & Record<'test_allocations(uint64)void' | 'test_allocations', { argsObj: ContractArgs['obj']['test_allocations(uint64)void']; argsTuple: ContractArgs['tuple']['test_allocations(uint64)void']; returns: ContractReturns['test_allocations(uint64)void']; }> & Record<'test_iteration()void' | 'test_iteration', { argsObj: ContractArgs['obj']['test_iteration()void']; argsTuple: ContractArgs['tuple']['test_iteration()void']; returns: ContractReturns['test_iteration()void']; }> & Record<'test_quicksort()void' | 'test_quicksort', { argsObj: ContractArgs['obj']['test_quicksort()void']; argsTuple: ContractArgs['tuple']['test_quicksort()void']; returns: ContractReturns['test_quicksort()void']; }> & Record<'test_unobserved_write()void' | 'test_unobserved_write', { argsObj: ContractArgs['obj']['test_unobserved_write()void']; argsTuple: ContractArgs['tuple']['test_unobserved_write()void']; returns: ContractReturns['test_unobserved_write()void']; }>; }; /** * Defines the possible abi call signatures. */ export type ContractSignatures = keyof ContractTypes['methods']; /** * 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 Contract smart contract to the method's arguments in either tuple or struct form */ export type MethodArgs = ContractTypes['methods'][TSignature]['argsObj' | 'argsTuple']; /** * Maps a method signature from the Contract smart contract to the method's return type */ export type MethodReturn = ContractTypes['methods'][TSignature]['returns']; /** * Exposes methods for constructing `AppClient` params objects for ABI calls to the Contract smart contract */ export declare abstract class ContractParamsFactory { /** * Constructs a no op call for the test_array()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testArray(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_array_extend()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testArrayExtend(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_array_multiple_append()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testArrayMultipleAppend(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the overhead()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static overhead(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_array_too_long()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testArrayTooLong(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_array_copy_and_extend()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testArrayCopyAndExtend(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_array_evaluation_order()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testArrayEvaluationOrder(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_array_assignment_maximum_cursage()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testArrayAssignmentMaximumCursage(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_allocations(uint64)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testAllocations(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_iteration()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testIteration(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_quicksort()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testQuicksort(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_unobserved_write()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testUnobservedWrite(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; } /** * A client to make calls to the Contract smart contract */ export declare class ContractClient { /** * The underlying `AppClient` for when you want to have more flexibility */ readonly appClient: _AppClient; /** * Creates a new instance of `ContractClient` * * @param appClient An `AppClient` instance which has been created with the Contract app spec */ constructor(appClient: _AppClient); /** * Creates a new instance of `ContractClient` * * @param params The parameters to initialise the app client with */ constructor(params: Omit); /** * Returns a new `ContractClient` 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 `ContractClient` 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 Contract 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 Contract smart contract using the `test_array()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testArray: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Contract smart contract using the `test_array_extend()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testArrayExtend: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Contract smart contract using the `test_array_multiple_append()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testArrayMultipleAppend: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Contract smart contract using the `overhead()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ overhead: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Contract smart contract using the `test_array_too_long()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testArrayTooLong: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Contract smart contract using the `test_array_copy_and_extend()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testArrayCopyAndExtend: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Contract smart contract using the `test_array_evaluation_order()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testArrayEvaluationOrder: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Contract smart contract using the `test_array_assignment_maximum_cursage()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testArrayAssignmentMaximumCursage: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Contract smart contract using the `test_allocations(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testAllocations: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Contract smart contract using the `test_iteration()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testIteration: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Contract smart contract using the `test_quicksort()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testQuicksort: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Contract smart contract using the `test_unobserved_write()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testUnobservedWrite: (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 Contract smart contract. * * @param params The params for the bare (raw) call * @returns The clearState result */ clearState: (params?: Expand) => Promise; /** * Makes a call to the Contract smart contract using the `test_array()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testArray: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Contract smart contract using the `test_array_extend()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testArrayExtend: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Contract smart contract using the `test_array_multiple_append()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testArrayMultipleAppend: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Contract smart contract using the `overhead()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ overhead: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Contract smart contract using the `test_array_too_long()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testArrayTooLong: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Contract smart contract using the `test_array_copy_and_extend()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testArrayCopyAndExtend: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Contract smart contract using the `test_array_evaluation_order()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testArrayEvaluationOrder: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Contract smart contract using the `test_array_assignment_maximum_cursage()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testArrayAssignmentMaximumCursage: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Contract smart contract using the `test_allocations(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testAllocations: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Contract smart contract using the `test_iteration()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testIteration: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Contract smart contract using the `test_quicksort()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testQuicksort: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Contract smart contract using the `test_unobserved_write()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testUnobservedWrite: (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 Contract 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 Contract smart contract using the `test_array()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testArray: (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 | ContractReturns['test_array()void']); }>; /** * Makes a call to the Contract smart contract using the `test_array_extend()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testArrayExtend: (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 | ContractReturns['test_array_extend()void']); }>; /** * Makes a call to the Contract smart contract using the `test_array_multiple_append()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testArrayMultipleAppend: (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 | ContractReturns['test_array_multiple_append()void']); }>; /** * Makes a call to the Contract smart contract using the `overhead()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ overhead: (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 | ContractReturns['overhead()void']); }>; /** * Makes a call to the Contract smart contract using the `test_array_too_long()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testArrayTooLong: (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 | ContractReturns['test_array_too_long()void']); }>; /** * Makes a call to the Contract smart contract using the `test_array_copy_and_extend()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testArrayCopyAndExtend: (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 | ContractReturns['test_array_copy_and_extend()void']); }>; /** * Makes a call to the Contract smart contract using the `test_array_evaluation_order()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testArrayEvaluationOrder: (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 | ContractReturns['test_array_evaluation_order()void']); }>; /** * Makes a call to the Contract smart contract using the `test_array_assignment_maximum_cursage()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testArrayAssignmentMaximumCursage: (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 | ContractReturns['test_array_assignment_maximum_cursage()void']); }>; /** * Makes a call to the Contract smart contract using the `test_allocations(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testAllocations: (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 | ContractReturns['test_allocations(uint64)void']); }>; /** * Makes a call to the Contract smart contract using the `test_iteration()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testIteration: (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 | ContractReturns['test_iteration()void']); }>; /** * Makes a call to the Contract smart contract using the `test_quicksort()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testQuicksort: (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 | ContractReturns['test_quicksort()void']); }>; /** * Makes a call to the Contract smart contract using the `test_unobserved_write()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testUnobservedWrite: (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 | ContractReturns['test_unobserved_write()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): ContractClient; /** * Methods to access state for the current Contract app */ state: {}; newGroup(): ContractComposer; } export type ContractComposer = { /** * Calls the test_array()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 */ testArray(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['test_array()void'] | undefined]>; /** * Calls the test_array_extend()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 */ testArrayExtend(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['test_array_extend()void'] | undefined]>; /** * Calls the test_array_multiple_append()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 */ testArrayMultipleAppend(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['test_array_multiple_append()void'] | undefined]>; /** * Calls the overhead()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 */ overhead(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['overhead()void'] | undefined]>; /** * Calls the test_array_too_long()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 */ testArrayTooLong(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['test_array_too_long()void'] | undefined]>; /** * Calls the test_array_copy_and_extend()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 */ testArrayCopyAndExtend(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['test_array_copy_and_extend()void'] | undefined]>; /** * Calls the test_array_evaluation_order()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 */ testArrayEvaluationOrder(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['test_array_evaluation_order()void'] | undefined]>; /** * Calls the test_array_assignment_maximum_cursage()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 */ testArrayAssignmentMaximumCursage(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['test_array_assignment_maximum_cursage()void'] | undefined]>; /** * Calls the test_allocations(uint64)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 */ testAllocations(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['test_allocations(uint64)void'] | undefined]>; /** * Calls the test_iteration()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 */ testIteration(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['test_iteration()void'] | undefined]>; /** * Calls the test_quicksort()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 */ testQuicksort(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['test_quicksort()void'] | undefined]>; /** * Calls the test_unobserved_write()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 */ testUnobservedWrite(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['test_unobserved_write()void'] | undefined]>; /** * Makes a clear_state call to an existing instance of the Contract 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): ContractComposer<[...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): ContractComposer; /** * 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 ContractComposerResults = Expand;