/** * Flowtype definitions for manager * Generated by Flowgen from a Typescript Definition * Flowgen v1.21.0 */ import { ChainSupportedNetworks } from "../chain/network"; import { PortfolioTokenInfo } from "../portfolio/info"; import { SwapAggregator } from "./aggregator"; import { SwapApi } from "./api"; import { SwapStorage } from "./storage"; export type SwapManagerSettings = { slippage: number, routingPreference: "auto" | Array, ... }; export type SwapManager = $ReadOnly<{ clearStorage: $PropertyType, assignSettings(v: $Rest): SwapManagerSettings, settings: SwapManagerSettings, api: SwapApi, ... }>; export type SwapManagerMaker = ( args: $ReadOnly<{ address: string, addressHex: string, stakingKey: string, primaryTokenInfo: PortfolioTokenInfo, isPrimaryToken(token: string | null | void): boolean, network: ChainSupportedNetworks, storage: SwapStorage, partners?: $Rest<{ [key: SwapAggregator]: string, ... }, { ... }>, ... }> ) => SwapManager;