Skip to content

Commit

Permalink
feat(api): include nativeToken in chains response (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasmoeller committed Oct 25, 2022
1 parent b60948f commit caf6262
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,12 @@ export interface StatusResponse extends StatusInformation {
bridgeExplorerLink?: string
}

interface ExtendedChain extends Chain {
nativeToken: Token
}

export interface ChainsResponse {
chains: Chain[]
chains: ExtendedChain[]
}

export interface ToolsRequest {
Expand Down Expand Up @@ -346,7 +350,7 @@ export declare class LifiAPI {

getTools(request: ToolsRequest): Promise<ToolsResponse>

getChains(): ChainsResponse
getChains(): Promise<ChainsResponse>

getConnections(request: ConnectionsRequest): Promise<ConnectionsResponse>

Expand Down

0 comments on commit caf6262

Please sign in to comment.