48 Commits

Author SHA1 Message Date
Richard Ramos
f16de508ed Add procs for save/get settings 2020-06-01 12:39:45 -04:00
Richard Ramos
a244e236e8 fix: code review + error handling 2020-05-29 11:13:13 -04:00
Richard Ramos
02c9f1cc6a Leave chats 2020-05-29 11:13:13 -04:00
Richard Ramos
8d2b955bcd load chats on login 2020-05-28 17:36:22 -04:00
emizzle
0f59529c57 feat: add login functionality
Add login functionality. If node accounts exist in status-go (keystores in ./data dir), then show the Login screen. Otherwise, show the Onboarding screen (generate keys screen).

Update nim-stew to latest version.

Change references to Address to the common type Account to prevent repeating of types.

Distinguish between unknown and unhandled signals.

Pass signals through to subscribers regardless if the signal type is known (in case the SignalSubscriber handles it with string comparison or other).

Update serialization as much as possible

Latest nim-stew updates allow type inheritance during de/serialization
2020-05-28 07:51:04 -04:00
Iuri Matias
dda6b3c76d add support to leave a chat
add support to leave a chat

add support to leave a chat

fix

add leave chat methods to model
2020-05-26 18:06:48 -04:00
Jonathan Rainville
b8431c776d fix: fix addFilter to not have topic for now 2020-05-25 18:28:29 -04:00
Jonathan Rainville
594b3974c9 move addPeer to the setupAccount function 2020-05-25 18:28:29 -04:00
Jonathan Rainville
f7d99c4bb4 feat: get last 20 messages of a channel when joining the chat 2020-05-25 18:28:29 -04:00
Richard Ramos
20766d2dae Add whisper.added.filter signal handler 2020-05-25 15:54:01 -04:00
emizzle
e1d1880aca fix: change onboarding account to whisper key
Previously, the displayed key for generated accounts was displaying the public key of the account, and not the whisper account. This has been fixed.

Futher work has gone in to strongly-typing a lot of the responses from status-go and removed a lot of the manual string parsing.

Simplified types and type-conversions by using the `nim-serialization` library.
2020-05-25 11:31:18 -04:00
Pascal Precht
729fa1f31c cleanup: remove unused imports in modules 2020-05-25 09:56:29 -04:00
Iuri Matias
e6199fede6 Add node model; simplify more; simplify callRPC
Add node model; simplify more; simplify callRPC

refactor wallet to use asset model

move some of wallet logic away from the controller

move ChatMessage to model

move chatItem model

organize models folder

simplify chat message and chat item

rename messageList to message_list

simply addresses in the controller

rename mailservers list

refactor how profile is set

refactor/simplify profile view

refactor/simplify adding mailservers

rename wallet view

simplify wallet assets

rename nodeView to view

extract channel list view

extract channel list view

refactor channel list / chats view

move signals out of app folder

simplify callRPC

add raw rpc method and make node section use it

add node model

move accounts model inside onboard controller (for now)

make events usage consistent among models and controllers; separate model events from app events
2020-05-25 09:44:33 -04:00
Iuri Matias
6e14749904 simplify controllers and views, make everything more consistent
simplify controllers and views, make everything more consistent

refactor wallet to use asset model

move some of wallet logic away from the controller

move ChatMessage to model

move chatItem model

organize models folder

simplify chat message and chat item

rename messageList to message_list

simply addresses in the controller

rename mailservers list

refactor how profile is set

refactor/simplify profile view

refactor/simplify adding mailservers

rename wallet view

simplify wallet assets

rename nodeView to view

extract channel list view

extract channel list view

refactor channel list / chats view

move signals out of app folder

address code reviews
2020-05-25 09:22:11 -04:00
Pascal Precht
10b51956f2 ui: render mailservers list 2020-05-22 16:56:51 -04:00
emizzle
a1109ca52b feat: Pass login account data in account event
The "accountsReady" event now passes the account information for the account that was logged in, which helps pass the correct account info to Profile and is available for other modules that may need it.

