/** * 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, 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; export type NodePoolAssignmentConfig = { nodes: [[[bigint, bigint, bigint]], [[bigint, bigint, bigint]], [[bigint, bigint, bigint]], [[bigint, bigint, bigint]], [[bigint, bigint, bigint]], [[bigint, bigint, bigint]], [[bigint, bigint, bigint]], [[bigint, bigint, bigint]]]; }; /** * Converts the ABI tuple representation of a NodePoolAssignmentConfig to the struct representation */ export declare function NodePoolAssignmentConfigFromTuple(abiTuple: [[[[bigint, bigint, bigint]], [[bigint, bigint, bigint]], [[bigint, bigint, bigint]], [[bigint, bigint, bigint]], [[bigint, bigint, bigint]], [[bigint, bigint, bigint]], [[bigint, bigint, bigint]], [[bigint, bigint, bigint]]]]): NodePoolAssignmentConfig; export type PoolInfo = { poolAppId: bigint; totalStakers: number; totalAlgoStaked: bigint; }; /** * Converts the ABI tuple representation of a PoolInfo to the struct representation */ export declare function PoolInfoFromTuple(abiTuple: [bigint, number, bigint]): PoolInfo; export type ValidatorConfig = { id: bigint; owner: string; manager: string; nfdForInfo: bigint; entryGatingType: number; entryGatingAddress: string; entryGatingAssets: [bigint, bigint, bigint, bigint]; gatingAssetMinBalance: bigint; rewardTokenId: bigint; rewardPerPayout: bigint; epochRoundLength: number; percentToValidator: number; validatorCommissionAddress: string; minEntryStake: bigint; maxAlgoPerPool: bigint; poolsPerNode: number; sunsettingOn: bigint; sunsettingTo: bigint; }; /** * Converts the ABI tuple representation of a ValidatorConfig to the struct representation */ export declare function ValidatorConfigFromTuple(abiTuple: [bigint, string, string, bigint, number, string, [bigint, bigint, bigint, bigint], bigint, bigint, bigint, number, number, string, bigint, bigint, number, bigint, bigint]): ValidatorConfig; export type ValidatorCurState = { numPools: number; totalStakers: bigint; totalAlgoStaked: bigint; rewardTokenHeldBack: bigint; }; /** * Converts the ABI tuple representation of a ValidatorCurState to the struct representation */ export declare function ValidatorCurStateFromTuple(abiTuple: [number, bigint, bigint, bigint]): ValidatorCurState; export type AllPoolInfo = { config: ValidatorConfig; state: ValidatorCurState; poolInfo: [bigint, number, bigint][]; nodeAssignment: NodePoolAssignmentConfig; }; /** * Converts the ABI tuple representation of a AllPoolInfo to the struct representation */ export declare function AllPoolInfoFromTuple(abiTuple: [[bigint, string, string, bigint, number, string, [bigint, bigint, bigint, bigint], bigint, bigint, bigint, number, number, string, bigint, bigint, number, bigint, bigint], [number, bigint, bigint, bigint], [bigint, number, bigint][], [[[[bigint, bigint, bigint]], [[bigint, bigint, bigint]], [[bigint, bigint, bigint]], [[bigint, bigint, bigint]], [[bigint, bigint, bigint]], [[bigint, bigint, bigint]], [[bigint, bigint, bigint]], [[bigint, bigint, bigint]]]]]): AllPoolInfo; export type ValidatorPoolInfo = { validatorId: bigint; poolInfo: PoolInfo; }; /** * Converts the ABI tuple representation of a ValidatorPoolInfo to the struct representation */ export declare function ValidatorPoolInfoFromTuple(abiTuple: [bigint, [bigint, number, bigint]]): ValidatorPoolInfo; /** * The argument types for the RetiReader contract */ export type RetiReaderArgs = { /** * The object representation of the arguments for each method */ obj: { 'getValidatorConfig(uint64,uint64[])(uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64)': { registryAppId: bigint | number; validatorIds: bigint[] | number[]; }; 'getValidatorStates(uint64,uint64[])(uint16,uint64,uint64,uint64)': { registryAppId: bigint | number; validatorIds: bigint[] | number[]; }; 'getPools(uint64,uint64[])(uint64,(uint64,uint16,uint64))': { registryAppId: bigint | number; validatorIds: bigint[] | number[]; }; 'getNodePoolAssignments(uint64,uint64[])((uint64[3])[8])': { registryAppId: bigint | number; validatorIds: bigint[] | number[]; }; 'getAllPoolInfo(uint64,uint64[])((uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64),(uint16,uint64,uint64,uint64),(uint64,uint16,uint64)[],((uint64[3])[8]))': { registryAppId: bigint | number; validatorIds: bigint[] | number[]; }; 'getBlockTimestamps(uint64)uint64': { num: bigint | number; }; 'getAlgodVersion(uint64[])string': { poolAppIds: bigint[] | number[]; }; }; /** * The tuple representation of the arguments for each method */ tuple: { 'getValidatorConfig(uint64,uint64[])(uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64)': [registryAppId: bigint | number, validatorIds: bigint[] | number[]]; 'getValidatorStates(uint64,uint64[])(uint16,uint64,uint64,uint64)': [registryAppId: bigint | number, validatorIds: bigint[] | number[]]; 'getPools(uint64,uint64[])(uint64,(uint64,uint16,uint64))': [registryAppId: bigint | number, validatorIds: bigint[] | number[]]; 'getNodePoolAssignments(uint64,uint64[])((uint64[3])[8])': [registryAppId: bigint | number, validatorIds: bigint[] | number[]]; 'getAllPoolInfo(uint64,uint64[])((uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64),(uint16,uint64,uint64,uint64),(uint64,uint16,uint64)[],((uint64[3])[8]))': [registryAppId: bigint | number, validatorIds: bigint[] | number[]]; 'getBlockTimestamps(uint64)uint64': [num: bigint | number]; 'getAlgodVersion(uint64[])string': [poolAppIds: bigint[] | number[]]; }; }; /** * The return type for each method */ export type RetiReaderReturns = { 'getValidatorConfig(uint64,uint64[])(uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64)': ValidatorConfig; 'getValidatorStates(uint64,uint64[])(uint16,uint64,uint64,uint64)': ValidatorCurState; 'getPools(uint64,uint64[])(uint64,(uint64,uint16,uint64))': ValidatorPoolInfo; 'getNodePoolAssignments(uint64,uint64[])((uint64[3])[8])': NodePoolAssignmentConfig; 'getAllPoolInfo(uint64,uint64[])((uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64),(uint16,uint64,uint64,uint64),(uint64,uint16,uint64)[],((uint64[3])[8]))': AllPoolInfo; 'getBlockTimestamps(uint64)uint64': bigint; 'getAlgodVersion(uint64[])string': string; }; /** * Defines the types of available calls and state of the RetiReader smart contract. */ export type RetiReaderTypes = { /** * Maps method signatures / names to their argument and return types. */ methods: Record<'getValidatorConfig(uint64,uint64[])(uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64)' | 'getValidatorConfig', { argsObj: RetiReaderArgs['obj']['getValidatorConfig(uint64,uint64[])(uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64)']; argsTuple: RetiReaderArgs['tuple']['getValidatorConfig(uint64,uint64[])(uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64)']; returns: RetiReaderReturns['getValidatorConfig(uint64,uint64[])(uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64)']; }> & Record<'getValidatorStates(uint64,uint64[])(uint16,uint64,uint64,uint64)' | 'getValidatorStates', { argsObj: RetiReaderArgs['obj']['getValidatorStates(uint64,uint64[])(uint16,uint64,uint64,uint64)']; argsTuple: RetiReaderArgs['tuple']['getValidatorStates(uint64,uint64[])(uint16,uint64,uint64,uint64)']; returns: RetiReaderReturns['getValidatorStates(uint64,uint64[])(uint16,uint64,uint64,uint64)']; }> & Record<'getPools(uint64,uint64[])(uint64,(uint64,uint16,uint64))' | 'getPools', { argsObj: RetiReaderArgs['obj']['getPools(uint64,uint64[])(uint64,(uint64,uint16,uint64))']; argsTuple: RetiReaderArgs['tuple']['getPools(uint64,uint64[])(uint64,(uint64,uint16,uint64))']; returns: RetiReaderReturns['getPools(uint64,uint64[])(uint64,(uint64,uint16,uint64))']; }> & Record<'getNodePoolAssignments(uint64,uint64[])((uint64[3])[8])' | 'getNodePoolAssignments', { argsObj: RetiReaderArgs['obj']['getNodePoolAssignments(uint64,uint64[])((uint64[3])[8])']; argsTuple: RetiReaderArgs['tuple']['getNodePoolAssignments(uint64,uint64[])((uint64[3])[8])']; returns: RetiReaderReturns['getNodePoolAssignments(uint64,uint64[])((uint64[3])[8])']; }> & Record<'getAllPoolInfo(uint64,uint64[])((uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64),(uint16,uint64,uint64,uint64),(uint64,uint16,uint64)[],((uint64[3])[8]))' | 'getAllPoolInfo', { argsObj: RetiReaderArgs['obj']['getAllPoolInfo(uint64,uint64[])((uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64),(uint16,uint64,uint64,uint64),(uint64,uint16,uint64)[],((uint64[3])[8]))']; argsTuple: RetiReaderArgs['tuple']['getAllPoolInfo(uint64,uint64[])((uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64),(uint16,uint64,uint64,uint64),(uint64,uint16,uint64)[],((uint64[3])[8]))']; returns: RetiReaderReturns['getAllPoolInfo(uint64,uint64[])((uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64),(uint16,uint64,uint64,uint64),(uint64,uint16,uint64)[],((uint64[3])[8]))']; }> & Record<'getBlockTimestamps(uint64)uint64' | 'getBlockTimestamps', { argsObj: RetiReaderArgs['obj']['getBlockTimestamps(uint64)uint64']; argsTuple: RetiReaderArgs['tuple']['getBlockTimestamps(uint64)uint64']; returns: RetiReaderReturns['getBlockTimestamps(uint64)uint64']; }> & Record<'getAlgodVersion(uint64[])string' | 'getAlgodVersion', { argsObj: RetiReaderArgs['obj']['getAlgodVersion(uint64[])string']; argsTuple: RetiReaderArgs['tuple']['getAlgodVersion(uint64[])string']; returns: RetiReaderReturns['getAlgodVersion(uint64[])string']; }>; }; /** * Defines the possible abi call signatures. */ export type RetiReaderSignatures = keyof RetiReaderTypes['methods']; /** * Defines the possible abi call signatures for methods that return a non-void value. */ export type RetiReaderNonVoidMethodSignatures = keyof RetiReaderTypes['methods'] extends infer T ? T extends keyof RetiReaderTypes['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 RetiReader smart contract to the method's arguments in either tuple or struct form */ export type MethodArgs = RetiReaderTypes['methods'][TSignature]['argsObj' | 'argsTuple']; /** * Maps a method signature from the RetiReader smart contract to the method's return type */ export type MethodReturn = RetiReaderTypes['methods'][TSignature]['returns']; /** * Defines supported create method params for this smart contract */ export type RetiReaderCreateCallParams = Expand & { method: 'getValidatorConfig'; } & { onComplete?: OnApplicationComplete.NoOpOC; } & CreateSchema> | Expand & { method: 'getValidatorConfig(uint64,uint64[])(uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64)'; } & { onComplete?: OnApplicationComplete.NoOpOC; } & CreateSchema> | Expand & { method: 'getValidatorStates'; } & { onComplete?: OnApplicationComplete.NoOpOC; } & CreateSchema> | Expand & { method: 'getValidatorStates(uint64,uint64[])(uint16,uint64,uint64,uint64)'; } & { onComplete?: OnApplicationComplete.NoOpOC; } & CreateSchema> | Expand & { method: 'getPools'; } & { onComplete?: OnApplicationComplete.NoOpOC; } & CreateSchema> | Expand & { method: 'getPools(uint64,uint64[])(uint64,(uint64,uint16,uint64))'; } & { onComplete?: OnApplicationComplete.NoOpOC; } & CreateSchema> | Expand & { method: 'getNodePoolAssignments'; } & { onComplete?: OnApplicationComplete.NoOpOC; } & CreateSchema> | Expand & { method: 'getNodePoolAssignments(uint64,uint64[])((uint64[3])[8])'; } & { onComplete?: OnApplicationComplete.NoOpOC; } & CreateSchema> | Expand & { method: 'getAllPoolInfo'; } & { onComplete?: OnApplicationComplete.NoOpOC; } & CreateSchema> | Expand & { method: 'getAllPoolInfo(uint64,uint64[])((uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64),(uint16,uint64,uint64,uint64),(uint64,uint16,uint64)[],((uint64[3])[8]))'; } & { onComplete?: OnApplicationComplete.NoOpOC; } & CreateSchema> | Expand & { method: 'getBlockTimestamps'; } & { onComplete?: OnApplicationComplete.NoOpOC; } & CreateSchema> | Expand & { method: 'getBlockTimestamps(uint64)uint64'; } & { onComplete?: OnApplicationComplete.NoOpOC; } & CreateSchema> | Expand & { method: 'getAlgodVersion'; } & { onComplete?: OnApplicationComplete.NoOpOC; } & CreateSchema> | Expand & { method: 'getAlgodVersion(uint64[])string'; } & { onComplete?: OnApplicationComplete.NoOpOC; } & CreateSchema>; /** * Defines supported update method params for this smart contract */ export type RetiReaderUpdateCallParams = Expand & { method?: never; }; /** * Defines supported delete method params for this smart contract */ export type RetiReaderDeleteCallParams = Expand & { method?: never; }; /** * Defines arguments required for the deploy method. */ export type RetiReaderDeployParams = 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?: RetiReaderCreateCallParams; /** * Update 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) */ updateParams?: RetiReaderUpdateCallParams; /** * Delete 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) */ deleteParams?: RetiReaderDeleteCallParams; }>; /** * Exposes methods for constructing `AppClient` params objects for ABI calls to the RetiReader smart contract */ export declare abstract class RetiReaderParamsFactory { /** * Gets available create ABI call param factories */ static get create(): { _resolveByMethod(params: TParams): { signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; rekeyTo?: string | Address | undefined; note?: string | Uint8Array | undefined; lease?: string | Uint8Array | undefined; staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; validityWindow?: number | bigint | undefined; firstValidRound?: bigint | undefined; lastValidRound?: bigint | undefined; onComplete?: OnApplicationComplete | undefined; accountReferences?: (string | Address)[] | undefined; appReferences?: bigint[] | undefined; assetReferences?: bigint[] | undefined; boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; rejectVersion?: number | undefined; sender?: string | Address | undefined; method: string; args?: (import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | AppMethodCallTransactionArgument | undefined)[] | undefined; } & AppClientCompilationParams & { onComplete?: OnApplicationComplete.NoOpOC | undefined; }; /** * Constructs create ABI call params for the RetiReader smart contract using the getValidatorConfig(uint64,uint64[])(uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64) ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ getValidatorConfig(params: CallParams & AppClientCompilationParams & { onComplete?: OnApplicationComplete.NoOpOC; }): AppClientMethodCallParams & AppClientCompilationParams & { onComplete?: OnApplicationComplete.NoOpOC; }; /** * Constructs create ABI call params for the RetiReader smart contract using the getValidatorStates(uint64,uint64[])(uint16,uint64,uint64,uint64) ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ getValidatorStates(params: CallParams & AppClientCompilationParams & { onComplete?: OnApplicationComplete.NoOpOC; }): AppClientMethodCallParams & AppClientCompilationParams & { onComplete?: OnApplicationComplete.NoOpOC; }; /** * Constructs create ABI call params for the RetiReader smart contract using the getPools(uint64,uint64[])(uint64,(uint64,uint16,uint64)) ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ getPools(params: CallParams & AppClientCompilationParams & { onComplete?: OnApplicationComplete.NoOpOC; }): AppClientMethodCallParams & AppClientCompilationParams & { onComplete?: OnApplicationComplete.NoOpOC; }; /** * Constructs create ABI call params for the RetiReader smart contract using the getNodePoolAssignments(uint64,uint64[])((uint64[3])[8]) ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ getNodePoolAssignments(params: CallParams & AppClientCompilationParams & { onComplete?: OnApplicationComplete.NoOpOC; }): AppClientMethodCallParams & AppClientCompilationParams & { onComplete?: OnApplicationComplete.NoOpOC; }; /** * Constructs create ABI call params for the RetiReader smart contract using the getAllPoolInfo(uint64,uint64[])((uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64),(uint16,uint64,uint64,uint64),(uint64,uint16,uint64)[],((uint64[3])[8])) ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ getAllPoolInfo(params: CallParams & AppClientCompilationParams & { onComplete?: OnApplicationComplete.NoOpOC; }): AppClientMethodCallParams & AppClientCompilationParams & { onComplete?: OnApplicationComplete.NoOpOC; }; /** * Constructs create ABI call params for the RetiReader smart contract using the getBlockTimestamps(uint64)uint64 ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ getBlockTimestamps(params: CallParams & AppClientCompilationParams & { onComplete?: OnApplicationComplete.NoOpOC; }): AppClientMethodCallParams & AppClientCompilationParams & { onComplete?: OnApplicationComplete.NoOpOC; }; /** * Constructs create ABI call params for the RetiReader smart contract using the getAlgodVersion(uint64[])string ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ getAlgodVersion(params: CallParams & AppClientCompilationParams & { onComplete?: OnApplicationComplete.NoOpOC; }): AppClientMethodCallParams & AppClientCompilationParams & { onComplete?: OnApplicationComplete.NoOpOC; }; }; /** * Constructs a no op call for the getValidatorConfig(uint64,uint64[])(uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64) ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static getValidatorConfig(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the getValidatorStates(uint64,uint64[])(uint16,uint64,uint64,uint64) ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static getValidatorStates(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the getPools(uint64,uint64[])(uint64,(uint64,uint16,uint64)) ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static getPools(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the getNodePoolAssignments(uint64,uint64[])((uint64[3])[8]) ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static getNodePoolAssignments(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the getAllPoolInfo(uint64,uint64[])((uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64),(uint16,uint64,uint64,uint64),(uint64,uint16,uint64)[],((uint64[3])[8])) ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static getAllPoolInfo(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the getBlockTimestamps(uint64)uint64 ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static getBlockTimestamps(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; /** * Constructs a no op call for the getAlgodVersion(uint64[])string ABI method * * @param params Parameters for the call * @returns An `AppClientMethodCallParams` object for the call */ static getAlgodVersion(params: CallParams & CallOnComplete): AppClientMethodCallParams & CallOnComplete; } /** * A factory to create and deploy one or more instance of the RetiReader smart contract and to create one or more app clients to interact with those (or other) app instances */ declare class RetiReaderFactory { /** * The underlying `AppFactory` for when you want to have more flexibility */ readonly appFactory: _AppFactory; /** * Creates a new instance of `RetiReaderFactory` * * @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): RetiReaderClient; /** * 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 RetiReader smart contract. * * @param params The arguments for the contract calls and any additional parameters for the call * @returns The deployment result */ deploy(params?: RetiReaderDeployParams): 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?: 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?: 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?: 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: RetiReaderClient; }>; /** * 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 RetiReader smart contract using the getValidatorConfig(uint64,uint64[])(uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64) ABI method. * * @param params The params for the smart contract call * @returns The create params */ getValidatorConfig: (params: CallParams & AppClientCompilationParams & CreateSchema & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ deployTimeParams: import("@algorandfoundation/algokit-utils/types/app").TealTemplateParams | undefined; schema: { globalInts: number; globalByteSlices: number; localInts: number; localByteSlices: number; }; approvalProgram: Uint8Array; clearStateProgram: Uint8Array; maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; note?: string | Uint8Array | undefined; signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC | 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").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; sender?: string | Address | undefined; method: string; args?: (import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | AppMethodCallTransactionArgument | undefined)[] | undefined; updatable?: boolean | undefined; deletable?: boolean | undefined; extraProgramPages?: number | undefined; } & { sender: Address; signer: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; method: import("@algorandfoundation/algokit-utils/types/app-arc56").Arc56Method; args: (import("algosdk").ABIValue | import("algosdk").TransactionWithSigner | Transaction | Promise | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<{ sender: string | Address; 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; onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC | 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").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; approvalProgram: string | Uint8Array; clearStateProgram: string | Uint8Array; schema?: { globalInts: number; globalByteSlices: number; localInts: number; localByteSlices: number; } | undefined; extraProgramPages?: number | undefined; }> | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<{ sender: string | Address; signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; rekeyTo?: string | Address | undefined; note?: string | Uint8Array | undefined; lease?: string | Uint8Array | undefined; staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; validityWindow?: number | bigint | undefined; firstValidRound?: bigint | undefined; lastValidRound?: bigint | undefined; appId: bigint; onComplete?: OnApplicationComplete.UpdateApplicationOC | undefined; args?: Uint8Array[] | undefined; accountReferences?: (string | Address)[] | undefined; appReferences?: bigint[] | undefined; assetReferences?: bigint[] | undefined; boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; rejectVersion?: number | undefined; approvalProgram: string | Uint8Array; clearStateProgram: string | Uint8Array; }> | undefined)[] | undefined; onComplete: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC; }>; /** * Creates a new instance of the RetiReader smart contract using the getValidatorStates(uint64,uint64[])(uint16,uint64,uint64,uint64) ABI method. * * @param params The params for the smart contract call * @returns The create params */ getValidatorStates: (params: CallParams & AppClientCompilationParams & CreateSchema & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ deployTimeParams: import("@algorandfoundation/algokit-utils/types/app").TealTemplateParams | undefined; schema: { globalInts: number; globalByteSlices: number; localInts: number; localByteSlices: number; }; approvalProgram: Uint8Array; clearStateProgram: Uint8Array; maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; note?: string | Uint8Array | undefined; signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC | 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").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; sender?: string | Address | undefined; method: string; args?: (import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | AppMethodCallTransactionArgument | undefined)[] | undefined; updatable?: boolean | undefined; deletable?: boolean | undefined; extraProgramPages?: number | undefined; } & { sender: Address; signer: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; method: import("@algorandfoundation/algokit-utils/types/app-arc56").Arc56Method; args: (import("algosdk").ABIValue | import("algosdk").TransactionWithSigner | Transaction | Promise | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<{ sender: string | Address; 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; onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC | 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").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; approvalProgram: string | Uint8Array; clearStateProgram: string | Uint8Array; schema?: { globalInts: number; globalByteSlices: number; localInts: number; localByteSlices: number; } | undefined; extraProgramPages?: number | undefined; }> | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<{ sender: string | Address; signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; rekeyTo?: string | Address | undefined; note?: string | Uint8Array | undefined; lease?: string | Uint8Array | undefined; staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; validityWindow?: number | bigint | undefined; firstValidRound?: bigint | undefined; lastValidRound?: bigint | undefined; appId: bigint; onComplete?: OnApplicationComplete.UpdateApplicationOC | undefined; args?: Uint8Array[] | undefined; accountReferences?: (string | Address)[] | undefined; appReferences?: bigint[] | undefined; assetReferences?: bigint[] | undefined; boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; rejectVersion?: number | undefined; approvalProgram: string | Uint8Array; clearStateProgram: string | Uint8Array; }> | undefined)[] | undefined; onComplete: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC; }>; /** * Creates a new instance of the RetiReader smart contract using the getPools(uint64,uint64[])(uint64,(uint64,uint16,uint64)) ABI method. * * @param params The params for the smart contract call * @returns The create params */ getPools: (params: CallParams & AppClientCompilationParams & CreateSchema & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ deployTimeParams: import("@algorandfoundation/algokit-utils/types/app").TealTemplateParams | undefined; schema: { globalInts: number; globalByteSlices: number; localInts: number; localByteSlices: number; }; approvalProgram: Uint8Array; clearStateProgram: Uint8Array; maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; note?: string | Uint8Array | undefined; signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC | 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").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; sender?: string | Address | undefined; method: string; args?: (import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | AppMethodCallTransactionArgument | undefined)[] | undefined; updatable?: boolean | undefined; deletable?: boolean | undefined; extraProgramPages?: number | undefined; } & { sender: Address; signer: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; method: import("@algorandfoundation/algokit-utils/types/app-arc56").Arc56Method; args: (import("algosdk").ABIValue | import("algosdk").TransactionWithSigner | Transaction | Promise | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<{ sender: string | Address; 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; onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC | 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").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; approvalProgram: string | Uint8Array; clearStateProgram: string | Uint8Array; schema?: { globalInts: number; globalByteSlices: number; localInts: number; localByteSlices: number; } | undefined; extraProgramPages?: number | undefined; }> | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<{ sender: string | Address; signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; rekeyTo?: string | Address | undefined; note?: string | Uint8Array | undefined; lease?: string | Uint8Array | undefined; staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; validityWindow?: number | bigint | undefined; firstValidRound?: bigint | undefined; lastValidRound?: bigint | undefined; appId: bigint; onComplete?: OnApplicationComplete.UpdateApplicationOC | undefined; args?: Uint8Array[] | undefined; accountReferences?: (string | Address)[] | undefined; appReferences?: bigint[] | undefined; assetReferences?: bigint[] | undefined; boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; rejectVersion?: number | undefined; approvalProgram: string | Uint8Array; clearStateProgram: string | Uint8Array; }> | undefined)[] | undefined; onComplete: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC; }>; /** * Creates a new instance of the RetiReader smart contract using the getNodePoolAssignments(uint64,uint64[])((uint64[3])[8]) ABI method. * * @param params The params for the smart contract call * @returns The create params */ getNodePoolAssignments: (params: CallParams & AppClientCompilationParams & CreateSchema & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ deployTimeParams: import("@algorandfoundation/algokit-utils/types/app").TealTemplateParams | undefined; schema: { globalInts: number; globalByteSlices: number; localInts: number; localByteSlices: number; }; approvalProgram: Uint8Array; clearStateProgram: Uint8Array; maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; note?: string | Uint8Array | undefined; signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC | 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").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; sender?: string | Address | undefined; method: string; args?: (import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | AppMethodCallTransactionArgument | undefined)[] | undefined; updatable?: boolean | undefined; deletable?: boolean | undefined; extraProgramPages?: number | undefined; } & { sender: Address; signer: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; method: import("@algorandfoundation/algokit-utils/types/app-arc56").Arc56Method; args: (import("algosdk").ABIValue | import("algosdk").TransactionWithSigner | Transaction | Promise | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<{ sender: string | Address; 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; onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC | 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").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; approvalProgram: string | Uint8Array; clearStateProgram: string | Uint8Array; schema?: { globalInts: number; globalByteSlices: number; localInts: number; localByteSlices: number; } | undefined; extraProgramPages?: number | undefined; }> | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<{ sender: string | Address; signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; rekeyTo?: string | Address | undefined; note?: string | Uint8Array | undefined; lease?: string | Uint8Array | undefined; staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; validityWindow?: number | bigint | undefined; firstValidRound?: bigint | undefined; lastValidRound?: bigint | undefined; appId: bigint; onComplete?: OnApplicationComplete.UpdateApplicationOC | undefined; args?: Uint8Array[] | undefined; accountReferences?: (string | Address)[] | undefined; appReferences?: bigint[] | undefined; assetReferences?: bigint[] | undefined; boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; rejectVersion?: number | undefined; approvalProgram: string | Uint8Array; clearStateProgram: string | Uint8Array; }> | undefined)[] | undefined; onComplete: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC; }>; /** * Creates a new instance of the RetiReader smart contract using the getAllPoolInfo(uint64,uint64[])((uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64),(uint16,uint64,uint64,uint64),(uint64,uint16,uint64)[],((uint64[3])[8])) ABI method. * * @param params The params for the smart contract call * @returns The create params */ getAllPoolInfo: (params: CallParams & AppClientCompilationParams & CreateSchema & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ deployTimeParams: import("@algorandfoundation/algokit-utils/types/app").TealTemplateParams | undefined; schema: { globalInts: number; globalByteSlices: number; localInts: number; localByteSlices: number; }; approvalProgram: Uint8Array; clearStateProgram: Uint8Array; maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; note?: string | Uint8Array | undefined; signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC | 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").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; sender?: string | Address | undefined; method: string; args?: (import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | AppMethodCallTransactionArgument | undefined)[] | undefined; updatable?: boolean | undefined; deletable?: boolean | undefined; extraProgramPages?: number | undefined; } & { sender: Address; signer: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; method: import("@algorandfoundation/algokit-utils/types/app-arc56").Arc56Method; args: (import("algosdk").ABIValue | import("algosdk").TransactionWithSigner | Transaction | Promise | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<{ sender: string | Address; 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; onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC | 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").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; approvalProgram: string | Uint8Array; clearStateProgram: string | Uint8Array; schema?: { globalInts: number; globalByteSlices: number; localInts: number; localByteSlices: number; } | undefined; extraProgramPages?: number | undefined; }> | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<{ sender: string | Address; signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; rekeyTo?: string | Address | undefined; note?: string | Uint8Array | undefined; lease?: string | Uint8Array | undefined; staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; validityWindow?: number | bigint | undefined; firstValidRound?: bigint | undefined; lastValidRound?: bigint | undefined; appId: bigint; onComplete?: OnApplicationComplete.UpdateApplicationOC | undefined; args?: Uint8Array[] | undefined; accountReferences?: (string | Address)[] | undefined; appReferences?: bigint[] | undefined; assetReferences?: bigint[] | undefined; boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; rejectVersion?: number | undefined; approvalProgram: string | Uint8Array; clearStateProgram: string | Uint8Array; }> | undefined)[] | undefined; onComplete: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC; }>; /** * Creates a new instance of the RetiReader smart contract using the getBlockTimestamps(uint64)uint64 ABI method. * * @param params The params for the smart contract call * @returns The create params */ getBlockTimestamps: (params: CallParams & AppClientCompilationParams & CreateSchema & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ deployTimeParams: import("@algorandfoundation/algokit-utils/types/app").TealTemplateParams | undefined; schema: { globalInts: number; globalByteSlices: number; localInts: number; localByteSlices: number; }; approvalProgram: Uint8Array; clearStateProgram: Uint8Array; maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; note?: string | Uint8Array | undefined; signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC | 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").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; sender?: string | Address | undefined; method: string; args?: (import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | AppMethodCallTransactionArgument | undefined)[] | undefined; updatable?: boolean | undefined; deletable?: boolean | undefined; extraProgramPages?: number | undefined; } & { sender: Address; signer: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; method: import("@algorandfoundation/algokit-utils/types/app-arc56").Arc56Method; args: (import("algosdk").ABIValue | import("algosdk").TransactionWithSigner | Transaction | Promise | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<{ sender: string | Address; 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; onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC | 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").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; approvalProgram: string | Uint8Array; clearStateProgram: string | Uint8Array; schema?: { globalInts: number; globalByteSlices: number; localInts: number; localByteSlices: number; } | undefined; extraProgramPages?: number | undefined; }> | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<{ sender: string | Address; signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; rekeyTo?: string | Address | undefined; note?: string | Uint8Array | undefined; lease?: string | Uint8Array | undefined; staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; validityWindow?: number | bigint | undefined; firstValidRound?: bigint | undefined; lastValidRound?: bigint | undefined; appId: bigint; onComplete?: OnApplicationComplete.UpdateApplicationOC | undefined; args?: Uint8Array[] | undefined; accountReferences?: (string | Address)[] | undefined; appReferences?: bigint[] | undefined; assetReferences?: bigint[] | undefined; boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; rejectVersion?: number | undefined; approvalProgram: string | Uint8Array; clearStateProgram: string | Uint8Array; }> | undefined)[] | undefined; onComplete: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC; }>; /** * Creates a new instance of the RetiReader smart contract using the getAlgodVersion(uint64[])string ABI method. * * @param params The params for the smart contract call * @returns The create params */ getAlgodVersion: (params: CallParams & AppClientCompilationParams & CreateSchema & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ deployTimeParams: import("@algorandfoundation/algokit-utils/types/app").TealTemplateParams | undefined; schema: { globalInts: number; globalByteSlices: number; localInts: number; localByteSlices: number; }; approvalProgram: Uint8Array; clearStateProgram: Uint8Array; maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; note?: string | Uint8Array | undefined; signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC | 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").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; sender?: string | Address | undefined; method: string; args?: (import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | AppMethodCallTransactionArgument | undefined)[] | undefined; updatable?: boolean | undefined; deletable?: boolean | undefined; extraProgramPages?: number | undefined; } & { sender: Address; signer: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; method: import("@algorandfoundation/algokit-utils/types/app-arc56").Arc56Method; args: (import("algosdk").ABIValue | import("algosdk").TransactionWithSigner | Transaction | Promise | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<{ sender: string | Address; 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; onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC | 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").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; approvalProgram: string | Uint8Array; clearStateProgram: string | Uint8Array; schema?: { globalInts: number; globalByteSlices: number; localInts: number; localByteSlices: number; } | undefined; extraProgramPages?: number | undefined; }> | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<{ sender: string | Address; signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; rekeyTo?: string | Address | undefined; note?: string | Uint8Array | undefined; lease?: string | Uint8Array | undefined; staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; validityWindow?: number | bigint | undefined; firstValidRound?: bigint | undefined; lastValidRound?: bigint | undefined; appId: bigint; onComplete?: OnApplicationComplete.UpdateApplicationOC | undefined; args?: Uint8Array[] | undefined; accountReferences?: (string | Address)[] | undefined; appReferences?: bigint[] | undefined; assetReferences?: bigint[] | undefined; boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; rejectVersion?: number | undefined; approvalProgram: string | Uint8Array; clearStateProgram: string | Uint8Array; }> | undefined)[] | undefined; onComplete: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC; }>; }; /** * Gets available deployUpdate methods */ deployUpdate: { /** * Updates an existing instance of the RetiReader smart contract using a bare call. * * @param params The params for the bare (raw) call * @returns The params for a deployUpdate call */ bare: (params?: Expand) => { 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").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; sender?: string | Address | undefined; } & { sender: Address; signer: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; onComplete: OnApplicationComplete.UpdateApplicationOC; }; }; /** * Gets available deployDelete methods */ deployDelete: { /** * Deletes an existing instance of the RetiReader smart contract using a bare call. * * @param params The params for the bare (raw) call * @returns The params for a deployDelete call */ bare: (params?: Expand) => { 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; /** * Converts the ABI tuple representation of a NodePoolAssignmentConfig to the struct representation */ 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").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; sender?: string | Address | undefined; } & { sender: Address; signer: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; onComplete: OnApplicationComplete.DeleteApplicationOC; }; }; }; /** * Create transactions for the current app */ readonly createTransaction: { /** * Gets available create methods */ create: { /** * Creates a new instance of the RetiReader smart contract using the getValidatorConfig(uint64,uint64[])(uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64) ABI method. * * @param params The params for the smart contract call * @returns The create transaction */ getValidatorConfig: (params: CallParams & AppClientCompilationParams & CreateSchema & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Creates a new instance of the RetiReader smart contract using the getValidatorStates(uint64,uint64[])(uint16,uint64,uint64,uint64) ABI method. * * @param params The params for the smart contract call * @returns The create transaction */ getValidatorStates: (params: CallParams & AppClientCompilationParams & CreateSchema & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Creates a new instance of the RetiReader smart contract using the getPools(uint64,uint64[])(uint64,(uint64,uint16,uint64)) ABI method. * * @param params The params for the smart contract call * @returns The create transaction */ getPools: (params: CallParams & AppClientCompilationParams & CreateSchema & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Creates a new instance of the RetiReader smart contract using the getNodePoolAssignments(uint64,uint64[])((uint64[3])[8]) ABI method. * * @param params The params for the smart contract call * @returns The create transaction */ getNodePoolAssignments: (params: CallParams & AppClientCompilationParams & CreateSchema & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Creates a new instance of the RetiReader smart contract using the getAllPoolInfo(uint64,uint64[])((uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64),(uint16,uint64,uint64,uint64),(uint64,uint16,uint64)[],((uint64[3])[8])) ABI method. * * @param params The params for the smart contract call * @returns The create transaction */ getAllPoolInfo: (params: CallParams & AppClientCompilationParams & CreateSchema & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Creates a new instance of the RetiReader smart contract using the getBlockTimestamps(uint64)uint64 ABI method. * * @param params The params for the smart contract call * @returns The create transaction */ getBlockTimestamps: (params: CallParams & AppClientCompilationParams & CreateSchema & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Creates a new instance of the RetiReader smart contract using the getAlgodVersion(uint64[])string ABI method. * * @param params The params for the smart contract call * @returns The create transaction */ getAlgodVersion: (params: CallParams & AppClientCompilationParams & CreateSchema & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; }; }; /** * Send calls to the current app */ readonly send: { /** * Gets available create methods */ create: { /** * Creates a new instance of the RetiReader smart contract using an ABI method call using the getValidatorConfig(uint64,uint64[])(uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64) ABI method. * * @param params The params for the smart contract call * @returns The create result */ getValidatorConfig: (params: CallParams & AppClientCompilationParams & CreateSchema & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ result: { return: ValidatorConfig | undefined; compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; appId: bigint; groupId: string; txIds: string[]; returns?: ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; appAddress: Address; }; appClient: RetiReaderClient; }>; /** * Creates a new instance of the RetiReader smart contract using an ABI method call using the getValidatorStates(uint64,uint64[])(uint16,uint64,uint64,uint64) ABI method. * * @param params The params for the smart contract call * @returns The create result */ getValidatorStates: (params: CallParams & AppClientCompilationParams & CreateSchema & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ result: { return: ValidatorCurState | undefined; compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; appId: bigint; groupId: string; txIds: string[]; returns?: ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; appAddress: Address; }; appClient: RetiReaderClient; }>; /** * Creates a new instance of the RetiReader smart contract using an ABI method call using the getPools(uint64,uint64[])(uint64,(uint64,uint16,uint64)) ABI method. * * @param params The params for the smart contract call * @returns The create result */ getPools: (params: CallParams & AppClientCompilationParams & CreateSchema & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ result: { return: ValidatorPoolInfo | undefined; compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; appId: bigint; groupId: string; txIds: string[]; returns?: ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; appAddress: Address; }; appClient: RetiReaderClient; }>; /** * Creates a new instance of the RetiReader smart contract using an ABI method call using the getNodePoolAssignments(uint64,uint64[])((uint64[3])[8]) ABI method. * * @param params The params for the smart contract call * @returns The create result */ getNodePoolAssignments: (params: CallParams & AppClientCompilationParams & CreateSchema & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ result: { return: NodePoolAssignmentConfig | undefined; compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; appId: bigint; groupId: string; txIds: string[]; returns?: ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; appAddress: Address; }; appClient: RetiReaderClient; }>; /** * Creates a new instance of the RetiReader smart contract using an ABI method call using the getAllPoolInfo(uint64,uint64[])((uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64),(uint16,uint64,uint64,uint64),(uint64,uint16,uint64)[],((uint64[3])[8])) ABI method. * * @param params The params for the smart contract call * @returns The create result */ getAllPoolInfo: (params: CallParams & AppClientCompilationParams & CreateSchema & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ result: { return: AllPoolInfo | undefined; compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; appId: bigint; groupId: string; txIds: string[]; returns?: ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; appAddress: Address; }; appClient: RetiReaderClient; }>; /** * Creates a new instance of the RetiReader smart contract using an ABI method call using the getBlockTimestamps(uint64)uint64 ABI method. * * @param params The params for the smart contract call * @returns The create result */ getBlockTimestamps: (params: CallParams & AppClientCompilationParams & CreateSchema & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ result: { return: bigint | undefined; compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; appId: bigint; groupId: string; txIds: string[]; returns?: ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; appAddress: Address; }; appClient: RetiReaderClient; }>; /** * Creates a new instance of the RetiReader smart contract using an ABI method call using the getAlgodVersion(uint64[])string ABI method. * * @param params The params for the smart contract call * @returns The create result */ getAlgodVersion: (params: CallParams & AppClientCompilationParams & CreateSchema & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ result: { return: string | undefined; compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; appId: bigint; groupId: string; txIds: string[]; returns?: ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; appAddress: Address; }; appClient: RetiReaderClient; }>; }; }; } /** * A client to make calls to the RetiReader smart contract */ declare class RetiReaderClient { /** * The underlying `AppClient` for when you want to have more flexibility */ readonly appClient: _AppClient; /** * Creates a new instance of `RetiReaderClient` * * @param appClient An `AppClient` instance which has been created with the RetiReader app spec */ constructor(appClient: _AppClient); /** * Creates a new instance of `RetiReaderClient` * * @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 | undefined; /** * Returns a new `RetiReaderClient` 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 `RetiReaderClient` 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: { /** * Gets available update methods */ update: { /** * Updates an existing instance of the RetiReader smart contract using a bare call. * * @param params The params for the bare (raw) call * @returns The update result */ bare: (params?: Expand) => Promise<{ sender: string | Address; signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined; rekeyTo?: string | Address | undefined; note?: string | Uint8Array | undefined; lease?: string | Uint8Array | undefined; staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined; validityWindow?: number | bigint | undefined; firstValidRound?: bigint | undefined; lastValidRound?: bigint | undefined; appId: bigint; onComplete?: OnApplicationComplete.UpdateApplicationOC | undefined; args?: Uint8Array[] | undefined; accountReferences?: (string | Address)[] | undefined; appReferences?: bigint[] | undefined; assetReferences?: bigint[] | undefined; boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined; accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined; rejectVersion?: number | undefined; approvalProgram: string | Uint8Array; clearStateProgram: string | Uint8Array; }>; }; /** * Gets available delete methods */ delete: { /** * Deletes an existing instance of the RetiReader smart contract using a bare call. * * @param params The params for the bare (raw) call * @returns The delete result */ bare: (params?: Expand) => import("@algorandfoundation/algokit-utils/types/composer").AppDeleteParams; }; /** * Makes a clear_state call to an existing instance of the RetiReader 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 RetiReader smart contract using the `getValidatorConfig(uint64,uint64[])(uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64)` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call params */ getValidatorConfig: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the RetiReader smart contract using the `getValidatorStates(uint64,uint64[])(uint16,uint64,uint64,uint64)` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call params */ getValidatorStates: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the RetiReader smart contract using the `getPools(uint64,uint64[])(uint64,(uint64,uint16,uint64))` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call params */ getPools: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the RetiReader smart contract using the `getNodePoolAssignments(uint64,uint64[])((uint64[3])[8])` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call params */ getNodePoolAssignments: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the RetiReader smart contract using the `getAllPoolInfo(uint64,uint64[])((uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64),(uint16,uint64,uint64,uint64),(uint64,uint16,uint64)[],((uint64[3])[8]))` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call params */ getAllPoolInfo: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the RetiReader smart contract using the `getBlockTimestamps(uint64)uint64` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call params */ getBlockTimestamps: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; /** * Makes a call to the RetiReader smart contract using the `getAlgodVersion(uint64[])string` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call params */ getAlgodVersion: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise; }; /** * Create transactions for the current app */ readonly createTransaction: { /** * Gets available update methods */ update: { /** * Updates an existing instance of the RetiReader smart contract using a bare call. * * @param params The params for the bare (raw) call * @returns The update result */ bare: (params?: Expand) => Promise; }; /** * Gets available delete methods */ delete: { /** * Deletes an existing instance of the RetiReader smart contract using a bare call. * * @param params The params for the bare (raw) call * @returns The delete result */ bare: (params?: Expand) => Promise; }; /** * Makes a clear_state call to an existing instance of the RetiReader smart contract. * * @param params The params for the bare (raw) call * @returns The clearState result */ clearState: (params?: Expand) => Promise; /** * Makes a call to the RetiReader smart contract using the `getValidatorConfig(uint64,uint64[])(uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64)` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call transaction */ getValidatorConfig: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the RetiReader smart contract using the `getValidatorStates(uint64,uint64[])(uint16,uint64,uint64,uint64)` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call transaction */ getValidatorStates: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the RetiReader smart contract using the `getPools(uint64,uint64[])(uint64,(uint64,uint16,uint64))` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call transaction */ getPools: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the RetiReader smart contract using the `getNodePoolAssignments(uint64,uint64[])((uint64[3])[8])` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call transaction */ getNodePoolAssignments: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the RetiReader smart contract using the `getAllPoolInfo(uint64,uint64[])((uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64),(uint16,uint64,uint64,uint64),(uint64,uint16,uint64)[],((uint64[3])[8]))` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call transaction */ getAllPoolInfo: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the RetiReader smart contract using the `getBlockTimestamps(uint64)uint64` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call transaction */ getBlockTimestamps: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; /** * Makes a call to the RetiReader smart contract using the `getAlgodVersion(uint64[])string` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call transaction */ getAlgodVersion: (params: CallParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ transactions: Transaction[]; methodCalls: Map; signers: Map; }>; }; /** * Send calls to the current app */ readonly send: { /** * Gets available update methods */ update: { /** * Updates an existing instance of the RetiReader smart contract using a bare call. * * @param params The params for the bare (raw) call * @returns The update result */ bare: (params?: Expand) => Promise<{ compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined; groupId: string; txIds: string[]; returns?: ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; return?: ABIReturn | undefined; }>; }; /** * Gets available delete methods */ delete: { /** * Deletes an existing instance of the RetiReader smart contract using a bare call. * * @param params The params for the bare (raw) call * @returns The delete result */ bare: (params?: Expand) => Promise<{ groupId: string; txIds: string[]; returns?: ABIReturn[] | undefined; confirmations: modelsv2.PendingTransactionResponse[]; /** * Creates a new instance of the RetiReader smart contract using the getPools(uint64,uint64[])(uint64,(uint64,uint16,uint64)) ABI method. * * @param params The params for the smart contract call * @returns The create params */ transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; return?: ABIReturn | undefined; }>; }; /** * Makes a clear_state call to an existing instance of the RetiReader 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 RetiReader smart contract using the `getValidatorConfig(uint64,uint64[])(uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64)` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call result */ getValidatorConfig: (params: CallParams & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ return: ValidatorConfig | undefined; returns?: ABIReturn[] | undefined; groupId: string; txIds: string[]; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; }>; /** * Makes a call to the RetiReader smart contract using the `getValidatorStates(uint64,uint64[])(uint16,uint64,uint64,uint64)` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call result */ getValidatorStates: (params: CallParams & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ return: ValidatorCurState | undefined; returns?: ABIReturn[] | undefined; groupId: string; txIds: string[]; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; }>; /** * Makes a call to the RetiReader smart contract using the `getPools(uint64,uint64[])(uint64,(uint64,uint16,uint64))` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call result */ getPools: (params: CallParams & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ return: ValidatorPoolInfo | undefined; returns?: ABIReturn[] | undefined; groupId: string; txIds: string[]; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; }>; /** * Makes a call to the RetiReader smart contract using the `getNodePoolAssignments(uint64,uint64[])((uint64[3])[8])` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call result */ getNodePoolAssignments: (params: CallParams & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ return: NodePoolAssignmentConfig | undefined; returns?: ABIReturn[] | undefined; groupId: string; txIds: string[]; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; }>; /** * Makes a call to the RetiReader smart contract using the `getAllPoolInfo(uint64,uint64[])((uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64),(uint16,uint64,uint64,uint64),(uint64,uint16,uint64)[],((uint64[3])[8]))` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call result */ getAllPoolInfo: (params: CallParams & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ return: AllPoolInfo | undefined; returns?: ABIReturn[] | undefined; groupId: string; txIds: string[]; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; }>; /** * Makes a call to the RetiReader smart contract using the `getBlockTimestamps(uint64)uint64` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call result */ getBlockTimestamps: (params: CallParams & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ return: bigint | undefined; returns?: ABIReturn[] | undefined; groupId: string; txIds: string[]; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; }>; /** * Makes a call to the RetiReader smart contract using the `getAlgodVersion(uint64[])string` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call result */ getAlgodVersion: (params: CallParams & SendParams & { onComplete?: OnApplicationComplete.NoOpOC; }) => Promise<{ return: string | undefined; returns?: ABIReturn[] | undefined; groupId: string; txIds: string[]; confirmations: modelsv2.PendingTransactionResponse[]; transactions: Transaction[]; confirmation: modelsv2.PendingTransactionResponse; transaction: Transaction; }>; }; /** * 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): RetiReaderClient; /** * Makes a readonly (simulated) call to the RetiReader smart contract using the `getValidatorConfig(uint64,uint64[])(uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64)` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call result */ getValidatorConfig(params: CallParams): Promise; /** * Makes a readonly (simulated) call to the RetiReader smart contract using the `getValidatorStates(uint64,uint64[])(uint16,uint64,uint64,uint64)` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call result */ getValidatorStates(params: CallParams): Promise; /** * Makes a readonly (simulated) call to the RetiReader smart contract using the `getPools(uint64,uint64[])(uint64,(uint64,uint16,uint64))` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call result */ getPools(params: CallParams): Promise; /** * Makes a readonly (simulated) call to the RetiReader smart contract using the `getNodePoolAssignments(uint64,uint64[])((uint64[3])[8])` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call result */ getNodePoolAssignments(params: CallParams): Promise; /** * Makes a readonly (simulated) call to the RetiReader smart contract using the `getAllPoolInfo(uint64,uint64[])((uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64),(uint16,uint64,uint64,uint64),(uint64,uint16,uint64)[],((uint64[3])[8]))` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call result */ getAllPoolInfo(params: CallParams): Promise; /** * Makes a readonly (simulated) call to the RetiReader smart contract using the `getBlockTimestamps(uint64)uint64` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call result */ getBlockTimestamps(params: CallParams): Promise; /** * Makes a readonly (simulated) call to the RetiReader smart contract using the `getAlgodVersion(uint64[])string` ABI method. * * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction. * * @param params The params for the smart contract call * @returns The call result */ getAlgodVersion(params: CallParams): Promise; /** * Methods to access state for the current RetiReader app */ state: {}; newGroup(): RetiReaderComposer; } export type RetiReaderComposer = { /** * Calls the getValidatorConfig(uint64,uint64[])(uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,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 */ getValidatorConfig(params?: CallParams): RetiReaderComposer<[...TReturns, RetiReaderReturns['getValidatorConfig(uint64,uint64[])(uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64)'] | undefined]>; /** * Calls the getValidatorStates(uint64,uint64[])(uint16,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 */ getValidatorStates(params?: CallParams): RetiReaderComposer<[...TReturns, RetiReaderReturns['getValidatorStates(uint64,uint64[])(uint16,uint64,uint64,uint64)'] | undefined]>; /** * Calls the getPools(uint64,uint64[])(uint64,(uint64,uint16,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 */ getPools(params?: CallParams): RetiReaderComposer<[...TReturns, RetiReaderReturns['getPools(uint64,uint64[])(uint64,(uint64,uint16,uint64))'] | undefined]>; /** * Calls the getNodePoolAssignments(uint64,uint64[])((uint64[3])[8]) 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 */ getNodePoolAssignments(params?: CallParams): RetiReaderComposer<[...TReturns, RetiReaderReturns['getNodePoolAssignments(uint64,uint64[])((uint64[3])[8])'] | undefined]>; /** * Calls the getAllPoolInfo(uint64,uint64[])((uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64),(uint16,uint64,uint64,uint64),(uint64,uint16,uint64)[],((uint64[3])[8])) 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 */ getAllPoolInfo(params?: CallParams): RetiReaderComposer<[...TReturns, RetiReaderReturns['getAllPoolInfo(uint64,uint64[])((uint64,address,address,uint64,uint8,address,uint64[4],uint64,uint64,uint64,uint32,uint32,address,uint64,uint64,uint8,uint64,uint64),(uint16,uint64,uint64,uint64),(uint64,uint16,uint64)[],((uint64[3])[8]))'] | undefined]>; /** * Calls the getBlockTimestamps(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 */ getBlockTimestamps(params?: CallParams): RetiReaderComposer<[...TReturns, RetiReaderReturns['getBlockTimestamps(uint64)uint64'] | undefined]>; /** * Calls the getAlgodVersion(uint64[])string ABI method. * * @param args The arguments for the contract call * @param params Any additional parameters for the call * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions */ getAlgodVersion(params?: CallParams): RetiReaderComposer<[...TReturns, RetiReaderReturns['getAlgodVersion(uint64[])string'] | undefined]>; /** * Gets available update methods */ readonly update: { /** * Updates an existing instance of the RetiReader smart contract using a bare call. * * @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 */ bare(params?: AppClientBareCallParams): RetiReaderComposer<[...TReturns, undefined]>; }; /** * Gets available delete methods */ readonly delete: { /** * Deletes an existing instance of the RetiReader smart contract using a bare call. * * @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 */ bare(params?: AppClientBareCallParams): RetiReaderComposer<[...TReturns, undefined]>; }; /** * Makes a clear_state call to an existing instance of the RetiReader 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): RetiReaderComposer<[...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): RetiReaderComposer; /** * 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 RetiReaderComposerResults = Expand; import { CommonAppCallParams } from '@algorandfoundation/algokit-utils/types/composer'; type ExtraMethodCallArgs = Omit; type Methods = RetiReaderTypes['methods']; declare class GhostBase { static factory: typeof RetiReaderFactory; static client: typeof RetiReaderClient; algorand: AlgorandClient; readerAccount: string; ghostAppId?: bigint; factory: RetiReaderFactory; protected client: RetiReaderClient; cacheParamsTimeout: number; constructor({ algorand, readerAccount, ghostAppId, }: { algorand: AlgorandClient; readerAccount?: string; ghostAppId?: bigint; }); protected getAndCacheSuggestedParams(): Promise; protected execute({ signature, txnBuilder, methodArgsOrArgsArray, extraMethodCallArgs, extraSimulateArgs, }: { signature: string; txnBuilder: (builder: RetiReaderComposer, args: any) => RetiReaderComposer; methodArgsOrArgsArray: any; extraMethodCallArgs?: ExtraMethodCallArgs | ExtraMethodCallArgs[]; extraSimulateArgs?: RawSimulateOptions; }): Promise; } export declare class RetiReaderSDK extends GhostBase { constructor(args: ConstructorParameters[0]); getValidatorConfig({ methodArgsOrArgsArray, extraMethodCallArgs, extraSimulateArgs, }: { methodArgsOrArgsArray: Methods['getValidatorConfig']['argsObj'] | Methods['getValidatorConfig']['argsObj'][]; extraMethodCallArgs?: ExtraMethodCallArgs; extraSimulateArgs?: RawSimulateOptions; }): Promise; getValidatorStates({ methodArgsOrArgsArray, extraMethodCallArgs, extraSimulateArgs, }: { methodArgsOrArgsArray: Methods['getValidatorStates']['argsObj'] | Methods['getValidatorStates']['argsObj'][]; extraMethodCallArgs?: ExtraMethodCallArgs; extraSimulateArgs?: RawSimulateOptions; }): Promise; getPools({ methodArgsOrArgsArray, extraMethodCallArgs, extraSimulateArgs, }: { methodArgsOrArgsArray: Methods['getPools']['argsObj'] | Methods['getPools']['argsObj'][]; extraMethodCallArgs?: ExtraMethodCallArgs; extraSimulateArgs?: RawSimulateOptions; }): Promise; getNodePoolAssignments({ methodArgsOrArgsArray, extraMethodCallArgs, extraSimulateArgs, }: { methodArgsOrArgsArray: Methods['getNodePoolAssignments']['argsObj'] | Methods['getNodePoolAssignments']['argsObj'][]; extraMethodCallArgs?: ExtraMethodCallArgs; extraSimulateArgs?: RawSimulateOptions; }): Promise; getAllPoolInfo({ methodArgsOrArgsArray, extraMethodCallArgs, extraSimulateArgs, }: { methodArgsOrArgsArray: Methods['getAllPoolInfo']['argsObj'] | Methods['getAllPoolInfo']['argsObj'][]; extraMethodCallArgs?: ExtraMethodCallArgs; extraSimulateArgs?: RawSimulateOptions; }): Promise; getBlockTimestamps({ methodArgsOrArgsArray, extraMethodCallArgs, extraSimulateArgs, }: { methodArgsOrArgsArray: Methods['getBlockTimestamps']['argsObj'] | Methods['getBlockTimestamps']['argsObj'][]; extraMethodCallArgs?: ExtraMethodCallArgs; extraSimulateArgs?: RawSimulateOptions; }): Promise; getAlgodVersion({ methodArgsOrArgsArray, extraMethodCallArgs, extraSimulateArgs, }: { methodArgsOrArgsArray: Methods['getAlgodVersion']['argsObj'] | Methods['getAlgodVersion']['argsObj'][]; extraMethodCallArgs?: ExtraMethodCallArgs | ExtraMethodCallArgs[]; extraSimulateArgs?: RawSimulateOptions; }): Promise; } export {};