diff --git a/src/api.ts b/src/api.ts index 6c032165..854f0c23 100644 --- a/src/api.ts +++ b/src/api.ts @@ -6,6 +6,8 @@ import { Step, Token, } from '.' +import { Bridge } from './bridges' +import { Exchange, ExchangeAggregator } from './exchanges' export type Order = 'BEST_VALUE' | 'BEST_FEE' | 'BEST_FEE_GAS' // FAST, LESS_INTERACTIONS, SECURITY, .... @@ -161,6 +163,15 @@ export interface ChainsResponse { chains: Chain[] } +export interface ToolsRequest { + chains?: ChainId[] +} + +export type ToolsResponse = { + exchanges: Pick[] + bridges: Pick[] +} + export type StatusMessage = 'NOT_FOUND' | 'PENDING' | 'DONE' | 'FAILED' export declare class LifiAPI { @@ -180,6 +191,8 @@ export declare class LifiAPI { getStatus(request: GetStatusRequest): Promise + getTools(request: ToolsRequest): ToolsResponse + getChains(): ChainsResponse getConnections(request: ConnectionsRequest): Promise