/** * This file was automatically generated by @algorandfoundation/algokit-client-generator. * DO NOT MODIFY IT BY HAND. * requires: @algorandfoundation/algokit-utils: ^7 */ import { type AlgorandClient } from '@algorandfoundation/algokit-utils/types/algorand-client'; import { ABIReturn } from '@algorandfoundation/algokit-utils/types/app'; import { Arc56Contract } from '@algorandfoundation/algokit-utils/types/app-arc56'; import { AppClient as _AppClient, AppClientMethodCallParams, AppClientParams, AppClientBareCallParams, CallOnComplete, ResolveAppClientByCreatorAndName, ResolveAppClientByNetwork, CloneAppClientParams } from '@algorandfoundation/algokit-utils/types/app-client'; import { TransactionComposer, AppCallMethodCall, RawSimulateOptions, SkipSignaturesSimulateOptions } from '@algorandfoundation/algokit-utils/types/composer'; import { SendParams, SendAtomicTransactionComposerResults } from '@algorandfoundation/algokit-utils/types/transaction'; import { Address, modelsv2, OnApplicationComplete, Transaction, TransactionSigner } from 'algosdk'; export declare const APP_SPEC: Arc56Contract; /** * A state record containing binary data */ export interface BinaryState { /** * Gets the state value as a Uint8Array */ asByteArray(): Uint8Array | undefined; /** * Gets the state value as a string */ asString(): string | undefined; } /** * Expands types for IntelliSense so they are more human readable * See https://stackoverflow.com/a/69288824 */ export type Expand = T extends (...args: infer A) => infer R ? (...args: Expand) => Expand : T extends infer O ? { [K in keyof O]: O[K]; } : never; /** * The argument types for the NumericEncodeRoundTrips contract */ export type NumericEncodeRoundTripsArgs = { /** * The object representation of the arguments for each method */ obj: { 'arc4_uint32_via_uint64(uint32)uint32': { x: bigint | number; }; 'arc4_uint64_via_uint64(uint64)uint64': { x: bigint | number; }; 'arc4_uint128_via_uint64(uint128)uint128': { x: bigint | number; }; 'uint64_via_arc4_uint32(uint64)uint64': { x: bigint | number; }; 'uint64_via_arc4_uint64(uint64)uint64': { x: bigint | number; }; 'uint64_via_arc4_uint128(uint64)uint64': { x: bigint | number; }; 'arc4_uint32_via_biguint(uint32)uint32': { x: bigint | number; }; 'arc4_uint64_via_biguint(uint64)uint64': { x: bigint | number; }; 'arc4_uint128_via_biguint(uint128)uint128': { x: bigint | number; }; 'biguint_via_arc4_uint32(uint512)uint512': { x: bigint | number; }; 'biguint_via_arc4_uint64(uint512)uint512': { x: bigint | number; }; 'biguint_via_arc4_uint128(uint512)uint512': { x: bigint | number; }; }; /** * The tuple representation of the arguments for each method */ tuple: { 'arc4_uint32_via_uint64(uint32)uint32': [x: bigint | number]; 'arc4_uint64_via_uint64(uint64)uint64': [x: bigint | number]; 'arc4_uint128_via_uint64(uint128)uint128': [x: bigint | number]; 'uint64_via_arc4_uint32(uint64)uint64': [x: bigint | number]; 'uint64_via_arc4_uint64(uint64)uint64': [x: bigint | number]; 'uint64_via_arc4_uint128(uint64)uint64': [x: bigint | number]; 'arc4_uint32_via_biguint(uint32)uint32': [x: bigint | number]; 'arc4_uint64_via_biguint(uint64)uint64': [x: bigint | number]; 'arc4_uint128_via_biguint(uint128)uint128': [x: bigint | number]; 'biguint_via_arc4_uint32(uint512)uint512': [x: bigint | number]; 'biguint_via_arc4_uint64(uint512)uint512': [x: bigint | number]; 'biguint_via_arc4_uint128(uint512)uint512': [x: bigint | number]; }; }; /** * The return type for each method */ export type NumericEncodeRoundTripsReturns = { 'arc4_uint32_via_uint64(uint32)uint32': number; 'arc4_uint64_via_uint64(uint64)uint64': bigint; 'arc4_uint128_via_uint64(uint128)uint128': bigint; 'uint64_via_arc4_uint32(uint64)uint64': bigint; 'uint64_via_arc4_uint64(uint64)uint64': bigint; 'uint64_via_arc4_uint128(uint64)uint64': bigint; 'arc4_uint32_via_biguint(uint32)uint32': number; 'arc4_uint64_via_biguint(uint64)uint64': bigint; 'arc4_uint128_via_biguint(uint128)uint128': bigint; 'biguint_via_arc4_uint32(uint512)uint512': bigint; 'biguint_via_arc4_uint64(uint512)uint512': bigint; 'biguint_via_arc4_uint128(uint512)uint512': bigint; }; /** * Defines the types of available calls and state of the NumericEncodeRoundTrips smart contract. */ export type NumericEncodeRoundTripsTypes = { /** * Maps method signatures / names to their argument and return types. */ methods: Record<'arc4_uint32_via_uint64(uint32)uint32' | 'arc4_uint32_via_uint64', { argsObj: NumericEncodeRoundTripsArgs['obj']['arc4_uint32_via_uint64(uint32)uint32']; argsTuple: NumericEncodeRoundTripsArgs['tuple']['arc4_uint32_via_uint64(uint32)uint32']; returns: NumericEncodeRoundTripsReturns['arc4_uint32_via_uint64(uint32)uint32']; }> & Record<'arc4_uint64_via_uint64(uint64)uint64' | 'arc4_uint64_via_uint64', { argsObj: NumericEncodeRoundTripsArgs['obj']['arc4_uint64_via_uint64(uint64)uint64']; argsTuple: NumericEncodeRoundTripsArgs['tuple']['arc4_uint64_via_uint64(uint64)uint64']; returns: NumericEncodeRoundTripsReturns['arc4_uint64_via_uint64(uint64)uint64']; }> & Record<'arc4_uint128_via_uint64(uint128)uint128' | 'arc4_uint128_via_uint64', { argsObj: NumericEncodeRoundTripsArgs['obj']['arc4_uint128_via_uint64(uint128)uint128']; argsTuple: NumericEncodeRoundTripsArgs['tuple']['arc4_uint128_via_uint64(uint128)uint128']; returns: NumericEncodeRoundTripsReturns['arc4_uint128_via_uint64(uint128)uint128']; }> & Record<'uint64_via_arc4_uint32(uint64)uint64' | 'uint64_via_arc4_uint32', { argsObj: NumericEncodeRoundTripsArgs['obj']['uint64_via_arc4_uint32(uint64)uint64']; argsTuple: NumericEncodeRoundTripsArgs['tuple']['uint64_via_arc4_uint32(uint64)uint64']; returns: NumericEncodeRoundTripsReturns['uint64_via_arc4_uint32(uint64)uint64']; }> & Record<'uint64_via_arc4_uint64(uint64)uint64' | 'uint64_via_arc4_uint64', { argsObj: NumericEncodeRoundTripsArgs['obj']['uint64_via_arc4_uint64(uint64)uint64']; argsTuple: NumericEncodeRoundTripsArgs['tuple']['uint64_via_arc4_uint64(uint64)uint64']; returns: NumericEncodeRoundTripsReturns['uint64_via_arc4_uint64(uint64)uint64']; }> & Record<'uint64_via_arc4_uint128(uint64)uint64' | 'uint64_via_arc4_uint128', { argsObj: NumericEncodeRoundTripsArgs['obj']['uint64_via_arc4_uint128(uint64)uint64']; argsTuple: NumericEncodeRoundTripsArgs['tuple']['uint64_via_arc4_uint128(uint64)uint64']; returns: NumericEncodeRoundTripsReturns['uint64_via_arc4_uint128(uint64)uint64']; }> & Record<'arc4_uint32_via_biguint(uint32)uint32' | 'arc4_uint32_via_biguint', { argsObj: NumericEncodeRoundTripsArgs['obj']['arc4_uint32_via_biguint(uint32)uint32']; argsTuple: NumericEncodeRoundTripsArgs['tuple']['arc4_uint32_via_biguint(uint32)uint32']; returns: NumericEncodeRoundTripsReturns['arc4_uint32_via_biguint(uint32)uint32']; }> & Record<'arc4_uint64_via_biguint(uint64)uint64' | 'arc4_uint64_via_biguint', { argsObj: NumericEncodeRoundTripsArgs['obj']['arc4_uint64_via_biguint(uint64)uint64']; argsTuple: NumericEncodeRoundTripsArgs['tuple']['arc4_uint64_via_biguint(uint64)uint64']; returns: NumericEncodeRoundTripsReturns['arc4_uint64_via_biguint(uint64)uint64']; }> & Record<'arc4_uint128_via_biguint(uint128)uint128' | 'arc4_uint128_via_biguint', { argsObj: NumericEncodeRoundTripsArgs['obj']['arc4_uint128_via_biguint(uint128)uint128']; argsTuple: NumericEncodeRoundTripsArgs['tuple']['arc4_uint128_via_biguint(uint128)uint128']; returns: NumericEncodeRoundTripsReturns['arc4_uint128_via_biguint(uint128)uint128']; }> & Record<'biguint_via_arc4_uint32(uint512)uint512' | 'biguint_via_arc4_uint32', { argsObj: NumericEncodeRoundTripsArgs['obj']['biguint_via_arc4_uint32(uint512)uint512']; argsTuple: NumericEncodeRoundTripsArgs['tuple']['biguint_via_arc4_uint32(uint512)uint512']; returns: NumericEncodeRoundTripsReturns['biguint_via_arc4_uint32(uint512)uint512']; }> & Record<'biguint_via_arc4_uint64(uint512)uint512' | 'biguint_via_arc4_uint64', { argsObj: NumericEncodeRoundTripsArgs['obj']['biguint_via_arc4_uint64(uint512)uint512']; argsTuple: NumericEncodeRoundTripsArgs['tuple']['biguint_via_arc4_uint64(uint512)uint512']; returns: NumericEncodeRoundTripsReturns['biguint_via_arc4_uint64(uint512)uint512']; }> & Record<'biguint_via_arc4_uint128(uint512)uint512' | 'biguint_via_arc4_uint128', { argsObj: NumericEncodeRoundTripsArgs['obj']['biguint_via_arc4_uint128(uint512)uint512']; argsTuple: NumericEncodeRoundTripsArgs['tuple']['biguint_via_arc4_uint128(uint512)uint512']; returns: NumericEncodeRoundTripsReturns['biguint_via_arc4_uint128(uint512)uint512']; }>; }; /** * Defines the possible abi call signatures. */ export type NumericEncodeRoundTripsSignatures = keyof NumericEncodeRoundTripsTypes['methods']; /** * Defines the possible abi call signatures for methods that return a non-void value. */ export type NumericEncodeRoundTripsNonVoidMethodSignatures = keyof NumericEncodeRoundTripsTypes['methods'] extends infer T ? T extends keyof NumericEncodeRoundTripsTypes['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 NumericEncodeRoundTrips smart contract to the method's arguments in either tuple or struct form */ export type MethodArgs = NumericEncodeRoundTripsTypes['methods'][TSignature]['argsObj' | 'argsTuple']; /** * Maps a method signature from the NumericEncodeRoundTrips smart contract to the method's return type */ export type MethodReturn = NumericEncodeRoundTripsTypes['methods'][TSignature]['returns']; /** * Exposes methods for constructing `AppClient` params objects for ABI calls to the NumericEncodeRoundTrips smart contract */ export declare abstract class NumericEncodeRoundTripsParamsFactory { /** * Constructs a no op call for the arc4_uint32_via_uint64(uint32)uint32 ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static arc4Uint32ViaUint64(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the arc4_uint64_via_uint64(uint64)uint64 ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static arc4Uint64ViaUint64(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the arc4_uint128_via_uint64(uint128)uint128 ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static arc4Uint128ViaUint64(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the uint64_via_arc4_uint32(uint64)uint64 ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static uint64ViaArc4Uint32(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the uint64_via_arc4_uint64(uint64)uint64 ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static uint64ViaArc4Uint64(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the uint64_via_arc4_uint128(uint64)uint64 ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static uint64ViaArc4Uint128(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the arc4_uint32_via_biguint(uint32)uint32 ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static arc4Uint32ViaBiguint(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the arc4_uint64_via_biguint(uint64)uint64 ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static arc4Uint64ViaBiguint(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the arc4_uint128_via_biguint(uint128)uint128 ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static arc4Uint128ViaBiguint(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the biguint_via_arc4_uint32(uint512)uint512 ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static biguintViaArc4Uint32(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the biguint_via_arc4_uint64(uint512)uint512 ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static biguintViaArc4Uint64(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the biguint_via_arc4_uint128(uint512)uint512 ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static biguintViaArc4Uint128(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; } /** * A client to make calls to the NumericEncodeRoundTrips smart contract */ export declare class NumericEncodeRoundTripsClient { /** * The underlying `AppClient` for when you want to have more flexibility */ readonly appClient: _AppClient; /** * Creates a new instance of `NumericEncodeRoundTripsClient` * * @param appClient An `AppClient` instance which has been created with the NumericEncodeRoundTrips app spec */ constructor(appClient: _AppClient); /** * Creates a new instance of `NumericEncodeRoundTripsClient` * * @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 `NumericEncodeRoundTripsClient` 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 `NumericEncodeRoundTripsClient` 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 NumericEncodeRoundTrips 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 NumericEncodeRoundTrips smart contract using the `arc4_uint32_via_uint64(uint32)uint32` ABI method. * * @param params The params for the smart contract call * @returns The call params */ arc4Uint32ViaUint64: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `arc4_uint64_via_uint64(uint64)uint64` ABI method. * * @param params The params for the smart contract call * @returns The call params */ arc4Uint64ViaUint64: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `arc4_uint128_via_uint64(uint128)uint128` ABI method. * * @param params The params for the smart contract call * @returns The call params */ arc4Uint128ViaUint64: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `uint64_via_arc4_uint32(uint64)uint64` ABI method. * * @param params The params for the smart contract call * @returns The call params */ uint64ViaArc4Uint32: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `uint64_via_arc4_uint64(uint64)uint64` ABI method. * * @param params The params for the smart contract call * @returns The call params */ uint64ViaArc4Uint64: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `uint64_via_arc4_uint128(uint64)uint64` ABI method. * * @param params The params for the smart contract call * @returns The call params */ uint64ViaArc4Uint128: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `arc4_uint32_via_biguint(uint32)uint32` ABI method. * * @param params The params for the smart contract call * @returns The call params */ arc4Uint32ViaBiguint: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `arc4_uint64_via_biguint(uint64)uint64` ABI method. * * @param params The params for the smart contract call * @returns The call params */ arc4Uint64ViaBiguint: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `arc4_uint128_via_biguint(uint128)uint128` ABI method. * * @param params The params for the smart contract call * @returns The call params */ arc4Uint128ViaBiguint: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `biguint_via_arc4_uint32(uint512)uint512` ABI method. * * @param params The params for the smart contract call * @returns The call params */ biguintViaArc4Uint32: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `biguint_via_arc4_uint64(uint512)uint512` ABI method. * * @param params The params for the smart contract call * @returns The call params */ biguintViaArc4Uint64: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `biguint_via_arc4_uint128(uint512)uint512` ABI method. * * @param params The params for the smart contract call * @returns The call params */ biguintViaArc4Uint128: (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 NumericEncodeRoundTrips smart contract. * * @param params The params for the bare (raw) call * @returns The clearState result */ clearState: (params?: Expand) => Promise; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `arc4_uint32_via_uint64(uint32)uint32` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ arc4Uint32ViaUint64: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `arc4_uint64_via_uint64(uint64)uint64` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ arc4Uint64ViaUint64: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `arc4_uint128_via_uint64(uint128)uint128` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ arc4Uint128ViaUint64: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `uint64_via_arc4_uint32(uint64)uint64` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ uint64ViaArc4Uint32: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `uint64_via_arc4_uint64(uint64)uint64` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ uint64ViaArc4Uint64: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `uint64_via_arc4_uint128(uint64)uint64` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ uint64ViaArc4Uint128: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `arc4_uint32_via_biguint(uint32)uint32` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ arc4Uint32ViaBiguint: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `arc4_uint64_via_biguint(uint64)uint64` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ arc4Uint64ViaBiguint: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `arc4_uint128_via_biguint(uint128)uint128` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ arc4Uint128ViaBiguint: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `biguint_via_arc4_uint32(uint512)uint512` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ biguintViaArc4Uint32: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `biguint_via_arc4_uint64(uint512)uint512` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ biguintViaArc4Uint64: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `biguint_via_arc4_uint128(uint512)uint512` ABI method. * * @param params The params for the smart contract call * @returns The call transaction */ biguintViaArc4Uint128: (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 NumericEncodeRoundTrips 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 NumericEncodeRoundTrips smart contract using the `arc4_uint32_via_uint64(uint32)uint32` ABI method. * * @param params The params for the smart contract call * @returns The call result */ arc4Uint32ViaUint64: (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 | NumericEncodeRoundTripsReturns['arc4_uint32_via_uint64(uint32)uint32']); }>; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `arc4_uint64_via_uint64(uint64)uint64` ABI method. * * @param params The params for the smart contract call * @returns The call result */ arc4Uint64ViaUint64: (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 | NumericEncodeRoundTripsReturns['arc4_uint64_via_uint64(uint64)uint64']); }>; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `arc4_uint128_via_uint64(uint128)uint128` ABI method. * * @param params The params for the smart contract call * @returns The call result */ arc4Uint128ViaUint64: (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 | NumericEncodeRoundTripsReturns['arc4_uint128_via_uint64(uint128)uint128']); }>; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `uint64_via_arc4_uint32(uint64)uint64` ABI method. * * @param params The params for the smart contract call * @returns The call result */ uint64ViaArc4Uint32: (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 | NumericEncodeRoundTripsReturns['uint64_via_arc4_uint32(uint64)uint64']); }>; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `uint64_via_arc4_uint64(uint64)uint64` ABI method. * * @param params The params for the smart contract call * @returns The call result */ uint64ViaArc4Uint64: (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 | NumericEncodeRoundTripsReturns['uint64_via_arc4_uint64(uint64)uint64']); }>; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `uint64_via_arc4_uint128(uint64)uint64` ABI method. * * @param params The params for the smart contract call * @returns The call result */ uint64ViaArc4Uint128: (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 | NumericEncodeRoundTripsReturns['uint64_via_arc4_uint128(uint64)uint64']); }>; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `arc4_uint32_via_biguint(uint32)uint32` ABI method. * * @param params The params for the smart contract call * @returns The call result */ arc4Uint32ViaBiguint: (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 | NumericEncodeRoundTripsReturns['arc4_uint32_via_biguint(uint32)uint32']); }>; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `arc4_uint64_via_biguint(uint64)uint64` ABI method. * * @param params The params for the smart contract call * @returns The call result */ arc4Uint64ViaBiguint: (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 | NumericEncodeRoundTripsReturns['arc4_uint64_via_biguint(uint64)uint64']); }>; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `arc4_uint128_via_biguint(uint128)uint128` ABI method. * * @param params The params for the smart contract call * @returns The call result */ arc4Uint128ViaBiguint: (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 | NumericEncodeRoundTripsReturns['arc4_uint128_via_biguint(uint128)uint128']); }>; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `biguint_via_arc4_uint32(uint512)uint512` ABI method. * * @param params The params for the smart contract call * @returns The call result */ biguintViaArc4Uint32: (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 | NumericEncodeRoundTripsReturns['biguint_via_arc4_uint32(uint512)uint512']); }>; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `biguint_via_arc4_uint64(uint512)uint512` ABI method. * * @param params The params for the smart contract call * @returns The call result */ biguintViaArc4Uint64: (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 | NumericEncodeRoundTripsReturns['biguint_via_arc4_uint64(uint512)uint512']); }>; /** * Makes a call to the NumericEncodeRoundTrips smart contract using the `biguint_via_arc4_uint128(uint512)uint512` ABI method. * * @param params The params for the smart contract call * @returns The call result */ biguintViaArc4Uint128: (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 | NumericEncodeRoundTripsReturns['biguint_via_arc4_uint128(uint512)uint512']); }>; }; /** * 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): NumericEncodeRoundTripsClient; /** * Methods to access state for the current NumericEncodeRoundTrips app */ state: {}; newGroup(): NumericEncodeRoundTripsComposer; } export type NumericEncodeRoundTripsComposer = { /** * Calls the arc4_uint32_via_uint64(uint32)uint32 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 */ arc4Uint32ViaUint64(params?: CallParams): NumericEncodeRoundTripsComposer<[...TReturns, NumericEncodeRoundTripsReturns['arc4_uint32_via_uint64(uint32)uint32'] | undefined]>; /** * Calls the arc4_uint64_via_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 */ arc4Uint64ViaUint64(params?: CallParams): NumericEncodeRoundTripsComposer<[...TReturns, NumericEncodeRoundTripsReturns['arc4_uint64_via_uint64(uint64)uint64'] | undefined]>; /** * Calls the arc4_uint128_via_uint64(uint128)uint128 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 */ arc4Uint128ViaUint64(params?: CallParams): NumericEncodeRoundTripsComposer<[...TReturns, NumericEncodeRoundTripsReturns['arc4_uint128_via_uint64(uint128)uint128'] | undefined]>; /** * Calls the uint64_via_arc4_uint32(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 */ uint64ViaArc4Uint32(params?: CallParams): NumericEncodeRoundTripsComposer<[...TReturns, NumericEncodeRoundTripsReturns['uint64_via_arc4_uint32(uint64)uint64'] | undefined]>; /** * Calls the uint64_via_arc4_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 */ uint64ViaArc4Uint64(params?: CallParams): NumericEncodeRoundTripsComposer<[...TReturns, NumericEncodeRoundTripsReturns['uint64_via_arc4_uint64(uint64)uint64'] | undefined]>; /** * Calls the uint64_via_arc4_uint128(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 */ uint64ViaArc4Uint128(params?: CallParams): NumericEncodeRoundTripsComposer<[...TReturns, NumericEncodeRoundTripsReturns['uint64_via_arc4_uint128(uint64)uint64'] | undefined]>; /** * Calls the arc4_uint32_via_biguint(uint32)uint32 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 */ arc4Uint32ViaBiguint(params?: CallParams): NumericEncodeRoundTripsComposer<[...TReturns, NumericEncodeRoundTripsReturns['arc4_uint32_via_biguint(uint32)uint32'] | undefined]>; /** * Calls the arc4_uint64_via_biguint(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 */ arc4Uint64ViaBiguint(params?: CallParams): NumericEncodeRoundTripsComposer<[...TReturns, NumericEncodeRoundTripsReturns['arc4_uint64_via_biguint(uint64)uint64'] | undefined]>; /** * Calls the arc4_uint128_via_biguint(uint128)uint128 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 */ arc4Uint128ViaBiguint(params?: CallParams): NumericEncodeRoundTripsComposer<[...TReturns, NumericEncodeRoundTripsReturns['arc4_uint128_via_biguint(uint128)uint128'] | undefined]>; /** * Calls the biguint_via_arc4_uint32(uint512)uint512 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 */ biguintViaArc4Uint32(params?: CallParams): NumericEncodeRoundTripsComposer<[...TReturns, NumericEncodeRoundTripsReturns['biguint_via_arc4_uint32(uint512)uint512'] | undefined]>; /** * Calls the biguint_via_arc4_uint64(uint512)uint512 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 */ biguintViaArc4Uint64(params?: CallParams): NumericEncodeRoundTripsComposer<[...TReturns, NumericEncodeRoundTripsReturns['biguint_via_arc4_uint64(uint512)uint512'] | undefined]>; /** * Calls the biguint_via_arc4_uint128(uint512)uint512 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 */ biguintViaArc4Uint128(params?: CallParams): NumericEncodeRoundTripsComposer<[...TReturns, NumericEncodeRoundTripsReturns['biguint_via_arc4_uint128(uint512)uint512'] | undefined]>; /** * Makes a clear_state call to an existing instance of the NumericEncodeRoundTrips 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): NumericEncodeRoundTripsComposer<[...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): NumericEncodeRoundTripsComposer; /** * 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 NumericEncodeRoundTripsComposerResults = Expand;