Skip to content

Commit

Permalink
Release/1.6.3 (#855)
Browse files Browse the repository at this point in the history
* added listener for window closing (#752)

Co-authored-by: ost-ptk <[email protected]>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* fix displaying amount in CSPR only for Casper (#753)

Co-authored-by: ost-ptk <[email protected]>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* UI changed based on a new design (#754)

Co-authored-by: ost-ptk <[email protected]>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* fixed skeleton for NFT image and made small changes (#755)

Co-authored-by: ost-ptk <[email protected]>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* feature: add remembering scroll position in the NFT, Deploys and Tokens list (#759)

* added remembering scroll position in the NFT list and removed background fetch for nft

* added remembering scroll position in the NFT list and removed background fetch for nft

* added remembering scroll position in the Deploys list, removed background fetch for deploys and made some improvements

* small improvements

* added remembering scroll position in the Casper token activity list and small improvements

* added remembering scroll position in the ERC20 token activity list and small improvements

* removed duplication and small fix

* fixed infinity scroll for NFT

* fixed infinity scroll for Deploys tab

* fixed infinity scroll for Casper token activity

* fixed infinity scroll for ERC20 token activity

* unused infinite scroll hook removed

* updated error handler for account deploys and NFT tokens request

---------

Co-authored-by: ost-ptk <[email protected]>

* illustrations are updated (#762)

Co-authored-by: ost-ptk <[email protected]>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* fix: fix native transfer in Firefox (#763)

* added a check for deploy hash before the extended deploys info request

* updated manifest permission for Firefox

* removed comment

---------

Co-authored-by: ost-ptk <[email protected]>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* added tooltip on hover hash (#764)

Co-authored-by: ost-ptk <[email protected]>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* Redesign list of NFTs (#766)

* Redesign list of NFTs

* Fix PR issues and add useAsyncEffect hook

* Fix issue with audio loading state

* Fix issue with deploy timestamp (#768)

* Release 1.5.2 version (#777)

* feature: add NFT token transfer (#769)

* added UI for NFT token transfer flow and business logic draft

* added nft transfer logic

* added fix for deploy timestamp issue

* removed unused packages

* removed back button from success screen

---------

Co-authored-by: ost-ptk <[email protected]>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* fix issues with the layout of a deploy list (#772)

Co-authored-by: ost-ptk <[email protected]>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* build(deps): bump sqlite3 from 5.0.8 to 5.1.6 (#694)

Bumps [sqlite3](https://github.com/TryGhost/node-sqlite3) from 5.0.8 to 5.1.6.
- [Release notes](https://github.com/TryGhost/node-sqlite3/releases)
- [Commits](TryGhost/node-sqlite3@v5.0.8...v5.1.6)

---
updated-dependencies:
- dependency-name: sqlite3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump json5 from 1.0.1 to 1.0.2 (#695)

Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](json5/json5@v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump dns-packet from 5.3.1 to 5.6.0 (#696)

Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 5.3.1 to 5.6.0.
- [Changelog](https://github.com/mafintosh/dns-packet/blob/master/CHANGELOG.md)
- [Commits](mafintosh/dns-packet@v5.3.1...v5.6.0)

---
updated-dependencies:
- dependency-name: dns-packet
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump xml2js and web-ext (#697)

Bumps [xml2js](https://github.com/Leonidas-from-XIV/node-xml2js) to 0.5.0 and updates ancestor dependency [web-ext](https://github.com/mozilla/web-ext). These dependencies need to be updated together.


Updates `xml2js` from 0.4.23 to 0.5.0
- [Commits](https://github.com/Leonidas-from-XIV/node-xml2js/commits/0.5.0)

Updates `web-ext` from 7.5.0 to 7.6.2
- [Release notes](https://github.com/mozilla/web-ext/releases)
- [Commits](mozilla/web-ext@7.5.0...7.6.2)

---
updated-dependencies:
- dependency-name: xml2js
  dependency-type: indirect
- dependency-name: web-ext
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dmytro Vynnyk <[email protected]>

* build(deps-dev): bump eslint-plugin-jsx-a11y from 6.6.1 to 6.7.1 (#703)

Bumps [eslint-plugin-jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y) from 6.6.1 to 6.7.1.
- [Release notes](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/releases)
- [Changelog](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/CHANGELOG.md)
- [Commits](jsx-eslint/eslint-plugin-jsx-a11y@v6.6.1...v6.7.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-jsx-a11y
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* build(deps-dev): bump fs-extra from 11.1.0 to 11.1.1 (#705)

Bumps [fs-extra](https://github.com/jprichardson/node-fs-extra) from 11.1.0 to 11.1.1.
- [Changelog](https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md)
- [Commits](jprichardson/node-fs-extra@11.1.0...11.1.1)

---
updated-dependencies:
- dependency-name: fs-extra
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump i18next-conv from 13.1.0 to 14.0.0 (#706)

Bumps [i18next-conv](https://github.com/i18next/i18next-gettext-converter) from 13.1.0 to 14.0.0.
- [Release notes](https://github.com/i18next/i18next-gettext-converter/releases)
- [Changelog](https://github.com/i18next/i18next-gettext-converter/blob/master/CHANGELOG.md)
- [Commits](i18next/i18next-gettext-converter@v13.1.0...v14.0.0)

---
updated-dependencies:
- dependency-name: i18next-conv
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* build(deps): bump word-wrap from 1.2.3 to 1.2.4 (#731)

Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](jonschlinkert/word-wrap@1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump apollo-server-core from 3.11.1 to 3.12.1 (#765)

Bumps [apollo-server-core](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-core) from 3.11.1 to 3.12.1.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Commits](https://github.com/apollographql/apollo-server/commits/[email protected]/packages/apollo-server-core)

---
updated-dependencies:
- dependency-name: apollo-server-core
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump i18next from 21.10.0 to 23.5.1 (#773)

Bumps [i18next](https://github.com/i18next/i18next) from 21.10.0 to 23.5.1.
- [Release notes](https://github.com/i18next/i18next/releases)
- [Changelog](https://github.com/i18next/i18next/blob/master/CHANGELOG.md)
- [Commits](i18next/i18next@v21.10.0...v23.5.1)

---
updated-dependencies:
- dependency-name: i18next
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* fix account status indicator (#775)

Co-authored-by: ost-ptk <[email protected]>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* build(deps-dev): bump eslint from 8.28.0 to 8.49.0 (#776)

Bumps [eslint](https://github.com/eslint/eslint) from 8.28.0 to 8.49.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v8.28.0...v8.49.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* build(deps): bump got and @redux-devtools/cli (#780)

Bumps [got](https://github.com/sindresorhus/got) to 11.8.6 and updates ancestor dependency [@redux-devtools/cli](https://github.com/reduxjs/redux-devtools). These dependencies need to be updated together.


Updates `got` from 9.6.0 to 11.8.6
- [Release notes](https://github.com/sindresorhus/got/releases)
- [Commits](sindresorhus/got@v9.6.0...v11.8.6)

Updates `@redux-devtools/cli` from 1.0.7 to 3.0.1
- [Release notes](https://github.com/reduxjs/redux-devtools/releases)
- [Commits](https://github.com/reduxjs/redux-devtools/compare/@redux-devtools/[email protected])

---
updated-dependencies:
- dependency-name: got
  dependency-type: indirect
- dependency-name: "@redux-devtools/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* build(deps): bump react-player from 2.12.0 to 2.13.0 (#785)

Bumps [react-player](https://github.com/CookPete/react-player) from 2.12.0 to 2.13.0.
- [Changelog](https://github.com/cookpete/react-player/blob/master/CHANGELOG.md)
- [Commits](cookpete/react-player@v2.12.0...v2.13.0)

---
updated-dependencies:
- dependency-name: react-player
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump prettier from 2.8.0 to 3.0.3 (#786)

Bumps [prettier](https://github.com/prettier/prettier) from 2.8.0 to 3.0.3.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@2.8.0...3.0.3)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump redux from 4.2.0 to 4.2.1 (#787)

Bumps [redux](https://github.com/reduxjs/redux) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/reduxjs/redux/releases)
- [Changelog](https://github.com/reduxjs/redux/blob/master/CHANGELOG.md)
- [Commits](reduxjs/redux@v4.2.0...v4.2.1)

---
updated-dependencies:
- dependency-name: redux
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* build(deps-dev): bump webpack-dev-server from 4.11.1 to 4.15.1 (#788)

Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 4.11.1 to 4.15.1.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md)
- [Commits](webpack/webpack-dev-server@v4.11.1...v4.15.1)

---
updated-dependencies:
- dependency-name: webpack-dev-server
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump @types/chrome from 0.0.203 to 0.0.246 (#791)

Bumps [@types/chrome](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chrome) from 0.0.203 to 0.0.246.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chrome)

---
updated-dependencies:
- dependency-name: "@types/chrome"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* added message for not supporting reverse look-up modality (#783)

Co-authored-by: ost-ptk <[email protected]>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* added a placeholder for the contract logo (#784)

Co-authored-by: ost-ptk <[email protected]>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* fix: fix issue with prettier config (#792)

* fixed issue with prettier config

* fixed code style errors

---------

Co-authored-by: ost-ptk <[email protected]>

* added new UI for erc-20 action displaying (#790)

Co-authored-by: ost-ptk <[email protected]>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* build(deps-dev): bump geckodriver from 3.2.0 to 4.2.1 (#793)

Bumps [geckodriver](https://github.com/webdriverio-community/node-geckodriver) from 3.2.0 to 4.2.1.
- [Release notes](https://github.com/webdriverio-community/node-geckodriver/releases)
- [Changelog](https://github.com/webdriverio-community/node-geckodriver/blob/main/CHANGELOG.md)
- [Commits](webdriverio-community/node-geckodriver@v3.2.0...v4.2.1)

---
updated-dependencies:
- dependency-name: geckodriver
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump react-query from 3.39.2 to 3.39.3 (#794)

Bumps [react-query](https://github.com/tannerlinsley/react-query) from 3.39.2 to 3.39.3.
- [Release notes](https://github.com/tannerlinsley/react-query/releases)
- [Commits](https://github.com/tannerlinsley/react-query/commits)

---
updated-dependencies:
- dependency-name: react-query
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* build(deps): bump react-router-dom from 6.4.4 to 6.16.0 (#795)

Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 6.4.4 to 6.16.0.
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/[email protected]/packages/react-router-dom)

---
updated-dependencies:
- dependency-name: react-router-dom
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* build(deps): bump @scure/bip39 from 1.1.0 to 1.2.1 (#796)

Bumps [@scure/bip39](https://github.com/paulmillr/scure-bip39) from 1.1.0 to 1.2.1.
- [Release notes](https://github.com/paulmillr/scure-bip39/releases)
- [Commits](paulmillr/scure-bip39@1.1.0...1.2.1)

---
updated-dependencies:
- dependency-name: "@scure/bip39"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* build(deps-dev): bump electron from 25.8.0 to 25.8.1 (#798)

Bumps [electron](https://github.com/electron/electron) from 25.8.0 to 25.8.1.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md)
- [Commits](electron/electron@v25.8.0...v25.8.1)

---
updated-dependencies:
- dependency-name: electron
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* build(deps-dev): bump lint-staged from 13.0.4 to 14.0.1 (#800)

Bumps [lint-staged](https://github.com/okonet/lint-staged) from 13.0.4 to 14.0.1.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Changelog](https://github.com/okonet/lint-staged/blob/master/CHANGELOG.md)
- [Commits](lint-staged/lint-staged@v13.0.4...v14.0.1)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump tsconfig-paths-webpack-plugin from 4.0.0 to 4.1.0 (#801)

Bumps [tsconfig-paths-webpack-plugin](https://github.com/dividab/tsconfig-paths-webpack-plugin) from 4.0.0 to 4.1.0.
- [Changelog](https://github.com/dividab/tsconfig-paths-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](dividab/tsconfig-paths-webpack-plugin@v4.0.0...v4.1.0)

---
updated-dependencies:
- dependency-name: tsconfig-paths-webpack-plugin
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* build(deps-dev): bump @types/facepaint from 1.2.2 to 1.2.3 (#803)

Bumps [@types/facepaint](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/facepaint) from 1.2.2 to 1.2.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/facepaint)

---
updated-dependencies:
- dependency-name: "@types/facepaint"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* build(deps-dev): bump webpack-cli from 5.0.0 to 5.1.4 (#804)

Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 5.0.0 to 5.1.4.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/[email protected]@5.1.4)

---
updated-dependencies:
- dependency-name: webpack-cli
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* removed input type from the transaction fee fields (#807)

Co-authored-by: ost-ptk <[email protected]>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* changed method of creating Keys for signing (#808)

Co-authored-by: ost-ptk <[email protected]>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* fix: fix scope of bugs (#809)

* fixed issue with transfer NFT error after wallet unlocking and some improvements

* fixed issue with empty NFT details page after wallet unlocking and some improvements

* fixed issue with home screen scroll

* possible fix for an issue with a gap above the sticky tabs container

* fixed an issue with the scrollable Import account screen

---------

Co-authored-by: ost-ptk <[email protected]>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* fixed issue with the navigation menu screen scroll (#818)

Co-authored-by: ost-ptk <[email protected]>

* casper logo updated (#817)

Co-authored-by: ost-ptk <[email protected]>

* removed the tooltip with the full public key when the user has only one account (#819)

Co-authored-by: ost-ptk <[email protected]>

* build(deps-dev): bump electron from 25.8.1 to 25.9.0 (#822)

Bumps [electron](https://github.com/electron/electron) from 25.8.1 to 25.9.0.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md)
- [Commits](electron/electron@v25.8.1...v25.9.0)

---
updated-dependencies:
- dependency-name: electron
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* disabled send button on NFT details page after this NFT was sent (#824)

Co-authored-by: ost-ptk <[email protected]>

* fixed issue with the scroll on home page (#825)

Co-authored-by: ost-ptk <[email protected]>

* Release 1.6.0 version (#826)

* added countdown for user password length (#806)

Co-authored-by: ost-ptk <[email protected]>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* feature: add change password page (#799)

* fixed issue with prettier config

* fixed code style errors

* added change password page and small refactor

* merge conflict fixed

* merge conflict issues fixed

---------

Co-authored-by: ost-ptk <[email protected]>

* added a checkbox for setting the max transfer amount for CSPR transfer and some refactoring (#805)

Co-authored-by: ost-ptk <[email protected]>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* fixed issue with words highlighting in the confirm secret phrase view (#823)

Co-authored-by: ost-ptk <[email protected]>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* feature: add dark mode (#821)

* added dark mode

* merge conflict issues fixed

* changed png images to svg

* Fix DefaultTheme interface

---------

Co-authored-by: ost-ptk <[email protected]>
Co-authored-by: Dmytro Vynnyk <[email protected]>

* build(deps): bump @scure/bip32 from 1.1.1 to 1.3.2 (#812)

Bumps [@scure/bip32](https://github.com/paulmillr/scure-bip32) from 1.1.1 to 1.3.2.
- [Release notes](https://github.com/paulmillr/scure-bip32/releases)
- [Commits](paulmillr/scure-bip32@1.1.1...1.3.2)

---
updated-dependencies:
- dependency-name: "@scure/bip32"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump webpack from 5.76.0 to 5.88.2 (#813)

Bumps [webpack](https://github.com/webpack/webpack) from 5.76.0 to 5.88.2.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](webpack/webpack@v5.76.0...v5.88.2)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump eslint-plugin-react from 7.31.11 to 7.33.2 (#814)

Bumps [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) from 7.31.11 to 7.33.2.
- [Release notes](https://github.com/jsx-eslint/eslint-plugin-react/releases)
- [Changelog](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](jsx-eslint/eslint-plugin-react@v7.31.11...v7.33.2)

---
updated-dependencies:
- dependency-name: eslint-plugin-react
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump @babel/preset-env from 7.20.2 to 7.23.2 (#828)

Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.20.2 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-preset-env)

---
updated-dependencies:
- dependency-name: "@babel/preset-env"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Improve skeleton for dark mode (#835)

* Release 1.6.1 version (#837)

* fixed issue with insufficient data for displaying erc-20 tokens (#840)

Co-authored-by: ost-ptk <[email protected]>

* Update README.md to add reference to CSPR.click for integration (#842)

* Improve erc20 tokens fetching (#843)

* Release/1.6.2 (#844)

* Improve erc20 tokens fetching

* Release 1.6.2 version

* feature: add QR code option to the settings menu (#774)

* added QR code option to the settings menu

* added QR generation page and removed unused props

* merge conflict issue fixed

* temp commit

* Get symbol and decimal optional

* Add qr code generation for sync wallet

* UI and UX fixes, and fixed validation rule

* moved qr generation under password protection and removed one time password

* Improve qrCode generation

* Add multi qr code presenting

---------

Co-authored-by: ost-ptk <[email protected]>
Co-authored-by: Vynnyk Dmytro <[email protected]>

* Release 1.6.3 version

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Ostap Piatkovskyi <[email protected]>
Co-authored-by: ost-ptk <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Muhammet Kara <[email protected]>
  • Loading branch information
5 people authored Nov 10, 2023
1 parent 4da3c73 commit a92d8d2
Show file tree
Hide file tree
Showing 22 changed files with 309 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16
v16.20.0
18 changes: 16 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Casper Wallet",
"description": "Securely manage your CSPR tokens and interact with dapps with the self-custody wallet for the Casper blockchain.",
"version": "1.6.2",
"version": "1.6.3",
"author": "MAKE LLC",
"scripts": {
"devtools:redux": "redux-devtools --hostname=localhost",
Expand Down Expand Up @@ -61,6 +61,7 @@
"@hot-loader/react-dom": "^17.0.1",
"@lapo/asn1js": "1.2.4",
"@make-software/ces-js-parser": "1.3.2",
"@noble/ciphers": "^0.3.0",
"@scure/bip32": "1.3.2",
"@scure/bip39": "1.2.1",
"@types/argon2-browser": "1.18.1",
Expand Down
5 changes: 5 additions & 0 deletions src/apps/popup/app-router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import { TokenDetailPage } from 'src/apps/popup/pages/token-details';
import { ActivityDetailsPage } from '@popup/pages/activity-details';
import { ReceivePage } from '@popup/pages/receive';
import { NftDetailsPage } from '@popup/pages/nft-details';
import { WalletQrCodePage } from '@popup/pages/wallet-qr-code';
import { TransferNftPage } from '@popup/pages/transfer-nft';
import { ChangePasswordPage } from '@popup/pages/change-password';

Expand Down Expand Up @@ -242,6 +243,10 @@ function AppRoutes() {
<Route path={RouterPath.Token} element={<TokenDetailPage />} />
<Route path={RouterPath.Receive} element={<ReceivePage />} />
<Route path={RouterPath.NftDetails} element={<NftDetailsPage />} />
<Route
path={RouterPath.GenerateWalletQRCode}
element={<WalletQrCodePage />}
/>
<Route path={RouterPath.TransferNft} element={<TransferNftPage />} />
<Route
path={RouterPath.ChangePassword}
Expand Down
28 changes: 21 additions & 7 deletions src/apps/popup/pages/backup-secret-phrase-password/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { useSelector } from 'react-redux';
import { Trans, useTranslation } from 'react-i18next';
import { useTranslation } from 'react-i18next';

import {
selectPasswordHash,
Expand All @@ -23,10 +23,14 @@ import { calculateSubmitButtonDisabled } from '@libs/ui/forms/get-submit-button-

interface BackupSecretPhrasePasswordPageType {
setPasswordConfirmed: () => void;
onClick?: (password: string) => Promise<void>;
loading?: boolean;
}

export const BackupSecretPhrasePasswordPage = ({
setPasswordConfirmed
setPasswordConfirmed,
onClick,
loading = false
}: BackupSecretPhrasePasswordPageType) => {
const { t } = useTranslation();

Expand All @@ -40,16 +44,26 @@ export const BackupSecretPhrasePasswordPage = ({
const {
register,
handleSubmit,
formState: { errors, isDirty }
formState: { errors, isDirty },
getValues
} = useUnlockWalletForm(passwordHash, passwordSaltHash);

const isSubmitButtonDisabled = calculateSubmitButtonDisabled({
isDirty
});

const onSubmit = () => {
setPasswordConfirmed();
dispatchToMainStore(loginRetryCountReseted());
if (onClick) {
const { password } = getValues();

onClick(password).then(() => {
setPasswordConfirmed();
dispatchToMainStore(loginRetryCountReseted());
});
} else {
setPasswordConfirmed();
dispatchToMainStore(loginRetryCountReseted());
}
};

return (
Expand All @@ -75,8 +89,8 @@ export const BackupSecretPhrasePasswordPage = ({
)}
renderFooter={() => (
<FooterButtonsContainer>
<Button disabled={isSubmitButtonDisabled}>
<Trans t={t}>Continue</Trans>
<Button disabled={isSubmitButtonDisabled || loading}>
{loading ? t('Loading') : t('Continue')}
</Button>
</FooterButtonsContainer>
)}
Expand Down
4 changes: 2 additions & 2 deletions src/apps/popup/pages/home/components/tokens-list/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export const formatErc20TokenBalance = (
name: token.contract_name,
balance: token.balance,
amount: erc20Amount,
symbol: token.metadata?.symbol || '',
decimals: token.metadata?.decimals,
symbol: token?.metadata?.symbol || '',
decimals: token?.metadata?.decimals,
amountFiat: null,
icon: token.icon_url || 'assets/icons/erc20-avatar.svg'
};
Expand Down
12 changes: 12 additions & 0 deletions src/apps/popup/pages/navigation-menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,18 @@ export function NavigationMenuPageContent() {
},
{
id: 2,
title: t('Generate wallet QR code'),
description: t('Scan to import your wallet on mobile'),
iconPath: 'assets/icons/qr.svg',
disabled: false,
handleOnClick: () => {
closeNavigationMenu();

navigate(RouterPath.GenerateWalletQRCode);
}
},
{
id: 3,
title: t('Download account keys'),
description: t('For all accounts imported via file'),
iconPath: 'assets/icons/download.svg',
Expand Down
8 changes: 4 additions & 4 deletions src/apps/popup/pages/receive/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,18 @@ export const ReceivePageContent = () => {
const tokens = useSelector(selectErc20Tokens, shallowEqual);

useEffect(() => {
if (tokenData.symbol === 'CSPR') {
if (tokenData?.symbol === 'CSPR') {
const balance =
(csprBalance.amountMotes && motesToCSPR(csprBalance.amountMotes)) ||
'0';
setTokenData(prev => ({ ...prev, balance }));
} else {
const erc20Tokens = formatErc20TokenBalance(tokens);
const balance =
erc20Tokens?.find(t => t.symbol === tokenData.symbol)?.amount ?? '0';
erc20Tokens?.find(t => t?.symbol === tokenData?.symbol)?.amount ?? '0';
setTokenData(prev => ({ ...prev, balance }));
}
}, [csprBalance, tokenData.symbol, tokens]);
}, [csprBalance, tokenData?.symbol, tokens]);

return (
<ContentContainer>
Expand All @@ -80,7 +80,7 @@ export const ReceivePageContent = () => {
</ParagraphContainer>
<ActiveAccountPlate
label="To account"
symbol={tokenData.symbol}
symbol={tokenData?.symbol}
balance={tokenData.balance}
/>
<VerticalSpaceContainer top={SpacingSize.XXXL}>
Expand Down
6 changes: 3 additions & 3 deletions src/apps/popup/pages/token-details/token.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const Token = ({ erc20Tokens }: TokenProps) => {
if (casperToken && activeAccount) {
setTokenData(casperToken);
setTokenInfoList([
{ id: 1, name: 'Symbol', value: casperToken.symbol }
{ id: 1, name: 'Symbol', value: casperToken?.symbol }
]);
}
} else {
Expand All @@ -78,8 +78,8 @@ export const Token = ({ erc20Tokens }: TokenProps) => {
if (token) {
setTokenData(token);
setTokenInfoList([
{ id: 1, name: 'Symbol', value: token.symbol },
{ id: 2, name: 'Decimals', value: (token.decimals || 0).toString() }
{ id: 1, name: 'Symbol', value: token?.symbol },
{ id: 2, name: 'Decimals', value: (token?.decimals || 0).toString() }
]);
} else {
setTokenData(prev => (prev ? { ...prev, amount: '0' } : null));
Expand Down
2 changes: 1 addition & 1 deletion src/apps/popup/pages/transfer/confirm-step.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const ConfirmStep = ({
{listItems.text}
</Typography>
<AmountContainer>
<Typography type="captionHash">{`${listItems.amount} ${listItems.symbol}`}</Typography>
<Typography type="captionHash">{`${listItems.amount} ${listItems?.symbol}`}</Typography>
<Typography type={listItems.bold ? 'subtitle' : 'captionMedium'}>
{listItems.fiatPrice == null
? null
Expand Down
1 change: 0 additions & 1 deletion src/apps/popup/pages/transfer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ export const TransferPage = () => {

const { amountForm, recipientForm } = useTransferForm(
erc20Balance,
erc20Decimals,
isErc20Transfer,
csprBalance.amountMotes,
paymentAmount
Expand Down
73 changes: 73 additions & 0 deletions src/apps/popup/pages/wallet-qr-code/content.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
import React, { useEffect, useState } from 'react';
import { Trans, useTranslation } from 'react-i18next';
import { QRCodeCanvas } from 'qrcode.react';
import styled, { useTheme } from 'styled-components';

import {
CenteredFlexRow,
ContentContainer,
ParagraphContainer,
SpacingSize
} from '@libs/layout';
import { Typography } from '@libs/ui';

const QRContainer = styled(CenteredFlexRow)`
padding: 20px 16px;
background-color: ${({ theme }) => theme.color.backgroundPrimary};
border-radius: ${({ theme }) => theme.borderRadius.base}px;
margin-top: 20px;
`;

interface WalletQrCodePageContentProps {
qrStrings: string[];
}

export const WalletQrCodePageContent = ({
qrStrings
}: WalletQrCodePageContentProps) => {
const theme = useTheme();
const [currentQrIndex, setCurrentQrIndex] = useState<number>(0);

useEffect(() => {
const int = setInterval(() => {
setCurrentQrIndex(prev => {
const next = prev + 1;

if (next === qrStrings.length) {
return 0;
}

return next;
});
}, 500);

return () => clearInterval(int);
}, [qrStrings.length]);

const { t } = useTranslation();

return (
<ContentContainer>
<ParagraphContainer top={SpacingSize.XL}>
<Typography type="header">
<Trans t={t}>QR code is ready!</Trans>
</Typography>
</ParagraphContainer>
<ParagraphContainer top={SpacingSize.Medium}>
<Typography type="body">
<Trans t={t}>Scan this with your Casper Wallet app.</Trans>
</Typography>
</ParagraphContainer>
<QRContainer>
<QRCodeCanvas
id="qrCode"
value={qrStrings[currentQrIndex]}
size={296}
fgColor={theme.color.contentPrimary}
bgColor={theme.color.backgroundPrimary}
level={'H'}
/>
</QRContainer>
</ContentContainer>
);
};
Loading

0 comments on commit a92d8d2

Please sign in to comment.