@yoroi/types
Version:
The Yoroi Types package of Yoroi SDK
38 lines (36 loc) • 897 B
Flow
/**
* Flowtype definitions for manager
* Generated by Flowgen from a Typescript Definition
* Flowgen v1.21.0
*/
import { AxiosRequestConfig } from "axios";
import { ExchangeOrderType } from "./order-type";
import { ExchangeProvider } from "./provider";
import { ExchangeReferralUrlQueryStringParams } from "./query-string";
export type ExchangeManager = $ReadOnly<{
provider: {
suggested: {
byOrderType: () => $ReadOnly<{ [key: ExchangeOrderType]: string, ... }>,
...
},
list: {
byOrderType: (
orderType: ExchangeOrderType
) => Promise<$ReadOnlyArray<[string, ExchangeProvider]>>,
...
},
...
},
referralLink: {
create: (
x: {
providerId: string,
queries: ExchangeReferralUrlQueryStringParams,
...
},
fetcherOptions?: AxiosRequestConfig
) => Promise<URL>,
...
},
...
}>;