/** * 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, AppMethodCallTransactionArgument, 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 TransactionContract contract */ export type TransactionContractArgs = { /** * The object representation of the arguments for each method */ obj: { 'create()void': Record; 'pay(pay)void': { txn: AppMethodCallTransactionArgument; }; 'key(keyreg)void': { txn: AppMethodCallTransactionArgument; }; 'asset_config(acfg)void': { txn: AppMethodCallTransactionArgument; }; 'asset_transfer(axfer)void': { txn: AppMethodCallTransactionArgument; }; 'asset_freeze(afrz)void': { txn: AppMethodCallTransactionArgument; }; 'application_call(appl)void': { txn: AppMethodCallTransactionArgument; }; 'multiple_txns(appl,appl,appl)void': { txn1?: AppMethodCallTransactionArgument; txn2?: AppMethodCallTransactionArgument; txn3: AppMethodCallTransactionArgument; }; 'any_txn(txn,txn,txn)void': { txn1?: AppMethodCallTransactionArgument; txn2?: AppMethodCallTransactionArgument; txn3: AppMethodCallTransactionArgument; }; 'group_init(txn,txn,txn)void': { txn1?: AppMethodCallTransactionArgument; txn2?: AppMethodCallTransactionArgument; txn3: AppMethodCallTransactionArgument; }; }; /** * The tuple representation of the arguments for each method */ tuple: { 'create()void': []; 'pay(pay)void': [txn: AppMethodCallTransactionArgument]; 'key(keyreg)void': [txn: AppMethodCallTransactionArgument]; 'asset_config(acfg)void': [txn: AppMethodCallTransactionArgument]; 'asset_transfer(axfer)void': [txn: AppMethodCallTransactionArgument]; 'asset_freeze(afrz)void': [txn: AppMethodCallTransactionArgument]; 'application_call(appl)void': [txn: AppMethodCallTransactionArgument]; 'multiple_txns(appl,appl,appl)void': [txn1: AppMethodCallTransactionArgument | undefined, txn2: AppMethodCallTransactionArgument | undefined, txn3: AppMethodCallTransactionArgument]; 'any_txn(txn,txn,txn)void': [txn1: AppMethodCallTransactionArgument | undefined, txn2: AppMethodCallTransactionArgument | undefined, txn3: AppMethodCallTransactionArgument]; 'group_init(txn,txn,txn)void': [txn1: AppMethodCallTransactionArgument | undefined, txn2: AppMethodCallTransactionArgument | undefined, txn3: AppMethodCallTransactionArgument]; }; }; /** * The return type for each method */ export type TransactionContractReturns = { 'create()void': void; 'pay(pay)void': void; 'key(keyreg)void': void; 'asset_config(acfg)void': void; 'asset_transfer(axfer)void': void; 'asset_freeze(afrz)void': void; 'application_call(appl)void': void; 'multiple_txns(appl,appl,appl)void': void; 'any_txn(txn,txn,txn)void': void; 'group_init(txn,txn,txn)void': void; }; /** * Defines the types of available calls and state of the TransactionContract smart contract. */ export type TransactionContractTypes = { /** * Maps method signatures / names to their argument and return types. */ methods: Record<'create()void' | 'create', { argsObj: TransactionContractArgs['obj']['create()void']; argsTuple: TransactionContractArgs['tuple']['create()void']; returns: TransactionContractReturns['create()void']; }> & Record<'pay(pay)void' | 'pay', { argsObj: TransactionContractArgs['obj']['pay(pay)void']; argsTuple: TransactionContractArgs['tuple']['pay(pay)void']; returns: TransactionContractReturns['pay(pay)void']; }> & Record<'key(keyreg)void' | 'key', { argsObj: TransactionContractArgs['obj']['key(keyreg)void']; argsTuple: TransactionContractArgs['tuple']['key(keyreg)void']; returns: TransactionContractReturns['key(keyreg)void']; }> & Record<'asset_config(acfg)void' | 'asset_config', { argsObj: TransactionContractArgs['obj']['asset_config(acfg)void']; argsTuple: TransactionContractArgs['tuple']['asset_config(acfg)void']; returns: TransactionContractReturns['asset_config(acfg)void']; }> & Record<'asset_transfer(axfer)void' | 'asset_transfer', { argsObj: TransactionContractArgs['obj']['asset_transfer(axfer)void']; argsTuple: TransactionContractArgs['tuple']['asset_transfer(axfer)void']; returns: TransactionContractReturns['asset_transfer(axfer)void']; }> & Record<'asset_freeze(afrz)void' | 'asset_freeze', { argsObj: TransactionContractArgs['obj']['asset_freeze(afrz)void']; argsTuple: TransactionContractArgs['tuple']['asset_freeze(afrz)void']; returns: TransactionContractReturns['asset_freeze(afrz)void']; }> & Record<'application_call(appl)void' | 'application_call', { argsObj: TransactionContractArgs['obj']['application_call(appl)void']; argsTuple: TransactionContractArgs['tuple']['application_call(appl)void']; returns: TransactionContractReturns['application_call(appl)void']; }> & Record<'multiple_txns(appl,appl,appl)void' | 'multiple_txns', { argsObj: TransactionContractArgs['obj']['multiple_txns(appl,appl,appl)void']; argsTuple: TransactionContractArgs['tuple']['multiple_txns(appl,appl,appl)void']; returns: TransactionContractReturns['multiple_txns(appl,appl,appl)void']; }> & Record<'any_txn(txn,txn,txn)void' | 'any_txn', { argsObj: TransactionContractArgs['obj']['any_txn(txn,txn,txn)void']; argsTuple: TransactionContractArgs['tuple']['any_txn(txn,txn,txn)void']; returns: TransactionContractReturns['any_txn(txn,txn,txn)void']; }> & Record<'group_init(txn,txn,txn)void' | 'group_init', { argsObj: TransactionContractArgs['obj']['group_init(txn,txn,txn)void']; argsTuple: TransactionContractArgs['tuple']['group_init(txn,txn,txn)void']; returns: TransactionContractReturns['group_init(txn,txn,txn)void']; }>; }; /** * Defines the possible abi call signatures. */ export type TransactionContractSignatures = keyof TransactionContractTypes['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 TransactionContract smart contract to the method's arguments in either tuple or struct form */ export type MethodArgs = TransactionContractTypes['methods'][TSignature]['argsObj' | 'argsTuple']; /** * Maps a method signature from the TransactionContract smart contract to the method's return type */ export type MethodReturn = TransactionContractTypes['methods'][TSignature]['returns']; /** * Exposes methods for constructing `AppClient` params objects for ABI calls to the TransactionContract smart contract */ export declare abstract class TransactionContractParamsFactory { /** * Constructs a no op call for the pay(pay)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static pay(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the key(keyreg)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static key(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the asset_config(acfg)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static assetConfig(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the asset_transfer(axfer)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static assetTransfer(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the asset_freeze(afrz)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static assetFreeze(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the application_call(appl)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static applicationCall(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the multiple_txns(appl,appl,appl)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static multipleTxns(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the any_txn(txn,txn,txn)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static anyTxn(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the group_init(txn,txn,txn)void ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static groupInit(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; } /** * A client to make calls to the TransactionContract smart contract */ export declare class TransactionContractClient { /** * The underlying `AppClient` for when you want to have more flexibility */ readonly appClient: _AppClient; /** * Creates a new instance of `TransactionContractClient` * * @param appClient An `AppClient` instance which has been created with the TransactionContract app spec */ constructor(appClient: _AppClient); /** * Creates a new instance of `TransactionContractClient` * * @param params The parameters to initialise the app client with */ constructor(params: Omit); /** * Returns a new `TransactionContractClient` 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 `TransactionContractClient` 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 TransactionContract 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 TransactionContract smart contract using the `pay(pay)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ pay: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the TransactionContract smart contract using the `key(keyreg)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ key: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the TransactionContract smart contract using the `asset_config(acfg)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ assetConfig: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the TransactionContract smart contract using the `asset_transfer(axfer)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ assetTransfer: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the TransactionContract smart contract using the `asset_freeze(afrz)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ assetFreeze: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the TransactionContract smart contract using the `application_call(appl)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ applicationCall: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the TransactionContract smart contract using the `multiple_txns(appl,appl,appl)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ multipleTxns: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the TransactionContract smart contract using the `any_txn(txn,txn,txn)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ anyTxn: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the TransactionContract smart contract using the `group_init(txn,txn,txn)void` ABI method. * * @param params The params for the smart contract call * @returns The call params */ groupInit: (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 TransactionContract smart contract. * * @param params The params for the bare (raw) call * @returns The clearState result */ clearState: (params?: Expand) => Promise; /** * Makes a call to the TransactionContract smart contract using the `pay(pay)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ pay: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the TransactionContract smart contract using the `key(keyreg)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ key: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the TransactionContract smart contract using the `asset_config(acfg)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ assetConfig: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the TransactionContract smart contract using the `asset_transfer(axfer)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ assetTransfer: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the TransactionContract smart contract using the `asset_freeze(afrz)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ assetFreeze: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the TransactionContract smart contract using the `application_call(appl)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ applicationCall: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the TransactionContract smart contract using the `multiple_txns(appl,appl,appl)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ multipleTxns: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the TransactionContract smart contract using the `any_txn(txn,txn,txn)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ anyTxn: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the TransactionContract smart contract using the `group_init(txn,txn,txn)void` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ groupInit: (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 TransactionContract 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 TransactionContract smart contract using the `pay(pay)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ pay: (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 | TransactionContractReturns['pay(pay)void']); }>; /** * Makes a call to the TransactionContract smart contract using the `key(keyreg)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ key: (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 | TransactionContractReturns['key(keyreg)void']); }>; /** * Makes a call to the TransactionContract smart contract using the `asset_config(acfg)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ assetConfig: (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 | TransactionContractReturns['asset_config(acfg)void']); }>; /** * Makes a call to the TransactionContract smart contract using the `asset_transfer(axfer)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ assetTransfer: (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 | TransactionContractReturns['asset_transfer(axfer)void']); }>; /** * Makes a call to the TransactionContract smart contract using the `asset_freeze(afrz)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ assetFreeze: (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 | TransactionContractReturns['asset_freeze(afrz)void']); }>; /** * Makes a call to the TransactionContract smart contract using the `application_call(appl)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ applicationCall: (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 | TransactionContractReturns['application_call(appl)void']); }>; /** * Makes a call to the TransactionContract smart contract using the `multiple_txns(appl,appl,appl)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ multipleTxns: (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 | TransactionContractReturns['multiple_txns(appl,appl,appl)void']); }>; /** * Makes a call to the TransactionContract smart contract using the `any_txn(txn,txn,txn)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ anyTxn: (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 | TransactionContractReturns['any_txn(txn,txn,txn)void']); }>; /** * Makes a call to the TransactionContract smart contract using the `group_init(txn,txn,txn)void` ABI method. * * @param params The params for the smart contract call * @returns The call result */ groupInit: (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 | TransactionContractReturns['group_init(txn,txn,txn)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): TransactionContractClient; /** * Methods to access state for the current TransactionContract app */ state: {}; newGroup(): TransactionContractComposer; } export type TransactionContractComposer = { /** * Calls the pay(pay)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 */ pay(params?: CallParams): TransactionContractComposer<[...TReturns, TransactionContractReturns['pay(pay)void'] | undefined]>; /** * Calls the key(keyreg)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 */ key(params?: CallParams): TransactionContractComposer<[...TReturns, TransactionContractReturns['key(keyreg)void'] | undefined]>; /** * Calls the asset_config(acfg)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 */ assetConfig(params?: CallParams): TransactionContractComposer<[...TReturns, TransactionContractReturns['asset_config(acfg)void'] | undefined]>; /** * Calls the asset_transfer(axfer)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 */ assetTransfer(params?: CallParams): TransactionContractComposer<[...TReturns, TransactionContractReturns['asset_transfer(axfer)void'] | undefined]>; /** * Calls the asset_freeze(afrz)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 */ assetFreeze(params?: CallParams): TransactionContractComposer<[...TReturns, TransactionContractReturns['asset_freeze(afrz)void'] | undefined]>; /** * Calls the application_call(appl)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 */ applicationCall(params?: CallParams): TransactionContractComposer<[...TReturns, TransactionContractReturns['application_call(appl)void'] | undefined]>; /** * Calls the multiple_txns(appl,appl,appl)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 */ multipleTxns(params?: CallParams): TransactionContractComposer<[...TReturns, TransactionContractReturns['multiple_txns(appl,appl,appl)void'] | undefined]>; /** * Calls the any_txn(txn,txn,txn)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 */ anyTxn(params?: CallParams): TransactionContractComposer<[...TReturns, TransactionContractReturns['any_txn(txn,txn,txn)void'] | undefined]>; /** * Calls the group_init(txn,txn,txn)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 */ groupInit(params?: CallParams): TransactionContractComposer<[...TReturns, TransactionContractReturns['group_init(txn,txn,txn)void'] | undefined]>; /** * Makes a clear_state call to an existing instance of the TransactionContract 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): TransactionContractComposer<[...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): TransactionContractComposer; /** * 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 TransactionContractComposerResults = Expand;