Paul Bouchon
0db0a187c8
feature: add Goerli support ( #6459 )
2019-04-17 15:04:49 -02:30
Thomas Huang
a46ec83c9b
Remove NoticeController ( #6382 )
2019-04-01 22:33:54 -02:30
kumavis
ed381f5b2a
test - unit - ui - actions - setCompletedOnboarding - fix stub to call callback
2019-03-29 13:10:42 +08:00
kumavis
02585c0bd0
lint fix
2019-03-29 12:51:54 +08:00
kumavis
846038a69c
notice-controller - make markAllNoticesRead sync
2019-03-29 12:39:29 +08:00
kumavis
e04f0c877b
lib - nodeify - correctly wrap synchronous functions
2019-03-29 12:37:40 +08:00
kumavis
a64855ef49
notices - markAllNoticesRead - use async/await
2019-03-29 12:03:31 +08:00
kumavis
781a39c039
Merge branch 'develop' into clearNotices
2019-03-29 11:54:12 +08:00
Dan J Miller
4ff9126ff2
Replaces the coinbase link in the deposit modal with one for wyre ( #6302 )
2019-03-22 12:32:07 -02:30
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
2019-03-21 20:33:30 -02:30
Thomas Huang
07c9745258
Remove exclusive test
2019-03-20 21:29:08 -05:00
Thomas Huang
c43374a553
Clear notices when setCompletedOnboarding is called
2019-03-20 20:26:48 -05:00
Paul Bouchon
daae155ce2
GABA: Integrate AddressBookController ( #5847 )
...
* gaba: integrate AddressBookController
* pin gaba version and update lockfile
2019-03-11 18:40:41 -10:00
Whymarrh Whitby
3c73781787
Delete old-ui folder
2019-02-20 14:18:46 -03:30
Whymarrh Whitby
c52ba96b85
Remove betaUI preference state, replace with completedUiMigration
2019-02-05 08:49:55 -03:30
Dan J Miller
02bdbbbc3e
Add visual indicator when displaying a cached balance ( #5854 )
2019-01-30 08:46:12 -03:30
Frankie
df3169d1c7
I#5956 fix2 dont overwrite existing rpc settings ( #6044 )
...
* mm-controller - dont overwrite existing rpc settings
* ui-networkDropdown - dont pass old network as chainId
* add methods preferencesController.updateRpc and metamaskController.updateAndSetCustomRpc
* use updateAndSetCustomRpc in settings to allow rpcs to be updated
* use new rpc as nickname if no nick name has been supplied
* fix update rpc method
2019-01-29 08:13:51 -10:00
Alexander Tseung
fba17d77de
Refactor first time flow, remove seed phrase from state ( #5994 )
...
* Refactor and fix styling for first time flow. Remove seed phrase from persisted metamask state
* Fix linting and tests
* Fix translations, initialization notice routing
* Fix drizzle tests
* Fix e2e tests
* Fix integration tests
* Fix styling
* Fix migration naming from 030 to 031
* Open extension in browser when user has not completed onboarding
2019-01-23 11:55:34 -03:30
Frankie
0ad7797076
I#5956 fix 1 ( #6026 )
...
* prevent invalid chainId's when adding cusstom rpcs
* migration 30 removes invalid chaids from preferences and networkController for custom rpcs
2019-01-17 09:10:33 -10:00
Frankie
b5d6452454
Disallow loading as metamaskNetworkId ( #5924 )
...
* transactions - throw an error if a transaction is generated while the network is loading
* add tests for failing when netId is loading
2018-12-13 09:14:46 -10:00
Dan Miller
20dbebae9f
Adds network loading retry / error screen.
2018-12-12 13:53:37 -03:30
Dan Miller
d8e41a6aa5
Final gas customization fixes
2018-12-04 00:06:22 -03:30
Dan Miller
9b9a2cc2e0
Adds createSpeedUpTransaction to txController
2018-12-04 00:06:05 -03:30
Dan J Miller
4c24555545
Save recent network balances in local storage ( #5843 )
...
* Use selector for state.metamask.accounts in all cases.
* Default to cached balance when selecting metamask accounts
* Adds the cached-balances controller
* Documentation and small codes fixes for #5843
Co-Authored-By: danjm <danjm.com@gmail.com>
2018-11-30 14:51:24 -08:00
Frankie
8198ec9ae1
Autofill gasPrice for retry attempts with either the recommended gasprice or a %10 bump ( #5786 )
...
* transactions - autofill gasPrice for retry attempts with either the recomened gasprice or a %10 bump
* lint
2018-11-26 09:29:14 -10:00
Dan Finlay
5956f8d260
Version 5.0.3 ( #5785 )
...
* Version 5.0.3
Includes a fix to the `version:bump` script that now correctly updates
the changelog header.
* Include inpage provider events
2018-11-20 08:34:14 -10:00
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
2018-11-19 16:06:34 -08:00
Dan Finlay
fdea642e6d
Auto fail transactions that have been approved for over 12 hours ( #5765 )
...
* Auto fail transactions that have been approved for over 12 hours
Converts txs using a migration.
This migration uses a new helper function that generates tx-failing
migrations, and only requires a version, error message, and condition to
run on each transaction.
* Linted
* Only migrate approved txs to failed
* Cleanup
* Cleanup
* Small lint fixes
2018-11-16 21:27:01 -08:00
Whymarrh Whitby
1988e1e96b
ESLint fixes ( #5775 )
...
* eslint . --fix
* Upgrade all ESLint warnings to errors
2018-11-16 14:54:55 -10:00
Frankie
ce147bf6d8
Tx controller now uses safe event emitter ( #5769 )
...
* transactions - use safe-event-emitter over events
* tests - pass a platform object on init with a noop showTransactionNotification
* test - fix for tx-state-history-helper trying to reduce an empty array
* deps - safe-event-emitter
* lint
2018-11-16 10:34:08 -08:00
Dan Finlay
22ba0b0c2d
Resubmit approved transactions on new block ( #5752 )
...
* Add beginning of test
* Resubmit approved transactions on new block
May fix #4343 and related issues, where an error could leave
transactions stranded in the approved state.
* Remove unused test
* Re-approve transactions when retrying approved
* Add retry approved test
* Include approved in pending tx count
* Fix getPendingTxs()
* Linted
* Only throw hash error in submitted state
* Only check submitted txs for block inclusion
* Fix test expectations
2018-11-14 11:34:07 -10:00
Paul Bouchon
0549782595
Update Balanc3 API ( #5744 )
...
* Update balanc3 API used in TokenRatesController
* Remove demo URL and use nativeCurrency when fetching token rates
2018-11-13 14:57:43 -05:00
Thomas Huang
0ab5c1c6e2
Merge pull request #5481 from MetaMask/reducers
...
tests/Reducers
2018-11-06 20:56:15 -08:00
bitpshr
c76c9ca2c8
EIP-1102: updated implementation
2018-11-05 15:07:09 -08:00
Esteban Miño
4489a57f2f
Update watchAsset ERC20 validation ( #5653 )
...
* update ERC20 token valodation for watchAsset
* update ERC20 validation test descriptions
2018-11-05 15:36:34 -03:30
Thomas
f2fea8043e
Remove .only
2018-10-31 07:09:02 -07:00
Thomas
7607794851
Readable tests, and set nextUnreadNotice to null when CLEAR_NOTICES is dispatched
2018-10-31 07:07:25 -07:00
Thomas
7531de14f9
Merge branch 'develop' into reducers
2018-10-31 05:55:25 -07:00
Thomas
611a61b7bc
Isolate variables to individual tests
2018-10-31 05:45:27 -07:00
HackyMiner
54a8ade266
Add support for RPC endpoints with custom chain IDs ( #5134 )
2018-10-26 10:26:43 +02:00
Alexander Tseung
554f79c0e2
Fix blockies icons overriding contract map icons. Refactor Identicon component ( #5599 )
2018-10-25 17:21:41 +08:00
kumavis
b0c649a4e3
Merge pull request #5555 from MetaMask/support-wallet-watch-asset
...
Support for prefix wallet_watchAsset
2018-10-21 01:27:08 -04:00
Esteban Miño
7c4f98ffd6
specific add and remove methods for frequentRpcList ( #5554 )
2018-10-19 17:50:54 -02:30
Esteban MIno
75661673e5
add support for wallet_watchAsset
2018-10-19 13:57:11 -03:00
Alexander Tseung
badebe017f
Adds toggle for primary currency ( #5421 )
...
* Add UnitInput component
* Add CurrencyInput component
* Add UserPreferencedCurrencyInput component
* Add UserPreferencedCurrencyDisplay component
* Add updatePreferences action
* Add styles for CurrencyInput, CurrencyDisplay, and UnitInput
* Update SettingsTab page with Primary Currency toggle
* Refactor currency displays and inputs to use UserPreferenced displays and inputs
* Add TokenInput component
* Add UserPreferencedTokenInput component
* Use TokenInput in the send screen
* Fix unit tests
* Fix e2e and integration tests
* Remove send/CurrencyDisplay component
* Replace diamond unicode character with Eth logo. Fix typos
2018-10-17 07:03:29 +08:00
Whymarrh Whitby
af43b7d6c9
Ensure that new transactions added are using the selected address
2018-10-10 16:16:20 -02:30
Thomas Huang
b45479934d
test - add actions unit tests ( #5369 )
...
* Actions.spec.js
* Error handling tests
* Lint
2018-10-10 10:32:26 -04:00
Thomas
be3f411a60
Reducers
2018-10-10 01:12:46 -07:00
Noel Yoo
ebdefe81a1
Refactor buffer constructor ( #5468 )
2018-10-09 09:32:48 -02:30
Noel Yoo
012f7ddd72
Fix typos ( #5471 )
2018-10-09 09:29:51 -02:30
Dan Finlay
c49d854b55
Increase suggested gas percentile to 65 ( #5359 )
...
* Increase suggested gas percentile to 65
I keep submitting transactions then waiting a long time. Apparently 50th percentile isn't enough.
* Update test for getGasPrice
2018-10-04 18:38:05 -02:30
Whymarrh Whitby
4dd6c8168f
Add ability to whitelist a blacklisted domain at runtime
2018-10-02 10:43:46 -02:30
tmashuang
a0a57c24fd
Some Ui tests
2018-09-24 11:28:04 -05:00
bitpshr
36dd0354e7
Implement latest EIP-712 protocol
2018-09-13 15:40:57 -04:00
Whymarrh Whitby
13bc46d824
Default NoticeController ctor opts to empty obj
2018-09-11 12:12:35 -07:00
Whymarrh Whitby
d60991ec88
Delete ConfigManager, replacing its usages with PreferencesController
2018-09-11 09:39:16 -07:00
Esteban MIno
e743f44150
fix conflicts
2018-08-28 15:20:30 -03:00
Esteban MIno
3106374cc3
watchAsset small changes
2018-08-27 22:10:14 -03:00
Esteban MIno
b59a1e91b8
typo watchAsset imageUrl to image
2018-08-23 15:54:40 -03:00
Whymarrh Whitby
e803b8e047
Add test cases for MetaMaskController#_onKeyringControllerUpdate
2018-08-22 15:38:34 -02:30
Esteban MIno
4e6c71e969
Merge branch 'develop' into WatchTokenFeature
2018-08-21 20:14:49 -03:00
Esteban MIno
6ccf2811e7
unit tests for watchAsset
2018-08-21 19:17:57 -03:00
brunobar79
54021fd90b
fix unit tests
2018-08-21 00:09:54 -04:00
Bruno Barbieri
bd904c86f6
Merge branch 'develop' into ledger-support
2018-08-17 13:45:46 -04:00
brunobar79
992e7f1b5a
fix merge conflicts
2018-08-17 12:56:07 -04:00
Dan Matthews
df799d7fd6
Restores accounts until one with a zero balance is found
2018-08-17 10:26:47 -04:00
brunobar79
fdf202efb0
fixed unit tests
2018-08-14 21:19:01 -04:00
Thomas
ce645561fb
Remove commented out code for detect-token-test
2018-08-14 12:29:57 -07:00
Thomas
96d789d2cf
Merge branch 'develop' into network-remove-provider-engine
...
Override package-lock and fix merge conflicts
2018-08-14 10:44:42 -07:00
brunobar79
b77cc3d969
fix tx tests
2018-08-14 03:42:23 -04:00
Esteban MIno
d263d60b4c
tests for migration 28
2018-08-09 16:41:16 -04:00
Thomas Huang
5b3927fe5b
Lint
2018-07-30 20:30:35 -07:00
Thomas Huang
2392e77cd8
Set metamask controller network provider to localhost
2018-07-30 20:18:01 -07:00
Esteban MIno
fbcba8f019
create tokens storage when setadresses
2018-07-30 19:09:17 -04:00
Thomas
fb5e357998
Detect Tokens are weird
2018-07-30 06:26:34 -07:00
Esteban MIno
dd6a725e6d
unit tests for tokens per account and network
2018-07-27 17:41:47 -04:00
Esteban MIno
f79a249bcc
modify tests according to tokens by network
2018-07-26 20:04:57 -04:00
Thomas
138858647e
Merge branch 'develop' into network-remove-provider-engine
2018-07-25 22:38:44 -07:00
Esteban Miño
110efa9ec1
Merge branch 'develop' into detectTokenFeature
2018-07-20 20:09:37 -04:00
Esteban MIno
9c95554933
fix detection on submit password
2018-07-20 19:58:03 -04:00
Esteban Miño
cb045fd8fe
Auto-detect tokens #3034 ( #4683 )
...
* detect tokens polling
* network store to detect token
* tests for spec
* passtest-lint
* fix lint
* improve tests
* detect tokens through infura
* detect tokens when submit password and new account selected
* keyring unlocked detect and unit tests
* add changelog
2018-07-20 12:36:24 -04:00
Esteban MIno
009b1cefbe
keyring unlocked detect and unit tests
2018-07-19 19:46:46 -04:00
Esteban MIno
3b97d816ff
detect tokens when submit password and new account selected
2018-07-19 15:56:38 -04:00
Bruno Barbieri
9be2248d7a
Merge pull request #4625 from MetaMask/initial-trezor-support
...
Initial trezor support
2018-07-19 15:00:59 -04:00
Alexander Tseung
e16f5ab54d
Fix tests
2018-07-17 13:38:15 -07:00
brunobar79
e89350b19f
added tests for removeAccount
2018-07-17 01:44:28 -04:00
brunobar79
de4265c629
added more unit tests
2018-07-17 01:17:18 -04:00
brunobar79
e5512c306d
added unit tests for metamaskcontroller
2018-07-16 19:36:08 -04:00
brunobar79
41879a9835
added test for preferences controller
2018-07-16 16:08:19 -04:00
Esteban MIno
2fffe09873
detect tokens through infura
2018-07-12 20:43:43 -04:00
Alexander Tseung
0d4dbbec2a
Merge pull request #4691 from MetaMask/i4404-confirm-refactor
...
Refactor and redesign confirm transaction views
2018-07-11 15:31:50 -10:00
Esteban MIno
910713c6b3
improve tests
2018-07-11 15:59:05 -04:00
frankiebee
b30499886f
test - check that #setTxStatusRejected removes transaction from history
2018-07-10 15:35:27 -07:00
frankiebee
8a678001a9
test - fix for lint
2018-07-10 11:43:00 -07:00
frankiebee
28c509914b
Merge branch 'develop' of https://github.com/MetaMask/metamask-extension into i#3896
2018-07-10 11:32:05 -07:00
Alexander Tseung
7d691c7398
Fix existing unit tests
2018-07-07 18:53:00 -07:00
kumavis
fa02a6c7c6
test - unit - remove tests for obsolete methods
2018-07-03 13:56:18 -07:00
kumavis
77daed5c74
Merge branch 'develop' of github.com:MetaMask/metamask-extension into network-remove-provider-engine
2018-07-03 12:42:14 -07:00
Esteban MIno
63b9c8796b
fix lint
2018-07-03 15:24:23 -04:00
Esteban MIno
0494b2fc8a
Merge branch 'develop' into detectTokenFeature
2018-07-03 13:23:15 -04:00