/** * 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; export type Child = { a: bigint; b: Uint8Array; c: string; }; /** * Converts the ABI tuple representation of a Child to the struct representation */ export declare function ChildFromTuple(abiTuple: [bigint, Uint8Array, string]): Child; export type Parent = { foo: bigint; fooArc: bigint; child: Child; }; /** * Converts the ABI tuple representation of a Parent to the struct representation */ export declare function ParentFromTuple(abiTuple: [bigint, bigint, [bigint, Uint8Array, string]]): Parent; export type ParentWithList = { parent: Parent; children: [bigint, Uint8Array, string][]; }; /** * Converts the ABI tuple representation of a ParentWithList to the struct representation */ export declare function ParentWithListFromTuple(abiTuple: [[bigint, bigint, [bigint, Uint8Array, string]], [bigint, Uint8Array, string][]]): ParentWithList; export type SimpleTup = { a: bigint; b: bigint; }; /** * Converts the ABI tuple representation of a SimpleTup to the struct representation */ export declare function SimpleTupFromTuple(abiTuple: [bigint, bigint]): SimpleTup; export type TupleWithMutable = { arr: bigint[]; child: Child; }; /** * Converts the ABI tuple representation of a TupleWithMutable to the struct representation */ export declare function TupleWithMutableFromTuple(abiTuple: [bigint[], [bigint, Uint8Array, string]]): TupleWithMutable; /** * The argument types for the NestedTuples contract */ export type NestedTuplesArgs = { /** * The object representation of the arguments for each method */ obj: { 'store_tuple(((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[]))void': { pwl: ParentWithList; }; 'load_tuple()((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[])': Record; 'store_tuple_in_box((uint64,uint64))void': { key: SimpleTup; }; 'is_tuple_in_box((uint64,uint64))bool': { key: SimpleTup; }; 'load_tuple_from_box((uint64,uint64))(uint64,uint64)': { key: SimpleTup; }; 'maybe_load_tuple_from_box((uint64,uint64))((uint64,uint64),bool)': { key: SimpleTup; }; 'load_tuple_from_box_or_default((uint64,uint64))(uint64,uint64)': { key: SimpleTup; }; 'load_tuple_from_local_state_or_default(string)(uint64,uint64)': { key: string; }; 'mutate_local_tuple()(uint64[],(uint64,byte[],string))': Record; 'mutate_tuple_in_storage_currently_supported_method()void': Record; 'run_tests()bool': Record; 'nested_tuple_params((string,(byte[],(uint64))))(byte[],(string,uint64))': { args: [string, [Uint8Array, [bigint | number]]]; }; 'named_tuple((uint64,byte[],string))(uint64,byte[],string)': { args: Child; }; 'nested_named_tuple_params((uint64,uint64,(uint64,byte[],string)))(uint64,uint64,(uint64,byte[],string))': { args: Parent; }; }; /** * The tuple representation of the arguments for each method */ tuple: { 'store_tuple(((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[]))void': [pwl: ParentWithList]; 'load_tuple()((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[])': []; 'store_tuple_in_box((uint64,uint64))void': [key: SimpleTup]; 'is_tuple_in_box((uint64,uint64))bool': [key: SimpleTup]; 'load_tuple_from_box((uint64,uint64))(uint64,uint64)': [key: SimpleTup]; 'maybe_load_tuple_from_box((uint64,uint64))((uint64,uint64),bool)': [key: SimpleTup]; 'load_tuple_from_box_or_default((uint64,uint64))(uint64,uint64)': [key: SimpleTup]; 'load_tuple_from_local_state_or_default(string)(uint64,uint64)': [key: string]; 'mutate_local_tuple()(uint64[],(uint64,byte[],string))': []; 'mutate_tuple_in_storage_currently_supported_method()void': []; 'run_tests()bool': []; 'nested_tuple_params((string,(byte[],(uint64))))(byte[],(string,uint64))': [args: [string, [Uint8Array, [bigint | number]]]]; 'named_tuple((uint64,byte[],string))(uint64,byte[],string)': [args: Child]; 'nested_named_tuple_params((uint64,uint64,(uint64,byte[],string)))(uint64,uint64,(uint64,byte[],string))': [args: Parent]; }; }; /** * The return type for each method */ export type NestedTuplesReturns = { 'store_tuple(((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[]))void': void; 'load_tuple()((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[])': ParentWithList; 'store_tuple_in_box((uint64,uint64))void': void; 'is_tuple_in_box((uint64,uint64))bool': boolean; 'load_tuple_from_box((uint64,uint64))(uint64,uint64)': SimpleTup; 'maybe_load_tuple_from_box((uint64,uint64))((uint64,uint64),bool)': [[bigint, bigint], boolean]; 'load_tuple_from_box_or_default((uint64,uint64))(uint64,uint64)': SimpleTup; 'load_tuple_from_local_state_or_default(string)(uint64,uint64)': SimpleTup; 'mutate_local_tuple()(uint64[],(uint64,byte[],string))': TupleWithMutable; 'mutate_tuple_in_storage_currently_supported_method()void': void; 'run_tests()bool': boolean; 'nested_tuple_params((string,(byte[],(uint64))))(byte[],(string,uint64))': [Uint8Array, [string, bigint]]; 'named_tuple((uint64,byte[],string))(uint64,byte[],string)': Child; 'nested_named_tuple_params((uint64,uint64,(uint64,byte[],string)))(uint64,uint64,(uint64,byte[],string))': Parent; }; /** * Defines the types of available calls and state of the NestedTuples smart contract. */ export type NestedTuplesTypes = { /** * Maps method signatures / names to their argument and return types. */ methods: Record<'store_tuple(((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[]))void' | 'store_tuple', { argsObj: NestedTuplesArgs['obj']['store_tuple(((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[]))void']; argsTuple: NestedTuplesArgs['tuple']['store_tuple(((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[]))void']; returns: NestedTuplesReturns['store_tuple(((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[]))void']; }> & Record<'load_tuple()((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[])' | 'load_tuple', { argsObj: NestedTuplesArgs['obj']['load_tuple()((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[])']; argsTuple: NestedTuplesArgs['tuple']['load_tuple()((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[])']; returns: NestedTuplesReturns['load_tuple()((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[])']; }> & Record<'store_tuple_in_box((uint64,uint64))void' | 'store_tuple_in_box', { argsObj: NestedTuplesArgs['obj']['store_tuple_in_box((uint64,uint64))void']; argsTuple: NestedTuplesArgs['tuple']['store_tuple_in_box((uint64,uint64))void']; returns: NestedTuplesReturns['store_tuple_in_box((uint64,uint64))void']; }> & Record<'is_tuple_in_box((uint64,uint64))bool' | 'is_tuple_in_box', { argsObj: NestedTuplesArgs['obj']['is_tuple_in_box((uint64,uint64))bool']; argsTuple: NestedTuplesArgs['tuple']['is_tuple_in_box((uint64,uint64))bool']; returns: NestedTuplesReturns['is_tuple_in_box((uint64,uint64))bool']; }> & Record<'load_tuple_from_box((uint64,uint64))(uint64,uint64)' | 'load_tuple_from_box', { argsObj: NestedTuplesArgs['obj']['load_tuple_from_box((uint64,uint64))(uint64,uint64)']; argsTuple: NestedTuplesArgs['tuple']['load_tuple_from_box((uint64,uint64))(uint64,uint64)']; returns: NestedTuplesReturns['load_tuple_from_box((uint64,uint64))(uint64,uint64)']; }> & Record<'maybe_load_tuple_from_box((uint64,uint64))((uint64,uint64),bool)' | 'maybe_load_tuple_from_box', { argsObj: NestedTuplesArgs['obj']['maybe_load_tuple_from_box((uint64,uint64))((uint64,uint64),bool)']; argsTuple: NestedTuplesArgs['tuple']['maybe_load_tuple_from_box((uint64,uint64))((uint64,uint64),bool)']; returns: NestedTuplesReturns['maybe_load_tuple_from_box((uint64,uint64))((uint64,uint64),bool)']; }> & Record<'load_tuple_from_box_or_default((uint64,uint64))(uint64,uint64)' | 'load_tuple_from_box_or_default', { argsObj: NestedTuplesArgs['obj']['load_tuple_from_box_or_default((uint64,uint64))(uint64,uint64)']; argsTuple: NestedTuplesArgs['tuple']['load_tuple_from_box_or_default((uint64,uint64))(uint64,uint64)']; returns: NestedTuplesReturns['load_tuple_from_box_or_default((uint64,uint64))(uint64,uint64)']; }> & Record<'load_tuple_from_local_state_or_default(string)(uint64,uint64)' | 'load_tuple_from_local_state_or_default', { argsObj: NestedTuplesArgs['obj']['load_tuple_from_local_state_or_default(string)(uint64,uint64)']; argsTuple: NestedTuplesArgs['tuple']['load_tuple_from_local_state_or_default(string)(uint64,uint64)']; returns: NestedTuplesReturns['load_tuple_from_local_state_or_default(string)(uint64,uint64)']; }> & Record<'mutate_local_tuple()(uint64[],(uint64,byte[],string))' | 'mutate_local_tuple', { argsObj: NestedTuplesArgs['obj']['mutate_local_tuple()(uint64[],(uint64,byte[],string))']; argsTuple: NestedTuplesArgs['tuple']['mutate_local_tuple()(uint64[],(uint64,byte[],string))']; returns: NestedTuplesReturns['mutate_local_tuple()(uint64[],(uint64,byte[],string))']; }> & Record<'mutate_tuple_in_storage_currently_supported_method()void' | 'mutate_tuple_in_storage_currently_supported_method', { argsObj: NestedTuplesArgs['obj']['mutate_tuple_in_storage_currently_supported_method()void']; argsTuple: NestedTuplesArgs['tuple']['mutate_tuple_in_storage_currently_supported_method()void']; returns: NestedTuplesReturns['mutate_tuple_in_storage_currently_supported_method()void']; }> & Record<'run_tests()bool' | 'run_tests', { argsObj: NestedTuplesArgs['obj']['run_tests()bool']; argsTuple: NestedTuplesArgs['tuple']['run_tests()bool']; returns: NestedTuplesReturns['run_tests()bool']; }> & Record<'nested_tuple_params((string,(byte[],(uint64))))(byte[],(string,uint64))' | 'nested_tuple_params', { argsObj: NestedTuplesArgs['obj']['nested_tuple_params((string,(byte[],(uint64))))(byte[],(string,uint64))']; argsTuple: NestedTuplesArgs['tuple']['nested_tuple_params((string,(byte[],(uint64))))(byte[],(string,uint64))']; returns: NestedTuplesReturns['nested_tuple_params((string,(byte[],(uint64))))(byte[],(string,uint64))']; }> & Record<'named_tuple((uint64,byte[],string))(uint64,byte[],string)' | 'named_tuple', { argsObj: NestedTuplesArgs['obj']['named_tuple((uint64,byte[],string))(uint64,byte[],string)']; argsTuple: NestedTuplesArgs['tuple']['named_tuple((uint64,byte[],string))(uint64,byte[],string)']; returns: NestedTuplesReturns['named_tuple((uint64,byte[],string))(uint64,byte[],string)']; }> & Record<'nested_named_tuple_params((uint64,uint64,(uint64,byte[],string)))(uint64,uint64,(uint64,byte[],string))' | 'nested_named_tuple_params', { argsObj: NestedTuplesArgs['obj']['nested_named_tuple_params((uint64,uint64,(uint64,byte[],string)))(uint64,uint64,(uint64,byte[],string))']; argsTuple: NestedTuplesArgs['tuple']['nested_named_tuple_params((uint64,uint64,(uint64,byte[],string)))(uint64,uint64,(uint64,byte[],string))']; returns: NestedTuplesReturns['nested_named_tuple_params((uint64,uint64,(uint64,byte[],string)))(uint64,uint64,(uint64,byte[],string))']; }>; /** * Defines the shape of the state of the application. */ state: { global: { keys: { buildNestedCallCount: bigint; twm: TupleWithMutable; pwl: ParentWithList; }; maps: {}; }; box: { keys: {}; maps: { box: Map; }; }; }; }; /** * Defines the possible abi call signatures. */ export type NestedTuplesSignatures = keyof NestedTuplesTypes['methods']; /** * Defines the possible abi call signatures for methods that return a non-void value. */ export type NestedTuplesNonVoidMethodSignatures = keyof NestedTuplesTypes['methods'] extends infer T ? T extends keyof NestedTuplesTypes['methods'] ? MethodReturn extends void ? never : T : never : never; /** * Defines an object containing all relevant parameters for a single call to the contract. */ export type CallParams = Expand & { /** The args for the ABI method call, either as an ordered array or an object */ args: Expand; }>; /** * Maps a method signature from the NestedTuples smart contract to the method's arguments in either tuple or struct form */ export type MethodArgs = NestedTuplesTypes['methods'][TSignature]['argsObj' | 'argsTuple']; /** * Maps a method signature from the NestedTuples smart contract to the method's return type */ export type MethodReturn = NestedTuplesTypes['methods'][TSignature]['returns']; /** * Defines the shape of the keyed global state of the application. */ export type GlobalKeysState = NestedTuplesTypes['state']['global']['keys']; /** * Defines the shape of the keyed box state of the application. */ export type BoxKeysState = NestedTuplesTypes['state']['box']['keys']; /** * Exposes methods for constructing `AppClient` params objects for ABI calls to the NestedTuples smart contract */ export declare abstract class NestedTuplesParamsFactory { /** * Constructs a no op call for the store_tuple(((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[]))void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static storeTuple(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the load_tuple()((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[]) ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static loadTuple(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the store_tuple_in_box((uint64,uint64))void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static storeTupleInBox(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the is_tuple_in_box((uint64,uint64))bool ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static isTupleInBox(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the load_tuple_from_box((uint64,uint64))(uint64,uint64) ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static loadTupleFromBox(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the maybe_load_tuple_from_box((uint64,uint64))((uint64,uint64),bool) ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static maybeLoadTupleFromBox(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the load_tuple_from_box_or_default((uint64,uint64))(uint64,uint64) ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static loadTupleFromBoxOrDefault(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the load_tuple_from_local_state_or_default(string)(uint64,uint64) ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static loadTupleFromLocalStateOrDefault(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the mutate_local_tuple()(uint64[],(uint64,byte[],string)) ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static mutateLocalTuple(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the mutate_tuple_in_storage_currently_supported_method()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static mutateTupleInStorageCurrentlySupportedMethod(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the run_tests()bool ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static runTests(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the nested_tuple_params((string,(byte[],(uint64))))(byte[],(string,uint64)) ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static nestedTupleParams(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the named_tuple((uint64,byte[],string))(uint64,byte[],string) ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static namedTuple(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the nested_named_tuple_params((uint64,uint64,(uint64,byte[],string)))(uint64,uint64,(uint64,byte[],string)) ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static nestedNamedTupleParams(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; } /** * A client to make calls to the NestedTuples smart contract */ export declare class NestedTuplesClient { /** * The underlying `AppClient` for when you want to have more flexibility */ readonly appClient: _AppClient; /** * Creates a new instance of `NestedTuplesClient` * * @param appClient An `AppClient` instance which has been created with the NestedTuples app spec */ constructor(appClient: _AppClient); /** * Creates a new instance of `NestedTuplesClient` * * @param params The parameters to initialise the app client with */ constructor(params: Omit); /** * Checks for decode errors on the given return value and maps the return value to the return type for the given method * @returns The typed return value or undefined if there was no value */ decodeReturnValue(method: TSignature, returnValue: ABIReturn | undefined): MethodReturn; /** * Returns a new `NestedTuplesClient` 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 `NestedTuplesClient` 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 NestedTuples 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 NestedTuples smart contract using the `store_tuple(((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[]))void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ storeTuple: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NestedTuples smart contract using the `load_tuple()((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[])` ABI method. * * @param params The params for the smart contract call * @returns The call params */ loadTuple: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NestedTuples smart contract using the `store_tuple_in_box((uint64,uint64))void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ storeTupleInBox: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NestedTuples smart contract using the `is_tuple_in_box((uint64,uint64))bool` ABI method. * * @param params The params for the smart contract call * @returns The call params */ isTupleInBox: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NestedTuples smart contract using the `load_tuple_from_box((uint64,uint64))(uint64,uint64)` ABI method. * * @param params The params for the smart contract call * @returns The call params */ loadTupleFromBox: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NestedTuples smart contract using the `maybe_load_tuple_from_box((uint64,uint64))((uint64,uint64),bool)` ABI method. * * @param params The params for the smart contract call * @returns The call params */ maybeLoadTupleFromBox: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NestedTuples smart contract using the `load_tuple_from_box_or_default((uint64,uint64))(uint64,uint64)` ABI method. * * @param params The params for the smart contract call * @returns The call params */ loadTupleFromBoxOrDefault: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NestedTuples smart contract using the `load_tuple_from_local_state_or_default(string)(uint64,uint64)` ABI method. * * @param params The params for the smart contract call * @returns The call params */ loadTupleFromLocalStateOrDefault: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NestedTuples smart contract using the `mutate_local_tuple()(uint64[],(uint64,byte[],string))` ABI method. * * @param params The params for the smart contract call * @returns The call params */ mutateLocalTuple: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NestedTuples smart contract using the `mutate_tuple_in_storage_currently_supported_method()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ mutateTupleInStorageCurrentlySupportedMethod: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NestedTuples smart contract using the `run_tests()bool` ABI method. * * @param params The params for the smart contract call * @returns The call params */ runTests: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NestedTuples smart contract using the `nested_tuple_params((string,(byte[],(uint64))))(byte[],(string,uint64))` ABI method. * * @param params The params for the smart contract call * @returns The call params */ nestedTupleParams: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NestedTuples smart contract using the `named_tuple((uint64,byte[],string))(uint64,byte[],string)` ABI method. * * @param params The params for the smart contract call * @returns The call params */ namedTuple: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NestedTuples smart contract using the `nested_named_tuple_params((uint64,uint64,(uint64,byte[],string)))(uint64,uint64,(uint64,byte[],string))` ABI method. * * @param params The params for the smart contract call * @returns The call params */ nestedNamedTupleParams: (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 NestedTuples smart contract. * * @param params The params for the bare (raw) call * @returns The clearState result */ clearState: (params?: Expand) => Promise; /** * Makes a call to the NestedTuples smart contract using the `store_tuple(((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[]))void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ storeTuple: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NestedTuples smart contract using the `load_tuple()((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[])` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ loadTuple: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NestedTuples smart contract using the `store_tuple_in_box((uint64,uint64))void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ storeTupleInBox: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NestedTuples smart contract using the `is_tuple_in_box((uint64,uint64))bool` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ isTupleInBox: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NestedTuples smart contract using the `load_tuple_from_box((uint64,uint64))(uint64,uint64)` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ loadTupleFromBox: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NestedTuples smart contract using the `maybe_load_tuple_from_box((uint64,uint64))((uint64,uint64),bool)` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ maybeLoadTupleFromBox: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NestedTuples smart contract using the `load_tuple_from_box_or_default((uint64,uint64))(uint64,uint64)` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ loadTupleFromBoxOrDefault: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NestedTuples smart contract using the `load_tuple_from_local_state_or_default(string)(uint64,uint64)` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ loadTupleFromLocalStateOrDefault: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NestedTuples smart contract using the `mutate_local_tuple()(uint64[],(uint64,byte[],string))` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ mutateLocalTuple: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NestedTuples smart contract using the `mutate_tuple_in_storage_currently_supported_method()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ mutateTupleInStorageCurrentlySupportedMethod: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NestedTuples smart contract using the `run_tests()bool` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ runTests: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NestedTuples smart contract using the `nested_tuple_params((string,(byte[],(uint64))))(byte[],(string,uint64))` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ nestedTupleParams: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NestedTuples smart contract using the `named_tuple((uint64,byte[],string))(uint64,byte[],string)` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ namedTuple: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NestedTuples smart contract using the `nested_named_tuple_params((uint64,uint64,(uint64,byte[],string)))(uint64,uint64,(uint64,byte[],string))` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ nestedNamedTupleParams: (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 NestedTuples 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 NestedTuples smart contract using the `store_tuple(((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[]))void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ storeTuple: (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 | NestedTuplesReturns['store_tuple(((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[]))void']); }>; /** * Makes a call to the NestedTuples smart contract using the `load_tuple()((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[])` ABI method. * * @param params The params for the smart contract call * @returns The call result */ loadTuple: (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 | NestedTuplesReturns['load_tuple()((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[])']); }>; /** * Makes a call to the NestedTuples smart contract using the `store_tuple_in_box((uint64,uint64))void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ storeTupleInBox: (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 | NestedTuplesReturns['store_tuple_in_box((uint64,uint64))void']); }>; /** * Makes a call to the NestedTuples smart contract using the `is_tuple_in_box((uint64,uint64))bool` ABI method. * * @param params The params for the smart contract call * @returns The call result */ isTupleInBox: (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 | NestedTuplesReturns['is_tuple_in_box((uint64,uint64))bool']); }>; /** * Makes a call to the NestedTuples smart contract using the `load_tuple_from_box((uint64,uint64))(uint64,uint64)` ABI method. * * @param params The params for the smart contract call * @returns The call result */ loadTupleFromBox: (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 | NestedTuplesReturns['load_tuple_from_box((uint64,uint64))(uint64,uint64)']); }>; /** * Makes a call to the NestedTuples smart contract using the `maybe_load_tuple_from_box((uint64,uint64))((uint64,uint64),bool)` ABI method. * * @param params The params for the smart contract call * @returns The call result */ maybeLoadTupleFromBox: (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 | NestedTuplesReturns['maybe_load_tuple_from_box((uint64,uint64))((uint64,uint64),bool)']); }>; /** * Makes a call to the NestedTuples smart contract using the `load_tuple_from_box_or_default((uint64,uint64))(uint64,uint64)` ABI method. * * @param params The params for the smart contract call * @returns The call result */ loadTupleFromBoxOrDefault: (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 | NestedTuplesReturns['load_tuple_from_box_or_default((uint64,uint64))(uint64,uint64)']); }>; /** * Makes a call to the NestedTuples smart contract using the `load_tuple_from_local_state_or_default(string)(uint64,uint64)` ABI method. * * @param params The params for the smart contract call * @returns The call result */ loadTupleFromLocalStateOrDefault: (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 | NestedTuplesReturns['load_tuple_from_local_state_or_default(string)(uint64,uint64)']); }>; /** * Makes a call to the NestedTuples smart contract using the `mutate_local_tuple()(uint64[],(uint64,byte[],string))` ABI method. * * @param params The params for the smart contract call * @returns The call result */ mutateLocalTuple: (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 | NestedTuplesReturns['mutate_local_tuple()(uint64[],(uint64,byte[],string))']); }>; /** * Makes a call to the NestedTuples smart contract using the `mutate_tuple_in_storage_currently_supported_method()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ mutateTupleInStorageCurrentlySupportedMethod: (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 | NestedTuplesReturns['mutate_tuple_in_storage_currently_supported_method()void']); }>; /** * Makes a call to the NestedTuples smart contract using the `run_tests()bool` ABI method. * * @param params The params for the smart contract call * @returns The call result */ runTests: (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 | NestedTuplesReturns['run_tests()bool']); }>; /** * Makes a call to the NestedTuples smart contract using the `nested_tuple_params((string,(byte[],(uint64))))(byte[],(string,uint64))` ABI method. * * @param params The params for the smart contract call * @returns The call result */ nestedTupleParams: (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 | NestedTuplesReturns['nested_tuple_params((string,(byte[],(uint64))))(byte[],(string,uint64))']); }>; /** * Makes a call to the NestedTuples smart contract using the `named_tuple((uint64,byte[],string))(uint64,byte[],string)` ABI method. * * @param params The params for the smart contract call * @returns The call result */ namedTuple: (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 | NestedTuplesReturns['named_tuple((uint64,byte[],string))(uint64,byte[],string)']); }>; /** * Makes a call to the NestedTuples smart contract using the `nested_named_tuple_params((uint64,uint64,(uint64,byte[],string)))(uint64,uint64,(uint64,byte[],string))` ABI method. * * @param params The params for the smart contract call * @returns The call result */ nestedNamedTupleParams: (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 | NestedTuplesReturns['nested_named_tuple_params((uint64,uint64,(uint64,byte[],string)))(uint64,uint64,(uint64,byte[],string))']); }>; }; /** * 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): NestedTuplesClient; /** * Methods to access state for the current NestedTuples app */ state: { /** * Methods to access global state for the current NestedTuples app */ global: { /** * Get all current keyed values from global state */ getAll: () => Promise>>; /** * Get the current value of the build_nested_call_count key in global state */ buildNestedCallCount: () => Promise; /** * Get the current value of the twm key in global state */ twm: () => Promise; /** * Get the current value of the pwl key in global state */ pwl: () => Promise; }; /** * Methods to access box state for the current NestedTuples app */ box: { /** * Get all current keyed values from box state */ getAll: () => Promise>>; /** * Get values from the box map in box state */ box: { /** * Get all current values of the box map in box state */ getMap: () => Promise>; /** * Get a current value of the box map by key from box state */ value: (key: SimpleTup) => Promise; }; }; }; newGroup(): NestedTuplesComposer; } export type NestedTuplesComposer = { /** * Calls the store_tuple(((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[]))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 */ storeTuple(params?: CallParams): NestedTuplesComposer<[...TReturns, NestedTuplesReturns['store_tuple(((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[]))void'] | undefined]>; /** * Calls the load_tuple()((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[]) 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 */ loadTuple(params?: CallParams): NestedTuplesComposer<[...TReturns, NestedTuplesReturns['load_tuple()((uint64,uint64,(uint64,byte[],string)),(uint64,byte[],string)[])'] | undefined]>; /** * Calls the store_tuple_in_box((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 */ storeTupleInBox(params?: CallParams): NestedTuplesComposer<[...TReturns, NestedTuplesReturns['store_tuple_in_box((uint64,uint64))void'] | undefined]>; /** * Calls the is_tuple_in_box((uint64,uint64))bool ABI method. * * @param args The arguments for the contract call * @param params Any additional parameters for the call * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions */ isTupleInBox(params?: CallParams): NestedTuplesComposer<[...TReturns, NestedTuplesReturns['is_tuple_in_box((uint64,uint64))bool'] | undefined]>; /** * Calls the load_tuple_from_box((uint64,uint64))(uint64,uint64) ABI method. * * @param args The arguments for the contract call * @param params Any additional parameters for the call * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions */ loadTupleFromBox(params?: CallParams): NestedTuplesComposer<[...TReturns, NestedTuplesReturns['load_tuple_from_box((uint64,uint64))(uint64,uint64)'] | undefined]>; /** * Calls the maybe_load_tuple_from_box((uint64,uint64))((uint64,uint64),bool) ABI method. * * @param args The arguments for the contract call * @param params Any additional parameters for the call * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions */ maybeLoadTupleFromBox(params?: CallParams): NestedTuplesComposer<[...TReturns, NestedTuplesReturns['maybe_load_tuple_from_box((uint64,uint64))((uint64,uint64),bool)'] | undefined]>; /** * Calls the load_tuple_from_box_or_default((uint64,uint64))(uint64,uint64) ABI method. * * @param args The arguments for the contract call * @param params Any additional parameters for the call * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions */ loadTupleFromBoxOrDefault(params?: CallParams): NestedTuplesComposer<[...TReturns, NestedTuplesReturns['load_tuple_from_box_or_default((uint64,uint64))(uint64,uint64)'] | undefined]>; /** * Calls the load_tuple_from_local_state_or_default(string)(uint64,uint64) ABI method. * * @param args The arguments for the contract call * @param params Any additional parameters for the call * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions */ loadTupleFromLocalStateOrDefault(params?: CallParams): NestedTuplesComposer<[...TReturns, NestedTuplesReturns['load_tuple_from_local_state_or_default(string)(uint64,uint64)'] | undefined]>; /** * Calls the mutate_local_tuple()(uint64[],(uint64,byte[],string)) 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 */ mutateLocalTuple(params?: CallParams): NestedTuplesComposer<[...TReturns, NestedTuplesReturns['mutate_local_tuple()(uint64[],(uint64,byte[],string))'] | undefined]>; /** * Calls the mutate_tuple_in_storage_currently_supported_method()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 */ mutateTupleInStorageCurrentlySupportedMethod(params?: CallParams): NestedTuplesComposer<[...TReturns, NestedTuplesReturns['mutate_tuple_in_storage_currently_supported_method()void'] | undefined]>; /** * Calls the run_tests()bool ABI method. * * @param args The arguments for the contract call * @param params Any additional parameters for the call * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions */ runTests(params?: CallParams): NestedTuplesComposer<[...TReturns, NestedTuplesReturns['run_tests()bool'] | undefined]>; /** * Calls the nested_tuple_params((string,(byte[],(uint64))))(byte[],(string,uint64)) ABI method. * * @param args The arguments for the contract call * @param params Any additional parameters for the call * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions */ nestedTupleParams(params?: CallParams): NestedTuplesComposer<[...TReturns, NestedTuplesReturns['nested_tuple_params((string,(byte[],(uint64))))(byte[],(string,uint64))'] | undefined]>; /** * Calls the named_tuple((uint64,byte[],string))(uint64,byte[],string) 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 */ namedTuple(params?: CallParams): NestedTuplesComposer<[...TReturns, NestedTuplesReturns['named_tuple((uint64,byte[],string))(uint64,byte[],string)'] | undefined]>; /** * Calls the nested_named_tuple_params((uint64,uint64,(uint64,byte[],string)))(uint64,uint64,(uint64,byte[],string)) 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 */ nestedNamedTupleParams(params?: CallParams): NestedTuplesComposer<[...TReturns, NestedTuplesReturns['nested_named_tuple_params((uint64,uint64,(uint64,byte[],string)))(uint64,uint64,(uint64,byte[],string))'] | undefined]>; /** * Makes a clear_state call to an existing instance of the NestedTuples 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): NestedTuplesComposer<[...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): NestedTuplesComposer; /** * 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 NestedTuplesComposerResults = Expand;