Commit Graph

2981 Commits

Author SHA1 Message Date
Andrea Maria Piana 9cd891365a
Use payload & avoid transforming in clojure objects.
This commit includes a few performance fixes:
1) Pass a string payload instead of an hex encoded string, to avoid
unecessary conversion
2) Don't js->clj on messages, as that's fairly expensive and we can get
away without
3) Don't use `pr-str` `read-string`, rather convert to json

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-10-23 15:52:32 +02:00
Andrea Maria Piana 57b1722863
Verify ens names on messages and contact requests
This commits verifies ens names when new messages or contact requests
come through.
A batch of ens names is sent to status-go which will then verifying them
and the result will be passed back in a callback to status-react.

Also temporary skipped test_ens_in_public_chat until we merge the ENS
code (blocked currently by 1.9 upgrade)

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-10-23 12:32:28 +02:00
Roman Volosovskyi 474ff00c7f
[#8650] Tappable "backup seed" notification in wallet
- notification is tappable
- appears only if user has nonzero balance and hasn't backed up seed yet
- Fix e2e test for this change
2019-10-22 18:14:13 +03:00
Andrey Shovkoplyas cbe17cbe02
[#8940] Redesign Back, swipe-to-the-left and hardware device Back buttons to align the behavior
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-18 17:27:03 +02:00
Andrey Shovkoplyas 1c51731aea
[#8446] [Multi-Account] Build account settings for individual wallet
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-18 12:09:47 +02:00
yenda 7b6dfad702
[fix 8853] fix change of whisper id in ens registration
A user can type in their existing name in the registration flow. Status can
confirm if they own it. After signing a transaction, the user can update the
Whisper ID to their new one.

Instead of using a hardcoded contract for stateofus, the standard `owner`
method is called to find the resolver contract of a ens name.
This allows users to set the pubkey even for ens names that are not
subdomains of stateofus

Signed-off-by: yenda <eric@status.im>
2019-10-16 17:32:07 +02:00
yenda 500d2cc787
fix navigation reset
currently navigation-reset only works properly if you reset to a simple route

this fix allows us to use navigation reset with more complex routes, by
ensuring that the navigation stack is populated properly so that navigate
back doesn't end up emptying the stack.

this is temporary as the proper way to do navigation in general would be
to get rid of view id and navigation-stack entirely, since it is a duplication
of the state of react-navigation

Signed-off-by: yenda <eric@status.im>
2019-10-16 15:02:26 +02:00
Andrea Maria Piana 1314c6e7d7
Disable spinner when generating multiaccount
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-10-16 14:28:17 +02:00
Andrey Shovkoplyas da4d95d85c
drop les
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-15 13:55:39 +02:00
acolytec3 2ddfcd4f88
Point network to correct current-network
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-15 13:54:59 +02:00
Andrey Shovkoplyas 09be82272a
[#8662] No chats on 'Chats' view if to clear entered search term in 'Search' chat input
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-11 13:10:28 +02:00
Andrey Shovkoplyas df098f82f6
[#8977] [Multi-account] Allow user to choose wallet for DApp transactions
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-11 11:08:56 +02:00
Vitaliy Vlasov 5fd269fde8
Onboarding UI fixes
Signed-off-by: yenda <eric@status.im>
2019-10-10 21:00:29 +02:00
Andrey Shovkoplyas 6b1c30b44c
[#8997] Error 'Hzb.checkViodeoAuthorizationStatus in not a function' at attempt to scan QR on IOS
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-10 17:04:13 +02:00
tbenr ee5040c391
fixes #8657
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-10 12:02:09 +02:00
Vitaliy Vlasov 227127f153
Add preserve-input flag to text-input
Signed-off-by: Vitaliy Vlasov <siphiuel@gmail.com>
2019-10-09 17:37:24 +03:00
Andrey Shovkoplyas d2ff665d6e
[#9107] Collectibles (except CryptoKitties) are not loaded (endless spinner) after relogin
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-09 15:54:12 +02:00
Andrey Shovkoplyas 92f230ee13
[#9139] Can not purchase sticker pack (too low no sign with password button)
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-09 11:40:02 +02:00
Marcus R. Brown 22de1f7490
Fix sticker pack installation buttons
- Fix sticker pack installation buttons
- Add "↓ Free" text and update "Install" text
- Distinguish between owned and free sticker sets
- Rename owned -> owned? in price-badge
- Add tiny-snt icon
- Update the sticker price badge icon and padding

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-09 08:25:29 +02:00
Andrey Shovkoplyas 284f9bffed
[#8937] Recent stickers are shown when stickers tab is highlighted
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-08 13:27:53 +02:00
Dmitry Novotochinov 7a642c76de
[#8989] hide keycard settings for regular accounts
[#9019] hide Add new account in Wallet for keycard users

[#9023] fix redirect on keycard setup cancel

Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-10-08 14:19:32 +03:00
Dmitry Novotochinov c1c195adbe
[#9025] fix keycard pairings persistence
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-10-08 11:45:15 +03:00
acolytec3 5ce678eb62
Suppress back-up-seed prompt when already done
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-07 12:12:53 +02:00
acolytec3 72867473d0
Add currency conversions for signing sheet
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-04 18:13:53 +02:00
Andrea Maria Piana ba34af0dd4
[Fixes #9088] Store eip1581 path and wallet root path, don't store
master key

When creating the account we store as well the path specified in eip1581
https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1581.md ,
`m / 43' / 60' / 1581'`.

The reason for doing so is that eventually we might want to derive an
encryption key from it, which would require the user to re-enter their
seed phrase if we would not store this.

This commit changes the behavior not to store the master key, and
instead store `m /44'/60' /0'/0`, from which wallets are now derived.

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-10-04 12:54:26 +02:00
Andrey Shovkoplyas b3d04bb68c
[#8966] biometric
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-04 12:43:32 +02:00
Alex Good 78c57a356b
Fix small UI problems with the compose reply screen
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-02 13:21:19 +02:00
Volodymyr Kozieiev ace4b5a161
Desktop works with react-navigation v3
Signed-off-by: Volodymyr Kozieiev <vkjr.sp@gmail.com>
2019-10-02 10:19:37 +03:00
Andrea Maria Piana 42961f3a0e
Add username to quoted message
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-10-01 12:13:36 +02:00
Andrey Shovkoplyas 9d06f01506
[#8934] Only one sticker is shown in "Recently used"
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-09-30 16:15:08 +02:00
Andrey Shovkoplyas 371c66aad1
Remove UUID related code #9048
Signed-off-by: yenda <eric@status.im>
2019-09-30 15:55:55 +02:00
Andrey Shovkoplyas f52b87ef22
[#8945] "null is not an object" error when tap on sticker sent in chat
Signed-off-by: yenda <eric@status.im>
2019-09-30 15:55:12 +02:00
Andrey Shovkoplyas bedb6a841b
keycard seed suggestions
Signed-off-by: yenda <eric@status.im>
2019-09-30 15:37:04 +02:00
Andrey Shovkoplyas 7ddebcb815
[#8973] Mobile data syncing pop-up missing text
Signed-off-by: yenda <eric@status.im>
2019-09-30 15:33:22 +02:00
Andrey Shovkoplyas 6a732570c7
[#9034] Turn off autosuggestion on seedphrase confirmation input
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-09-30 10:38:40 +02:00
Pedro Pombeiro f8d447fa59
Hide Account Export menu item in wallet for v1. Closes #9040
Signed-off-by: yenda <eric@status.im>
2019-09-28 14:00:18 +02:00
Andrea Maria Piana acd7e56d1d
Add gfycat/identicon from status-go
Signed-off-by: yenda <eric@status.im>
2019-09-26 14:12:43 +02:00
yenda c047b588ed
throw errors on dangerous behaviours
- if multiaccount settings are saved on top of an empty map or nil,
this means something went wrong, the state of the app is unstable,
and actually saving will result in loss of data. It should never
happen, but if it does, throw and error and abort.
- sometimes two fxs are merged when they shouldn't, this is caused by
bugs and should never happen, but if it does, throw an error with arguments
for both effects to help localize the error

Signed-off-by: yenda <eric@status.im>
2019-09-25 19:33:43 +02:00
yenda bf6b328996
replace require-macro for defnstyle and defstyle
- renamed the macros def and defn so that they are now used with aliased
namespace `styles/def` and `styles/defn` to force user to use aliased require
instead of require-macro and refer
- this makes sure the cljs file is required which includes the require for
platform ns needed after macroexpension

Signed-off-by: yenda <eric@status.im>
2019-09-25 17:18:26 +02:00
Dmitry Novotochinov 18ce3b0129
[#8968] custom seed phrase popover
Signed-off-by: yenda <eric@status.im>
2019-09-25 09:39:25 +02:00
yenda 3ee52b4fba
hotfix styles.cljs
Signed-off-by: yenda <eric@status.im>
2019-09-24 22:38:41 +02:00
yenda 133800b191
remove wrap-first-time
Signed-off-by: yenda <eric@status.im>
2019-09-24 18:57:15 +02:00
Andrey Shovkoplyas 222c6ac20c
[#8516] Cannot delete dapp from "Recent" 2019-09-24 12:06:53 +02:00
tbenr f7076016d8
fixes #8071
Signed-off-by: yenda <eric@status.im>
2019-09-20 17:54:23 +02:00
yenda 8ccc858d41
fix #9003 Recover deleted translations
replace i18n/message-status-label by regular label to avoid repeating
this issue in the future

recover the following labels:
- status-not-sent-click
- status-not-sent-tap
- status-sent

Signed-off-by: yenda <eric@status.im>
2019-09-20 13:07:11 +02:00
yenda 9a2ba3009d
fix log level config
the log level config for status-go wasn't saved in the node-config
as a result even though the setting looked applied in the UI it wasn't
in the node
2019-09-17 23:31:32 +02:00
Andrea Maria Piana 49d882ba29
Fix bootnodes toggle
Signed-off-by: yenda <eric@status.im>
2019-09-17 23:30:19 +02:00
yenda e87d75039e
remove unused use-status-go-protocol? flag and code
Signed-off-by: yenda <eric@status.im>
2019-09-17 17:10:13 +02:00
yenda 543d28fbc1
remove unused deleteChat rpc method and effects 2019-09-17 17:09:23 +02:00
yenda 47bae76c73
remove group-chat-local-version 2019-09-17 17:09:22 +02:00