aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/reducers/metamask.js
Commit message (Collapse)AuthorAgeFilesLines
* Folder restructure (#6304)Chi Kei Chan2019-03-221-419/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* mascara - remove from project (#6283)kumavis2019-03-121-2/+0
|
* Metametrics (#6171)Dan J Miller2019-03-051-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add metametrics provider and util. * Add backend api and state for participating in metametrics. * Add frontend action for participating in metametrics. * Add metametrics opt-in screen. * Add metametrics events to first time flow. * Add metametrics events for route changes * Add metametrics events for send and confirm screens * Add metametrics events to dropdowns, transactions, log in and out, settings, sig requests and main screen * Ensures each log in is measured as a new visit by metametrics. * Ensure metametrics is called with an empty string for dimensions params if specified * Adds opt in metametrics modal after unlock for existing users * Adds settings page toggle for opting in and out of MetaMetrics * Switch metametrics dimensions to page level scope * Lint, test and translation fixes for metametrics. * Update design for metametrics opt-in screen * Complete responsive styling of metametrics-opt-in modal * Use new chart image on metrics opt in screens * Incorporate the metametrics opt-in screen into the new onboarding flow * Update e2e tests to accomodate metametrics changes * Mock out metametrics network requests in integration tests * Fix tx-list integration test to support metametrics provider. * Send number of tokens and accounts data with every metametrics event. * Update metametrics event descriptor schema and add new events. * Fix import tos bug and send gas button bug due to metametrics changes. * Various small fixes on the metametrics branch. * Add origin custom variable type to metametrics.util * Fix names of onboarding complete actions (metametrics). * Fix names of Metrics Options actions (metametrics). * Clean up code related to metametrics. * Fix bad merge conflict resolution and improve promise handling in sendMetaMetrics event and confrim tx base * Don't send a second metrics event if user has gone back during first time flow. * Collect metametrics on going back from onboarding create/import. * Add missing custom variable constants for metametrics * Fix metametrics provider * Make height of opt-in modal responsive. * Adjust text content for opt-in modal. * Update metametrics event names and clean up code in opt-in-modal * Put phishing warning step next to last in onboarding flow * Link terms of service on create and import screens of first time flow * Add subtext to options on the onboarding select action screen. * Fix styling of bullet points on end of onboarding screen. * Combine phishing warning and congratulations screens. * Fix placement of users if unlocking after an incomplete onboarding import flow. * Fix capitalization in opt-in screen * Fix last onboarding screen translations * Add link to 'Learn More' on the last screen of onboarding * Code clean up: metametrics branch * Update e2e tests for phishing warning step removal * e2e tests passing on metametrics branch * Different tracking urls for metametrics on development and prod
* Show/Hide Fiat on Testnets based on User Preference (#6153)Chi Kei Chan2019-02-271-1/+5
|
* Fix gas estimation when sending to contracts (#6195)Dan J Miller2019-02-261-1/+1
| | | | | * Fix gas estimation when sending to contracts * Fix calculating of balance sufficiency and tx params when sending token transaction
* Add announcement for users migrated to the new UIWhymarrh Whitby2019-02-051-0/+6
|
* Refactor first time flow, remove seed phrase from state (#5994)Alexander Tseung2019-01-231-0/+7
| | | | | | | | | | | | | | | | | | | | * 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
* Use Parity on-chain registry only when is needed (#6052)Esteban Miño2019-01-231-0/+1
| | | | | | * add and use knownMethodData to avoid infura requests * dataMethod to methodData and check empty response
* Fix rounding issue when sending max tokens (#5695)Alexander Tseung2018-11-201-1/+1
| | | | | | | | | | * 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
* nextUnreadNotice undefined rather than nullThomas2018-11-011-1/+1
|
* Readable tests, and set nextUnreadNotice to null when CLEAR_NOTICES is ↵Thomas2018-10-311-0/+1
| | | | dispatched
* Merge branch 'develop' into reducersThomas2018-10-311-0/+9
|\
| * Add support for RPC endpoints with custom chain IDs (#5134)HackyMiner2018-10-261-1/+1
| |
| * Adds toggle for primary currency (#5421)Alexander Tseung2018-10-171-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | Set maxMode and toNickname defaults for clear_sendThomas2018-10-101-3/+5
|/
* Add updateSendHexData actionWhymarrh Whitby2018-07-181-0/+8
|
* notices - replace getLatestNotice with getNextNoticekumavis2018-06-141-2/+2
|
* Merge branch 'develop' into i3725-refactor-send-component-Dan2018-05-241-1/+13
|\
| * Merge pull request #4308 from MetaMask/i4232-addtokenkumavis2018-05-231-0/+12
| |\ | | | | | | Update designs for Add Token screen
| | * Update designs for Add Token screenAlexander Tseung2018-05-201-0/+12
| | |
| * | Move setAccountLabel into PreferencesControllerWhymarrh Whitby2018-05-171-1/+1
| |/
* / Further refactors; includes refactor of send-v2.js and associated containerDan2018-04-301-11/+0
|/
* Clean up network configAlexander Tseung2018-04-241-1/+1
|
* Fix confirmation popup not always openingAlexander Tseung2018-04-171-2/+3
|
* Merge branch 'master' into i3981-contract-ratesDan Finlay2018-04-171-1/+1
|\
| * Fix action for setting localeDan Finlay2018-04-141-1/+1
| |
* | Maintain token prices using a background servicebitpshr2018-04-161-17/+0
| |
* | Fetch token prices based on contract addressbitpshr2018-04-161-7/+16
|/
* Merge branch 'master' into i18n-translator-reduxDan2018-03-271-1/+3
|\
| * Use ens-input component in send-v2 to allow sending to ens names.Dan2018-03-261-1/+3
| |
* | Default current locale in metamask reducer to empty string.Dan2018-03-241-1/+1
| |
* | Merge branch 'master' of github.com:MetaMask/metamask-extension into ↵kumavis2018-03-211-0/+2
|\| | | | | | | i18n-translator-redux
| * Merge branch 'master' into retry-tx-refractorDan2018-03-141-0/+6
| |\
| * | Remove unnecessary addition of nonce to state.Dan2018-03-141-2/+0
| | |
| * | Merge branch 'master' into retry-tx-refractorDan2018-03-091-2/+0
| |\ \
| * | | Retry transaction logic added to tx-list-item, confirm-send-ether, ↵Dan2018-03-091-0/+4
| | | | | | | | | | | | | | | | customize-gas-modal, and dependents.
* | | | Handle i18n with redux.Dan2018-03-161-0/+6
| |_|/ |/| |
* | | Merge branch 'master' into i3033-responsive-newui-onboardingkumavis2018-03-141-2/+0
|\ \ \ | | |/ | |/|
| * | Fix flashing to Log in screen after logging in or restoring from seed phrase ↵Alexander Tseung2018-03-081-2/+0
| |/ | | | | | | (#3466)
* / Add welcome screen to new-ui browser first time flow.Dan2018-03-091-0/+6
|/
* Fix NewUI reveal seed flow. (#3410)Dan J Miller2018-03-031-1/+6
|
* [NewUI] Adds the mascara first time flow to betaUI extension (#3257)Dan J Miller2018-02-161-0/+2
| | | | | | * Adds the mascara first time flow to the extension when opened in browser. * Fix tests after addition of mascara first time flow to new ui.
* Track usage of old and new UI (#2794)Alexander Tseung2017-12-231-0/+7
| | | [NewUI] Track usage of old and new UI
* Merge branch 'NewUI-flat' into MM-333-auto-add-users-to-new-UIChi Kei Chan2017-12-081-0/+9
|\
| * Update max amount behaviour to meet new specs.Dan2017-12-071-0/+9
| |
* | New-ui actions accomodates old-ui.Dan2017-12-051-1/+1
| |
* | Add UI selectionDan2017-12-051-0/+6
|/
* making eslint happyJason Clark2017-11-261-1/+1
|
* toggle wired up to preferences property storeJason Clark2017-11-251-4/+4
|
* incremental commitClark, Jason (Contractor)2017-11-241-0/+6
|
* Create single action for updating all of send in redux state.Dan2017-11-151-0/+10
|
* Fix lint errors.Dan2017-11-151-4/+4
|
* Allow editing of send ether.Dan2017-11-151-0/+23
|
* Token balance in send state; validating sufficient tokens, validation ↵Dan2017-11-071-0/+9
| | | | updates on 'from' switching.
* More lint fixesDan2017-11-021-1/+1
|
* Merge branch 'master' into NewUI-flatChi Kei Chan2017-10-251-1/+23
|\
| * ShapeShift IntegrationChi Kei Chan2017-10-211-0/+21
| |
| * Adding CreatePasswordScreenJacky Chan2017-10-211-0/+2
| |
* | Clear send state on cancelling and signing.Dan2017-10-241-4/+14
| |
* | Handling to and amount errors.Dan2017-10-191-0/+16
| |
* | Move all of send state to metamask state.Dan2017-10-191-0/+46
| |
* | wipChi Kei Chan2017-10-181-0/+6
| |
* | Customize Gas connected to stateDan2017-10-161-0/+20
| |
* | Enables remove token and ensures add/remove update the list without need for ↵Dan2017-10-041-0/+6
| | | | | | | | refresh.
* | Add token exchange ratesChi Kei Chan2017-09-131-0/+10
| |
* | Adding Token transaction detail screenChi Kei Chan2017-09-061-0/+6
| |
* | Move responsive ui into its own folder for easier mergesDan Finlay2017-07-211-0/+137
| |
* | Make folder for responsive UIDan Finlay2017-07-041-137/+0
|/
* Assure that seed words are placed into state tree upon request.Kevin Serrano2017-03-281-0/+1
|
* Merge branch 'master' into i1165-predictiveKevin Serrano2017-03-151-4/+1
|\
| * Rename variables to proper currency state variables.Kevin Serrano2017-03-151-4/+1
| |
* | Create persistence address book.Kevin Serrano2017-03-101-0/+1
|/
* Refactor of code into separate reducers and actions.Kevin Serrano2017-03-081-0/+1
|
* Break out rpc update and rpclist into two reducers.Kevin Serrano2017-03-081-2/+6
|
* Tested against code to play nice with unit tests.Kevin Serrano2017-02-241-1/+2
|
* Delete all code related to disclaimers.Kevin Serrano2017-02-101-5/+0
|
* Merge branch 'dev' into messageManagerCleanUpFrankie2017-02-021-3/+3
|\
| * rename selectedAccount to selectedAddresskumavis2017-01-311-3/+3
| |
* | Clean up message manger includes:Frankie2017-01-291-7/+7
|/ | | | | | | | | Provider egine bump Remove presence of message manger in keyring controller Change the status wording fom conf to approved make Message manager a class fix messages not being apart of the badge re write message manger to better reflect controller pattern
* Merged master into devDan Finlay2016-12-201-0/+13
|\
| * Add ability to show notices to user & get confirmation.Kevin Serrano2016-12-171-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | Implement generation of markdown for notice files. Create npm command. Enhance notice generation. Add test files to test multiple notices. Add basic markdown support to notices. Interval checks for updates. Add extensionizer and linker Add terms and conditions state file Add link support to disclaimer. Changelog addition.
* | change all instances of selectedAddress to selectedAccount.Kevin Serrano2016-11-221-1/+0
| |
* | Re-enable disclaimer screen. Rename variables to reflect role more clearly.Kevin Serrano2016-11-151-1/+1
| |
* | Phase out extra warning screen.Kevin Serrano2016-10-261-6/+0
|/
* ui - remove unused currentDomain propkumavis2016-09-131-1/+0
|
* Added compliance for tests and properly accounts for N/A conversions.Kevin Serrano2016-08-171-1/+1
|
* Merge master.Kevin Serrano2016-08-161-1/+2
|\
| * Fix ether warning checkbox.Kevin Serrano2016-08-111-1/+2
| |
* | Holding off on select formatting for now. Renamed keys for options.Kevin Serrano2016-08-051-1/+1
| |
* | Create default values for metamask state for conversion. Fix config files ↵Kevin Serrano2016-08-051-0/+3
| | | | | | | | for ui dev.
* | Fix merge conflicts. Fix typos. Ensure currency immediately updated on load.Kevin Serrano2016-07-231-0/+5
|\|
| * Buy button (#474)Frankie2016-07-221-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP: Buy button link * Add buy eth and the buy eth warning message * Add css * Move the opening of coinbase page to background and send to faucet if on test net * Create a Warning about storeing eth * Finish Buy button and Eth store warning screen * Add to CHANGELOG * fix frankies deletion and change chrome to extension
* | Linting!Kevin Serrano2016-07-231-1/+1
| |
* | Add date access throughout the data flow.Kevin Serrano2016-07-221-0/+1
| |
* | Add data field to pass up parameters up to reducer.Kevin Serrano2016-07-221-0/+6
|/
* Manually lintedDan Finlay2016-06-221-8/+10
|
* Auto lintedDan Finlay2016-06-221-93/+92
|
* Create disclaimer approval reducerDan Finlay2016-06-171-0/+5
|
* Added ability to nickname wallets locallyDan Finlay2016-05-211-0/+8
| | | | The changes are persisted to localstorage, so they cannot be restored on a new computer, but for right now it's a nice organizational feature.
* Streamlined some transition logicDan Finlay2016-05-131-1/+7
| | | | | | | | Fixes #122 Had used multiple actions for some transitions, which would lead to brief intermediary states. Now making a few actions much more explicit about what they route to, so there is less intermediary logic, and we can transition confidently to the correct view.
* Fix more transition bugsDan Finlay2016-05-121-3/+10
|
* Make default providers more easiliy configurable for metamask devsDan Finlay2016-05-111-1/+11
| | | | | | | | No longer do our `mainnet` and `testnet` buttons set specific RPC urls. Now they set `provider.type`, which gets interpreted with code. Currently the provider types of `mainnet` and `testnet` point to our new scalable backends, but these could be re-interpreted to use any other provider, be it etherscan, peer to peer, or otherwise. Makes it easier for us to upgrade our infrastructure without incorporating migration logic into the program.
* Add UI for Signing MessagesDan Finlay2016-05-041-1/+7
| | | | | | | | | | Calls to `eth.sign` are now transiently persisted in memory, and displayed in a chronological stack with pending transactions (which are still persisted to disk). This allows the user a method to sign/cancel transactions even if they miss the Chrome notification. Improved a lot of the view routing, to avoid cases where routes would show an empty account view, or transition to the accounts list when it shouldn't. Broke the transaction approval view into a couple components so messages and transactions could have their own templates.
* Moved UI into repo with its own dependency stackDan Finlay2016-04-141-0/+73