Chi Kei Chan
931aaeb700
Add token selection to the send screen ( #6445 )
...
* Move send to pages/
* Fix unit tests
* Finish UI
* Integrate asset dropdown to send actions
* Remove console.log
* Hide asset change during edit
* Enable switch from send token to seand eth
* Enable switching from token to eth when editing
* Fix linter
* Fixing test
* Fix unit tests
* Fix linter
* Fix react warning; remove console.log
* fix flat test
* Add metrics
* Address code review comments
* Consistent spacing between send screen form rows.
* Reduce height of gas buttons on send screen.
* Make send screen gas button height dependent on size of contents.
6 years ago
Chi Kei Chan
31175625b4
Folder restructure ( #6304 )
...
* Remove ui/app/keychains/
* Remove ui/app/img/ (unused images)
* Move conversion-util to helpers/utils/
* Move token-util to helpers/utils/
* Move /helpers/*.js inside /helpers/utils/
* Move util tests inside /helpers/utils/
* Renameand move confirm-transaction/util.js to helpers/utils/
* Move higher-order-components to helpers/higher-order-components/
* Move infura-conversion.json to helpers/constants/
* Move all utility functions to helpers/utils/
* Move pages directory to top-level
* Move all constants to helpers/constants/
* Move metametrics inside helpers/
* Move app and root inside pages/
* Move routes inside helpers/
* Re-organize ducks/
* Move reducers to ducks/
* Move selectors inside selectors/
* Move test out of test folder
* Move action, reducer, store inside store/
* Move ui components inside ui/
* Move UI components inside ui/
* Move connected components inside components/app/
* Move i18n-helper inside helpers/
* Fix unit tests
* Fix unit test
* Move pages components
* Rename routes component
* Move reducers to ducks/index
* Fix bad path in unit test
6 years ago
Dan J Miller
fdc7eb2113
Fix gas estimation when sending to contracts ( #6195 )
...
* Fix gas estimation when sending to contracts
* Fix calculating of balance sufficiency and tx params when sending token transaction
6 years ago
Alexander Tseung
4c87c05a02
Fix rounding issue when sending max tokens ( #5695 )
...
* Fix rounding issue when sending max tokens
* Ensure amount row shows exact amount of max tokens on send screen (#2 )
* Fix tests
* Change stored redux value from BigNumber to hex string. Fix TokenInput default value
6 years ago
kumavis
fda101912b
ui - use variable to clarify result of emptiness check
6 years ago
Howard Braham
4cc0b1ef01
ganache-core merged my PR, so I changed some comments to clarify that ganache-core v2.2.1 and below will return the non-standard '0x0'
6 years ago
Howard Braham
222e62d7f1
Bug Fix : #1789 and #4525 eth.getCode() with no contract
6 years ago
Whymarrh Whitby
c9f22916dd
Rework estimateGas logic
...
The tests still pass!
6 years ago
Whymarrh Whitby
918fb71df3
Update gas when hex data changes on send screen
6 years ago
Dan
b3d78ed8a1
Remove send_ directory, revert to just having send
...
Revert accidentally changed constants.
Require defaults in ens-input, gas-fee-display and confirm screens.
6 years ago
Alexander Tseung
ea9d51e427
Refactor and redesign confirm transaction views
6 years ago
Dan
0796fc58e4
Improve send token error ux.
7 years ago
trejgun
491f2d03cf
move removeLeadingZeroes to utils, add test
7 years ago
Dan
696d626133
Set based estimate for token sends to be updated once recipient address specified.
7 years ago
Dan
ac7c0277b5
On send screen amount change, updateGas call now includes current to address.
7 years ago
Dan
70abe54c94
Send screen returns simple gas cost if no to address specified when not sending token.
7 years ago
Alexander Tseung
5685c4bafe
Estimate gas limit when the token amount changes. Fix amount input
7 years ago
Dan
e4d3bdba12
Update send.utils.js estimateGas tests.
7 years ago
Dan
b9b6cbf561
Add a buffer to new ui gas estimates
7 years ago
Alexander Tseung
1b9ed23752
Add hex-prefix to gas estimate result
7 years ago
Dan
ada59054c9
Simplify recipient code check in send.utils estimateGas
7 years ago
Dan
1b879f45bc
Fix calculation of data property for gas estimation on token transfers.
7 years ago
Dan
1bde2892ec
Improve efficiency of estimateGasPriceFromRecentBlocks
7 years ago
Dan
5a842e440f
Gas estimation uses block gas limit as fallback if query.estimateGas returns an expected error.
7 years ago
Dan
0f20fce9b7
Auto update gas estimate when to changes.
7 years ago
Dan
4f0b4eef50
Estimate gas using same algorithm as backend.
7 years ago
Dan
166fda5877
Simplify gas estimate actions and add local estimateGasPriceFromRecentBlocks method.
7 years ago
Dan
17909465f2
getParamsForGasEstimate extracts symbol from token instead of just accepting symbol.
7 years ago
Dan
6d8344d0d0
Update amount error on update of send screen.
7 years ago
Dan
5347319dff
Fix setting of token balance on account switch in send screen from field.
7 years ago
Dan
7c49009854
Unit tests for containers, utils and selectors in send_/
7 years ago
Dan
4a8c3194c2
Use constants for send screen errors messages.
7 years ago
Dan
26f965bcce
Further refactors; includes refactor of send-v2.js and associated container
7 years ago
Dan
91c201aa72
Lint fixes and alphabetization for i3725-refactor-send-component
7 years ago
Dan
8ff7806f1b
Core of the refactor complete
7 years ago
Dan
284dd85a99
first commit
7 years ago
Dan Finlay
05080d1c50
Fix UI Dev Mode for Tx Approval
...
The state object had been changed, but our mock states for tx approval were using the old keys.
Rather than try to muck about and figure out each and every change, I've re-generated a UI dev state for tx approval, which should help @zanibas on his current project.
We can continue adding new dev states as needed from here. If anyone catches a state that doesn't render correctly, it's worth checking if a new snapshot doesn't solve things.
Debugged by adding new debugging loggers, and I've left them in place for easier future debugging.
8 years ago