This will become particularly useful once the login functionality is implemented.
2020-05-22 16:11:12 -04:00
Iuri Matias
6344beee9f remove old file 2020-05-21 19:50:58 -04:00
Pascal Precht
985b5d93d0 fix(ui/wallet): don't require password to be entered as hashed hex 2020-05-21 19:50:58 -04:00
Iuri Matias
c1f6a0d06d address code review 2020-05-21 19:33:14 -04:00
Iuri Matias
27c1b4b9b0 remove random account from status model 2020-05-21 19:33:14 -04:00
Iuri Matias
bab04fac6f refactor account setup 2020-05-21 19:33:14 -04:00
Iuri Matias
de5428cc0a simplify method 2020-05-21 19:33:14 -04:00
Iuri Matias
e65449b8de refactor/extract getAccountData method 2020-05-21 19:33:14 -04:00
Iuri Matias
b50d9f71f3 refactor/extract accountsSettings method 2020-05-21 19:33:14 -04:00
Iuri Matias
a69609a254 use default node config 2020-05-21 19:33:14 -04:00
Iuri Matias
a5f5f6f016 use constant for default networks 2020-05-21 19:33:14 -04:00
Iuri Matias
61b5d6e311 refactor/extract generateMultiAccounts method 2020-05-21 19:33:14 -04:00
Iuri Matias
6c03369ca2 refactor/extract saveAccountAndLogin method 2020-05-21 19:33:14 -04:00
Iuri Matias
f5a1c8a065 cleanup 2020-05-21 19:33:14 -04:00
Iuri Matias
8b5ec19fec remove old test.nim; move relevant methods to accounts 2020-05-21 19:33:14 -04:00
Iuri Matias
15b32ddd5a remove lib file 2020-05-21 19:33:14 -04:00
Iuri Matias
48b600f3fd move init node to status_accounts 2020-05-21 19:33:14 -04:00
emizzle
dafd11fbc0 feat: onboarding generate new account
Generates 5 random accounts with identicons, allows user to enter password, then stores the account and logs in to the statusgo node.

Add EventEmitter that notifies nim_status_client.nim once node has started and is logged in (likely needs some refactoring to include the eventemitter in the base controller class).

Add QML StateMachine for the onboarding view.

Add nimcrytpo, uuids, eventemitter, isaac dependencies via submodules.

Add button to Intro view to randomly gen account.
2020-05-21 19:33:14 -04:00
Iuri Matias
24bb268934 add profile module; display username from one of the accounts instead of hardcoded one 2020-05-19 22:04:03 -04:00
Jonathan Rainville
33011385af feat: enable to send private messages after doing add chat
Fixes #50
2020-05-19 15:16:31 -04:00
Pascal Precht
76a0b55d47 feat(ui/wallet): add basic form to send transaction
Closes #49
2020-05-19 11:48:41 -04:00
Pascal Precht
407577c247 feat(status/wallet): add APIs to retreive accounts 2020-05-19 11:48:41 -04:00
Pascal Precht
a09f694d23 feat(core/libstatus): expose status-go sendTransaction binding 2020-05-19 11:48:41 -04:00
Richard Ramos
87e31105e3 Code cleanup 2020-05-19 06:30:30 -04:00
Richard Ramos
a80a6c623b fix: signal handler integration with status-go 2020-05-18 11:42:50 -04:00
Iuri Matias
bc6d1f1623 move views & logic into their respective folders; add initial tab for node management 2020-05-15 18:43:32 -04:00
Iuri Matias
bb1190cbba use status abstraction instead of libstatus directly 2020-05-13 19:22:18 -04:00
Iuri Matias
18db5dc145 add various methods needed for wallet: get price, balance, convert hex wei to eth 2020-05-13 19:22:18 -04:00
Richard Ramos
ed0059d48f Adding missing signals 2020-05-13 19:05:59 -04:00
Richard Ramos
ba2fc5eb73 Signal management 2020-05-13 19:05:59 -04:00
Iuri Matias
9e24821c33 move chat sending json-rpc into status chat module 2020-05-13 15:21:45 -04:00
Richard Ramos
79638f6214 feat: Join chats on demand 2020-05-13 14:01:12 -04:00
Richard Ramos
f16863ab2d reorg status integration 2020-05-13 13:32:52 -04:00