This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[1689 - Quote endpoint] New Quote endpoint for price & fee (#1835)
* [1689 - Quote endpoint] Consolidate waterfall PRs: * useGetGpApiStatus hook (mocked) 1. checks api to use 2. mocked right now * export type * [1689 - Quote endpoint] useOrderValidTo hook (#1728) * useOrderValidTo hook - syntactic sugar for getting validTo time (unix u32) from deadline TTL * [1689 - Quote endpoint] update Error objects to include new fee > sell error (#1758) * update Error objects to include new fee > sell error * [1689 - Quote endpoint] update gp v2 contracts 1.1.2 & set env check (#1759) * add default Gp_Api_Status to env * update to 1.1.2 gp-v2-contracts yarn lock [email protected] * [1689 - Quote Endpoint] Add new quote getting methods in API and Price (fix types) (#1772) * utils/price: add new quote logic * gnosisProtocol API - add new quote logic 1. map old params to new 2. add post logic * add legacy/new to index * use gpStatus and new api method in useRefetch and Unfillable * set mock to LEGACY (temp) * add validTo to necessary places * [1689 - Quote Endpoint] getQuote > replace getFeeQuote and getPriceQuote (#1773) * change getPriceQuote and getFeeQuote - getQuote - one endpoint * [1689 - Quote endpoint] Fix Cypress Fee test (#1775) * setup fee test for new endpoint * add mock quote data and fix command for stubs * fix package name and update yarn yarn lock * add receiver to quote params * better GP API default * removed unused import * rename gpQuoteStatus to gpPriceStrategy * comments * comment * pass new params to useQuoteAndSwap/useFallbackPi * better types/param name * round validTo UP @alfetopito * get correct ETH address * create validTo adjuster. return more from useOrderValidTo * MINIMUM_VALID_TO = 120 * paths, fixed type, and renaming stuff * set the validTo in the callback * export resolveLast best quote call * use resolveLast for quote promise * add manual price setting for dev * logs * pass order validTo thanks !@alfetopito * timestamp * add param to stubResponse cypress * fix incorrect version name * yarn lock update * Bumpbing bignumber.js and dex-js to the same version * Removed bignumber.js from dependency as it's only used on dex-js Co-authored-by: Leandro Boscariol <[email protected]>
- Loading branch information
Showing
23 changed files
with
2,782 additions
and
2,923 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.