Dan J Miller
30d13422b5
Add MetaMask Swaps ( #9482 )
4 years ago
Erik Marks
3aaa41ef44
Replace abi-decoder with ethers ( #9290 )
...
* replace abi-decoder with ethers
* handle transaction parsing errors
* update token param getter function names
* add docstrings
4 years ago
Whymarrh Whitby
c1e3c229bc
Fix import/order issues ( #9239 )
...
See [`import/order`](https://eslint.org/docs/rules/import/order ) for more information.
This change enables `import/order` and fixes the issues raised by the rule.
4 years ago
Whymarrh Whitby
a8863a3446
Fix consistent-return issues ( #9192 )
...
See [`consistent-return`](https://eslint.org/docs/rules/consistent-return ) for more information.
This change enables `consistent-return` and fixes the issues raised by the rule.
4 years ago
Whymarrh Whitby
4f0a205369
Use eslint@6.8.0 ( #8978 )
...
* Use eslint@6.8.0
* yarn lint:fix
4 years ago
Mark Stacey
e4a77ea631
Extract token to fiat conversion ( #8777 )
...
The conversion of token amounts to fiat amounts was extracted from the
`TokenCell` component, and moved to a utility function. This will be
used elsewhere in an upcoming PR.
5 years ago
Whymarrh Whitby
a78cf0ef3a
Enable arrow-parens ESLint rule
5 years ago
Whymarrh Whitby
92971d3c87
Migrate codebase to use ESM ( #7730 )
...
* Update eslint-plugin-import version
* Convert JS files to use ESM
* Update ESLint rules to check imports
* Fix test:unit:global command env
* Cleanup mock-dev script
5 years ago
Dan J Miller
2673eef3c4
Redesign approve screen ( #7271 )
...
* Redesign approve screen
* Add translations to approve screen components
* Show account in header of approve screen
* Use state prop bool for unlimited vs custom check in edit-approval-permission
* Set option to custom on input change in edit-approval-permission
* Allow setting of approval amount to unlimited in edit-approval-permission
* Fix height of confirm-approval popup
* Ensure decimals prop passted to confirm-approve.component is correct type
* Ensure first param passed to calcTokenValue in confirm-approve.util is the correct type
* Fix e2e test of permission editing
* Remove unused code from edit-approval-permission.container
5 years ago
Dan J Miller
009bf802f7
Fix recipient field of approve screen ( #7171 )
5 years ago
Dan J Miller
5641f1be29
Fix recipient field of approve screen ( #7171 )
5 years ago
Dan Miller
789fc8b8ad
Fixes display of confirm screen token decimals by not relying on confirmTransaction state.
5 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
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
Alexander Tseung
37322f9f4e
Fix token values being undefined
6 years ago
Alexander Tseung
7924dbc0c9
Use eth-contract-metadata data if the token symbol or decimals fail on retrieval
6 years ago
Dan Miller
ebb23721ed
Cast arguments for new Bignumbers() to string.
6 years ago
板橋 清信
3554292c02
fix type
6 years ago
板橋 清信
79976b7026
fix token amount
6 years ago
brunobar79
a8f745f9fe
eslint --fix .
6 years ago
kumavis
666c1f1b30
token-util - warn via loglevel on token lookup failure
7 years ago
Dan
6bc8cc819a
Merge branch 'develop' into i3725-refactor-send-component-
7 years ago
Dan
9f9e8789cc
Simplify return of existing token in getSymbolAndDecimals
7 years ago
Dan
b71dbf52d1
Convert decimals to string in getSymbolAndDecimals; return null for symbol or decimals.
7 years ago
Dan
6de450488b
Wraps calls to symbol() and decimals() in try catch
7 years ago
Dan
67bdfe87e3
Token balance in send state; validating sufficient tokens, validation updates on 'from' switching.
7 years ago
Dan
c8c918d44e
Add utility for getting token data; get token data in tx-list even if token has been removed.
7 years ago