Commit Graph

166 Commits

Author SHA1 Message Date
kylezs 9d55072a99
Fix confirm tx popup inconsistency when sweeping all from service node tab (#191)
* fix confirm tx and send tx confirm popup inconsistency
2020-09-23 08:43:03 +10:00
kylezs 72155c3887
Add bunyan logger for logging electron events to file (#190)
* add bunyan logger
* add logging for unhandled exception and unhandled rejection
2020-09-22 15:20:24 +10:00
kylezs 34b64df5d2
Better error handling after confirming tx, "send all" to use `sweep_all` RPC call. (#188)
- Create new wallet when using default language fix
2020-09-21 16:49:41 +10:00
kylezs ae2586f248
fix a few bugs, support reserved service nodes, confirm tx sweep all (#179)
* fix a few bugs, support reserved service nodes better, confirm tx for sweep all working better

* send and sweep all confirmTx bug fixed, min/max on Service nodes added
2020-09-16 12:41:42 +10:00
Kyle Zsembery 68ca92eabd safer condition 2020-09-14 11:14:50 +10:00
Kyle Zsembery 12d7df3c3d Fix error handling for second case 2020-09-14 11:06:01 +10:00
Kyle Zsembery 2decb9b054 Add better error handling for a transfer rpc call 2020-09-14 09:43:12 +10:00
Kyle Zsembery 6444eb8de5 import wallet from file, delete wallet bug and some other style fixes 2020-09-09 16:41:27 +10:00
Kyle Zsembery ff49d6c1a5 clean up for review, fix eslint/prettier conflict problem 2020-09-08 14:05:22 +10:00
Kyle Zsembery 992cb020b0 Clean up and translations 2020-09-08 12:17:55 +10:00
Kyle Zsembery 61fe1f0775 improved user feedback when loading service node lists 2020-09-08 11:31:30 +10:00
Kyle Zsembery 31b57d497b Manual refresh service node list button 2020-09-08 09:24:49 +10:00
Kyle Zsembery 14b8375acf clean up 2020-09-07 16:26:23 +10:00
Kyle Zsembery 2740c94635 WIP: integrate lokiblocks into service node staking page 2020-09-04 16:46:53 +10:00
Kyle Zsembery ff92a59025 use bool directly for update_required 2020-09-04 15:28:38 +10:00
Kyle Zsembery 22904cedb7 remove latest_version from state 2020-09-04 15:20:24 +10:00
Kyle Zsembery 9beafe4f5d address PR comments 2020-09-04 15:14:16 +10:00
Kyle Zsembery 2643674cb4 remove unncessary comment 2020-09-04 14:26:13 +10:00
Kyle Zsembery 1738f86423 clean up for review 2020-09-04 14:21:44 +10:00
Kyle Zsembery 00784c0755 latest version footer works 2020-09-04 14:15:37 +10:00
Kyle Zsembery a6f6c9e489 error to string in case it's an error object 2020-09-03 10:02:31 +10:00
Kyle Zsembery e0e2e501d0 set error if rpc relay_tx fails 2020-09-03 09:56:42 +10:00
Kyle Zsembery d12e4fca58 clean up PR 2020-09-02 17:33:11 +10:00
Kyle Zsembery 6f717be741 dialog as component not quasar function 2020-09-02 17:23:23 +10:00
Kyle Zsembery 9b835edfc6 saving notes on send now works 2020-09-02 13:18:21 +10:00
Kyle Zsembery 4ade74d3a4 confirming tx works, fixing problem with notes on txs 2020-09-02 12:58:01 +10:00
Kyle Zsembery 6a851bdd9e WIP: confirmation dialog before sending txs 2020-09-01 19:29:06 +10:00
Mikunj Varsani 018d08371d
UI upgrade (#155)
* followed upgrade instructions on quasar site

* followed upgrade instructions on quasar site

* debug messages now show

* Fix template error mode undefined

* building and working, UI broken, need to move to new quasar components

* move collapsible to expansion-item

* moving over components to quasar v1+

* items to labels

* items and item side to quasar v1

* fix label typo

* item main to item label

* q-section to q-item-section

* popover to menu

* modals to v1 quasar

* Remove debug lines, use new dialog methods

* move static folder up a dir and rename to public. Change paths accordingly

* Exit modal fixed with v1 quasar

* UI fixes for v1 quasar

* remove link styles

* some field updates

* Fix more fields and modals for v1

* more fields updated

* more fields changed over

* wallet settings modals

* Fix password confirm dialog issue w/ refactor

* begin generalising a copy component

* Receive item looking better

* Index view vixed for v1 quasar

* fix export/import keys modal

* tx styles and some others

* bunch of small style changes

* Fix date display on restore page

* completed upgrade to v1 quasar (I think)

* lns list fixed, stake buttons fixed

* fix favourite checkbox with v1 quasar

* Address book fixes

* Fix the context menus

* clean up

* remove mixin from copyicon

* Fix webpack

* fix QR code view on address detail page

* Fix welcome stepper and default to blink

* Fix some style issues

* radio buttons w/ white circles

* clean up

* sn style fixes, and other fixes

* style fixes and unlock bug fixed

* fix daemon typo

* Fix some style things

* fix button colour

Co-authored-by: Kyle Zsembery <zsembery.kyle@gmail.com>
2020-08-31 15:26:06 +10:00
Mikunj 5a5c5320a3 Add building of deb format 2020-05-08 15:14:54 +10:00
Mikunj 216cbb057a Updated remote node host 2020-04-21 13:51:54 +10:00
Mikunj Varsani 2eb941518c
LNS (#127)
* Add UI for lns.

* Fix watch handlers

* Made lns purchase a component.

* Add config for vscode intellisense

* Add fetching of LNS Records

* Add owner field

* Update LNS logic to use correct rpc calls.

Turns out we never send the `name` to the rpc, instead we send `name_hash` and from that we can correctly decrypt `encrypted_value`.

* Add lns record display

* Map request_index to owner

* Add viewing record details.
Refactor.

* Add decrypt ui

* Minor fix

* Added name and value decryption

* Cleanup.
Don't show records which don't belong to us.

* Refactor
2020-04-07 12:56:15 +10:00
Mikunj 9d37ff9381 Don't show cannot update dialog if we failed to check for updates 2020-03-30 09:28:38 +11:00
Mikunj 4483dee066 Remove deprecated blink code 2020-03-26 14:36:41 +11:00
Mikunj Varsani bc92eba746
Bug Fixes (#128)
* Minor fixes

* Fix config saving

* Fix duplicate addresses

* Fix error on transaction prove and check

* Fix password dialog not showing
2020-03-26 09:21:04 +11:00
Mikunj c3bc247737 Refactor auto updating 2020-03-04 15:44:16 +11:00
Mikunj 7add1654f2 Linting 2020-03-03 14:43:29 +11:00
Mikunj f3884a3ef0 Added auto updating.
Ask user about updating.

Fix quit and install process.
Removed unnecessary logs

Added progress bar when selecting download and install.

Added releasing instructions

Minor fix
2020-03-03 10:29:59 +11:00
Mikunj 66a6edce64 Improved error handling 2020-01-17 09:29:21 +11:00
Mikunj 51e2025cba Updated nodes 2020-01-15 12:24:34 +11:00
Mikunj 55d5765161 Fix wallet crashing on exit 2020-01-15 10:29:51 +11:00
Doyle 54f911fc94 Set the blink flag on transfer 2020-01-10 12:07:21 +11:00
Mikunj 4a17fc0dd4 Improve wallet listing and old gui wallet copying.
We now list a wallet if we have a .keys file inside the wallet directory.
Copying old wallets now archives the old wallet files first and then copies the whole contents of the directory to the wallets dir.

i don't know why i did it the hard way before...
2019-12-18 11:52:20 +11:00
Mikunj d9e5f52a4a Fix wallet not returning to config screen if daemon or wallet exited. 2019-12-18 11:09:00 +11:00
Mikunj 12c909ddd2 Show error to the user if wallet rpc cannot be found. 2019-10-14 13:56:48 +11:00
Mikunj c6c1f359db Replace path require with upath. 2019-10-14 13:09:29 +11:00
Mikunj 09b9c691a2 Removed unresponsive nodes. 2019-10-14 12:58:00 +11:00
Mikunj 34f8932565 Fix path normalisation.
Added upath.
Updated fs-extra.
2019-10-14 11:43:50 +11:00
Mikunj 6bcb7d018f Added timeout when connecting to a remote node.
This should fix the problem where connecting to daemon takes a very long time.
2019-08-21 10:55:32 +10:00
Mikunj 091f3f3ae0 Don't show unlock button if service node is being unlocked. 2019-07-15 15:31:19 +10:00
Mikunj Varsani 25c550b0f3
Merge pull request #86 from jagerman/atomic-value-fix
Fix atomic value calculation for stake/transfer
2019-06-26 08:53:27 +10:00
Jason Rhinelander 1120a86b70 Fix atomic value calculation for stake/transfer
The logic underlying the conversion of input value into atomic value was
wrong: for some values, `parseFloat(amount).toFixed(9) * 1e9` doesn't
result in an integer because of numeric imprecision, and so a
non-integer value gets passed into the RPC wallet which chokes on it.

For example:

    ((parseFloat("17199.899334361")).toFixed(9)*1e9).toString()

gives

    17199899334360.998

This fixes the code to multiply by 1e9 *before* rounding to an atomic
unit so that we always get an integer value.
2019-06-25 17:30:40 -03:00
Mikunj 196071fb8c Improve how daemon status is shown and fetched. 2019-06-19 16:31:48 +10:00
Mikunj bfca2a0de9 Show daemon syncing status on the starting screen. 2019-06-19 15:09:44 +10:00
Mikunj 00f8663c0c Linting + more translation stuff. 2019-06-19 12:38:00 +10:00
Mikunj 7408ece55f Display app version in the title. 2019-06-19 10:01:04 +10:00
Mikunj 6ea34d1513 Allow copying service node key and viewing on explorer.
Removed unlock page and moved component into staking page.
2019-06-18 15:32:29 +10:00
Mikunj Varsani dd271a2130 Hooked up RPC calls + more UI changes. 2019-06-13 12:39:09 +10:00
Mikunj Varsani 0e903a6abc Update service node list upon stake, registration or unlock. 2019-06-07 14:47:10 +10:00
Mikunj Varsani 0c8e2e398f Redesigned service node unlock page.
Instead of asking for a hex key, we show all the service node the user is staking to along with the amount.
2019-06-07 11:58:40 +10:00
Mikunj Varsani 54d1755dac get service nodes when starting the app. 2019-06-07 10:34:29 +10:00
Mikunj Varsani f16550f725 clean up electron-main 2019-06-07 10:16:41 +10:00
Mikunj Varsani a616c2f820 Added menu when right clicking inputs. 2019-06-07 10:11:28 +10:00
0x31337 25b4e41fdf
Update backend.js
Changing rpc.nodes.rentals to rpc.stakeit.io
2019-05-12 05:36:08 +02:00
Mikunj Varsani 897a4ad01c
Minor fixes (#47)
* Don't reset award address after staking.

* Fixed wrong transaction url opening on testnet.
Disabled view on explorer on stagenet.
2019-04-24 13:44:45 +10:00
Mikunj 8a3e8044d3 Added language selection. 2019-04-12 10:44:41 +10:00
Mikunj 6ee9827ae1 Added i18n support.
Refactor receive page.
2019-04-11 15:09:20 +10:00
Mikunj 80196dde97 Fix wallet list showing other non wallet files.
E.g if you added a rar file then it would show up in the list.
2019-04-08 12:52:05 +10:00
Mikunj a3541e81e8 Restart the application when switching wallets IF rpc is syncing.
Keep track of wether we are syncing (rpc is being blocked) or not.

If we quit while syncing then we force kill the process.
2019-04-08 12:26:17 +10:00
Mikunj 381a75e63a Instantly open up the wallet instead of waiting for get_balance.
Show an error if we opened the wallet while another wallet was syncing.
2019-04-08 11:43:18 +10:00
Mikunj Varsani 4838b4f2e0
Merge pull request #32 from Mikunj/wallet-start-fix
Show error when daemon or wallet rpc were unable to be started.
2019-04-03 09:17:30 +11:00
Mikunj 5032c27469 Merge branch 'development' into wallet-start-fix 2019-04-03 09:15:14 +11:00
Mikunj 34c820ec30 Changed name from Loki Wallet Atom to Loki Electron Wallet.
Fixed version display
2019-04-02 15:07:47 +11:00
Mikunj Varsani ae695c7f75
Merge pull request #31 from Mikunj/unlock-fix
Fixed service node unlock
2019-04-02 14:52:18 +11:00
Mikunj 75f5e2d233 Show error when daemon or wallet rpc were unable to be started. 2019-04-02 14:37:52 +11:00
Mikunj 2a3635e88c Fixed service node unlock 2019-04-02 10:53:17 +11:00
Mikunj a188cca7ba Fix up variables used when restoring from timestamp 2019-04-01 11:34:36 +11:00
Mikunj 7f494c54bd Added new regex to detect sync height.
Cleaned up regex checking code.
2019-04-01 11:26:46 +11:00
0x31337 d9e2f09097
Adds geobalanced public node rpc.nodes.rentals.
Automatic geobalancing at the DNS query level based on the country / continent of the person connecting to the servers.
2019-03-29 08:44:27 +01:00
Mikunj 53678f6ead Show loader when wallet is being deleted.
Fix password hash checking to include checking null.
2019-03-28 15:33:03 +11:00
Mikunj 4f5817d731 App now restarts when changing settings instead of just quitting. 2019-03-28 15:33:03 +11:00
Mikunj 235b51ad48 Show error when we failed to copy wallet files to new gui when importing. 2019-03-28 15:33:03 +11:00
Mikunj 2aa713f648 Show error if no key images were found.
Linting
2019-03-27 14:49:58 +11:00
Mikunj Varsani 0bacdd1587
Merge pull request #12 from Mikunj/export-key-images
Fix up key export and import.
2019-03-27 14:30:21 +11:00
Mikunj 6bbe56e148 Changed from port 12213 to 12313 2019-03-27 13:48:25 +11:00
Mikunj fc6e88783d Fix up key export and import. 2019-03-27 13:40:53 +11:00
Snider 4bf8d7eeba
adds HashVault public node 2019-03-26 16:34:04 +00:00
Mikunj e7727f628f More features and fixes
Linting

Increased default window size.
Fixed transaction text overlapping on a small screen

More changes.

Replaced icons.
Added loki icon to the top menu bar.
Added small margin to copy button in show private key modal.

Hid back and next button in welcome screen. Users must now click the language to go to the next screen.

Randomise remote nodes when configuring from the welcome screen.

Added viewing QR code from receive
Added QR copying

Made mac icon a bit smaller

Updated links and added loki project to copyright
check data dir exists

Updated service node page.
Moved staking into its own component.

Check remote node before booting up daemon.
Update restoration start date.
Made network types in GUI match those returned from lokid (main -> mainnet, staging -> stagenet, test -> testnet).
Removed unaccessible remote nodes.

Separate data and wallet directories.

Updated created page layout

Don't ask user for a password if it's not set.
Show a dialog to the user if they don't set a password.

Show staking transaction.

Added option to import file from old gui.

Added saving transaction notes straight from send.
Fix updated tx notes not showing in transactions

Clean up transfer code

Minor fixes

Show user error if a wallet failed to import.
bug fixes
2019-03-20 16:21:16 +11:00
Mikunj bcf21c3804 Redesign
Main screen redesign

Removed dark mode styling and made it all dark.

Fix large button styling on navigation

Receive page styling

Startup pages redesign

Updating field stylings.
Fix value display in recieve

Updated footer.

Added service node page.

Added wallet settings.

Added disable prop to loki field.

Update settings page.
Added merging config with default daemon option incase user provides invalid port (empty, null, etc...)

Removed theme selection

Update wallet-select pages

Fixed converting numbers to string

Update layout on address page

Added loki logo.
Made header a bit smaller.

Updated wallet init styling.
Highlight primary address in receive.

updated packages.

Updated transaction styling.

Simpler tx json handling.

Added address validation

Fixed up wallet restoration

Default node to remote.
Added drop down button to the remote node input instead of having it as a seperate field.

Removed review page.
Center align welcome page.

Replaced ryo wallet images with loki image.

Updated transaction styling.

Fix wallet errors only showing once which causes the next error to just show the loading overlay.

Added staking

Fix up status display in footer.
remove is_ready as lokid doesn't return it.

Fixed balance display in receive.
Center unlock in wallet details.

Updated README
other updates.
2019-03-13 15:38:34 +11:00
Mikunj 7b761877d1 Loki changes
Update package json

Linting.

Fixed websocket not working.

Move to lokid and rpc.

Re-branding

Fixed rpc call for wallet restoration.

Force ring size of 10
Other fix.

Added service node ui.

Added different daemons

Added remote preset loading.
Fixed priority options.
Fixed links.
2019-03-13 15:33:47 +11:00
mosu forge ff6c511536 Use queue for RPC calls 2019-02-06 23:27:41 -08:00
mosu forge 885751dd2c delay on client side web socket listening to prevent hanging on connecting to backend step 2018-11-03 15:39:37 -07:00
mosu forge 04b70b3a48 return to config screen if daemon is unreachable during startup 2018-11-03 15:39:37 -07:00
mosu forge 243801f7d7 fix empty ban time and refreshing of peers 2018-11-03 15:39:37 -07:00
mosu forge 60314e708b prevent new top level config entries from causing error in previous atom version 2018-11-03 15:39:37 -07:00
mosu forge 35932f1966 changed min screen size to 640x480, changed default size to 800x650 2018-11-03 15:39:37 -07:00
mosu forge 391b49a943 changed restore from date to not include time 2018-11-03 15:39:37 -07:00
mosu forge 83af664733 Added save image context menu on all identicons and QR codes 2018-11-03 15:39:37 -07:00
mosu forge 59f8d66bc9 implemented restore from date, set as default option 2018-11-03 15:39:37 -07:00
mosu forge f96d0d7ad9 add delete wallet function 2018-11-03 15:39:37 -07:00
mosu forge 2462d58029 add change password function 2018-11-03 15:39:37 -07:00