Alex Donesky
4f0115fcdc
Add setApprovalForAll confirmation view ( #15010 )
...
* enhance setApprovalForAll confirmation flow
* cleanup
* address feedback
2 years ago
Alex Donesky
e3ea4f2cd0
Fix issue where we show contract address as recipient when calling safe transfer method on erc721 or erc1155 contracts ( #13535 )
...
* fix issue where we show contract address as recipient when calling safe transfer method on erc721 or erc1155 contracts
* updates function name getTransactionData -> parseStandardTokenTransactionData, and adds documentation
3 years ago
Alex Donesky
3747ace06b
Refactor token send/method confirmation flow (trimmed down) ( #13788 )
...
* make use of getTokenStandardAndDetails method exposed on assetsContractController to determine how to represent the contract being interacted with in token contract method calls
3 years ago
Niranjana Binoy
eb987a47b5
Integrating the TokenListController to Extension ( #11398 )
3 years ago
ryanml
d092e4bdbe
Fixing type issue with auto-filled custom token decimals value ( #11604 )
3 years ago
Brad Decker
da9fb4636b
move conversion utils to shared folder ( #11451 )
3 years ago
Niranjana Binoy
d4cb403d51
Handling custom token decimal fetch failure due to network error ( #10956 )
4 years ago
Brad Decker
29742b9519
remove the ui/app and ui/lib folders ( #10911 )
4 years ago
Brad Decker
09d81ac5f2
remove the ui/app and ui/lib folders ( #10911 )
4 years ago
Erik Marks
76a2a9bb8b
@metamask/eslint config@5.0.0 ( #10358 )
...
* @metamask/eslint-config@5.0.0
* Update eslintrc and prettierrc
* yarn lint:fix
4 years ago
Erik Marks
9d4b8a4903
@metamask/contract-metadata ( #9968 )
4 years ago
David Walsh
67303b7865
Fix BigNumber issues ( #9860 )
...
* Document where we need BigNumber-related changes
* Fix 1 unit test
* Debug progress
* Add required values for each upstream usage of getBigNumber
* Switch to base 10
* Address feedback
4 years ago
David Walsh
8a3dabb230
Use optional chaining for functions
4 years ago
Brad Decker
2ebf8756a4
[RFC] add prettier to eslint ( #8595 )
4 years ago
Whymarrh Whitby
6038a1f3f5
Fix dot-notation issues ( #9679 )
...
Refs #9663
This change enables `dot-notation` and fixes the issues raised by the rule.
4 years ago
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.
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
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 .
7 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