Commit Graph

166 Commits

Author SHA1 Message Date
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
mosu forge 20b01381d4 detect view only mode and disable send tab 2018-11-03 15:39:37 -07:00
mosu forge c631258ab1 use error code from RPC when sending tx fails 2018-11-03 15:39:37 -07:00
mosu forge f25b2faaa6 improving the display of payment_id on the frontend 2018-11-03 15:39:37 -07:00
mosu forge e797179483 save window position and size between loads 2018-11-03 15:39:37 -07:00
mosu forge ef697fdd79 optimized daemon hearbeat action 2018-11-03 15:39:37 -07:00
mosu forge 972ae62594 Added functions to ban peer in settings menu 2018-11-03 15:39:37 -07:00
mosu forge 8ce4e44106 changed key_image import/export to binary format 2018-11-03 15:39:37 -07:00
mosu forge 908d1b8d24 updated settings screen to allow change from dark / light theme 2018-11-03 15:39:37 -07:00
mosu forge 448cae3ca4 interface fixes for key image import / export 2018-11-03 15:39:37 -07:00
mosu forge 57b56196a4 added import_key_images function 2018-11-03 15:39:37 -07:00
mosu forge bd121e45ac added restore view only wallet function 2018-11-03 15:39:37 -07:00
mosu forge cb32e3ca78 added export_key_images function 2018-11-03 15:39:37 -07:00
mosu-forge 39603a1452
Merge pull request #4 from ryo-currency/topic-ignore-system-files
ignore certain system files in wallet directory
2018-09-28 16:31:40 -07:00
mosu forge 9c691ec092 ignore certain system files in wallet directory 2018-09-28 16:30:33 -07:00
mosu ec9336f0a6 Add menu on macOS, add electron build options, fix getVersion on macOS and Windows 2018-09-28 12:12:56 -07:00
mosu forge 94ed4ec316 Import v1.0.0 2018-09-08 14:44:19 -07:00