/** * Flowtype definitions for manager * Generated by Flowgen from a Typescript Definition * Flowgen v1.21.0 */ import { AppFrontendFeeTier } from "../api/app"; import { PortfolioTokenInfo } from "../portfolio/info"; import { PortfolioTokenId } from "../portfolio/token"; import { SwapAggregator } from "./aggregator"; import { SwapApi } from "./api"; import { SwapMakeOrderCalculation, SwapOrderCalculation } from "./calculations"; import { SwapOrderType } from "./order"; import { SwapPoolProvider } from "./pool"; import { SwapStorage } from "./storage"; export type SwapManager = $ReadOnly<{ clearStorage: $PropertyType, slippage: $PropertyType, order: { cancel: $PropertyType, create: $PropertyType, list: { byStatusOpen: $PropertyType, byStatusCompleted: $PropertyType, ... }, ... }, tokens: { list: { onlyVerified: $PropertyType, byPair: $PropertyType, ... }, ... }, price: { byPair: $PropertyType, ... }, pools: { list: { byPair: $PropertyType, ... }, ... }, stakingKey: string, primaryTokenInfo: PortfolioTokenInfo, supportedProviders: ReadonlyArray, aggregator: SwapAggregator, aggregatorTokenId?: PortfolioTokenId, frontendFeeTiers: ReadonlyArray, makeOrderCalculations( args: SwapMakeOrderCalculation ): Array, getBestPoolCalculation( calculations: Array ): SwapOrderCalculation | void, selectedPoolCalculationSelector(args: { type: SwapOrderType, selectedPoolId?: string, calculations: Array, bestPoolCalculation?: SwapOrderCalculation, ... }): SwapOrderCalculation | void, ... }>;