Brad Decker
9386e3cb03
create safer isValidAddress method ( #11089 )
4 years ago
Brad Decker
09d81ac5f2
remove the ui/app and ui/lib folders ( #10911 )
4 years ago
Brad Decker
d1f8171877
upgrade ethereumjs util ( #10886 )
4 years ago
Thomas Huang
b99c4fb5cf
Use jest to run ui/**/*.test.js ( #10885 )
4 years ago
ryanml
3c6cdef074
Adding a warning when sending a token to its own contract address ( #10546 )
...
Fixes MetaMask/metamask-extension#9437
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
David Walsh
42fd8b0ff0
Use strict equality in unit tests ( #9966 )
4 years ago
Brad Decker
2ebf8756a4
[RFC] add prettier to eslint ( #8595 )
4 years ago
Dan J Miller
30d13422b5
Add MetaMask Swaps ( #9482 )
4 years ago
Whymarrh Whitby
b6ccd22d6c
Update ESLint shared config to v3 ( #9274 )
...
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
4 years ago
Dan J Miller
c0d78401fc
Adds toPrecisionWithoutTrailingZeros utility ( #9270 )
4 years ago
Whymarrh Whitby
5d42a9b773
Fix require-unicode-regexp issues ( #9212 )
...
* Fix require-unicode-regexp issues
See [`require-unicode-regexp`](https://eslint.org/docs/rules/require-unicode-regexp ) for more information.
This change enables `require-unicode-regexp` and fixes the issues raised by the rule.
* Remove case-insensitive flag from regexps
4 years ago
Whymarrh Whitby
bf6578c6b8
Enable guard-for-in rule ( #9000 )
4 years ago
Dan J Miller
ac525572eb
Move checkExistingAddresses to helpers/utils/util and stop its use of ramda ( #8868 )
4 years ago
Mark Stacey
a71f56e5da
Remove unused sinon sandboxes ( #8063 )
...
These sandboxes were created, then not utilized at all.
5 years ago
Mark Stacey
c6db54cc6d
Attempt ENS resolution on any valid domain name ( #8059 )
...
ENS currently supports a variety of tlds in addition to `.eth`, and
more will be supported in the future. Rather than hard-code a list of
supported ENS tlds, all valid domain names will now be interpreted as
potential ENS addresses in our address input component.
Closes #7978
5 years ago
Whymarrh Whitby
4f3fc95d50
Update ESLint rules for test suite ( #8023 )
...
* Use @metamask/eslint-config@1.1.0
* Use eslint-plugin-mocha@6.2.2
* Mark root ESLint config as root
* Update Mocha ESLint rules with shared ESLint config
5 years ago
ryanml
d8c685ba2e
Add mechanism to randomize seed phrase filename ( #7863 )
...
The filename is seeded by a simple use of Math.random() pulling from an alphanumeric character bank, as opposed to a more cryptographically random solution. This provides a simple layer of difficulty for bad actors to seek out the recovery phrase file.
5 years ago
Whymarrh Whitby
82ef9674f2
Move util test file alongside subject ( #7807 )
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
Mark Stacey
466ece4588
Revert "Merge pull request #7599 from MetaMask/Version-v7.7.0" ( #7648 )
...
This reverts commit 1110287fe1
, reversing
changes made to 72eb233ee9
.
5 years ago
Whymarrh Whitby
04064d5d19
Enable no-var rule for ESLint ( #7590 )
...
* eslint: Enable no-var rule
* yarn lint --fix
5 years ago
Whymarrh Whitby
e61745a821
Enable no-var rule for ESLint ( #7590 )
...
* eslint: Enable no-var rule
* yarn lint --fix
5 years ago
Whymarrh Whitby
aa41057628
Update ESLint rules for curly braces style ( #7477 )
...
* eslint: Enable curly and brace-style
* yarn lint --fix
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
Thomas
7aa54916d8
Update Sinon methods. sinon.sandbox.create() -> sandbox.createSandbox()
7 years ago
Thomas
06e25205b2
Update sinion methods. sandbox.create() -> createSandbox()
7 years ago
Kevin Serrano
adf4b89804
Add additional test to ui utils to account for exact wei values.
7 years ago
Kevin Serrano
3d627e869b
Add test for edge case.
7 years ago
Thomas Huang
0b13429daf
Lint tests
8 years ago
Frankie
d4c0a4949b
Clean up tests
8 years ago
Frankie
aa4746f4c7
Add test and ability for isHex to handle hex strings with hex-prefix
8 years ago
Frankie
4366f72fe1
Add unit test for isHex and add to CHANGELOG.md
8 years ago
Frankie
7e3b0aca62
Add test
8 years ago
Kevin Serrano
37f21cf18f
Remove unused functions. Readd if necessary.
9 years ago
Kevin Serrano
31d0d1ec08
Refactor util tests.
9 years ago
Frankie
2cc44df584
Revert back to original formatBalance
9 years ago
Dan Finlay
7058dc4ee3
Began reworking tx conf view
9 years ago
Frankie
9d577ea023
Add decimal hendeling to ETH balance
9 years ago
Dan Finlay
2c89cd722e
Simplify empty account balance rendering
9 years ago
Zac Mitton
9132f08507
added a failing case and fixed it by refactoring everything to strings
9 years ago
Dan Finlay
272bea31b5
Fix hashed address validation
9 years ago
Dan Finlay
d0f8a14ace
Add test case for sample hashed address
9 years ago
Zac Mitton
2ce9f1a776
correctly displaying small balances with tests
9 years ago
Dan Finlay
60270de53d
Add full precision to send tx value field.
9 years ago
Dan Finlay
22a77b8041
Increase send value precision
9 years ago
Dan Finlay
c8deb355f7
Add address capitalization checksumming
9 years ago
Dan Finlay
d6ab6bb4fa
Fix floating point input bug
...
When sending a transaction, we were converting to BN before handling decimals, which meant we were losing any precision past a decimal point, since BN does not handle decimals!
Put this numeric normalization into a utility function with a test around it and got it working.
9 years ago
Dan Finlay
65d73d7bb4
Unify test suites
9 years ago
Dan Finlay
33dc68535d
Add leading zero to account balances
9 years ago