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
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
Dan Finlay
8527d051b0
Fix eth resolution
...
utils.formatBalance was returning rounded ether, was not useful for displaying account balances.
Now returns four decimal points, and is easily configurable for more, with passing tests.
Spoiler alert: Don't you dare divide bignumber wei. Bignumber does not have decimals. Keep it as wei, format it as ether.
9 years ago
Dan Finlay
d814a45dff
Moved UI into repo with its own dependency stack
9 years ago