Status Desktop client made in Nim & QML
https://status.app
ee1287b71d
Fixes #2448. Currently, if a wrong password is entered when generating a wallet account, the app will crash due to attempting to decode a `GeneratedAccount ` from an rpc response containing only an error. With this PR, we are detecting if an error is returned in the response, and if so, raising a StatusGoException. This exception is caught in the call chain, and translated in to a `StatusGoError` which is serialised and sent to the QML view, where it is parsed and displayed as an invalid password error in the input box. refactor: remove string return values as error messages in wallet model In the wallet model, we were passing back empty strings for no error, or an error as a string. This is not only confusing, but does not benefit from leaning on the compiler and strong types. One has to read the entire code to understand if a string result is returned when there is no error instead of implicitly being able to understand there is no return type. To alleviate this, account creation fundtions that do not need to return a value have been changed to a void return type, and raise `StatusGoException` if there is an error encountered. This can be caught in the call chain and used as necessary (ie to pass to QML). refactor: move invalid password string detection to Utils Currently, we are reading returned view model values and checking to see if they include a known string from Status Go that means there was an invalid password used. This string was placed in the codebased in mulitple locations. This PR moves the string check to a Utils function and updates all the references to use the function in Utils. |
||
---|---|---|
ci | ||
devuser_guide | ||
docs | ||
scripts | ||
src | ||
ui | ||
vendor | ||
.gitignore | ||
.gitmodules | ||
.npmrc | ||
.yarnrc | ||
AppRun | ||
Info.dev.plist | ||
Info.plist | ||
LICENSE.md | ||
Makefile | ||
QtWebEngineProcess.plist | ||
README.md | ||
VERSION | ||
build-linux.sh | ||
config.nims | ||
docker-linux-app-image.sh | ||
env.sh | ||
fleets.json | ||
nim-status.desktop | ||
nim.cfg | ||
nim_status_client.nimble | ||
package-lock.json | ||
package.json | ||
status-dev.icns | ||
status-dev.svg | ||
status-macos-dev.svg | ||
status-macos.svg | ||
status.icns | ||
status.ico | ||
status.svg | ||
windows-install.txt |
README.md
Status-desktop
Desktop client for the Status Network built with Nim and Qt
note: this documentation is wip
Getting started
Overview
Architecture & Development
Guides & Tutorials
Continuous Integration
API
Translations
License
Licensed under the Mozilla Public License Version 2.0