/** * 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, AppClientCompilationParams, ResolveAppClientByCreatorAndName, ResolveAppClientByNetwork, CloneAppClientParams } from '@algorandfoundation/algokit-utils/types/app-client'; import { AppFactory as _AppFactory, AppFactoryAppClientParams, AppFactoryResolveAppClientByCreatorAndNameParams, AppFactoryDeployParams, AppFactoryParams, CreateSchema } from '@algorandfoundation/algokit-utils/types/app-factory'; 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; export type DynamicStruct = { a: bigint; b: bigint; c: Uint8Array; d: string; e: Uint8Array; }; /** * Converts the ABI tuple representation of a DynamicStruct to the struct representation */ export declare function DynamicStructFromTuple(abiTuple: [bigint, bigint, Uint8Array, string, Uint8Array]): DynamicStruct; export type FixedStruct = { a: bigint; b: bigint; }; /** * Converts the ABI tuple representation of a FixedStruct to the struct representation */ export declare function FixedStructFromTuple(abiTuple: [bigint, bigint]): FixedStruct; export type LargeFixedStruct = { fixedA: FixedStruct; bigBytes: Uint8Array; }; /** * Converts the ABI tuple representation of a LargeFixedStruct to the struct representation */ export declare function LargeFixedStructFromTuple(abiTuple: [[bigint, bigint], Uint8Array]): LargeFixedStruct; export type NamedTup = { a: bigint; b: bigint; }; /** * Converts the ABI tuple representation of a NamedTup to the struct representation */ export declare function NamedTupFromTuple(abiTuple: [bigint, bigint]): NamedTup; export type NestedStruct = { fixedA: FixedStruct; fixedB: FixedStruct; tup: NamedTup; }; /** * Converts the ABI tuple representation of a NestedStruct to the struct representation */ export declare function NestedStructFromTuple(abiTuple: [[bigint, bigint], [bigint, bigint], [bigint, bigint]]): NestedStruct; export type Payment = { receiver: string; asset: bigint; amt: bigint; }; /** * Converts the ABI tuple representation of a Payment to the struct representation */ export declare function PaymentFromTuple(abiTuple: [string, bigint, bigint]): Payment; /** * The argument types for the Contract contract */ export type ContractArgs = { /** * The object representation of the arguments for each method */ obj: { 'test_imm_fixed_array()void': Record; 'fixed_initialize()void': Record; 'add_payment((address,uint64,uint64))void': { pay: Payment; }; 'increment_payment(uint64,uint64)void': { index: bigint | number; amt: bigint | number; }; 'create_storage(uint64)void': { boxKey: bigint | number; }; 'local_struct()(address,uint64,uint64)': Record; 'delete_storage(uint64)void': { boxKey: bigint | number; }; 'struct_arg(uint64,(uint64,uint64))void': { boxKey: bigint | number; a: FixedStruct; }; 'struct_return()(uint64,uint64)': Record; 'tup_return()(uint64,uint64)': Record; 'calculate_sum()uint64': Record; 'test_arr((uint64,uint64)[])(uint64,uint64)[]': { arr: [bigint | number, bigint | number][]; }; 'test_match_struct((uint64,uint64))bool': { arg: FixedStruct; }; }; /** * The tuple representation of the arguments for each method */ tuple: { 'test_imm_fixed_array()void': []; 'fixed_initialize()void': []; 'add_payment((address,uint64,uint64))void': [pay: Payment]; 'increment_payment(uint64,uint64)void': [index: bigint | number, amt: bigint | number]; 'create_storage(uint64)void': [boxKey: bigint | number]; 'local_struct()(address,uint64,uint64)': []; 'delete_storage(uint64)void': [boxKey: bigint | number]; 'struct_arg(uint64,(uint64,uint64))void': [boxKey: bigint | number, a: FixedStruct]; 'struct_return()(uint64,uint64)': []; 'tup_return()(uint64,uint64)': []; 'calculate_sum()uint64': []; 'test_arr((uint64,uint64)[])(uint64,uint64)[]': [arr: [bigint | number, bigint | number][]]; 'test_match_struct((uint64,uint64))bool': [arg: FixedStruct]; }; }; /** * The return type for each method */ export type ContractReturns = { 'test_imm_fixed_array()void': void; 'fixed_initialize()void': void; 'add_payment((address,uint64,uint64))void': void; 'increment_payment(uint64,uint64)void': void; 'create_storage(uint64)void': void; 'local_struct()(address,uint64,uint64)': Payment; 'delete_storage(uint64)void': void; 'struct_arg(uint64,(uint64,uint64))void': void; 'struct_return()(uint64,uint64)': FixedStruct; 'tup_return()(uint64,uint64)': NamedTup; 'calculate_sum()uint64': bigint; 'test_arr((uint64,uint64)[])(uint64,uint64)[]': [bigint, bigint][]; 'test_match_struct((uint64,uint64))bool': boolean; }; /** * 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_imm_fixed_array()void' | 'test_imm_fixed_array', { argsObj: ContractArgs['obj']['test_imm_fixed_array()void']; argsTuple: ContractArgs['tuple']['test_imm_fixed_array()void']; returns: ContractReturns['test_imm_fixed_array()void']; }> & Record<'fixed_initialize()void' | 'fixed_initialize', { argsObj: ContractArgs['obj']['fixed_initialize()void']; argsTuple: ContractArgs['tuple']['fixed_initialize()void']; returns: ContractReturns['fixed_initialize()void']; }> & Record<'add_payment((address,uint64,uint64))void' | 'add_payment', { argsObj: ContractArgs['obj']['add_payment((address,uint64,uint64))void']; argsTuple: ContractArgs['tuple']['add_payment((address,uint64,uint64))void']; returns: ContractReturns['add_payment((address,uint64,uint64))void']; }> & Record<'increment_payment(uint64,uint64)void' | 'increment_payment', { argsObj: ContractArgs['obj']['increment_payment(uint64,uint64)void']; argsTuple: ContractArgs['tuple']['increment_payment(uint64,uint64)void']; returns: ContractReturns['increment_payment(uint64,uint64)void']; }> & Record<'create_storage(uint64)void' | 'create_storage', { argsObj: ContractArgs['obj']['create_storage(uint64)void']; argsTuple: ContractArgs['tuple']['create_storage(uint64)void']; returns: ContractReturns['create_storage(uint64)void']; }> & Record<'local_struct()(address,uint64,uint64)' | 'local_struct', { argsObj: ContractArgs['obj']['local_struct()(address,uint64,uint64)']; argsTuple: ContractArgs['tuple']['local_struct()(address,uint64,uint64)']; returns: ContractReturns['local_struct()(address,uint64,uint64)']; }> & Record<'delete_storage(uint64)void' | 'delete_storage', { argsObj: ContractArgs['obj']['delete_storage(uint64)void']; argsTuple: ContractArgs['tuple']['delete_storage(uint64)void']; returns: ContractReturns['delete_storage(uint64)void']; }> & Record<'struct_arg(uint64,(uint64,uint64))void' | 'struct_arg', { argsObj: ContractArgs['obj']['struct_arg(uint64,(uint64,uint64))void']; argsTuple: ContractArgs['tuple']['struct_arg(uint64,(uint64,uint64))void']; returns: ContractReturns['struct_arg(uint64,(uint64,uint64))void']; }> & Record<'struct_return()(uint64,uint64)' | 'struct_return', { argsObj: ContractArgs['obj']['struct_return()(uint64,uint64)']; argsTuple: ContractArgs['tuple']['struct_return()(uint64,uint64)']; returns: ContractReturns['struct_return()(uint64,uint64)']; }> & Record<'tup_return()(uint64,uint64)' | 'tup_return', { argsObj: ContractArgs['obj']['tup_return()(uint64,uint64)']; argsTuple: ContractArgs['tuple']['tup_return()(uint64,uint64)']; returns: ContractReturns['tup_return()(uint64,uint64)']; }> & Record<'calculate_sum()uint64' | 'calculate_sum', { argsObj: ContractArgs['obj']['calculate_sum()uint64']; argsTuple: ContractArgs['tuple']['calculate_sum()uint64']; returns: ContractReturns['calculate_sum()uint64']; }> & Record<'test_arr((uint64,uint64)[])(uint64,uint64)[]' | 'test_arr', { argsObj: ContractArgs['obj']['test_arr((uint64,uint64)[])(uint64,uint64)[]']; argsTuple: ContractArgs['tuple']['test_arr((uint64,uint64)[])(uint64,uint64)[]']; returns: ContractReturns['test_arr((uint64,uint64)[])(uint64,uint64)[]']; }> & Record<'test_match_struct((uint64,uint64))bool' | 'test_match_struct', { argsObj: ContractArgs['obj']['test_match_struct((uint64,uint64))bool']; argsTuple: ContractArgs['tuple']['test_match_struct((uint64,uint64))bool']; returns: ContractReturns['test_match_struct((uint64,uint64))bool']; }>; /** * Defines the shape of the state of the application. */ state: { global: { keys: { nested: NestedStruct; /** * some documentation */ nestedProxy: NestedStruct; dyn: DynamicStruct; numPayments: bigint; payments: [[string, bigint, bigint], [string, bigint, bigint]]; arr: [bigint, bigint][]; }; maps: {}; }; local: { keys: { nestedLocal: NestedStruct; }; maps: {}; }; box: { keys: { box: LargeFixedStruct; }; maps: { boxMap: Map; }; }; }; }; /** * Defines the possible abi call signatures. */ export type ContractSignatures = keyof ContractTypes['methods']; /** * Defines the possible abi call signatures for methods that return a non-void value. */ export type ContractNonVoidMethodSignatures = keyof ContractTypes['methods'] extends infer T ? T extends keyof ContractTypes['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 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']; /** * Defines the shape of the keyed global state of the application. */ export type GlobalKeysState = ContractTypes['state']['global']['keys']; /** * Defines the shape of the keyed local state of the application. */ export type LocalKeysState = ContractTypes['state']['local']['keys']; /** * Defines the shape of the keyed box state of the application. */ export type BoxKeysState = ContractTypes['state']['box']['keys']; /** * Defines supported create method params for this smart contract */ export type ContractCreateCallParams = Expand; /** * Defines arguments required for the deploy method. */ export type ContractDeployParams = Expand & { /** * Create transaction parameters to use if a create needs to be issued as part of deployment; use `method` to define ABI call (if available) or leave out for a bare call (if available) */ createParams?: ContractCreateCallParams; }>; /** * 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_imm_fixed_array()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testImmFixedArray(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the fixed_initialize()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static fixedInitialize(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the add_payment((address,uint64,uint64))void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static addPayment(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the increment_payment(uint64,uint64)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static incrementPayment(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the create_storage(uint64)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static createStorage(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the local_struct()(address,uint64,uint64) ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static localStruct(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the delete_storage(uint64)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static deleteStorage(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the struct_arg(uint64,(uint64,uint64))void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static structArg(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the struct_return()(uint64,uint64) ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static structReturn(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the tup_return()(uint64,uint64) ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static tupReturn(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the calculate_sum()uint64 ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static calculateSum(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_arr((uint64,uint64)[])(uint64,uint64)[] ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testArr(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_match_struct((uint64,uint64))bool ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testMatchStruct(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; } /** * A factory to create and deploy one or more instance of the Contract smart contract and to create one or more app clients to interact with those (or other) app instances */ export declare class ContractFactory { /** * The underlying `AppFactory` for when you want to have more flexibility */ readonly appFactory: _AppFactory; /** * Creates a new instance of `ContractFactory` * * @param params The parameters to initialise the app factory with */ constructor(params: Omit); /** The name of the app (from the ARC-32 / ARC-56 app spec or override). */ get appName(): string; /** The ARC-56 app spec being used */ get appSpec(): Arc56Contract; /** A reference to the underlying `AlgorandClient` this app factory is using. */ get algorand(): AlgorandClient; /** * Returns a new `AppClient` client for an app instance of the given ID. * * Automatically populates appName, defaultSender and source maps from the factory * if not specified in the params. * @param params The parameters to create the app client * @returns The `AppClient` */ getAppClientById(params: AppFactoryAppClientParams): ContractClient; /** * Returns a new `AppClient` client, resolving the app by creator address and name * using AlgoKit app deployment semantics (i.e. looking for the app creation transaction note). * * Automatically populates appName, defaultSender and source maps from the factory * if not specified in the params. * @param params The parameters to create the app client * @returns The `AppClient` */ getAppClientByCreatorAndName(params: AppFactoryResolveAppClientByCreatorAndNameParams): Promise; /** * Idempotently deploys the Contract smart contract. * * @param params The arguments for the contract calls and any additional parameters for the call * @returns The deployment result */ deploy(params?: ContractDeployParams): Promise<{ result: { return: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined; deleteReturn: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined; compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; operationPerformed: "create"; version: string; name: string; createdRound: bigint; updatedRound: bigint; createdMetadata: import("@algorandfoundation/algokit-utils/types/app").AppDeployMetadata; deleted: boolean; deletable?: boolean | undefined; updatable?: boolean | undefined; groupId: string; txIds: string[]; returns?: import("@algorandfoundation/algokit-utils/types/app").ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; appId: bigint; appAddress: Address; } | { return: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined; deleteReturn: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined; compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; operationPerformed: "update"; appId: bigint; appAddress: Address; createdRound: bigint; updatedRound: bigint; createdMetadata: import("@algorandfoundation/algokit-utils/types/app").AppDeployMetadata; deleted: boolean; name: string; version: string; deletable?: boolean | undefined; updatable?: boolean | undefined; groupId: string; txIds: string[]; returns?: import("@algorandfoundation/algokit-utils/types/app").ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; } | { return: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined; deleteReturn: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined; compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; operationPerformed: "replace"; version: string; name: string; createdRound: bigint; updatedRound: bigint; createdMetadata: import("@algorandfoundation/algokit-utils/types/app").AppDeployMetadata; deleted: boolean; deletable?: boolean | undefined; updatable?: boolean | undefined; groupId: string; txIds: string[]; returns?: import("@algorandfoundation/algokit-utils/types/app").ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; appId: bigint; appAddress: Address; deleteResult: import("@algorandfoundation/algokit-utils/types/transaction").ConfirmedTransactionResult; } | { return: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined; deleteReturn: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined; compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; operationPerformed: "nothing"; appId: bigint; appAddress: Address; createdRound: bigint; updatedRound: bigint; createdMetadata: import("@algorandfoundation/algokit-utils/types/app").AppDeployMetadata; deleted: boolean; name: string; version: string; deletable?: boolean | undefined; updatable?: boolean | undefined; }; appClient: ContractClient; }>; /** * Get parameters to create transactions (create and deploy related calls) for the current app. A good mental model for this is that these parameters represent a deferred transaction creation. */ readonly params: { /** * Gets available create methods */ create: { /** * Creates a new instance of the Contract smart contract using a bare call. * * @param params The params for the bare (raw) call * @returns The params for a create call */ bare: (params?: Expand) => Promise<{ approvalProgram: Uint8Array; clearStateProgram: Uint8Array; compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; deployTimeParams: import("@algorandfoundation/algokit-utils/types/app").TealTemplateParams | undefined; schema: { globalInts: number; globalByteSlices: number; localInts: number; localByteSlices: number; }; maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; note?: string | Uint8Array | undefined; args?: Uint8Array[] | undefined; signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; rejectVersion?: number | undefined; lease?: string | Uint8Array | undefined; rekeyTo?: string | Address | undefined; staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; validityWindow?: number | bigint | undefined; firstValidRound?: bigint | undefined; lastValidRound?: bigint | undefined; accountReferences?: (string | Address)[] | undefined; appReferences?: bigint[] | undefined; assetReferences?: bigint[] | undefined; boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier | import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; sender?: string | Address | undefined; updatable?: boolean | undefined; deletable?: boolean | undefined; onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC | undefined; extraProgramPages?: number | undefined; } & { sender: Address; signer: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; onComplete: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC; }>; }; }; /** * Create transactions for the current app */ readonly createTransaction: { /** * Gets available create methods */ create: { /** * Creates a new instance of the Contract smart contract using a bare call. * * @param params The params for the bare (raw) call * @returns The transaction for a create call */ bare: (params?: Expand) => Promise; }; }; /** * Send calls to the current app */ readonly send: { /** * Gets available create methods */ create: { /** * Creates a new instance of the Contract smart contract using a bare call. * * @param params The params for the bare (raw) call * @returns The create result */ bare: (params?: Expand) => Promise<{ result: { compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; return: undefined; groupId: string; txIds: string[]; returns?: import("@algorandfoundation/algokit-utils/types/app").ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; appId: bigint; appAddress: Address; }; appClient: ContractClient; }>; }; }; } /** * 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); /** * 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 `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_imm_fixed_array()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testImmFixedArray: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Contract smart contract using the `fixed_initialize()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ fixedInitialize: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Contract smart contract using the `add_payment((address,uint64,uint64))void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ addPayment: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Contract smart contract using the `increment_payment(uint64,uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ incrementPayment: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Contract smart contract using the `create_storage(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ createStorage: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Contract smart contract using the `local_struct()(address,uint64,uint64)` ABI method. * * @param params The params for the smart contract call * @returns The call params */ localStruct: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Contract smart contract using the `delete_storage(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ deleteStorage: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Contract smart contract using the `struct_arg(uint64,(uint64,uint64))void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ structArg: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Contract smart contract using the `struct_return()(uint64,uint64)` ABI method. * * @param params The params for the smart contract call * @returns The call params */ structReturn: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Contract smart contract using the `tup_return()(uint64,uint64)` ABI method. * * @param params The params for the smart contract call * @returns The call params */ tupReturn: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Contract smart contract using the `calculate_sum()uint64` ABI method. * * @param params The params for the smart contract call * @returns The call params */ calculateSum: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Contract smart contract using the `test_arr((uint64,uint64)[])(uint64,uint64)[]` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testArr: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Contract smart contract using the `test_match_struct((uint64,uint64))bool` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testMatchStruct: (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_imm_fixed_array()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testImmFixedArray: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Contract smart contract using the `fixed_initialize()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ fixedInitialize: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Contract smart contract using the `add_payment((address,uint64,uint64))void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ addPayment: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Contract smart contract using the `increment_payment(uint64,uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ incrementPayment: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Contract smart contract using the `create_storage(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ createStorage: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Contract smart contract using the `local_struct()(address,uint64,uint64)` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ localStruct: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Contract smart contract using the `delete_storage(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ deleteStorage: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Contract smart contract using the `struct_arg(uint64,(uint64,uint64))void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ structArg: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Contract smart contract using the `struct_return()(uint64,uint64)` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ structReturn: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Contract smart contract using the `tup_return()(uint64,uint64)` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ tupReturn: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Contract smart contract using the `calculate_sum()uint64` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ calculateSum: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Contract smart contract using the `test_arr((uint64,uint64)[])(uint64,uint64)[]` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testArr: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Contract smart contract using the `test_match_struct((uint64,uint64))bool` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testMatchStruct: (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_imm_fixed_array()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testImmFixedArray: (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_imm_fixed_array()void']); }>; /** * Makes a call to the Contract smart contract using the `fixed_initialize()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ fixedInitialize: (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['fixed_initialize()void']); }>; /** * Makes a call to the Contract smart contract using the `add_payment((address,uint64,uint64))void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ addPayment: (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['add_payment((address,uint64,uint64))void']); }>; /** * Makes a call to the Contract smart contract using the `increment_payment(uint64,uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ incrementPayment: (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['increment_payment(uint64,uint64)void']); }>; /** * Makes a call to the Contract smart contract using the `create_storage(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ createStorage: (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['create_storage(uint64)void']); }>; /** * Makes a call to the Contract smart contract using the `local_struct()(address,uint64,uint64)` ABI method. * * @param params The params for the smart contract call * @returns The call result */ localStruct: (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['local_struct()(address,uint64,uint64)']); }>; /** * Makes a call to the Contract smart contract using the `delete_storage(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ deleteStorage: (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['delete_storage(uint64)void']); }>; /** * Makes a call to the Contract smart contract using the `struct_arg(uint64,(uint64,uint64))void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ structArg: (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['struct_arg(uint64,(uint64,uint64))void']); }>; /** * Makes a call to the Contract smart contract using the `struct_return()(uint64,uint64)` ABI method. * * @param params The params for the smart contract call * @returns The call result */ structReturn: (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['struct_return()(uint64,uint64)']); }>; /** * Makes a call to the Contract smart contract using the `tup_return()(uint64,uint64)` ABI method. * * @param params The params for the smart contract call * @returns The call result */ tupReturn: (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['tup_return()(uint64,uint64)']); }>; /** * Makes a call to the Contract smart contract using the `calculate_sum()uint64` ABI method. * * @param params The params for the smart contract call * @returns The call result */ calculateSum: (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['calculate_sum()uint64']); }>; /** * Makes a call to the Contract smart contract using the `test_arr((uint64,uint64)[])(uint64,uint64)[]` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testArr: (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_arr((uint64,uint64)[])(uint64,uint64)[]']); }>; /** * Makes a call to the Contract smart contract using the `test_match_struct((uint64,uint64))bool` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testMatchStruct: (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_match_struct((uint64,uint64))bool']); }>; }; /** * 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: { /** * Methods to access global state for the current Contract app */ global: { /** * Get all current keyed values from global state */ getAll: () => Promise>>; /** * Get the current value of the nested key in global state */ nested: () => Promise; /** * Get the current value of the nested_proxy key in global state */ nestedProxy: () => Promise; /** * Get the current value of the dyn key in global state */ dyn: () => Promise; /** * Get the current value of the num_payments key in global state */ numPayments: () => Promise; /** * Get the current value of the payments key in global state */ payments: () => Promise<[[string, bigint, bigint], [string, bigint, bigint]] | undefined>; /** * Get the current value of the arr key in global state */ arr: () => Promise<[bigint, bigint][] | undefined>; }; /** * Methods to access local state for the current Contract app */ local: (address: string | Address) => { /** * Get all current keyed values from local state */ getAll: () => Promise>>; /** * Get the current value of the nested_local key in local state */ nestedLocal: () => Promise; }; /** * Methods to access box state for the current Contract app */ box: { /** * Get all current keyed values from box state */ getAll: () => Promise>>; /** * Get the current value of the box key in box state */ box: () => Promise; /** * Get values from the box_map map in box state */ boxMap: { /** * Get all current values of the box_map map in box state */ getMap: () => Promise>; /** * Get a current value of the box_map map by key from box state */ value: (key: bigint | number) => Promise; }; }; }; newGroup(): ContractComposer; } export type ContractComposer = { /** * Calls the test_imm_fixed_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 */ testImmFixedArray(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['test_imm_fixed_array()void'] | undefined]>; /** * Calls the fixed_initialize()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 */ fixedInitialize(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['fixed_initialize()void'] | undefined]>; /** * Calls the add_payment((address,uint64,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 */ addPayment(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['add_payment((address,uint64,uint64))void'] | undefined]>; /** * Calls the increment_payment(uint64,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 */ incrementPayment(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['increment_payment(uint64,uint64)void'] | undefined]>; /** * Calls the create_storage(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 */ createStorage(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['create_storage(uint64)void'] | undefined]>; /** * Calls the local_struct()(address,uint64,uint64) 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 */ localStruct(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['local_struct()(address,uint64,uint64)'] | undefined]>; /** * Calls the delete_storage(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 */ deleteStorage(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['delete_storage(uint64)void'] | undefined]>; /** * Calls the struct_arg(uint64,(uint64,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 */ structArg(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['struct_arg(uint64,(uint64,uint64))void'] | undefined]>; /** * Calls the struct_return()(uint64,uint64) 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 */ structReturn(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['struct_return()(uint64,uint64)'] | undefined]>; /** * Calls the tup_return()(uint64,uint64) 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 */ tupReturn(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['tup_return()(uint64,uint64)'] | undefined]>; /** * Calls the calculate_sum()uint64 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 */ calculateSum(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['calculate_sum()uint64'] | undefined]>; /** * Calls the test_arr((uint64,uint64)[])(uint64,uint64)[] 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 */ testArr(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['test_arr((uint64,uint64)[])(uint64,uint64)[]'] | undefined]>; /** * Calls the test_match_struct((uint64,uint64))bool 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 */ testMatchStruct(params?: CallParams): ContractComposer<[...TReturns, ContractReturns['test_match_struct((uint64,uint64))bool'] | 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;