/** * This file was automatically generated by @algorandfoundation/algokit-client-generator. * DO NOT MODIFY IT BY HAND. * requires: @algorandfoundation/algokit-utils: ^7 */ import { type AlgorandClient } from '@algorandfoundation/algokit-utils/types/algorand-client'; import { ABIReturn } from '@algorandfoundation/algokit-utils/types/app'; import { Arc56Contract } from '@algorandfoundation/algokit-utils/types/app-arc56'; import { AppClient as _AppClient, AppClientMethodCallParams, AppClientParams, AppClientBareCallParams, CallOnComplete, ResolveAppClientByCreatorAndName, ResolveAppClientByNetwork, CloneAppClientParams } from '@algorandfoundation/algokit-utils/types/app-client'; import { TransactionComposer, AppCallMethodCall, RawSimulateOptions, SkipSignaturesSimulateOptions } from '@algorandfoundation/algokit-utils/types/composer'; import { SendParams, SendAtomicTransactionComposerResults } from '@algorandfoundation/algokit-utils/types/transaction'; import { Address, modelsv2, OnApplicationComplete, Transaction, TransactionSigner } from 'algosdk'; export declare const APP_SPEC: Arc56Contract; /** * A state record containing binary data */ export interface BinaryState { /** * Gets the state value as a Uint8Array */ asByteArray(): Uint8Array | undefined; /** * Gets the state value as a string */ asString(): string | undefined; } /** * Expands types for IntelliSense so they are more human readable * See https://stackoverflow.com/a/69288824 */ export type Expand = T extends (...args: infer A) => infer R ? (...args: Expand) => Expand : T extends infer O ? { [K in keyof O]: O[K]; } : never; /** * The argument types for the CheckApp contract */ export type CheckAppArgs = { /** * The object representation of the arguments for each method */ obj: { 'delete_application()void': Record; 'check_uint64(uint64,byte[])void': { value: bigint | number; expected: Uint8Array; }; 'check_dynamic_bytes(byte[],byte[])void': { value: Uint8Array; expected: Uint8Array; }; 'check_string(string,byte[])void': { value: string; expected: Uint8Array; }; 'check_biguint(uint512,byte[])void': { value: bigint | number; expected: Uint8Array; }; 'check_bool(bool,byte[])void': { value: boolean; expected: Uint8Array; }; 'check_dyn_array_uin64(uint64[],byte[])void': { value: bigint[] | number[]; expected: Uint8Array; }; 'check_static_array_uin64_3(uint64[3],byte[])void': { value: [bigint | number, bigint | number, bigint | number]; expected: Uint8Array; }; 'check_dyn_array_struct((uint64,address)[],byte[])void': { value: [bigint | number, string][]; expected: Uint8Array; }; 'check_static_array_struct((uint64,address)[3],byte[])void': { value: [[bigint | number, string], [bigint | number, string], [bigint | number, string]]; expected: Uint8Array; }; 'check_dyn_array_dyn_struct((uint64,address,byte[])[],byte[])void': { value: [bigint | number, string, Uint8Array][]; expected: Uint8Array; }; 'check_static_array_dyn_struct((uint64,address,byte[])[3],byte[])void': { value: [[bigint | number, string, Uint8Array], [bigint | number, string, Uint8Array], [bigint | number, string, Uint8Array]]; expected: Uint8Array; }; 'check_static_bytes(byte[32])void': { bytes32: Uint8Array; }; }; /** * The tuple representation of the arguments for each method */ tuple: { 'delete_application()void': []; 'check_uint64(uint64,byte[])void': [value: bigint | number, expected: Uint8Array]; 'check_dynamic_bytes(byte[],byte[])void': [value: Uint8Array, expected: Uint8Array]; 'check_string(string,byte[])void': [value: string, expected: Uint8Array]; 'check_biguint(uint512,byte[])void': [value: bigint | number, expected: Uint8Array]; 'check_bool(bool,byte[])void': [value: boolean, expected: Uint8Array]; 'check_dyn_array_uin64(uint64[],byte[])void': [value: bigint[] | number[], expected: Uint8Array]; 'check_static_array_uin64_3(uint64[3],byte[])void': [value: [bigint | number, bigint | number, bigint | number], expected: Uint8Array]; 'check_dyn_array_struct((uint64,address)[],byte[])void': [value: [bigint | number, string][], expected: Uint8Array]; 'check_static_array_struct((uint64,address)[3],byte[])void': [value: [[bigint | number, string], [bigint | number, string], [bigint | number, string]], expected: Uint8Array]; 'check_dyn_array_dyn_struct((uint64,address,byte[])[],byte[])void': [value: [bigint | number, string, Uint8Array][], expected: Uint8Array]; 'check_static_array_dyn_struct((uint64,address,byte[])[3],byte[])void': [value: [[bigint | number, string, Uint8Array], [bigint | number, string, Uint8Array], [bigint | number, string, Uint8Array]], expected: Uint8Array]; 'check_static_bytes(byte[32])void': [bytes32: Uint8Array]; }; }; /** * The return type for each method */ export type CheckAppReturns = { 'delete_application()void': void; 'check_uint64(uint64,byte[])void': void; 'check_dynamic_bytes(byte[],byte[])void': void; 'check_string(string,byte[])void': void; 'check_biguint(uint512,byte[])void': void; 'check_bool(bool,byte[])void': void; 'check_dyn_array_uin64(uint64[],byte[])void': void; 'check_static_array_uin64_3(uint64[3],byte[])void': void; 'check_dyn_array_struct((uint64,address)[],byte[])void': void; 'check_static_array_struct((uint64,address)[3],byte[])void': void; 'check_dyn_array_dyn_struct((uint64,address,byte[])[],byte[])void': void; 'check_static_array_dyn_struct((uint64,address,byte[])[3],byte[])void': void; 'check_static_bytes(byte[32])void': void; }; /** * Defines the types of available calls and state of the CheckApp smart contract. */ export type CheckAppTypes = { /** * Maps method signatures / names to their argument and return types. */ methods: Record<'delete_application()void' | 'delete_application', { argsObj: CheckAppArgs['obj']['delete_application()void']; argsTuple: CheckAppArgs['tuple']['delete_application()void']; returns: CheckAppReturns['delete_application()void']; }> & Record<'check_uint64(uint64,byte[])void' | 'check_uint64', { argsObj: CheckAppArgs['obj']['check_uint64(uint64,byte[])void']; argsTuple: CheckAppArgs['tuple']['check_uint64(uint64,byte[])void']; returns: CheckAppReturns['check_uint64(uint64,byte[])void']; }> & Record<'check_dynamic_bytes(byte[],byte[])void' | 'check_dynamic_bytes', { argsObj: CheckAppArgs['obj']['check_dynamic_bytes(byte[],byte[])void']; argsTuple: CheckAppArgs['tuple']['check_dynamic_bytes(byte[],byte[])void']; returns: CheckAppReturns['check_dynamic_bytes(byte[],byte[])void']; }> & Record<'check_string(string,byte[])void' | 'check_string', { argsObj: CheckAppArgs['obj']['check_string(string,byte[])void']; argsTuple: CheckAppArgs['tuple']['check_string(string,byte[])void']; returns: CheckAppReturns['check_string(string,byte[])void']; }> & Record<'check_biguint(uint512,byte[])void' | 'check_biguint', { argsObj: CheckAppArgs['obj']['check_biguint(uint512,byte[])void']; argsTuple: CheckAppArgs['tuple']['check_biguint(uint512,byte[])void']; returns: CheckAppReturns['check_biguint(uint512,byte[])void']; }> & Record<'check_bool(bool,byte[])void' | 'check_bool', { argsObj: CheckAppArgs['obj']['check_bool(bool,byte[])void']; argsTuple: CheckAppArgs['tuple']['check_bool(bool,byte[])void']; returns: CheckAppReturns['check_bool(bool,byte[])void']; }> & Record<'check_dyn_array_uin64(uint64[],byte[])void' | 'check_dyn_array_uin64', { argsObj: CheckAppArgs['obj']['check_dyn_array_uin64(uint64[],byte[])void']; argsTuple: CheckAppArgs['tuple']['check_dyn_array_uin64(uint64[],byte[])void']; returns: CheckAppReturns['check_dyn_array_uin64(uint64[],byte[])void']; }> & Record<'check_static_array_uin64_3(uint64[3],byte[])void' | 'check_static_array_uin64_3', { argsObj: CheckAppArgs['obj']['check_static_array_uin64_3(uint64[3],byte[])void']; argsTuple: CheckAppArgs['tuple']['check_static_array_uin64_3(uint64[3],byte[])void']; returns: CheckAppReturns['check_static_array_uin64_3(uint64[3],byte[])void']; }> & Record<'check_dyn_array_struct((uint64,address)[],byte[])void' | 'check_dyn_array_struct', { argsObj: CheckAppArgs['obj']['check_dyn_array_struct((uint64,address)[],byte[])void']; argsTuple: CheckAppArgs['tuple']['check_dyn_array_struct((uint64,address)[],byte[])void']; returns: CheckAppReturns['check_dyn_array_struct((uint64,address)[],byte[])void']; }> & Record<'check_static_array_struct((uint64,address)[3],byte[])void' | 'check_static_array_struct', { argsObj: CheckAppArgs['obj']['check_static_array_struct((uint64,address)[3],byte[])void']; argsTuple: CheckAppArgs['tuple']['check_static_array_struct((uint64,address)[3],byte[])void']; returns: CheckAppReturns['check_static_array_struct((uint64,address)[3],byte[])void']; }> & Record<'check_dyn_array_dyn_struct((uint64,address,byte[])[],byte[])void' | 'check_dyn_array_dyn_struct', { argsObj: CheckAppArgs['obj']['check_dyn_array_dyn_struct((uint64,address,byte[])[],byte[])void']; argsTuple: CheckAppArgs['tuple']['check_dyn_array_dyn_struct((uint64,address,byte[])[],byte[])void']; returns: CheckAppReturns['check_dyn_array_dyn_struct((uint64,address,byte[])[],byte[])void']; }> & Record<'check_static_array_dyn_struct((uint64,address,byte[])[3],byte[])void' | 'check_static_array_dyn_struct', { argsObj: CheckAppArgs['obj']['check_static_array_dyn_struct((uint64,address,byte[])[3],byte[])void']; argsTuple: CheckAppArgs['tuple']['check_static_array_dyn_struct((uint64,address,byte[])[3],byte[])void']; returns: CheckAppReturns['check_static_array_dyn_struct((uint64,address,byte[])[3],byte[])void']; }> & Record<'check_static_bytes(byte[32])void' | 'check_static_bytes', { argsObj: CheckAppArgs['obj']['check_static_bytes(byte[32])void']; argsTuple: CheckAppArgs['tuple']['check_static_bytes(byte[32])void']; returns: CheckAppReturns['check_static_bytes(byte[32])void']; }>; }; /** * Defines the possible abi call signatures. */ export type CheckAppSignatures = keyof CheckAppTypes['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 CheckApp smart contract to the method's arguments in either tuple or struct form */ export type MethodArgs = CheckAppTypes['methods'][TSignature]['argsObj' | 'argsTuple']; /** * Maps a method signature from the CheckApp smart contract to the method's return type */ export type MethodReturn = CheckAppTypes['methods'][TSignature]['returns']; /** * Exposes methods for constructing `AppClient` params objects for ABI calls to the CheckApp smart contract */ export declare abstract class CheckAppParamsFactory { /** * Constructs a no op call for the check_uint64(uint64,byte[])void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static checkUint64(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the check_dynamic_bytes(byte[],byte[])void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static checkDynamicBytes(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the check_string(string,byte[])void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static checkString(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the check_biguint(uint512,byte[])void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static checkBiguint(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the check_bool(bool,byte[])void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static checkBool(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the check_dyn_array_uin64(uint64[],byte[])void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static checkDynArrayUin64(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the check_static_array_uin64_3(uint64[3],byte[])void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static checkStaticArrayUin64_3(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the check_dyn_array_struct((uint64,address)[],byte[])void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static checkDynArrayStruct(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the check_static_array_struct((uint64,address)[3],byte[])void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static checkStaticArrayStruct(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the check_dyn_array_dyn_struct((uint64,address,byte[])[],byte[])void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static checkDynArrayDynStruct(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the check_static_array_dyn_struct((uint64,address,byte[])[3],byte[])void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static checkStaticArrayDynStruct(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the check_static_bytes(byte[32])void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static checkStaticBytes(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; } /** * A client to make calls to the CheckApp smart contract */ export declare class CheckAppClient { /** * The underlying `AppClient` for when you want to have more flexibility */ readonly appClient: _AppClient; /** * Creates a new instance of `CheckAppClient` * * @param appClient An `AppClient` instance which has been created with the CheckApp app spec */ constructor(appClient: _AppClient); /** * Creates a new instance of `CheckAppClient` * * @param params The parameters to initialise the app client with */ constructor(params: Omit); /** * Returns a new `CheckAppClient` 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 `CheckAppClient` 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 CheckApp 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 CheckApp smart contract using the `check_uint64(uint64,byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ checkUint64: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the CheckApp smart contract using the `check_dynamic_bytes(byte[],byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ checkDynamicBytes: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the CheckApp smart contract using the `check_string(string,byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ checkString: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the CheckApp smart contract using the `check_biguint(uint512,byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ checkBiguint: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the CheckApp smart contract using the `check_bool(bool,byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ checkBool: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the CheckApp smart contract using the `check_dyn_array_uin64(uint64[],byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ checkDynArrayUin64: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the CheckApp smart contract using the `check_static_array_uin64_3(uint64[3],byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ checkStaticArrayUin64_3: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the CheckApp smart contract using the `check_dyn_array_struct((uint64,address)[],byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ checkDynArrayStruct: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the CheckApp smart contract using the `check_static_array_struct((uint64,address)[3],byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ checkStaticArrayStruct: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the CheckApp smart contract using the `check_dyn_array_dyn_struct((uint64,address,byte[])[],byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ checkDynArrayDynStruct: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the CheckApp smart contract using the `check_static_array_dyn_struct((uint64,address,byte[])[3],byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ checkStaticArrayDynStruct: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the CheckApp smart contract using the `check_static_bytes(byte[32])void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ checkStaticBytes: (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 CheckApp smart contract. * * @param params The params for the bare (raw) call * @returns The clearState result */ clearState: (params?: Expand) => Promise; /** * Makes a call to the CheckApp smart contract using the `check_uint64(uint64,byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ checkUint64: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the CheckApp smart contract using the `check_dynamic_bytes(byte[],byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ checkDynamicBytes: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the CheckApp smart contract using the `check_string(string,byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ checkString: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the CheckApp smart contract using the `check_biguint(uint512,byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ checkBiguint: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the CheckApp smart contract using the `check_bool(bool,byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ checkBool: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the CheckApp smart contract using the `check_dyn_array_uin64(uint64[],byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ checkDynArrayUin64: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the CheckApp smart contract using the `check_static_array_uin64_3(uint64[3],byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ checkStaticArrayUin64_3: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the CheckApp smart contract using the `check_dyn_array_struct((uint64,address)[],byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ checkDynArrayStruct: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the CheckApp smart contract using the `check_static_array_struct((uint64,address)[3],byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ checkStaticArrayStruct: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the CheckApp smart contract using the `check_dyn_array_dyn_struct((uint64,address,byte[])[],byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ checkDynArrayDynStruct: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the CheckApp smart contract using the `check_static_array_dyn_struct((uint64,address,byte[])[3],byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ checkStaticArrayDynStruct: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the CheckApp smart contract using the `check_static_bytes(byte[32])void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ checkStaticBytes: (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 CheckApp 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 CheckApp smart contract using the `check_uint64(uint64,byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ checkUint64: (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 | CheckAppReturns['check_uint64(uint64,byte[])void']); }>; /** * Makes a call to the CheckApp smart contract using the `check_dynamic_bytes(byte[],byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ checkDynamicBytes: (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 | CheckAppReturns['check_dynamic_bytes(byte[],byte[])void']); }>; /** * Makes a call to the CheckApp smart contract using the `check_string(string,byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ checkString: (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 | CheckAppReturns['check_string(string,byte[])void']); }>; /** * Makes a call to the CheckApp smart contract using the `check_biguint(uint512,byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ checkBiguint: (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 | CheckAppReturns['check_biguint(uint512,byte[])void']); }>; /** * Makes a call to the CheckApp smart contract using the `check_bool(bool,byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ checkBool: (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 | CheckAppReturns['check_bool(bool,byte[])void']); }>; /** * Makes a call to the CheckApp smart contract using the `check_dyn_array_uin64(uint64[],byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ checkDynArrayUin64: (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 | CheckAppReturns['check_dyn_array_uin64(uint64[],byte[])void']); }>; /** * Makes a call to the CheckApp smart contract using the `check_static_array_uin64_3(uint64[3],byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ checkStaticArrayUin64_3: (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 | CheckAppReturns['check_static_array_uin64_3(uint64[3],byte[])void']); }>; /** * Makes a call to the CheckApp smart contract using the `check_dyn_array_struct((uint64,address)[],byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ checkDynArrayStruct: (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 | CheckAppReturns['check_dyn_array_struct((uint64,address)[],byte[])void']); }>; /** * Makes a call to the CheckApp smart contract using the `check_static_array_struct((uint64,address)[3],byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ checkStaticArrayStruct: (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 | CheckAppReturns['check_static_array_struct((uint64,address)[3],byte[])void']); }>; /** * Makes a call to the CheckApp smart contract using the `check_dyn_array_dyn_struct((uint64,address,byte[])[],byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ checkDynArrayDynStruct: (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 | CheckAppReturns['check_dyn_array_dyn_struct((uint64,address,byte[])[],byte[])void']); }>; /** * Makes a call to the CheckApp smart contract using the `check_static_array_dyn_struct((uint64,address,byte[])[3],byte[])void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ checkStaticArrayDynStruct: (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 | CheckAppReturns['check_static_array_dyn_struct((uint64,address,byte[])[3],byte[])void']); }>; /** * Makes a call to the CheckApp smart contract using the `check_static_bytes(byte[32])void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ checkStaticBytes: (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 | CheckAppReturns['check_static_bytes(byte[32])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): CheckAppClient; /** * Methods to access state for the current CheckApp app */ state: {}; newGroup(): CheckAppComposer; } export type CheckAppComposer = { /** * Calls the check_uint64(uint64,byte[])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 */ checkUint64(params?: CallParams): CheckAppComposer<[...TReturns, CheckAppReturns['check_uint64(uint64,byte[])void'] | undefined]>; /** * Calls the check_dynamic_bytes(byte[],byte[])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 */ checkDynamicBytes(params?: CallParams): CheckAppComposer<[...TReturns, CheckAppReturns['check_dynamic_bytes(byte[],byte[])void'] | undefined]>; /** * Calls the check_string(string,byte[])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 */ checkString(params?: CallParams): CheckAppComposer<[...TReturns, CheckAppReturns['check_string(string,byte[])void'] | undefined]>; /** * Calls the check_biguint(uint512,byte[])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 */ checkBiguint(params?: CallParams): CheckAppComposer<[...TReturns, CheckAppReturns['check_biguint(uint512,byte[])void'] | undefined]>; /** * Calls the check_bool(bool,byte[])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 */ checkBool(params?: CallParams): CheckAppComposer<[...TReturns, CheckAppReturns['check_bool(bool,byte[])void'] | undefined]>; /** * Calls the check_dyn_array_uin64(uint64[],byte[])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 */ checkDynArrayUin64(params?: CallParams): CheckAppComposer<[...TReturns, CheckAppReturns['check_dyn_array_uin64(uint64[],byte[])void'] | undefined]>; /** * Calls the check_static_array_uin64_3(uint64[3],byte[])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 */ checkStaticArrayUin64_3(params?: CallParams): CheckAppComposer<[...TReturns, CheckAppReturns['check_static_array_uin64_3(uint64[3],byte[])void'] | undefined]>; /** * Calls the check_dyn_array_struct((uint64,address)[],byte[])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 */ checkDynArrayStruct(params?: CallParams): CheckAppComposer<[...TReturns, CheckAppReturns['check_dyn_array_struct((uint64,address)[],byte[])void'] | undefined]>; /** * Calls the check_static_array_struct((uint64,address)[3],byte[])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 */ checkStaticArrayStruct(params?: CallParams): CheckAppComposer<[...TReturns, CheckAppReturns['check_static_array_struct((uint64,address)[3],byte[])void'] | undefined]>; /** * Calls the check_dyn_array_dyn_struct((uint64,address,byte[])[],byte[])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 */ checkDynArrayDynStruct(params?: CallParams): CheckAppComposer<[...TReturns, CheckAppReturns['check_dyn_array_dyn_struct((uint64,address,byte[])[],byte[])void'] | undefined]>; /** * Calls the check_static_array_dyn_struct((uint64,address,byte[])[3],byte[])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 */ checkStaticArrayDynStruct(params?: CallParams): CheckAppComposer<[...TReturns, CheckAppReturns['check_static_array_dyn_struct((uint64,address,byte[])[3],byte[])void'] | undefined]>; /** * Calls the check_static_bytes(byte[32])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 */ checkStaticBytes(params?: CallParams): CheckAppComposer<[...TReturns, CheckAppReturns['check_static_bytes(byte[32])void'] | undefined]>; /** * Makes a clear_state call to an existing instance of the CheckApp 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): CheckAppComposer<[...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): CheckAppComposer; /** * 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 CheckAppComposerResults = Expand;