1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-24 17:28:10 +00:00
Commit Graph

380 Commits

Author SHA1 Message Date
Szymon Lesisz
d3608f7701 fixed webusb button 2018-08-08 13:21:28 +02:00
Szymon Lesisz
0c5635d356 Show loader after 'Acquire Device' button is clicked 2018-08-08 11:43:34 +02:00
Szymon Lesisz
c197f7f7b6 flowtype fixes corresponding changes in trezor-connect 2018-08-08 11:42:12 +02:00
Vladimír Volek
04dfa41949 POC of styled components - migrated header 2018-07-30 16:50:32 +02:00
Vladimír Volek
52239f77b7 POC of styled component 2018-07-30 16:30:25 +02:00
Vladimír Volek
3310a30a54 Fixed babel loader 2018-07-30 14:31:35 +02:00
Vladimír Volek
7beb6131b8 Added test snapshot and updated coverage 2018-07-30 14:17:49 +02:00
Vladimír Volek
c7d21e8435 Added first working test 2018-07-30 14:10:57 +02:00
Vladimír Volek
a99d638a58 Removed custom babel module 2018-07-30 13:52:06 +02:00
Vladimír Volek
c6292a1375 Added jest 2018-07-30 13:44:39 +02:00
Vladimír Volek
7627aade89 Fixed some eslint problems 2018-07-30 12:52:13 +02:00
Szymon Lesisz
c5bb32684d trezor-connect flow from node_modules 2018-06-13 19:33:24 +02:00
Szymon Lesisz
9b8b5f55a9 set default gasLimit if data.length < 1 (estimateGasPrice) 2018-05-30 16:23:21 +02:00
Szymon Lesisz
4f5134f32e fix: token balance - pending tx 2018-05-29 13:36:18 +02:00
Szymon Lesisz
af26e0f55c Send: Advanced form tooltips 2018-05-29 13:35:30 +02:00
Szymon Lesisz
f3ccc617f5 propagate UPDATE_SELECTED_ACCOUNT only if needed 2018-05-29 11:51:02 +02:00
Szymon Lesisz
726a41fb8c fix: nonce count when account.nonce == 0 && pending.length == 0 2018-05-29 11:50:31 +02:00
Szymon Lesisz
148a61645f pendingTx rejected state 2018-05-29 10:48:28 +02:00
Szymon Lesisz
b41e6bacc0 save and clear SessionStorage called from SendformActions 2018-05-29 10:47:48 +02:00
Szymon Lesisz
4d43a4acc4 fix: display very small numbers as .toString(10) 2018-05-28 20:06:01 +02:00
Szymon Lesisz
b67315e180 dispose and initialization selectedAccount view 2018-05-28 19:48:07 +02:00
Szymon Lesisz
47af92ae2c fix: calculate pending amount 2018-05-28 19:42:19 +02:00
Szymon Lesisz
46c1f8b2b7 remove device instances with different "passphrase_protection" settings
while DEVICE.CONNECT event
2018-05-28 19:42:03 +02:00
Szymon Lesisz
1e89993727 calculate nonce runtime (account.nonce + pending.nonce) 2018-05-28 16:58:32 +02:00
Szymon Lesisz
19321dffa9 init selected account in actions 2018-05-28 16:56:34 +02:00
Szymon Lesisz
a9ad70d155 aside bottom css 2018-05-28 11:21:58 +02:00
Szymon Lesisz
00ee6465c9 Account balance - pending txs 2018-05-28 11:21:47 +02:00
Szymon Lesisz
43ddffb6e9 implementation on selectedAccount.pending 2018-05-25 11:49:37 +02:00
Szymon Lesisz
7b639fb223 added pending to SelectedAccountReducer 2018-05-25 11:49:15 +02:00
Szymon Lesisz
c40432d2f2 export flow type PendingTx 2018-05-25 11:46:32 +02:00
Szymon Lesisz
042540ec95 removed SessionStorageService 2018-05-25 11:27:21 +02:00
Szymon Lesisz
09fe94c71d fix localStorage findPendings method 2018-05-25 11:27:06 +02:00
Szymon Lesisz
283af40356 Refactoring: SelectedAccountReducer synchronized with other reducers
thru WalletService + implementation new data model in components
2018-05-25 11:26:36 +02:00
Szymon Lesisz
d74c2ceaba + SessionStorageActions 2018-05-25 11:20:39 +02:00
Szymon Lesisz
2025198d85 sync discovery with LocalStorage 2018-05-25 11:20:12 +02:00
Szymon Lesisz
e1f2d07187 reducer/utils 2018-05-24 18:39:42 +02:00
Szymon Lesisz
5f4e43a860 location state params: param name is used if value is undefined 2018-05-24 18:39:27 +02:00
Szymon Lesisz
597007afbd Web3 ticker [disabled filter('latest') ] 2018-05-24 18:36:34 +02:00
Szymon Lesisz
8a0f945c97 added PENDING.TX_NOT_FOUND 2018-05-23 19:13:24 +02:00
Szymon Lesisz
c1bb93bf5c Receive tab: hide address if verification error 2018-05-23 16:25:57 +02:00
Szymon Lesisz
4dae5a247a update feeLevel onGasLimit change (while using estimateGasPrice - data
change)
2018-05-23 15:51:51 +02:00
Szymon Lesisz
3d44fb1e4f pendingTransportEvent implementation 2018-05-23 12:27:53 +02:00
Szymon Lesisz
fc9563a04e UI.IFRAME_HANDSHAKE implementation 2018-05-23 12:27:41 +02:00
Szymon Lesisz
2b4592343e START/STOP_ACQUIRING (Acquire page) 2018-05-23 11:46:57 +02:00
Szymon Lesisz
369ca892c0 removed .devices from TrezorConnectReducer 2018-05-23 11:19:35 +02:00
Szymon Lesisz
3b452661c6 getState().connect.devices replaced by getState().devices 2018-05-23 10:57:36 +02:00
Szymon Lesisz
977d9f3983 DevicesReducer substitute for TrezorConnectReducer.devices 2018-05-23 10:52:25 +02:00
Szymon Lesisz
6bc7a2a0f2 removed CONNECT.SELECT_DEVICE 2018-05-23 10:08:32 +02:00
Szymon Lesisz
6de33d5691 SET_SELECTED_DEVICE + UPDATE_SELECTED_DEVICE 2018-05-23 10:00:43 +02:00
Szymon Lesisz
60c4390925 findSelectedDevice > WalletReducer.selectedDevice 2018-05-22 22:07:25 +02:00
Szymon Lesisz
751a96ccc1 fixed getSelecedDevice in WalletService 2018-05-22 20:40:04 +02:00
Szymon Lesisz
053b12d3ff filter log 2018-05-22 20:06:05 +02:00
Szymon Lesisz
241fc5acdc fix Router service to allow LOCATION_CHANGE while popup is connected
but context device is disconnected
2018-05-22 20:05:58 +02:00
Szymon Lesisz
ad3237a49a removed console.log 2018-05-22 19:46:26 +02:00
Szymon Lesisz
663729ea62 Aside: implementation of wallet.selectedDevice 2018-05-22 19:43:26 +02:00
Szymon Lesisz
1e66618186 setDeviceState method properly propagate new state 2018-05-22 19:42:55 +02:00
Szymon Lesisz
e5bdadfcb2 added WalletService to middlewares 2018-05-22 19:42:03 +02:00
Szymon Lesisz
ed23b859a8 WalletReducer: SET_SELECTED_DEVICE action 2018-05-22 19:41:10 +02:00
Szymon Lesisz
c7d7fa32d1 reexport reducers flowtype 2018-05-22 19:39:54 +02:00
Szymon Lesisz
505a7e354d bootlader, not-initialized, dev-settings pages copy 2018-05-22 18:07:42 +02:00
Szymon Lesisz
5282c22bc0 address verification different UI 2018-05-22 16:33:25 +02:00
Szymon Lesisz
b5a78be39b token add form: input css fixed 2018-05-22 15:08:11 +02:00
Szymon Lesisz
0cfa1567cf not initialized device page 2018-05-22 14:16:18 +02:00
Szymon Lesisz
be05c097e9 useEmptyPassphrase for device without instance 2018-05-22 12:54:30 +02:00
Szymon Lesisz
416886bd95 forget countdown inside Forget button 2018-05-22 11:47:28 +02:00
Szymon Lesisz
393a0c4c56 ignore fresh account in discovery 2018-05-22 11:40:32 +02:00
Szymon Lesisz
69e2083615 web3 chainId from config 2018-05-22 10:26:34 +02:00
Szymon Lesisz
783b47b2db ETC backend path 2018-05-21 20:08:18 +02:00
Szymon Lesisz
2aa77610e0 fix: change fee level while sending tx with data 2018-05-21 14:00:20 +02:00
Szymon Lesisz
fd2eb58e22 rinkeby expplorer url fix 2018-05-21 12:20:27 +02:00
Szymon Lesisz
d1b02ed288 passphrase modal input fix 2018-05-21 12:17:15 +02:00
Szymon Lesisz
38c45bb78d disabled nonce in sendform 2018-05-21 11:58:55 +02:00
Szymon Lesisz
79b277f732 flowtype fix TCActions 2018-05-19 18:26:39 +02:00
Szymon Lesisz
56e3eb49cf modal logic moved from TCService to ModalActions 2018-05-19 18:26:28 +02:00
Szymon Lesisz
7f24c6fd55 fixed typos 2018-05-18 19:53:20 +02:00
Szymon Lesisz
56bf3a5bc4 comments 2018-05-18 19:46:35 +02:00
Szymon Lesisz
2355d3d784 SelectedAccount component state type renamed to avoid confusion with
reducer accountState
2018-05-18 19:35:55 +02:00
Szymon Lesisz
b7bed8ee4c abstractAccount > SelectedAccount 2018-05-18 19:26:46 +02:00
Szymon Lesisz
58d023fd46 Receive onClick button 2018-05-18 18:58:55 +02:00
Szymon Lesisz
be0c936517 flowtype moved level up. to ./src directory 2018-05-18 18:54:21 +02:00
Szymon Lesisz
a0f6538126 allow e6 imports from '~/' #2 2018-05-18 18:41:40 +02:00
Szymon Lesisz
661f9fc39c allow es6 imports from '~/' as ./src 2018-05-18 18:38:02 +02:00
Szymon Lesisz
8f5c87a02e restructuring "./src/js/components/wallet' directory 2018-05-18 18:26:45 +02:00
Szymon Lesisz
e3243ffa7e babel-plugin-import + webpack.config (css img path) 2018-05-18 18:23:46 +02:00
Szymon Lesisz
166e51525b WEBPACK 4 2018-05-17 22:08:34 +02:00
Szymon Lesisz
9efe52b568 wallet: navigator.onLine status 2018-05-17 16:03:11 +02:00
Szymon Lesisz
21a299fd0e synchronized localStorage "pending" and "accounts" 2018-05-17 16:02:48 +02:00
Szymon Lesisz
b4524cbba7 fix: save localStorage discovery only if started 2018-05-17 14:49:36 +02:00
Szymon Lesisz
d7f56db291 synchronized localStorage (tokens) 2018-05-17 14:40:38 +02:00
Szymon Lesisz
aca4a26372 nonce in SendForm 2018-05-17 14:08:22 +02:00
Szymon Lesisz
e677a7580d RouterService postActions 2018-05-16 19:39:27 +02:00
Szymon Lesisz
ae4b27d968 Remove START & STOP_ACQUIRING action 2018-05-16 18:55:12 +02:00
Szymon Lesisz
a5b6e20525 refactoring Address to Account 2018-05-16 18:30:46 +02:00
Szymon Lesisz
b90ba80ec4 keep session during discovery 2018-05-16 16:47:20 +02:00
Szymon Lesisz
a62559909d disable device menu when there's only 1 device and it's unacquired 2018-05-16 16:08:30 +02:00
Szymon Lesisz
0329801f94 allow forget device event if not remembered 2018-05-16 15:59:02 +02:00
Szymon Lesisz
227431fd3f prevent passphrase modal enter if not match 2018-05-16 15:53:55 +02:00
Szymon Lesisz
da467f0304 FIX: unacquired to acuquired 2018-05-16 15:38:12 +02:00
Szymon Lesisz
4fba9ee10d merge devices holds instance name 2018-05-15 19:47:40 +02:00
Szymon Lesisz
ed6450f3ef duplicate device unique name 2018-05-15 19:47:24 +02:00
Szymon Lesisz
cefddd98b8 modals onKeyboard enter actions 2018-05-15 19:03:27 +02:00
Szymon Lesisz
27ca8ed37a css long instanceLabel overflow 2018-05-15 16:53:19 +02:00
Szymon Lesisz
2beaeff8ac clone custom name 2018-05-15 16:52:57 +02:00
Szymon Lesisz
ff7f79eb14 fixed settings url (when using clone) 2018-05-15 15:09:36 +02:00
Szymon Lesisz
0b273391ba acquire screen: aside css 2018-05-15 12:20:48 +02:00
Szymon Lesisz
692e7788fd save sendForm state 2018-05-15 12:12:51 +02:00
Szymon Lesisz
1d59046123 rename method 2018-05-15 12:03:04 +02:00
Szymon Lesisz
c7164702a5 fixed duplicate instance order 2018-05-15 11:24:30 +02:00
Szymon Lesisz
69f479280b code cleaning 2018-05-14 10:45:04 +02:00
Szymon Lesisz
fce5f9d36f code cleaning 2018-05-11 21:01:43 +02:00
Szymon Lesisz
1a08e4be6a trezor-connect response flowtype 2018-05-11 19:32:12 +02:00
Szymon Lesisz
80fa9cfe21 BigNumber.js flowtype + removed ./utils/reducerUtils 2018-05-11 18:29:27 +02:00
Szymon Lesisz
b0d7891f5d fixed redrawing Aside StickyContainer 2018-05-11 16:55:39 +02:00
Szymon Lesisz
e0f5cbf709 sendform address label + forget_sigle device (remove accounts) bugfix 2018-05-11 16:45:10 +02:00
Szymon Lesisz
ec97e078b7 select device onClick instead of onMouseDown 2018-05-11 15:41:14 +02:00
Szymon Lesisz
9c475e4005 forget button in "other devices" 2018-05-11 15:37:00 +02:00
Szymon Lesisz
9125fbcd61 added (commented) NONCE in Sendform 2018-05-11 15:20:11 +02:00
Szymon Lesisz
b8b8ed6a34 fix: estimateGasPrice reload currentState instance 2018-05-11 14:41:24 +02:00
Szymon Lesisz
5b2e642b20 fix: auto-updated fee levels label 2018-05-11 14:40:52 +02:00
Szymon Lesisz
859b5da127 Summary token add tooltip 2018-05-11 13:46:18 +02:00
Szymon Lesisz
424339442e added device status indicator (color-dot in aside) 2018-05-11 12:44:37 +02:00
Szymon Lesisz
55728f6ba3 estimateGasLimit while sending data + feeLevels fix 2018-05-11 12:04:18 +02:00
Szymon Lesisz
d4f921ba84 fixed acquireDevice aside (StickyContainer) first render 2018-05-10 19:12:23 +02:00
Szymon Lesisz
c3079bc8d9 fixed abstractAccount default State 2018-05-10 18:36:25 +02:00
Szymon Lesisz
cf863664b7 token already added message 2018-05-10 17:30:26 +02:00
Szymon Lesisz
a1bad8a0d6 device counter 2018-05-10 16:57:54 +02:00
Szymon Lesisz
898c61dc7f summary tx history link 2018-05-10 16:39:52 +02:00
Szymon Lesisz
160bd31c57 coin back button css 2018-05-10 16:39:34 +02:00
Szymon Lesisz
9c80c67b71 new landing page img 2018-05-10 15:43:35 +02:00
Szymon Lesisz
91f1c01735 fixed aside css 2018-05-10 15:43:25 +02:00
Szymon Lesisz
dfcca2f959 refactor AddressActions to AccountActions 2018-05-10 14:40:25 +02:00
Szymon Lesisz
9bf1f61495 fixed warning about different network address 2018-05-10 14:24:27 +02:00
Szymon Lesisz
8d851c5c8f add deviceState to setBalance & setNonce actions 2018-05-10 13:52:51 +02:00
Szymon Lesisz
94c58d0b13 Token amount decimals fix 2018-05-10 13:24:42 +02:00
Szymon Lesisz
1007477bae refactor sendForm.token to sendForm.selectedCurrency 2018-05-10 12:39:49 +02:00
Szymon Lesisz
efd2d252ed FIAT value tickers 2018-05-10 12:38:44 +02:00
Szymon Lesisz
fa9b3a794e fixed PendingTx resolve 2018-05-09 17:57:05 +02:00
Szymon Lesisz
c77c8f0141 fixed tx complete frozen browser 2018-05-09 17:47:34 +02:00
Szymon Lesisz
7de3667e42 getBanalce on every block 2018-05-09 16:36:39 +02:00
Szymon Lesisz
eaa6e19050 Sendform coinsymbol & set max fix 2018-05-09 16:36:25 +02:00
Szymon Lesisz
13b8d90c72 repsten explorer url fix 2018-05-09 16:35:59 +02:00
Szymon Lesisz
7c0c884c28 Summary tokens filter to unique account 2018-05-09 16:35:30 +02:00
Szymon Lesisz
fd603c6a70 new device menu + device settings 2018-05-09 13:11:38 +02:00
Szymon Lesisz
4dc908837a web3 initialization simpler 2018-05-09 11:15:12 +02:00
Szymon Lesisz
5bfb5d39b2 rinkeby + ropsten icons 2018-05-09 11:14:58 +02:00
Szymon Lesisz
f2a7c0c150 update Account page when location changed 2018-05-09 11:14:44 +02:00
Szymon Lesisz
9020ecc176 fixed token balance + decimal regexp 2018-05-07 18:04:04 +02:00
Szymon Lesisz
3dabc7dda6 add new address fix (discovery HDKey refference) 2018-05-07 16:02:10 +02:00
Szymon Lesisz
4613d524b5 fixed tokens 2018-05-07 15:33:34 +02:00
Szymon Lesisz
12ab43ef41 backend not working 2018-05-07 13:25:46 +02:00
Szymon Lesisz
c3bcc5fe91 fixed baseUrl in coin selection 2018-05-05 14:11:03 +02:00
Szymon Lesisz
1c89f3e975 before testing 2018-05-05 13:52:03 +02:00
Szymon Lesisz
0bc4dd3cf9 fixed clone device redirect url 2018-05-02 13:39:27 +02:00
Szymon Lesisz
eb0a40c417 fixed flowtypes 2018-05-02 11:01:08 +02:00
Szymon Lesisz
15505ff263 corrupted 2018-04-23 12:20:15 +02:00
Szymon Lesisz
c597f482dc Flowtype everywhere! 2018-04-16 23:19:50 +02:00
Szymon Lesisz
8aeb10cf2c add flowtype support 2018-04-11 15:42:35 +02:00
Szymon Lesisz
bb22ca54f0 AbstractAccound refactor 2018-04-11 15:21:43 +02:00
Szymon Lesisz
c2fe9d4b95 DiscoveryAction separated from TrezorConnectActions 2018-04-11 12:59:44 +02:00
Szymon Lesisz
5880b5a3ea action/constants to lowerCase #3 2018-04-11 12:15:47 +02:00
Szymon Lesisz
16eb2977ed action/constants to lowerCase #2 2018-04-11 12:15:06 +02:00
Szymon Lesisz
d9789c74b4 action/constants to lowerCase #1 2018-04-11 12:13:38 +02:00
Szymon Lesisz
60ead5a452 device clone, device connect priority + BIG refactoring for
components/containers
2018-04-11 12:06:46 +02:00
Szymon Lesisz
1e316ea9d2 Transport error + reconnect proper view in landingpage 2018-04-05 12:44:16 +02:00
Szymon Lesisz
c268c16649 refactoring "coin" to "network" & "checksum" to "deviceState" 2018-03-29 13:38:09 +02:00
Szymon Lesisz
df100cb060 SET_BALANCE with coin 2018-03-29 11:35:45 +02:00
Szymon Lesisz
5f47c285dc unique tokens definitions for different networks 2018-03-29 11:35:27 +02:00
Szymon Lesisz
c3c51d2c91 accountSelection fix 2018-03-29 11:34:09 +02:00
Szymon Lesisz
f97655fe68 "loading account" text 2018-03-29 11:33:47 +02:00
Szymon Lesisz
3303c34d7f modal "passphrase_type" 2018-03-29 11:33:08 +02:00
Szymon Lesisz
34d3e885b8 fixed account tab underline when resize window 2018-03-29 11:32:35 +02:00
Szymon Lesisz
d6349356c8 removed old files 2018-03-29 11:32:07 +02:00
Szymon Lesisz
9e8a2ffd4f dashboard css 2018-03-29 11:31:56 +02:00
Szymon Lesisz
e61f861f1f device select with webusb button 2018-03-29 11:31:45 +02:00
Szymon Lesisz
ebaf57f841 trash 2018-03-27 17:13:11 +02:00
Szymon Lesisz
3db968df6a LandingPage + webusb buttons 2018-03-27 17:12:58 +02:00
Szymon Lesisz
88b0c5cd34 refactoring field incomming from TrezorConnect responses 2018-03-27 17:12:01 +02:00
Szymon Lesisz
8ed54612e8 bundle 2018-03-08 17:10:53 +01:00
Szymon Lesisz
cb83b2b7b6 bordel 2 2018-02-20 10:30:36 +01:00
Szymon Lesisz
6a9fde9f86 first 2017-12-13 12:01:37 +01:00