-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create Skip API client #14
Conversation
Deploy max fee button to prod
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
src/solve/client/client.ts
Outdated
export const ENDPOINTS = { | ||
GET_CHAINS: `${API_URL}/info/chains`, | ||
GET_ROUTE: `${API_URL}/fungible/route`, | ||
}; | ||
|
||
export const IGNORE_CHAINS = ["agoric", "8ball", "akashnet-2"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these be passed into the client as arguments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah probably, updated
src/solve/client/client.ts
Outdated
const API_URL = process.env.NEXT_PUBLIC_API_URL ?? "https://api.skip.money/v1"; | ||
|
||
export const ENDPOINTS = { | ||
GET_CHAINS: `${API_URL}/info/chains`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we only defining endpoints for these routes?
Shouldn't these be given by functions / vars on the client itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah this was something i started to do and then abandoned, just removed it
[ENG-1513] Scroll relay warning into view when opened
Track amount and asset of successful txs
lifecycle tracking v0
[ENG-1528] Use assets endpoint instead of chain registry
This is the first PR in a series of PRs to clean up code and add tests.
SkipClient
that provides methods for calling the Skip API.SkipClient
that modifies requests or responses.