/** * This file was automatically generated by @algorandfoundation/algokit-client-generator. * DO NOT MODIFY IT BY HAND. * requires: @algorandfoundation/algokit-utils: ^7 */ import { type AlgorandClient } from '@algorandfoundation/algokit-utils/types/algorand-client'; import { ABIReturn } from '@algorandfoundation/algokit-utils/types/app'; import { Arc56Contract } from '@algorandfoundation/algokit-utils/types/app-arc56'; import { AppClient as _AppClient, AppClientMethodCallParams, AppClientParams, AppClientBareCallParams, CallOnComplete, AppClientCompilationParams, ResolveAppClientByCreatorAndName, ResolveAppClientByNetwork, CloneAppClientParams } from '@algorandfoundation/algokit-utils/types/app-client'; import { AppFactory as _AppFactory, AppFactoryAppClientParams, AppFactoryResolveAppClientByCreatorAndNameParams, AppFactoryDeployParams, AppFactoryParams, CreateSchema } from '@algorandfoundation/algokit-utils/types/app-factory'; import { TransactionComposer, AppCallMethodCall, RawSimulateOptions, SkipSignaturesSimulateOptions } from '@algorandfoundation/algokit-utils/types/composer'; import { SendParams, SendAtomicTransactionComposerResults } from '@algorandfoundation/algokit-utils/types/transaction'; import { Address, modelsv2, OnApplicationComplete, Transaction, TransactionSigner } from 'algosdk'; export declare const APP_SPEC: Arc56Contract; /** * A state record containing binary data */ export interface BinaryState { /** * Gets the state value as a Uint8Array */ asByteArray(): Uint8Array | undefined; /** * Gets the state value as a string */ asString(): string | undefined; } /** * Expands types for IntelliSense so they are more human readable * See https://stackoverflow.com/a/69288824 */ export type Expand = T extends (...args: infer A) => infer R ? (...args: Expand) => Expand : T extends infer O ? { [K in keyof O]: O[K]; } : never; export type StructWithArrayBool = { padding: Uint8Array[]; a: boolean; arr: boolean[]; b: boolean; trailing: bigint[]; }; /** * Converts the ABI tuple representation of a StructWithArrayBool to the struct representation */ export declare function StructWithArrayBoolFromTuple(abiTuple: [Uint8Array[], boolean, boolean[], boolean, bigint[]]): StructWithArrayBool; /** * The argument types for the StructArrayBoolContract contract */ export type StructArrayBoolContractArgs = { /** * The object representation of the arguments for each method */ obj: { 'bootstrap()void': Record; 'append(bool)void': { value: boolean; }; 'concat(bool[])void': { array: boolean[]; }; 'pop()bool': Record; 'get(uint64)bool': { idx: bigint | number; }; 'set(uint64,bool)void': { idx: bigint | number; value: boolean; }; 'verify(bool[])void': { expected: boolean[]; }; }; /** * The tuple representation of the arguments for each method */ tuple: { 'bootstrap()void': []; 'append(bool)void': [value: boolean]; 'concat(bool[])void': [array: boolean[]]; 'pop()bool': []; 'get(uint64)bool': [idx: bigint | number]; 'set(uint64,bool)void': [idx: bigint | number, value: boolean]; 'verify(bool[])void': [expected: boolean[]]; }; }; /** * The return type for each method */ export type StructArrayBoolContractReturns = { 'bootstrap()void': void; 'append(bool)void': void; 'concat(bool[])void': void; 'pop()bool': boolean; 'get(uint64)bool': boolean; 'set(uint64,bool)void': void; 'verify(bool[])void': void; }; /** * Defines the types of available calls and state of the StructArrayBoolContract smart contract. */ export type StructArrayBoolContractTypes = { /** * Maps method signatures / names to their argument and return types. */ methods: Record<'bootstrap()void' | 'bootstrap', { argsObj: StructArrayBoolContractArgs['obj']['bootstrap()void']; argsTuple: StructArrayBoolContractArgs['tuple']['bootstrap()void']; returns: StructArrayBoolContractReturns['bootstrap()void']; }> & Record<'append(bool)void' | 'append', { argsObj: StructArrayBoolContractArgs['obj']['append(bool)void']; argsTuple: StructArrayBoolContractArgs['tuple']['append(bool)void']; returns: StructArrayBoolContractReturns['append(bool)void']; }> & Record<'concat(bool[])void' | 'concat', { argsObj: StructArrayBoolContractArgs['obj']['concat(bool[])void']; argsTuple: StructArrayBoolContractArgs['tuple']['concat(bool[])void']; returns: StructArrayBoolContractReturns['concat(bool[])void']; }> & Record<'pop()bool' | 'pop', { argsObj: StructArrayBoolContractArgs['obj']['pop()bool']; argsTuple: StructArrayBoolContractArgs['tuple']['pop()bool']; returns: StructArrayBoolContractReturns['pop()bool']; }> & Record<'get(uint64)bool' | 'get', { argsObj: StructArrayBoolContractArgs['obj']['get(uint64)bool']; argsTuple: StructArrayBoolContractArgs['tuple']['get(uint64)bool']; returns: StructArrayBoolContractReturns['get(uint64)bool']; }> & Record<'set(uint64,bool)void' | 'set', { argsObj: StructArrayBoolContractArgs['obj']['set(uint64,bool)void']; argsTuple: StructArrayBoolContractArgs['tuple']['set(uint64,bool)void']; returns: StructArrayBoolContractReturns['set(uint64,bool)void']; }> & Record<'verify(bool[])void' | 'verify', { argsObj: StructArrayBoolContractArgs['obj']['verify(bool[])void']; argsTuple: StructArrayBoolContractArgs['tuple']['verify(bool[])void']; returns: StructArrayBoolContractReturns['verify(bool[])void']; }>; /** * Defines the shape of the state of the application. */ state: { box: { keys: { box: StructWithArrayBool; }; maps: {}; }; }; }; /** * Defines the possible abi call signatures. */ export type StructArrayBoolContractSignatures = keyof StructArrayBoolContractTypes['methods']; /** * Defines the possible abi call signatures for methods that return a non-void value. */ export type StructArrayBoolContractNonVoidMethodSignatures = keyof StructArrayBoolContractTypes['methods'] extends infer T ? T extends keyof StructArrayBoolContractTypes['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 StructArrayBoolContract smart contract to the method's arguments in either tuple or struct form */ export type MethodArgs = StructArrayBoolContractTypes['methods'][TSignature]['argsObj' | 'argsTuple']; /** * Maps a method signature from the StructArrayBoolContract smart contract to the method's return type */ export type MethodReturn = StructArrayBoolContractTypes['methods'][TSignature]['returns']; /** * Defines the shape of the keyed box state of the application. */ export type BoxKeysState = StructArrayBoolContractTypes['state']['box']['keys']; /** * Defines supported create method params for this smart contract */ export type StructArrayBoolContractCreateCallParams = Expand; /** * Defines arguments required for the deploy method. */ export type StructArrayBoolContractDeployParams = 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?: StructArrayBoolContractCreateCallParams; }>; /** * Exposes methods for constructing `AppClient` params objects for ABI calls to the StructArrayBoolContract smart contract */ export declare abstract class StructArrayBoolContractParamsFactory { /** * Constructs a no op call for the bootstrap()void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static bootstrap(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the append(bool)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static append(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the concat(bool[])void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static concat(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the pop()bool ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static pop(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the get(uint64)bool ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static get(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the set(uint64,bool)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static set(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the verify(bool[])void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static verify(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; } /** * A factory to create and deploy one or more instance of the StructArrayBoolContract smart contract and to create one or more app clients to interact with those (or other) app instances */ export declare class StructArrayBoolContractFactory { /** * The underlying `AppFactory` for when you want to have more flexibility */ readonly appFactory: _AppFactory; /** * Creates a new instance of `StructArrayBoolContractFactory` * * @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): StructArrayBoolContractClient; /** * 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 StructArrayBoolContract smart contract. * * @param params The arguments for the contract calls and any additional parameters for the call * @returns The deployment result */ deploy(params?: StructArrayBoolContractDeployParams): 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: StructArrayBoolContractClient; }>; /** * 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 StructArrayBoolContract 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 StructArrayBoolContract 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 StructArrayBoolContract 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: StructArrayBoolContractClient; }>; }; }; } /** * A client to make calls to the StructArrayBoolContract smart contract */ export declare class StructArrayBoolContractClient { /** * The underlying `AppClient` for when you want to have more flexibility */ readonly appClient: _AppClient; /** * Creates a new instance of `StructArrayBoolContractClient` * * @param appClient An `AppClient` instance which has been created with the StructArrayBoolContract app spec */ constructor(appClient: _AppClient); /** * Creates a new instance of `StructArrayBoolContractClient` * * @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 `StructArrayBoolContractClient` 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 `StructArrayBoolContractClient` 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 StructArrayBoolContract 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 StructArrayBoolContract smart contract using the `bootstrap()void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ bootstrap: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the StructArrayBoolContract smart contract using the `append(bool)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ append: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the StructArrayBoolContract smart contract using the `concat(bool[])void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ concat: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the StructArrayBoolContract smart contract using the `pop()bool` ABI method. * * @param params The params for the smart contract call * @returns The call params */ pop: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the StructArrayBoolContract smart contract using the `get(uint64)bool` ABI method. * * @param params The params for the smart contract call * @returns The call params */ get: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the StructArrayBoolContract smart contract using the `set(uint64,bool)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ set: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the StructArrayBoolContract smart contract using the `verify(bool[])void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ verify: (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 StructArrayBoolContract smart contract. * * @param params The params for the bare (raw) call * @returns The clearState result */ clearState: (params?: Expand) => Promise; /** * Makes a call to the StructArrayBoolContract smart contract using the `bootstrap()void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ bootstrap: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the StructArrayBoolContract smart contract using the `append(bool)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ append: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the StructArrayBoolContract smart contract using the `concat(bool[])void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ concat: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the StructArrayBoolContract smart contract using the `pop()bool` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ pop: (params?: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the StructArrayBoolContract smart contract using the `get(uint64)bool` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ get: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the StructArrayBoolContract smart contract using the `set(uint64,bool)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ set: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the StructArrayBoolContract smart contract using the `verify(bool[])void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ verify: (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 StructArrayBoolContract 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 StructArrayBoolContract smart contract using the `bootstrap()void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ bootstrap: (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 | StructArrayBoolContractReturns['bootstrap()void']); }>; /** * Makes a call to the StructArrayBoolContract smart contract using the `append(bool)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ append: (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 | StructArrayBoolContractReturns['append(bool)void']); }>; /** * Makes a call to the StructArrayBoolContract smart contract using the `concat(bool[])void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ concat: (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 | StructArrayBoolContractReturns['concat(bool[])void']); }>; /** * Makes a call to the StructArrayBoolContract smart contract using the `pop()bool` ABI method. * * @param params The params for the smart contract call * @returns The call result */ pop: (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 | StructArrayBoolContractReturns['pop()bool']); }>; /** * Makes a call to the StructArrayBoolContract smart contract using the `get(uint64)bool` ABI method. * * @param params The params for the smart contract call * @returns The call result */ get: (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 | StructArrayBoolContractReturns['get(uint64)bool']); }>; /** * Makes a call to the StructArrayBoolContract smart contract using the `set(uint64,bool)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ set: (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 | StructArrayBoolContractReturns['set(uint64,bool)void']); }>; /** * Makes a call to the StructArrayBoolContract smart contract using the `verify(bool[])void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ verify: (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 | StructArrayBoolContractReturns['verify(bool[])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): StructArrayBoolContractClient; /** * Methods to access state for the current StructArrayBoolContract app */ state: { /** * Methods to access box state for the current StructArrayBoolContract app */ box: { /** * Get all current keyed values from box state */ getAll: () => Promise>>; /** * Get the current value of the box key in box state */ box: () => Promise; }; }; newGroup(): StructArrayBoolContractComposer; } export type StructArrayBoolContractComposer = { /** * Calls the bootstrap()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 */ bootstrap(params?: CallParams): StructArrayBoolContractComposer<[...TReturns, StructArrayBoolContractReturns['bootstrap()void'] | undefined]>; /** * Calls the append(bool)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 */ append(params?: CallParams): StructArrayBoolContractComposer<[...TReturns, StructArrayBoolContractReturns['append(bool)void'] | undefined]>; /** * Calls the concat(bool[])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 */ concat(params?: CallParams): StructArrayBoolContractComposer<[...TReturns, StructArrayBoolContractReturns['concat(bool[])void'] | undefined]>; /** * Calls the pop()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 */ pop(params?: CallParams): StructArrayBoolContractComposer<[...TReturns, StructArrayBoolContractReturns['pop()bool'] | undefined]>; /** * Calls the get(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 */ get(params?: CallParams): StructArrayBoolContractComposer<[...TReturns, StructArrayBoolContractReturns['get(uint64)bool'] | undefined]>; /** * Calls the set(uint64,bool)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 */ set(params?: CallParams): StructArrayBoolContractComposer<[...TReturns, StructArrayBoolContractReturns['set(uint64,bool)void'] | undefined]>; /** * Calls the verify(bool[])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 */ verify(params?: CallParams): StructArrayBoolContractComposer<[...TReturns, StructArrayBoolContractReturns['verify(bool[])void'] | undefined]>; /** * Makes a clear_state call to an existing instance of the StructArrayBoolContract 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): StructArrayBoolContractComposer<[...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): StructArrayBoolContractComposer; /** * 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 StructArrayBoolContractComposerResults = Expand;