Skip to content

Commit

Permalink
feat(api): add chains endpoint (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasmoeller committed Mar 9, 2022
1 parent 02d7b57 commit d1ba120
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ export interface StatusResponse {
status: StatusMessage
}

export interface ChainsResponse {
chains: Chain[]
}

export type StatusMessage = 'NOT_FOUND' | 'PENDING' | 'DONE' | 'FAILED'

export declare class LifiAPI {
Expand All @@ -171,5 +175,7 @@ export declare class LifiAPI {

getStatus(request: GetStatusRequest): Promise<StatusResponse>

getChains(): ChainsResponse

// getConnections(request: ConnectionsRequest): Promise<ConnectionsResponse>
}

0 comments on commit d1ba120

Please sign in to comment.