Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Release v1.5 #1485

Closed
wants to merge 40 commits into from
Closed

Release v1.5 #1485

wants to merge 40 commits into from

Conversation

W3stside
Copy link
Contributor

@W3stside W3stside commented Oct 5, 2020

DON'T SQUASH

https://camo.githubusercontent.com/e796f4a5be35084236dcf73f6f425438a1ad452b/68747470733a2f2f6d656469612e7269666673792e636f6d2f696d616765732f33316430363639353935346165393837343263393438346330326239323539632f74656e6f722e676966

📓 Changelog

xDAI integration: wrap/unwrap functionality, conversion from EtherscanLink to xDAI compatible block explorer TxLink component.
Continuation of large components refactor + implementation of their stories. Storybook require context fixes, bug fixes, Stylelint integration for CSS in JS (styled components), custom Modal implementation extending Modali to simplify global styles + remain in-line with self-contained component approach. Self-contained TokenImg component, Apollo GraphQL library integration into LastTrades component. Fixed a gas issue involving order cancellation. Fixed an issue involving earmark logic in provider middleware.

👷‍♀️ Other small changes and fixes:

54184bf Bump react-hot-loader from 4.12.21 to 4.13.0
5b4d4aa Bump webpack from 4.44.1 to 4.44.2
d2c095f Bump @popperjs/core from 2.4.4 to 2.5.3
cdbd3db [Security] Bump bl from 1.2.2 to 1.2.3
d8e15d8 [Security] Bump elliptic from 6.5.2 to 6.5.3
6aff25f don't count reverted trades we don't display (#1480)
a11c72f Fix settings page (#1457)
119589c Refactor and simplify token types (#1454)
e09d686 require('img').default
30e3111 Require(*).default storybook workaround (#1451)
4c39060 [xdai] Fix images: stake, wxDAI (#1448)
1a0b316 break-word on long price est (#1443)
aa1f21c Merge branch 'develop' into xdai
5a78689 Fix some moved dependency (#1447)
dd9835f Merge branch 'master' into develop
621ada6 Fix issue with initial selection (#1436)
1cc2eac Update dex js (#1433)
f11b75c xDAI Config changes (#1429)
1fbb3de Stories for layouts (#1409)

anxolin and others added 30 commits September 14, 2020 18:31
* Add new trading page

* Add new layout

* Add new routes

* Add trading page story

* Do not use global styles for the new layout

* Fix issue with relative path

Co-authored-by: Velenir <Velenir@users.noreply.github.com>

Co-authored-by: Velenir <Velenir@users.noreply.github.com>
* Add new trading page

* Add new layout

* Add new routes

* Add trading page story

* Do not use global styles for the new layout

* Add loremp ipsum

* Create react decorator

* Create swap layout stories

* Remove global decorator

* Move global style to swap layout

* Add trading layout stories

* Do not use internal types

* Remove initial entities

* Use outline instead of border
* Add xDai dex price estimation

* Add xDAI block number for contract

* Add the graph API for xDAI

* Add empty disabled tokens list

* Add xDAI to networks

* Add WETH in xDAI

* Change addressesByNetwork util

* Return WETH address in xDAI

* Adapt tests and create a new DisabledTokens list

* Adapt createTokenListApi

* Add xDAI test tokens

* Delete unused const

* Add placeholder for gas estimation

* Remove duplicated util
* Add xDai dex price estimation

* Add xDAI block number for contract

* Add the graph API for xDAI

* Add empty disabled tokens list

* Add xDAI to networks

* Add WETH in xDAI

* Change addressesByNetwork util

* Return WETH address in xDAI

* Adapt tests and create a new DisabledTokens list

* Adapt createTokenListApi

* Add xDAI test tokens

* Delete unused const

* Add placeholder for gas estimation

* Remove duplicated util

* Remove space

* Update dex-js
* Add Wrapped xDAI

* Use wxDAI

* Generalize isWeth into isWrappable

* Add util to get the native token name

* Use the right native token in balances page

* Adapt trade widget to wrap xDAI

* Refactor Wrapping Ether button

* Add missing prop
* Move TokenImg to it's common components

* Add new simplified tokenImage compoenent

* Add decorator

* Make story and new token image component

* Use a wxDAI image with transparent background

* Improve image

* Refactor token images

* Remove unnecesary prop image

* Cleanup dead code, and add issues

* Remove dead code

* Refactor require context

* Remove image props

* Update dex-js

* Init token images

* Add some test data

* Simplify expression

Co-authored-by: Velenir <Velenir@users.noreply.github.com>

Co-authored-by: Velenir <Velenir@users.noreply.github.com>
* Use in xDAI blockscout blockexplorer link and refactor

* Simplify expression

Co-authored-by: Velenir <Velenir@users.noreply.github.com>

* Token image component (#1440)

* Move TokenImg to it's common components

* Add new simplified tokenImage compoenent

* Add decorator

* Make story and new token image component

* Use a wxDAI image with transparent background

* Improve image

* Refactor token images

* Remove unnecesary prop image

* Cleanup dead code, and add issues

* Remove dead code

* Refactor require context

* Remove image props

* Update dex-js

* Init token images

* Add some test data

* Simplify expression

Co-authored-by: Velenir <Velenir@users.noreply.github.com>

Co-authored-by: Velenir <Velenir@users.noreply.github.com>

* Use xDAI instead of xDAI as the name for the network

* Add stories for xDAI

Co-authored-by: Velenir <Velenir@users.noreply.github.com>
* Add Last trades

* Add last trades histories

* Handle no trades

* Add apollo client

* Add last trades component

* Add last trades stories

* Create new apollo decorator for storybook

* Create last trades widget

* Create stories for last trades widget
* extra gas * orders for order cancellation

* earmarkTX is responsible for tx.gas++
* Add image for STAKE, also fix image not being displayed in app

* Fix storybook
* require().default storybook workaround

* remove workaround

* explicit types

* replace loader for images
* move earmark gas addition responsibility to mware

* fix build
* Simplify types

* Remove unused import

* Use dex-js 0.8.0

* Add yarn.lock
* don't lie about types

* abstract away sell/receiveTokens logic into container

* fix rerender loop (give a stable ref)

* show NO TOKENS message

* more synchronous PendingState

* default walletApi.blockchainState

* fix build
* stricter and more correct types

* fix wcResolver

* fix error accumulation in reducer

* Typescript 4.0 update (#1458)

* update TS and related dependencies

* more type correct isPromise util

* change deprecated rules

* don't use Function as type

* don't use {} as type

* use labeled tuples

* fix import for declare module * (TypeScript/issues/28097)

* type useParams

* type LastTradeWidget gql params

* lint fixes
Velenir and others added 10 commits October 5, 2020 13:16
* removed modali styles from global

* StlyedModal aka global syled modali

* export modali from StyledModal

* change useSubmitTxModal to use new exports

* export StyledModali with custom Modal

* changing import strings

* StyledModal > Modal

* remove global variables from Modal

* Modali export rename
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3. **This update includes a security fix.**
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](indutny/elliptic@v6.5.2...v6.5.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Bumps [bl](https://github.com/rvagg/bl) from 1.2.2 to 1.2.3. **This update includes a security fix.**
- [Release notes](https://github.com/rvagg/bl/releases)
- [Commits](rvagg/bl@v1.2.2...v1.2.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Bumps [@popperjs/core](https://github.com/popperjs/popper-core) from 2.4.4 to 2.5.3.
- [Release notes](https://github.com/popperjs/popper-core/releases)
- [Commits](floating-ui/floating-ui@v2.4.4...v2.5.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Bumps [webpack](https://github.com/webpack/webpack) from 4.44.1 to 4.44.2.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](webpack/webpack@v4.44.1...v4.44.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* add stylelint

* add stylelint config

* fix stylelint errors

* add css linting scripts

* cleanup

* stylelint fix

* fix types

* stylelint fixes
@ghost
Copy link

ghost commented Oct 5, 2020

Travis automatic deployment:

@W3stside W3stside closed this Oct 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants