Skip to content

Commit

Permalink
feat!: add query option to possibilities (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasmoeller committed Apr 4, 2022
1 parent 0992adc commit 319f85c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,20 @@ export interface RoutesResponse {
routes: Route[]
}

type PossibilityTopic = 'chains' | 'tokens' | 'bridges' | 'exchanges'

export interface PossibilitiesRequest {
chains?: number[] // (default: [all]) // eg. [1, 56, 100]
bridges?: AllowDenyPrefer
exchanges?: AllowDenyPrefer
include?: PossibilityTopic[]
}

export interface PossibilitiesResponse {
chains: Chain[]
tokens: Token[]
bridges: BridgeDefinition[]
exchanges: ExchangeDefinition[]
chains?: Chain[]
tokens?: Token[]
bridges?: BridgeDefinition[]
exchanges?: ExchangeDefinition[]
}

export interface GetTokenRequest {
Expand Down

0 comments on commit 319f85c

Please sign in to comment.