140 Commits

Author SHA1 Message Date
yenda
c3c4a5170a
[multiaccount] rename multiaccount to account
Signed-off-by: yenda <eric@status.im>
2019-07-22 11:14:44 +02:00
Roman Volosovskyi
908f730b1d
[perf] network module 2019-06-13 09:33:18 +03:00
yenda
89680f4861
[performance] improve wallet update performances
`wallet-autoconfig-token` is a very expensive call on mainnet
because it checks the balance of every known token.

it is called:
- when wallet is refreshed by pulling
- when user goes on any wallet screen

this PR changes that by:
- calling it only when the wallet is initialized and there is no
visible-token configuration

it only calls update-wallet when a new transaction arrives
2019-05-23 10:44:15 +02:00
yenda
f5c18ae7a9
[feature] use subscriptions for tokens
- removes fetching of last 100000 blocks of token transfers from
the wallet pull loop
- fetches the last 100000 blocks of token transfers at startup
- replaces pulling by subscriptions to ethlogs for token transfers
2019-05-23 10:30:32 +02:00
Andrey Shovkoplyas
23b04288f1
[#7983] Basic user added ERC-20 support
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-05-20 14:29:38 +02:00
Dmitry Novotochinov
1f24f1c4f6
[#7897] fix navigation bug on keycard tx sign
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-05-11 15:27:30 +03:00
yenda
c4f719352e
[fix] wallet on-error dispatch
the code to dispatch an event on transaction error was not working
this fixes it

Signed-off-by: yenda <eric@status.im>
2019-04-25 17:42:34 +02:00
yenda
60225995b7
fix token transactions
Signed-off-by: yenda <eric@status.im>
2019-04-24 19:52:58 +02:00
yenda
3134d1dfce
[fix] fetch wallet token transactions
- previously wallet transaction fetching was quite hazardous
- most of the time the `:wallet/all-tokens` map was nil so no token
was recognized
- the query for transfers was made accross 100000 blocks, now it
only checks that the first time, then from latest block checked minus
12 to follow progress of unconfirmed transactions

Signed-off-by: yenda <eric@status.im>
2019-04-23 14:24:41 +02:00
Dmitry Novotochinov
4decedf5f6
Revert "Revert "[#7133] sign tx with keycard""
This reverts commit 4ccb1ea52d26904dfa63a55c6c19c86719e0ed5d.

Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-04-05 15:49:47 +03:00
yenda
e690dbdf89
[feature] contracts namespace
* `open-sign-transaction-flow` cleaner version of
`open-modal-wallet-for-transaction`
* The contract namespace provides the `call` effect:
- takes contract identifier from contracts, method, params and callback
- select the correct contract address based on current network
- encode params, decodes results
- start wallet transaction flow for write calls

Signed-off-by: yenda <eric@status.im>
2019-04-03 10:26:26 +02:00
Dmitry Novotochinov
4ccb1ea52d
Revert "[#7133] sign tx with keycard"
This reverts commit feffcaf33d419b3e95ce304cd83332b98bf1109f.

Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-04-02 20:12:40 +03:00
Dmitry Novotochinov
feffcaf33d
[#7133] sign tx with keycard
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-04-02 18:07:41 +03:00
Roman Volosovskyi
298f000fcb
Disable Etherscan and Cryptocompare requests in chaos mode 2019-03-19 19:35:24 +02:00
Andrey Shovkoplyas
ba37f7b8d0
[#5461] Implement EIP-712
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-03-07 15:39:17 +01:00
Goran Jovic
520f6ad354
refactor #7263 - decoupled sign message flow from send transaction flow
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2019-03-01 14:41:06 +01:00
Roman Volosovskyi
25bc3429cd
Enable new routing, remove old code 2019-02-14 18:20:32 +02:00
Andrea Maria Piana
7960fdef85
Publish contact updates periodically
Currently it's very easy for contact details to get out of sync, the
simplest example is:
A & B are contacts.
A changes name.
B receives the updated name.
B re-install the app.
Until A changes name again, B will not see their name, picture and won't
be able to send push notifications.

This PR changes the behavior to publish account informations to contacts
every 24 hrs, to add some redundancy in this cases.

It also publishes a contact code every 12hrs.

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-02-12 14:20:45 +01:00
Bruce Hauman
a5c5e1831f
better protect transaction history polling from errors
Go blocks parse try catch blocks and turn them into event
dispatches. This captures the original intent of the code to catch
errors and terminate the current async worker execution.

Signed-off-by: yenda <eric@status.im>
2018-11-21 17:25:36 +01:00
Goran Jovic
72e7ae2fff
feature #6509 - validating token config against their contracts; moved token info from compile time list to app-db; fixed any discrepancies in existing info
Signed-off-by: Goran Jovic <goranjovic@gmail.com>
2018-11-20 17:18:08 +01:00
yenda
b41df3b3c2
updating cljs compiler
Signed-off-by: yenda <eric@status.im>
2018-11-16 13:10:31 +01:00
Bruce Hauman
1716643c46
[#5749] transaction history fixes
Signed-off-by: Goran Jovic <goranjovic@gmail.com>
2018-11-16 10:03:54 +01:00
tbenr
c363c06a17
fixes #5699
gas estimation sets original-gas when nil

Signed-off-by: Goran Jovic <goranjovic@gmail.com>
2018-11-12 11:04:05 +01:00
Aleksandr Pantiukhov
358b447b67
React Native HTTP Bridge 0.6.1 update: ability to handle simultaneous HTTP requests properly
Signed-off-by: Aleksandr Pantiukhov <alwxndr@gmail.com>
2018-11-07 16:24:51 +01:00
Goran Jovic
8d168bf3cd
bug #5899 - restored missing transaction error messages
Signed-off-by: Goran Jovic <goranjovic@gmail.com>
2018-11-06 17:46:09 +01:00
Julien Eluard
fceaa0981f
Fixed some extensions issues (smallish)
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2018-11-06 15:56:37 +01:00
Aleksandr Pantiukhov
654950dcaa
GET /networks endpoint for development server
Signed-off-by: Aleksandr Pantiukhov <alwxndr@gmail.com>
2018-10-28 16:49:12 +01:00
Goran Jovic
3da2cd9b9e
feature #6250 - added xdai and poa sidechains
Signed-off-by: Goran Jovic <goranjovic@gmail.com>
2018-10-24 10:00:04 +02:00
Andrey Shovkoplyas
5ba5395d57
[extensions] ethereum events
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2018-10-19 15:38:45 +02:00
Aleksandr Pantiukhov
76a724a2e7
[#6228]: API: requesting to connect to a node that is not available crashes the application
Signed-off-by: Aleksandr Pantiukhov <alwxndr@gmail.com>
2018-10-18 16:43:42 +02:00
yenda
1a2fcdfe3a
refactor contact models
- move models.contact and models.contacts to contact.core
- add tags field to contact and chat

Signed-off-by: yenda <eric@status.im>
2018-10-15 11:57:48 +02:00
yenda
efdd76b364
refactor inbox
Signed-off-by: yenda <eric@status.im>
2018-10-11 14:47:04 +02:00
yenda
4bd5d986b0
remove merge-fx macro
Signed-off-by: yenda <eric@status.im>
2018-09-25 15:18:44 +02:00
yenda
8459fef358
Refactor browser and permissions
- move db and models ns to browser module
- remove browser navigation/preload-data
- rewrite dapp-permission logic and move code to permissions ns
- rewrite all browser events according to guidelines and move them to
`status-im.events` ns
- rewrite tests for browser and permissions
2018-09-24 12:08:34 +02:00
janherich
8913dee762
Chat refactoring
Move chat views to ui.screens
2018-09-20 13:27:43 +02:00
Aleksandr Pantiukhov
eda73bf8ef
[#5583]: Stronger security checks in browser; Metamask phishing detector
Signed-off-by: Aleksandr Pantiukhov <alwxndr@gmail.com>
2018-09-18 17:54:42 +02:00
Roman Volosovskyi
6438a1387b
[#4866] intagrate react-navigation 2018-09-18 14:21:32 +03:00
Andrey Shovkoplyas
a20facd895
web3 opt-in updates
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2018-09-13 18:27:43 +03:00
Dmitry Novotochinov
ca149062ad
[#5593] Disallow decimal wei value for gas price
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2018-09-11 20:10:01 +03:00
Eric Dvorsak
8dc9af8917
refactoring of events into status-im.events
Signed-off-by: Eric Dvorsak <eric@dvorsak.fr>
2018-09-11 15:09:54 +02:00
Eric Dvorsak
80aa0e9286
[feature #5213] allow user to select fleet in settings
- get wnodes from resources/config/fleets.json which is taken from
fleets.status.im
- store wnodes by fleet and not by network since they are always the same
- reset wnodes settings during migration
- add option in developper menu to select fleet
- mailservers are now presented by their real name

Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2018-09-07 15:33:29 +02:00
janherich
252d09ee05
Fix the bug and remove requests 2018-09-06 18:24:17 +03:00
Eric Dvorsak
8eb5047d7a
[fix #4819] update react-native to 0.56
Fix figwheel-bridge path in clj-rn.conf.edn
update SplashScreen
update ios to 9.0
updated Podfile.lock
downgrade cocoapods to 1.5.2
update package-lock.json
update pod repo when installing
update appcompat to v27

Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2018-09-05 21:27:46 +03:00
Aleksandr Pantiukhov
e03e6a5fc1
Fix of status-im.models.network/action-handler to make tests pass again
Signed-off-by: Aleksandr Pantiukhov <alwxndr@gmail.com>
2018-09-05 16:32:56 +02:00
Aleksandr Pantiukhov
b283ffe4af
[#5315]: Status development tools: HTTP debugging, updated react-native-http-bridge
Signed-off-by: Aleksandr Pantiukhov <alwxndr@gmail.com>
2018-09-05 15:01:53 +02:00
Eric Dvorsak
6d84795b2a
[fix 5738] unread counter disappears after app restart
`get-unviewed-messages` cofx was using the `current-public-key`
field from app-db
since it is not set at the point cofx are computed during the init
phase this field is nil and therefore no unread messages were found

the fix changes the cofx so that it returns a function as it is
already done for many cofx that needs parameters that are not
known at the time cofx are computed.

Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2018-09-04 14:08:11 +02:00
Andrey Shovkoplyas
c96bc5aa8b
[#4772] Resolve ENS domains in browser
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2018-09-03 11:47:26 +03:00
Julien Eluard
ae976e205f
Added extensions loading panel
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2018-08-31 16:41:58 +02:00
Andrey Shovkoplyas
b754092710
update status js api according to latest changes in web3 opt-in EIP
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2018-08-29 17:23:07 +03:00
Eric Dvorsak
dacfe97a58
refactor events and fns to dedicated namespaces
- move init events and fns to dedicated namespace
- move web3 events and fns to dedicated namespaces
- move signal events and fns to dedicated namespace
- move notifications events and fns to dedicated namespace
- cosmetic fixes
- remove print statements
- fix formating
- remove unused imports
2018-08-28 14:44:55 +02:00