/** * 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; /** * The argument types for the Greeter contract */ export type GreeterArgs = { /** * The object representation of the arguments for each method */ obj: { 'test_is_a_b(byte[],byte[],uint64)void': { a: Uint8Array; b: Uint8Array; app: bigint | number; }; 'test_method_selector_kinds(uint64)void': { app: bigint | number; }; 'test_method_overload(uint64)void': { app: bigint | number; }; 'test_arg_conversion(uint64)void': { app: bigint | number; }; 'test_15plus_args(uint64)void': { app: bigint | number; }; 'test_void(uint64)void': { app: bigint | number; }; 'test_ref_types(uint64,uint64)void': { app: bigint | number; asset: bigint | number; }; 'test_account_to_address(uint64)void': { app: bigint | number; }; 'test_native_string(uint64)void': { app: bigint | number; }; 'test_native_bytes(uint64)void': { app: bigint | number; }; 'test_native_uint64(uint64)void': { app: bigint | number; }; 'test_native_biguint(uint64)void': { app: bigint | number; }; 'test_native_tuple(uint64)void': { app: bigint | number; }; 'test_native_tuple_method_ref(uint64)void': { app: bigint | number; }; 'test_nested_tuples(uint64)void': { app: bigint | number; }; 'test_no_args(uint64)void': { app: bigint | number; }; 'test_named_tuples(uint64)void': { app: bigint | number; }; 'test_arc4_struct(uint64)void': { app: bigint | number; }; 'test_resource_encoding(uint64,uint64)void': { appToCall: bigint | number; asset: bigint | number; }; }; /** * The tuple representation of the arguments for each method */ tuple: { 'test_is_a_b(byte[],byte[],uint64)void': [a: Uint8Array, b: Uint8Array, app: bigint | number]; 'test_method_selector_kinds(uint64)void': [app: bigint | number]; 'test_method_overload(uint64)void': [app: bigint | number]; 'test_arg_conversion(uint64)void': [app: bigint | number]; 'test_15plus_args(uint64)void': [app: bigint | number]; 'test_void(uint64)void': [app: bigint | number]; 'test_ref_types(uint64,uint64)void': [app: bigint | number, asset: bigint | number]; 'test_account_to_address(uint64)void': [app: bigint | number]; 'test_native_string(uint64)void': [app: bigint | number]; 'test_native_bytes(uint64)void': [app: bigint | number]; 'test_native_uint64(uint64)void': [app: bigint | number]; 'test_native_biguint(uint64)void': [app: bigint | number]; 'test_native_tuple(uint64)void': [app: bigint | number]; 'test_native_tuple_method_ref(uint64)void': [app: bigint | number]; 'test_nested_tuples(uint64)void': [app: bigint | number]; 'test_no_args(uint64)void': [app: bigint | number]; 'test_named_tuples(uint64)void': [app: bigint | number]; 'test_arc4_struct(uint64)void': [app: bigint | number]; 'test_resource_encoding(uint64,uint64)void': [appToCall: bigint | number, asset: bigint | number]; }; }; /** * The return type for each method */ export type GreeterReturns = { 'test_is_a_b(byte[],byte[],uint64)void': void; 'test_method_selector_kinds(uint64)void': void; 'test_method_overload(uint64)void': void; 'test_arg_conversion(uint64)void': void; 'test_15plus_args(uint64)void': void; 'test_void(uint64)void': void; 'test_ref_types(uint64,uint64)void': void; 'test_account_to_address(uint64)void': void; 'test_native_string(uint64)void': void; 'test_native_bytes(uint64)void': void; 'test_native_uint64(uint64)void': void; 'test_native_biguint(uint64)void': void; 'test_native_tuple(uint64)void': void; 'test_native_tuple_method_ref(uint64)void': void; 'test_nested_tuples(uint64)void': void; 'test_no_args(uint64)void': void; 'test_named_tuples(uint64)void': void; 'test_arc4_struct(uint64)void': void; 'test_resource_encoding(uint64,uint64)void': void; }; /** * Defines the types of available calls and state of the Greeter smart contract. */ export type GreeterTypes = { /** * Maps method signatures / names to their argument and return types. */ methods: Record<'test_is_a_b(byte[],byte[],uint64)void' | 'test_is_a_b', { argsObj: GreeterArgs['obj']['test_is_a_b(byte[],byte[],uint64)void']; argsTuple: GreeterArgs['tuple']['test_is_a_b(byte[],byte[],uint64)void']; returns: GreeterReturns['test_is_a_b(byte[],byte[],uint64)void']; }> & Record<'test_method_selector_kinds(uint64)void' | 'test_method_selector_kinds', { argsObj: GreeterArgs['obj']['test_method_selector_kinds(uint64)void']; argsTuple: GreeterArgs['tuple']['test_method_selector_kinds(uint64)void']; returns: GreeterReturns['test_method_selector_kinds(uint64)void']; }> & Record<'test_method_overload(uint64)void' | 'test_method_overload', { argsObj: GreeterArgs['obj']['test_method_overload(uint64)void']; argsTuple: GreeterArgs['tuple']['test_method_overload(uint64)void']; returns: GreeterReturns['test_method_overload(uint64)void']; }> & Record<'test_arg_conversion(uint64)void' | 'test_arg_conversion', { argsObj: GreeterArgs['obj']['test_arg_conversion(uint64)void']; argsTuple: GreeterArgs['tuple']['test_arg_conversion(uint64)void']; returns: GreeterReturns['test_arg_conversion(uint64)void']; }> & Record<'test_15plus_args(uint64)void' | 'test_15plus_args', { argsObj: GreeterArgs['obj']['test_15plus_args(uint64)void']; argsTuple: GreeterArgs['tuple']['test_15plus_args(uint64)void']; returns: GreeterReturns['test_15plus_args(uint64)void']; }> & Record<'test_void(uint64)void' | 'test_void', { argsObj: GreeterArgs['obj']['test_void(uint64)void']; argsTuple: GreeterArgs['tuple']['test_void(uint64)void']; returns: GreeterReturns['test_void(uint64)void']; }> & Record<'test_ref_types(uint64,uint64)void' | 'test_ref_types', { argsObj: GreeterArgs['obj']['test_ref_types(uint64,uint64)void']; argsTuple: GreeterArgs['tuple']['test_ref_types(uint64,uint64)void']; returns: GreeterReturns['test_ref_types(uint64,uint64)void']; }> & Record<'test_account_to_address(uint64)void' | 'test_account_to_address', { argsObj: GreeterArgs['obj']['test_account_to_address(uint64)void']; argsTuple: GreeterArgs['tuple']['test_account_to_address(uint64)void']; returns: GreeterReturns['test_account_to_address(uint64)void']; }> & Record<'test_native_string(uint64)void' | 'test_native_string', { argsObj: GreeterArgs['obj']['test_native_string(uint64)void']; argsTuple: GreeterArgs['tuple']['test_native_string(uint64)void']; returns: GreeterReturns['test_native_string(uint64)void']; }> & Record<'test_native_bytes(uint64)void' | 'test_native_bytes', { argsObj: GreeterArgs['obj']['test_native_bytes(uint64)void']; argsTuple: GreeterArgs['tuple']['test_native_bytes(uint64)void']; returns: GreeterReturns['test_native_bytes(uint64)void']; }> & Record<'test_native_uint64(uint64)void' | 'test_native_uint64', { argsObj: GreeterArgs['obj']['test_native_uint64(uint64)void']; argsTuple: GreeterArgs['tuple']['test_native_uint64(uint64)void']; returns: GreeterReturns['test_native_uint64(uint64)void']; }> & Record<'test_native_biguint(uint64)void' | 'test_native_biguint', { argsObj: GreeterArgs['obj']['test_native_biguint(uint64)void']; argsTuple: GreeterArgs['tuple']['test_native_biguint(uint64)void']; returns: GreeterReturns['test_native_biguint(uint64)void']; }> & Record<'test_native_tuple(uint64)void' | 'test_native_tuple', { argsObj: GreeterArgs['obj']['test_native_tuple(uint64)void']; argsTuple: GreeterArgs['tuple']['test_native_tuple(uint64)void']; returns: GreeterReturns['test_native_tuple(uint64)void']; }> & Record<'test_native_tuple_method_ref(uint64)void' | 'test_native_tuple_method_ref', { argsObj: GreeterArgs['obj']['test_native_tuple_method_ref(uint64)void']; argsTuple: GreeterArgs['tuple']['test_native_tuple_method_ref(uint64)void']; returns: GreeterReturns['test_native_tuple_method_ref(uint64)void']; }> & Record<'test_nested_tuples(uint64)void' | 'test_nested_tuples', { argsObj: GreeterArgs['obj']['test_nested_tuples(uint64)void']; argsTuple: GreeterArgs['tuple']['test_nested_tuples(uint64)void']; returns: GreeterReturns['test_nested_tuples(uint64)void']; }> & Record<'test_no_args(uint64)void' | 'test_no_args', { argsObj: GreeterArgs['obj']['test_no_args(uint64)void']; argsTuple: GreeterArgs['tuple']['test_no_args(uint64)void']; returns: GreeterReturns['test_no_args(uint64)void']; }> & Record<'test_named_tuples(uint64)void' | 'test_named_tuples', { argsObj: GreeterArgs['obj']['test_named_tuples(uint64)void']; argsTuple: GreeterArgs['tuple']['test_named_tuples(uint64)void']; returns: GreeterReturns['test_named_tuples(uint64)void']; }> & Record<'test_arc4_struct(uint64)void' | 'test_arc4_struct', { argsObj: GreeterArgs['obj']['test_arc4_struct(uint64)void']; argsTuple: GreeterArgs['tuple']['test_arc4_struct(uint64)void']; returns: GreeterReturns['test_arc4_struct(uint64)void']; }> & Record<'test_resource_encoding(uint64,uint64)void' | 'test_resource_encoding', { argsObj: GreeterArgs['obj']['test_resource_encoding(uint64,uint64)void']; argsTuple: GreeterArgs['tuple']['test_resource_encoding(uint64,uint64)void']; returns: GreeterReturns['test_resource_encoding(uint64,uint64)void']; }>; }; /** * Defines the possible abi call signatures. */ export type GreeterSignatures = keyof GreeterTypes['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 Greeter smart contract to the method's arguments in either tuple or struct form */ export type MethodArgs = GreeterTypes['methods'][TSignature]['argsObj' | 'argsTuple']; /** * Maps a method signature from the Greeter smart contract to the method's return type */ export type MethodReturn = GreeterTypes['methods'][TSignature]['returns']; /** * Defines supported create method params for this smart contract */ export type GreeterCreateCallParams = Expand; /** * Defines arguments required for the deploy method. */ export type GreeterDeployParams = 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?: GreeterCreateCallParams; }>; /** * Exposes methods for constructing `AppClient` params objects for ABI calls to the Greeter smart contract */ export declare abstract class GreeterParamsFactory { /** * Constructs a no op call for the test_is_a_b(byte[],byte[],uint64)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testIsAB(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_method_selector_kinds(uint64)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testMethodSelectorKinds(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_method_overload(uint64)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testMethodOverload(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_arg_conversion(uint64)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testArgConversion(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_15plus_args(uint64)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static test_15plusArgs(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_void(uint64)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testVoid(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_ref_types(uint64,uint64)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testRefTypes(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_account_to_address(uint64)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testAccountToAddress(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_native_string(uint64)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testNativeString(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_native_bytes(uint64)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testNativeBytes(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_native_uint64(uint64)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testNativeUint64(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_native_biguint(uint64)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testNativeBiguint(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_native_tuple(uint64)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testNativeTuple(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_native_tuple_method_ref(uint64)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testNativeTupleMethodRef(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_nested_tuples(uint64)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testNestedTuples(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_no_args(uint64)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testNoArgs(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_named_tuples(uint64)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testNamedTuples(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_arc4_struct(uint64)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testArc4Struct(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the test_resource_encoding(uint64,uint64)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static testResourceEncoding(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; } /** * A factory to create and deploy one or more instance of the Greeter smart contract and to create one or more app clients to interact with those (or other) app instances */ export declare class GreeterFactory { /** * The underlying `AppFactory` for when you want to have more flexibility */ readonly appFactory: _AppFactory; /** * Creates a new instance of `GreeterFactory` * * @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): GreeterClient; /** * 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 Greeter smart contract. * * @param params The arguments for the contract calls and any additional parameters for the call * @returns The deployment result */ deploy(params?: GreeterDeployParams): 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: GreeterClient; }>; /** * 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 Greeter 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 Greeter 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 Greeter 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: GreeterClient; }>; }; }; } /** * A client to make calls to the Greeter smart contract */ export declare class GreeterClient { /** * The underlying `AppClient` for when you want to have more flexibility */ readonly appClient: _AppClient; /** * Creates a new instance of `GreeterClient` * * @param appClient An `AppClient` instance which has been created with the Greeter app spec */ constructor(appClient: _AppClient); /** * Creates a new instance of `GreeterClient` * * @param params The parameters to initialise the app client with */ constructor(params: Omit); /** * Returns a new `GreeterClient` 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 `GreeterClient` 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 Greeter 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 Greeter smart contract using the `test_is_a_b(byte[],byte[],uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testIsAB: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Greeter smart contract using the `test_method_selector_kinds(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testMethodSelectorKinds: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Greeter smart contract using the `test_method_overload(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testMethodOverload: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Greeter smart contract using the `test_arg_conversion(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testArgConversion: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Greeter smart contract using the `test_15plus_args(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ test_15plusArgs: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Greeter smart contract using the `test_void(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testVoid: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Greeter smart contract using the `test_ref_types(uint64,uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testRefTypes: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Greeter smart contract using the `test_account_to_address(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testAccountToAddress: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Greeter smart contract using the `test_native_string(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testNativeString: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Greeter smart contract using the `test_native_bytes(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testNativeBytes: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Greeter smart contract using the `test_native_uint64(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testNativeUint64: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Greeter smart contract using the `test_native_biguint(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testNativeBiguint: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Greeter smart contract using the `test_native_tuple(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testNativeTuple: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Greeter smart contract using the `test_native_tuple_method_ref(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testNativeTupleMethodRef: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Greeter smart contract using the `test_nested_tuples(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testNestedTuples: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Greeter smart contract using the `test_no_args(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testNoArgs: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Greeter smart contract using the `test_named_tuples(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testNamedTuples: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Greeter smart contract using the `test_arc4_struct(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testArc4Struct: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the Greeter smart contract using the `test_resource_encoding(uint64,uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ testResourceEncoding: (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 Greeter smart contract. * * @param params The params for the bare (raw) call * @returns The clearState result */ clearState: (params?: Expand) => Promise; /** * Makes a call to the Greeter smart contract using the `test_is_a_b(byte[],byte[],uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testIsAB: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Greeter smart contract using the `test_method_selector_kinds(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testMethodSelectorKinds: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Greeter smart contract using the `test_method_overload(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testMethodOverload: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Greeter smart contract using the `test_arg_conversion(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testArgConversion: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Greeter smart contract using the `test_15plus_args(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ test_15plusArgs: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Greeter smart contract using the `test_void(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testVoid: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Greeter smart contract using the `test_ref_types(uint64,uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testRefTypes: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Greeter smart contract using the `test_account_to_address(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testAccountToAddress: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Greeter smart contract using the `test_native_string(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testNativeString: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Greeter smart contract using the `test_native_bytes(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testNativeBytes: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Greeter smart contract using the `test_native_uint64(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testNativeUint64: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Greeter smart contract using the `test_native_biguint(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testNativeBiguint: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Greeter smart contract using the `test_native_tuple(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testNativeTuple: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Greeter smart contract using the `test_native_tuple_method_ref(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testNativeTupleMethodRef: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Greeter smart contract using the `test_nested_tuples(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testNestedTuples: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Greeter smart contract using the `test_no_args(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testNoArgs: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Greeter smart contract using the `test_named_tuples(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testNamedTuples: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Greeter smart contract using the `test_arc4_struct(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testArc4Struct: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the Greeter smart contract using the `test_resource_encoding(uint64,uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ testResourceEncoding: (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 Greeter 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 Greeter smart contract using the `test_is_a_b(byte[],byte[],uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testIsAB: (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 | GreeterReturns['test_is_a_b(byte[],byte[],uint64)void']); }>; /** * Makes a call to the Greeter smart contract using the `test_method_selector_kinds(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testMethodSelectorKinds: (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 | GreeterReturns['test_method_selector_kinds(uint64)void']); }>; /** * Makes a call to the Greeter smart contract using the `test_method_overload(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testMethodOverload: (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 | GreeterReturns['test_method_overload(uint64)void']); }>; /** * Makes a call to the Greeter smart contract using the `test_arg_conversion(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testArgConversion: (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 | GreeterReturns['test_arg_conversion(uint64)void']); }>; /** * Makes a call to the Greeter smart contract using the `test_15plus_args(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ test_15plusArgs: (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 | GreeterReturns['test_15plus_args(uint64)void']); }>; /** * Makes a call to the Greeter smart contract using the `test_void(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testVoid: (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 | GreeterReturns['test_void(uint64)void']); }>; /** * Makes a call to the Greeter smart contract using the `test_ref_types(uint64,uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testRefTypes: (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 | GreeterReturns['test_ref_types(uint64,uint64)void']); }>; /** * Makes a call to the Greeter smart contract using the `test_account_to_address(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testAccountToAddress: (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 | GreeterReturns['test_account_to_address(uint64)void']); }>; /** * Makes a call to the Greeter smart contract using the `test_native_string(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testNativeString: (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 | GreeterReturns['test_native_string(uint64)void']); }>; /** * Makes a call to the Greeter smart contract using the `test_native_bytes(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testNativeBytes: (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 | GreeterReturns['test_native_bytes(uint64)void']); }>; /** * Makes a call to the Greeter smart contract using the `test_native_uint64(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testNativeUint64: (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 | GreeterReturns['test_native_uint64(uint64)void']); }>; /** * Makes a call to the Greeter smart contract using the `test_native_biguint(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testNativeBiguint: (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 | GreeterReturns['test_native_biguint(uint64)void']); }>; /** * Makes a call to the Greeter smart contract using the `test_native_tuple(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testNativeTuple: (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 | GreeterReturns['test_native_tuple(uint64)void']); }>; /** * Makes a call to the Greeter smart contract using the `test_native_tuple_method_ref(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testNativeTupleMethodRef: (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 | GreeterReturns['test_native_tuple_method_ref(uint64)void']); }>; /** * Makes a call to the Greeter smart contract using the `test_nested_tuples(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testNestedTuples: (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 | GreeterReturns['test_nested_tuples(uint64)void']); }>; /** * Makes a call to the Greeter smart contract using the `test_no_args(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testNoArgs: (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 | GreeterReturns['test_no_args(uint64)void']); }>; /** * Makes a call to the Greeter smart contract using the `test_named_tuples(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testNamedTuples: (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 | GreeterReturns['test_named_tuples(uint64)void']); }>; /** * Makes a call to the Greeter smart contract using the `test_arc4_struct(uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testArc4Struct: (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 | GreeterReturns['test_arc4_struct(uint64)void']); }>; /** * Makes a call to the Greeter smart contract using the `test_resource_encoding(uint64,uint64)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ testResourceEncoding: (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 | GreeterReturns['test_resource_encoding(uint64,uint64)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): GreeterClient; /** * Methods to access state for the current Greeter app */ state: {}; newGroup(): GreeterComposer; } export type GreeterComposer = { /** * Calls the test_is_a_b(byte[],byte[],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 */ testIsAB(params?: CallParams): GreeterComposer<[...TReturns, GreeterReturns['test_is_a_b(byte[],byte[],uint64)void'] | undefined]>; /** * Calls the test_method_selector_kinds(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 */ testMethodSelectorKinds(params?: CallParams): GreeterComposer<[...TReturns, GreeterReturns['test_method_selector_kinds(uint64)void'] | undefined]>; /** * Calls the test_method_overload(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 */ testMethodOverload(params?: CallParams): GreeterComposer<[...TReturns, GreeterReturns['test_method_overload(uint64)void'] | undefined]>; /** * Calls the test_arg_conversion(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 */ testArgConversion(params?: CallParams): GreeterComposer<[...TReturns, GreeterReturns['test_arg_conversion(uint64)void'] | undefined]>; /** * Calls the test_15plus_args(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 */ test_15plusArgs(params?: CallParams): GreeterComposer<[...TReturns, GreeterReturns['test_15plus_args(uint64)void'] | undefined]>; /** * Calls the test_void(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 */ testVoid(params?: CallParams): GreeterComposer<[...TReturns, GreeterReturns['test_void(uint64)void'] | undefined]>; /** * Calls the test_ref_types(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 */ testRefTypes(params?: CallParams): GreeterComposer<[...TReturns, GreeterReturns['test_ref_types(uint64,uint64)void'] | undefined]>; /** * Calls the test_account_to_address(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 */ testAccountToAddress(params?: CallParams): GreeterComposer<[...TReturns, GreeterReturns['test_account_to_address(uint64)void'] | undefined]>; /** * Calls the test_native_string(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 */ testNativeString(params?: CallParams): GreeterComposer<[...TReturns, GreeterReturns['test_native_string(uint64)void'] | undefined]>; /** * Calls the test_native_bytes(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 */ testNativeBytes(params?: CallParams): GreeterComposer<[...TReturns, GreeterReturns['test_native_bytes(uint64)void'] | undefined]>; /** * Calls the test_native_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 */ testNativeUint64(params?: CallParams): GreeterComposer<[...TReturns, GreeterReturns['test_native_uint64(uint64)void'] | undefined]>; /** * Calls the test_native_biguint(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 */ testNativeBiguint(params?: CallParams): GreeterComposer<[...TReturns, GreeterReturns['test_native_biguint(uint64)void'] | undefined]>; /** * Calls the test_native_tuple(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 */ testNativeTuple(params?: CallParams): GreeterComposer<[...TReturns, GreeterReturns['test_native_tuple(uint64)void'] | undefined]>; /** * Calls the test_native_tuple_method_ref(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 */ testNativeTupleMethodRef(params?: CallParams): GreeterComposer<[...TReturns, GreeterReturns['test_native_tuple_method_ref(uint64)void'] | undefined]>; /** * Calls the test_nested_tuples(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 */ testNestedTuples(params?: CallParams): GreeterComposer<[...TReturns, GreeterReturns['test_nested_tuples(uint64)void'] | undefined]>; /** * Calls the test_no_args(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 */ testNoArgs(params?: CallParams): GreeterComposer<[...TReturns, GreeterReturns['test_no_args(uint64)void'] | undefined]>; /** * Calls the test_named_tuples(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 */ testNamedTuples(params?: CallParams): GreeterComposer<[...TReturns, GreeterReturns['test_named_tuples(uint64)void'] | undefined]>; /** * Calls the test_arc4_struct(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 */ testArc4Struct(params?: CallParams): GreeterComposer<[...TReturns, GreeterReturns['test_arc4_struct(uint64)void'] | undefined]>; /** * Calls the test_resource_encoding(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 */ testResourceEncoding(params?: CallParams): GreeterComposer<[...TReturns, GreeterReturns['test_resource_encoding(uint64,uint64)void'] | undefined]>; /** * Makes a clear_state call to an existing instance of the Greeter 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): GreeterComposer<[...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): GreeterComposer; /** * 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 GreeterComposerResults = Expand;