Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

[1689 - Quote endpoint] useGetGpApiStatus hook (mocked) #1727

Merged
merged 4 commits into from
Nov 15, 2021

Conversation

W3stside
Copy link
Contributor

@W3stside W3stside commented Oct 29, 2021

Currently mocked but working implementation for getting Gp API

  1. checks api to use
  2. mocked right now

Part of #1689

Not currently implemented anywhere, waterfalls incoming with this code

1. checks api to use
2. mocked right now
@github-actions
Copy link
Contributor

  • 🔭 GP Swap: Gnosis Protocol v2 Swap UI

@W3stside W3stside changed the base branch from develop to 1689/new-quote-base October 29, 2021 12:55
@W3stside
Copy link
Contributor Author

W3stside commented Nov 9, 2021

@gnosis/gp-frontend we're all pretty busy so I will consolidate a lot of the #1689 PRs and you can all post-merge review
@anxolin
@alfetopito
@nenadV91

* 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
@W3stside W3stside force-pushed the 1689/check-gp-api-status-hook branch from 7481ec1 to e621c37 Compare November 15, 2021 09:49
@W3stside W3stside changed the base branch from 1689/new-quote-base to 1689/new-quote-endpoint November 15, 2021 10:26
@W3stside W3stside merged commit e7efa4c into 1689/new-quote-endpoint Nov 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants