/** * This file is auto generated. * Do not edit manually. */ import type { MoneyAccountApiDataService } from './money-account-api-data-service.js'; /** * Fetches the current vault positions for a given user address. * * @param address - The user's Ethereum address. * @param options - Optional fetch options. * @param options.fresh - When true, cancels in-flight reads, fetches with a * zero stale time, invalidates the result for subsequent reads, and asks the * Money API to skip its Nest response cache with `Cache-Control: no-cache`. * @returns The position response containing vault positions and an optional * `balance` summary (`null` when the API balance path is unavailable). */ export type MoneyAccountApiDataServiceFetchPositionsAction = { type: `MoneyAccountApiDataService:fetchPositions`; handler: MoneyAccountApiDataService['fetchPositions']; }; /** * Fetches the interest earned for a given address and vault over a * specified time window. * * @param address - The user's Ethereum address. * @param options - Options specifying vault, window, and optional chain ID. * @returns The interest response. */ export type MoneyAccountApiDataServiceFetchInterestAction = { type: `MoneyAccountApiDataService:fetchInterest`; handler: MoneyAccountApiDataService['fetchInterest']; }; /** * Fetches cursor-paginated cash-flow history for a given address. * Uses `fetchInfiniteQuery` for proper TanStack Query pagination semantics. * * When paginating, consumers must re-pass the same filter options * (`vaultAddress`, `chainId`, `limit`) alongside `cursor` on every page * request. This ensures the query key matches the original infinite query * and that the HTTP request includes the correct filters. * * @param address - The user's Ethereum address. * @param options - Optional filtering and pagination options. * @returns The history response containing cash-flow entries for the requested page. */ export type MoneyAccountApiDataServiceFetchHistoryAction = { type: `MoneyAccountApiDataService:fetchHistory`; handler: MoneyAccountApiDataService['fetchHistory']; }; /** * Fetches the exchange-rate time series for a given vault. * * @param vaultAddress - The vault's Ethereum address. * @param options - Optional range and chain ID filters. * @returns The rate history response. */ export type MoneyAccountApiDataServiceFetchRateHistoryAction = { type: `MoneyAccountApiDataService:fetchRateHistory`; handler: MoneyAccountApiDataService['fetchRateHistory']; }; /** * Fetches the current Accountant exchange rate for a vault. * * The server returns 404 when the vault is not in the deployment registry * or has no indexed rate yet. * * @param vaultAddress - The vault's Ethereum address. * @param options - Optional chain ID filter. Omitted requests use the API default. * @returns The current vault rate response. */ export type MoneyAccountApiDataServiceFetchVaultRateAction = { type: `MoneyAccountApiDataService:fetchVaultRate`; handler: MoneyAccountApiDataService['fetchVaultRate']; }; /** * Fetches the environment's vault catalog, including each vault's current * APY. * * @returns The vault catalog response. */ export type MoneyAccountApiDataServiceFetchVaultsAction = { type: `MoneyAccountApiDataService:fetchVaults`; handler: MoneyAccountApiDataService['fetchVaults']; }; /** * Batch-values vault share movements in past transactions. Each result * reports the shares moved and what they were worth in the vault's * underlying asset at that block. Unknown transactions come back with * `found: false` instead of failing the batch. * * @param address - The user's Ethereum address. * @param options - Transaction hashes to value and an optional chain ID. * @param options.txHashes - Transaction hashes. At most 50 distinct hashes * after lowercasing and de-duplication. * @param options.chainId - Chain ID of the transactions. Omitted requests use * the API default (Monad, 143). * @returns One result per requested hash, in request order. * @throws An `Error` before any request when `txHashes` is empty or contains * more than 50 distinct hashes. */ export type MoneyAccountApiDataServiceFetchVaultShareValuationsAction = { type: `MoneyAccountApiDataService:fetchVaultShareValuations`; handler: MoneyAccountApiDataService['fetchVaultShareValuations']; }; /** * Fetches current VBA transfers for the wallet authenticated via SIWE. * * @param options - Fetch options, including the wallet address to authenticate. * @returns Current transfers belonging to the authenticated wallet. */ export type MoneyAccountApiDataServiceFetchVbaTransfersAction = { type: `MoneyAccountApiDataService:fetchVbaTransfers`; handler: MoneyAccountApiDataService['fetchVbaTransfers']; }; /** * Union of all MoneyAccountApiDataService action types. */ export type MoneyAccountApiDataServiceMethodActions = MoneyAccountApiDataServiceFetchPositionsAction | MoneyAccountApiDataServiceFetchInterestAction | MoneyAccountApiDataServiceFetchHistoryAction | MoneyAccountApiDataServiceFetchRateHistoryAction | MoneyAccountApiDataServiceFetchVaultRateAction | MoneyAccountApiDataServiceFetchVaultsAction | MoneyAccountApiDataServiceFetchVaultShareValuationsAction | MoneyAccountApiDataServiceFetchVbaTransfersAction; //# sourceMappingURL=money-account-api-data-service-method-action-types.d.ts.map