Commit Graph

718 Commits

Author SHA1 Message Date
Daniel Ternyak b047c89690
Update ETC Epool Node URL (#1876) 2018-05-30 22:56:08 -05:00
Daniel Ternyak bc9ded503f
Remove MyCrypto Chrome Extension from Onboarding (#1875) 2018-05-30 22:36:04 -05:00
William O'Beirne c29d13eac8 Add New Networks w/ Refactor (MUSIC, ETSC, EGEM, CLO) (#1862)
* Add EGEM, ETSC, and MUSIC networks. Remove unused gasEstimate property.

* Add CLO
2018-05-30 18:57:12 -05:00
William O'Beirne 724f1161ea Fix getting stuck pending when node load fails (#1871) 2018-05-29 21:24:38 -05:00
Cody Burns 9f9f0a527a Update epool node (#1867)
mewapi.epool.io >> mew.epool.io
2018-05-29 16:09:19 -05:00
Daniel Ternyak e0fd7dfe56
Google Site Verification (#1865) 2018-05-29 13:45:04 -05:00
William O'Beirne a057136c83 Simplify Web3 Provider Identifier (#1861)
* Check in progress

* Revert some files to develop.
2018-05-29 13:39:20 -05:00
Daniel Ternyak 0f6273ec03
Fix JSON (#1866) 2018-05-29 12:45:28 -05:00
James Prado cecd7f865c Simplex promo (#1839)
* Add simplex promo for euro

* Fix when isEuroLocal() called

* Add promo strings to translation files
2018-05-29 10:52:14 -05:00
William O'Beirne a043334685 Node Refactor (#1603)
* Initial work on refactoring node definitions to reduce number of places theyre defined, amount of copy pasting.

* Use makeAutoNodeNAme instead of manually appending _auto

* Add getNetVersion to list of unsupported methods

* PR feedback

* Rework web template node selector to be a network selector. Refactor some types to help with that. Better handle removing custom nodes.

* Remove color dropdown.

* Fix selecting custom networks. Show notification if change network intent fails.

* Use selectors for current node / network instead of intuiting from nodeSelection

* Add id key to all networks, simplify add and remove custom node and network functions.

* Fix a lot of uses of network.name to use network.id instead.

* Dont allow network chainid conflicts

* Fix web3 network by chainid

* Add testnet badge to network selector

* Change nomenclature from change(Node|Network)(Intent)? to change(Node|Network)(Requested|Succeeded)

* tscheck

* Better code for chainid collision

* Remove console logs

* Fix tests

* Network selector becomes self contained component used both by web header and electron nav.

* Dont select node again

* Additional title text

* tscheck

* Custom node behavior in Electron

* Close panel too

* Convert node label data into selector function

* tscheck

* Parens & space
2018-05-29 09:51:42 -05:00
HenryNguyen5 9bdeab2307 Clear transaction state on tab changes (#1852) 2018-05-25 12:30:22 -05:00
HenryNguyen5 9817f9576f Add dropdown for boolean inputs (#1845) 2018-05-24 18:22:33 -05:00
Daniel Ternyak 120791e75b
Update Electron Expiration (#1844) 2018-05-24 17:10:57 -05:00
Connor Bryan 04f75a6a27 Address Manager (#1657)
* Add a new route for AddressBook

* Further templating of the AddressBook view

* Add initial functionality to handle a table of existing address labels

* Make the linter happy

* Adjust paths

* Factor out TableRow and add common functionality

* Add initial Redux boilerplate for addressBook | fix minor linting issues

* Swap out terminology and types

* Connect up to Redux

* Connect data for AddressBookTable to Redux

* Use temporary fields for addition

* Remove alignment and index column

* Stopping point

* Adjust the sizing of rows to be consistent

* Initial implementation of a dropdown for the address field

* Minor styling to dropdown

* Stopping point

* Apply a focus concept onto the factory

* Add keyboard controls for the address field dropdown

* Adjust label of address field when it matches an addressBook entry

* Properly handle attempting to blur a non-existent component

* Minor styling changes on dropdown box

* Standardize address casing, add accessibility to dropdown

* Create an addressLabel component

* Pass refs correctly and fix some typings

* Exact version

* Add module name mapping for shared/keycodes

* addressBook reducer tests

* Add functionality to DeterministicModal

* Minor changes / Add test for addressBook selectors

* Move out AddressBookTable to a component

* Typing, translation and restructuring

* More typing and translation fixes

* More linting fixes

* More type changes

* Variable name for dropdown background

* Fix TS type errors, lint errors, remove unused props

* Used a different selector and removed method: AddressBookTable

* Linter was mad

* Linter mad again :(

* Add a translation and adjust styling of AddressBookTable

* Move the onBlur to a class method

* Prevent the default behavior of up/down/enter for dropdown

* Let's do it this way instead

* Adjust the styling on DeterministicWalletModal labels

* Change `AddressBookTable` into a pseudo-table using section and div

* Use readable keys vs. keycodes

* Put the dropdown in InputFactory and position it correctly

* Sanitation of label adding and changing

* Prevent duplicate labels in AddressBook and Row

* Add a box shadow and use `invalid` class insted of custom

* Use emphasis vs strong for address in dropdown

* Display the label undernearth the input vs. changing it

* Isolate AccountAddress into its own component

* Introduce interactivity to AccountAddress

* Fully incorporate with Redux

* Validation for AccountAddress

* Add validation notifications for address field on AddressBookTable

* Minor formatting

* Adjust wrappage for optimal flexboxxing

* Make AddressBookTable responsive

* Show an invalid input in "real time" instead of only on submit

* Real time input validation for AddressBookTableRow

* Responsive-ize the To address dropdown

* Hide identicons instead at small enough screen sizes

* Fix repsonsiveness of dropdown further

* Fix responsiveness of table rows and inputs

* Truncate account info and switch identicons to the right for consistency

* Use classnames instead of targetting element directly for DWM

* Display a notice if the entered query doesnt match a label and isnt an addr

* Don't show an error on the To address if its a label entry

* Display an error under AddressBookTableRow in real time

* Display errors in real time for AddressBookTable temp inputs

* Add realtime validation to AccountAddress

* Ensure toChecksumAddress is used when entering labels to address manager

* Show errors even after blurring.

* Only show errors on address/label entry if they have been blurred

* On certain inputs, show an invalid input immediately

* Add displayed errors for labels with 0x and labels containing ens

* Move ENS checking validation out

* Add a saga for addLabelForAddress

* Completely revamp the redux side of Address Manager and test it all

* Adjust components to use new redux addressBook

* Incorporate new redux into AddressBookTableRow and clean up for linter

* Make linter and tests happy

* Another reduxy overhaul

* Still fixing it

* More redux updates

* Finalize redux stuff.

* Incorporate new reduxy way into AddressBookTable & Row

* Incorporate redux changes into Account Address

* Small tests fix

* Add and fix some selector tests

* Addressing Will's comments

* Shortened visibility class for line length reasons.
2018-05-21 18:10:51 -05:00
HenryNguyen5 c763b2ac98 Ledger types (#1690)
* Do not truncate errors, pretty output

* Introduce helpers for sagas

* Update yarn lock

* Initial types

* Finish types

* cleanup

* Fix imports and filenames to cooperate with internal typings
2018-05-21 15:47:25 -05:00
Seena Rowhani 7e605c4058 Don't require leading 0 in amount field (#1718)
Don't require leading 0 in amount field
2018-05-21 13:53:33 -05:00
Alejandro Cavallero c2f79128bd Add network unit to account balance on testnets (#1717)
* Adding network unit to account balance

* Shows network name only if it is testnet

* Replacement of private function

* Private function at the end
2018-05-21 13:52:24 -05:00
HenryNguyen5 d5013b8810 Strip hex prefix for bytes inputs (#1811) 2018-05-21 13:11:08 -05:00
HenryNguyen5 661d862311 Improve electron versioning (#1777)
* Add electron version as package json field, unify version export

* Base electron versioning on assets in uploaded binaries

* Update schema, remove dead code

* Remove unused import

* Remove console logs

* correct electron-version

* better styling for versions

* bump electron-version
2018-05-14 12:06:04 -05:00
Daniel Ternyak 44b3ed411f
Don't show "stable" welcome modal on Electron (#1779) 2018-05-14 11:54:49 -05:00
James Prado a77aa3a02c Fix input validation styles (#1778)
* Fix input validation styles

* Remove green borders
2018-05-13 20:39:54 -05:00
Daniel Ternyak 58949dd44e
Update token list (#1776) 2018-05-13 14:57:53 -05:00
HenryNguyen5 8d27d0ba4d Improve form validation (#1772)
* Change gas price validation to be string input based

* Change sanitization to use Nunber

* Have validators use Number over parseFloat

* Fix css validation class

* Add valid css to address field

* Add data field validation

* Remove unused import

* Fix button being hidden on inputs

* Dead code removal

* Unify textarea and input class validation

* Adjust validity styling to only apply after a value has been inputted

* Do not pass custom props to DOM
2018-05-13 14:24:50 -05:00
Daniel Ternyak 32416469e4
Adjust privacy policy URL (#1775) 2018-05-13 14:09:19 -05:00
HenryNguyen5 039aab09a2 Do not allow custom tokens to be added with the same address (#1770)
* Do not allow custom tokens to be added with the same address

* prettify
2018-05-12 23:20:36 -05:00
HenryNguyen5 0e7a2ef2e8 Automatically track custom tokens (#1769) 2018-05-12 22:58:58 -05:00
HenryNguyen5 5baa356ee1 Fix integer checks for custom token decimals (#1753) 2018-05-12 18:28:03 -05:00
James Prado 12864b30d9 Add custom meta tags for social-media seo (#1755) 2018-05-12 18:27:34 -05:00
Daniel Ternyak 40e6093202
Add private key deprecation information (#1748)
* add copy/link to PR for deprecation

* Add Parity Signer and MetaMask to pkey warning
2018-05-12 18:26:18 -05:00
HenryNguyen5 fee8d63088 Parse bytes types to a hex buffer (#1731)
* Parse bytes types to a hex buffer

* Revert yarn lock changes
2018-05-11 14:07:51 -05:00
HenryNguyen5 6c84654172 Increase shepherd thresholds (#1736)
* Mark depreciated react lifecycles as unsafe

* Rename mycrypto-shepherd ->  myc-shepherd, increase thresholds

* swap myc-shepherd for mycrypto-shepherd
2018-05-11 14:02:50 -05:00
William O'Beirne ae2ac4f2c6 Production Release Changes (#1673)
* Remove beta agreement, move modals to Root, and initial work on welcome modal.

* Local storage detection for welcome modal

* Remove announcement from header. Allow tooltips to point in non-top directions.

* Show modal fade at bottom on non-footer modals

* Update README

* Update all links back to old mycrypto to classic.mycrypto, add footer link too.

* Localize welcome modal

* Remove release candidate version text, change to legacy.mycrypto instead of classic.mycrypto.

* update banner; add hackerone link
2018-05-11 10:15:32 -05:00
Daniel Ternyak 1e9fe1b394
Update Footer (#1746) 2018-05-10 23:35:10 -05:00
Daniel Kmak f06186e883 Upgrade EAC libs to v1.0.0-beta.3. (#1714) 2018-05-10 22:12:49 -05:00
HenryNguyen5 8c7d89f22b Mark depreciated react lifecycles as unsafe (#1733) 2018-05-10 21:34:27 -05:00
Kazunori Seki 2ed8caf078 Japanese V4 full translation (#1655)
* Japanese V4 full translation

PIck all the labels from en.js and sorted in the same order.

* merge conflicts
2018-05-08 22:47:12 -05:00
William O'Beirne a8740e0fc2 Show version in Electron (#1730)
* Add app version to both support us page and help menu

* Typescriptery
2018-05-08 22:06:35 -05:00
Daniel Ternyak 9e844b71f9
Update Release Candidate Version (#1709) 2018-05-01 21:15:27 -05:00
Daniel Ternyak 347b2f0684
Use proxy.mycryptoapi.com for rates (#1710) 2018-05-01 21:13:38 -05:00
HenryNguyen5 dc8edc91b7 Remove checksumming of keystore address (#1697) 2018-05-01 20:45:22 -05:00
HenryNguyen5 d348e3c112 Fix retry scan if you have no tokens (#1708)
* Fix retry scan if you have no tokens.

* Swap out updateTokenBalances for retryTokenBalances
2018-05-01 20:45:02 -05:00
HenryNguyen5 9d1a218a0e Fix Estimate Gas (#1698)
* Properly pad hex encoded data

* Remove to address for gas estimation if its zero value
2018-04-30 20:07:59 -05:00
William O'Beirne 34ef8857da Trezor Help Link & Decrypt UI (#1695) 2018-04-30 13:40:39 -05:00
William O'Beirne a57d17a3e0 Fix Duplicate DPaths & Deterministic Modal Improvements (#1682)
* Fix dPath uniqueness

* Pass around dPath object, not just path, to maintain uniqueness

* Improve deterministic modal UI

* Fix custom dpaths
2018-04-30 13:39:25 -05:00
William O'Beirne 82e0530bec Allow Network Change Offline (#1683)
* Allow changing to offline node when currently offline

* Fix tests
2018-04-26 22:55:31 -05:00
William O'Beirne 5733833f5e Wallet Selection Optimization (#1680) 2018-04-26 13:24:28 -05:00
William O'Beirne 4f6dde23c0 Render Falsey Contract Outputs (#1684) 2018-04-26 13:19:54 -05:00
HenryNguyen5 df2c3bc7fd Add Error Boundary to Parity Signer (#1675)
* add jenkins config for mac signing (#1666)

* More RC Bugfixes (#1670)

* add jenkins config for mac signing (#1664)

* Fix #1653

* Fix #1648

* Fix #1638

* Fix test

* Electron Alpha Prep (#1671)

* Adjust update flow to not auto update, not publish in CI

* Revert "Adjust update flow to not auto update, not publish in CI"

This reverts commit 74fb382ce8d8cd9e227703ccfa8d6310bffd9dda.

* First pass at new app version modal

* Added app alpha notice that either warns you about alpha, or blocks the whole app.

* Improve newer version detection, add unit tests

* Remove native auto update behavior

* add jenkins config for mac signing (#1664)

* Notice once per session

* copy changes per PR review

* More RC Bugfixes (#1669)

* Fix #1653

* Fix #1648

* Fix #1638

* Fix test

* Add errorable component

* Fix lint

* Change instance order
2018-04-26 01:26:37 -05:00
Maciej Hirsz cf59688896 Enable Parity Signer Message Signing (#1663)
* Enable Parity Signer to sign messages

* Verify that message signature is correct

* Type systems are awesome :)
2018-04-25 19:36:29 -05:00
William O'Beirne 5542791af8 Electron Alpha Prep (#1665)
* Adjust update flow to not auto update, not publish in CI

* Revert "Adjust update flow to not auto update, not publish in CI"

This reverts commit 74fb382ce8d8cd9e227703ccfa8d6310bffd9dda.

* First pass at new app version modal

* Added app alpha notice that either warns you about alpha, or blocks the whole app.

* Improve newer version detection, add unit tests

* Remove native auto update behavior

* Notice once per session

* copy changes per PR review
2018-04-24 22:29:34 -05:00
HenryNguyen5 54102d07b0 More RC Bugfixes (#1669)
* Fix #1653

* Fix #1648

* Fix #1638

* Fix test
2018-04-24 22:26:53 -05:00
Taylor Monahan 8146f14f7a Change "Ether Wallets" to "ether wallets" in footer copy (#1620) 2018-04-23 18:59:23 -05:00
Taylor Monahan d31ee202a1 Adjust language capitalization (#1622)
Adjust language capitalization
2018-04-23 18:40:04 -05:00
William O'Beirne 9d2199970b Update Create Wallet Tutorial Screenshots (#1661) 2018-04-23 18:38:12 -05:00
HenryNguyen5 12d29e5b94 RC Bugfixes (#1644)
* Fix #1569

* Use common component for handling "to" address

* If to address becomes invalid, hide contract interact explorer

* Add IS_CONTRACT_INTERACTION mode - fix bugs related to contract interact

* Bump shepherd version to fix bugs related to metamask + network switches

* Update mycrypto link downloads

* Update facebook link

* Remove console log from checktx

* Fix dollar sign on contract address in conf modal

* Fix unchecksummed address for metamask signing

* Cleanup unused classname

* Update generate keystore file description to be correct

* Add space to create new wallet banner

* Remove extra variable

* Do checksumming in library function instead of component

* Clear state on address change
2018-04-23 18:35:24 -05:00
Daniel Ternyak 699e4d6fa9
Prep Launch of Release Candidate 1.0.0 (#1538)
* Prep launch of Release Candidate

* add RC to readme

* add steely referral links
2018-04-16 20:32:17 -05:00
William O'Beirne aa0f9cd455 Electron Redesign (#1505)
* Frameless Electron. Separate electron template. Generecize navigation link. Move nav info to config.

* Add controls for language and node, network status to sidebar.

* Sticky headers

* Move custom node modal into standalone component. Render modals via portal. Add custom node modal opening to electron node list.

* Conditional styling based on environment.

* Fix active node highlight

* Add frame back in, draggable only on OSX, fix sidebar scroll.

* Remove panel content after delay.

* Adjust window sizes

* Style desktop help nav icon

* Remove unused var

* Move style to param

* Remove unused

* Update snapshot

* Fix oversized stretching, zindex fighting

* Make electron work better with various screen sizes

* Remove not-working https option for electron

* Add beta banner

* Fix web footer

* Address changes
2018-04-16 18:30:58 -05:00
William O'Beirne 2ddd5df7dc Fix Ledger DPaths, Improve Error Messaging (#1517) 2018-04-16 18:07:00 -05:00
HenryNguyen5 6c8f3ff64a Only do node checks when node change is not pending (#1525)
* Only do node checks when node change isnt pending

* bump mycrypto-shepherd version

* Use shepherds selectors

* Use shepherd pending state for checking for offline

* Fix tsc error

* mycrypto-shepherd -> myc-shepherd

* set mycrypto-shepherd
2018-04-16 17:51:15 -05:00
William O'Beirne adad64d45f Fix TREZOR dpath on TOMO network (#1519) 2018-04-16 17:50:20 -05:00
William O'Beirne c7c17843b0 Deprecation Warning for Insecure Unlocks (#1526) 2018-04-16 10:36:14 -05:00
William O'Beirne 944128bd29 ETC commonwealth node (#1518) 2018-04-15 11:45:36 -05:00
Daniel Kmak 985ea0fb89 Ethereum Alarm Clock Integration (#1343)
* [FEATURE] Initial EAC integration.

* Title and explanation

* [FEATURE] Move the Schedule Payment to the main tab.

* [FEATURE] TimeBounty slider.

* [FEATURE] Move to main menu.

* [FEATURE] Redirection to the DApp for details.

* [FEATURE] Timestamp scheduling

* Scheduling: Basic date and time widget

* Linting fixes

* Moved the datetime field to new tab

* Fixed push errors

* Added missing specs

* Undid unintentional UI change

* Fixed some failing tests

* Ignore datetime parameter when checking if a transaction is full

* Added a date selector widget and renamed ScheduleTimestamp to ScheduleDate

* Marked componentDidMount

* Initialized Pikaday

* Revert "Initialized Pikaday"

This reverts commit 4e5bf5b2b882f236f5977400abf9b7092cbd1592.

* Revert "Marked componentDidMount"

This reverts commit 85d52192ac58f4b6ca9219e702f7390cd27e582f.

* Revert "Added a date selector widget and renamed ScheduleTimestamp to ScheduleDate"

This reverts commit aaad0ac9b565a78d1bfc631754160919fd38a59b.

* Converted the date picker into a datetime picker

* Added decent styling to the datetimepicker

* Added validation to the datetime picker

* Fixed prepush errors for scheduling timestamp

* Adjusted validation logic scheduling timestamp

* [FEATURE] Move scheduling to main tab.

* [FEATURE] Timezone selector

* [FEATURE] Scheduling: Timezone selector

* Removed zombie files

* [FEATURE] Reimplement Time Bounty.

* [FEATURE] Time/block selector

* [FEATURE] Add Window Size field.

* [FEATURE] Time/block switch functionality

* Implemented time/block switcher fuctionality

* [FEATURE] Add Schedule Gas Price field.

* [FEATURE] Scheduling toggle

* [FEATURE] Add basic styling and network check.

* [FEATURE] Add Schedule Gas Limit field

* [FEATURE] "Scheduled" button styling

* Reordered, renamed and centered scheduling elements

* Added the toggle button styling

* Class -> ClassName

* [FEATURE] Add Deposit field

*  [FEATURE] Move scheduling code into one directory

* [FIX] Scheduling responsiveness

* [FIX] Datetime picker not working on md screens

* [FEATURE] Timestamp Scheduling basic functionality

* [FIX] Fix data serialization.

* [FEATURE] Timezone inclusion

* [FEATURE] Add ChronoLogic logo.

* [FEATURE] Add link to image.

* [FIX] Update CSS of logo.

* [FEATURE] Default Window Size

* [FEATURE] Modified Help component to enable acting as a tooltip

* [FEATURE] Call contract to validate scheduling params

* [FIX] Change moment import to fix tests

* [FEATURE] Gas estimation for scheduling

* [FEATURE] Additional validation

* [FEATURE] UI changes and descriptions

* [FEATURE] Add tooltip to window and fix fee display.

* [FIX] Fix ethereumjs-abi dependency.

* [FEATURE] Hide scheduling when sending tokens.

* [FIX] Improved styling datetime picker

* [FEATURE] Add Redux state for scheduling

* [FEATURE] Create Toggle component, Share code between components

* [FEATURE] Use Tooltip component for help.

* [FEATURE] Better datetime picker

* [FEATURE] Remove fee

* Trigger mycryptobuild

* [FIX] Timestamp scheduling - Validation match

* [FIX] EAC integration touchups

* [FIX] Code review fixes

* [FIX] Window Size type

* [FIX] Type fixes.

* [FIX] Make tooltips only show on icons + resposiveness fixes

* [FIX] Break tooltips into more lines

* [FIX] Remove unnecessary code.

* [FIX] Remove unnecessary code.

* [FIX] Remove unnecessary types declaration.

* [FIX] Fee class names
2018-04-14 17:21:33 -05:00
William O'Beirne 7798b9cef1 Show Recent Addresses on View Only (#1514)
* Add recent addresses to reducer, show them on view only decrypt.

* Update test
2018-04-14 14:10:21 -05:00
Daniel Ternyak f63bd92edf
Update ETH Token List (#1498)
* update ETH token list (as of April 11th, 2018)

* fix SMT duplicated tokens

* adjust tokens test to gather errors instead of failing on first test

* separate duplicate tokens

* update token list (april 13th, 2018)
2018-04-13 12:14:29 -05:00
Connor Bryan 7320413dab Mnemonic Redesign (#1501)
* Added a shuffle to swap out the numbers and made them read-only.

* Add a border and an index when selecting a confirmation word

* Add error flashing

* Transform the inputs into buttons when confirming

* Change naming of "peek" to "revealing"

* If statement needs brackets

* Linter complaints

* Code cleanup

* Formatting and removing unused styles.

* Move out shuffle to a util

* Additional test cases

* Function call, forgot the parens

* Adjust sizing and position of confirmation index in Mnemonic button

* Implement requested style changes: selected buttons, margins on inputs

* Use lodahs shuffle

* No need to spread this array
2018-04-12 23:50:36 -05:00
William O'Beirne a40b2cc499 Fix a bunch of non-new tab links and mistranslated text (#1506) 2018-04-12 23:36:51 -05:00
William O'Beirne b4c4b05df6 Add QR signer modal to root so its always available (#1509) 2018-04-12 23:34:30 -05:00
Daniel Ternyak db1a7ca2c3
Allow network selection via query parameter (#1496)
* initial non-working design

* continue implementation

* don't export shared type

* delay before requesting currentBlock

* setup one-time node change intent

* working implementation without node pulse

* dispatch action instead of call to enable node pulse

* Remove copy changes

* add test case for delay in handleNodeChangeIntent saga

* don't redundantly change networks

* Cleanup code and add tests (#1504)
2018-04-12 18:17:46 -05:00
HenryNguyen5 43ef6e95d4 Add getNetVersion to ignored methods for web3 (#1491)
* Add getNetVersion to ignored methods for web3

* update mycrypto-shepherd version
2018-04-11 19:18:56 -05:00
Daniel Ternyak 54dc4f94e3
Allow metamask unlock on all networks (#1490) 2018-04-10 21:53:54 -05:00
HenryNguyen5 6a05436e1d Simpler offline checks (#1492)
* Fix sign message not returning

* Use shepherd offline state for offline checks

* Use hasCheckedOnline

* Fix tests

* Fix tsc err
2018-04-10 21:53:27 -05:00
HenryNguyen5 b9694c7be8 Unset Web3 to previous node (#1472) 2018-04-09 12:23:37 -05:00
HenryNguyen5 05a751b1f3 Fix ledger signing (#1473)
* Fix sign message not returning

* Remove unused bufferToHex

* trigger mycryptobuild
2018-04-09 12:15:57 -05:00
Maciej Hirsz 54980d745b Update parity signer link (#1477)
* Update the link

* Skip extension altogether
2018-04-09 12:13:27 -05:00
HenryNguyen5 5e76b9f04c Fix web3 unset (#1467)
* initial mvp

* First functioning pass

* Add token balance shim

* Add working web3 implementation

* Fix tests

* Fix tsc errors

* Implement token batch splitting

* Undo logger change

* Fix linting errors

* Revert makeconfig change

* Add typing to token proxy + use string interpolation

* Remove useless parameter

* Remove logging

* Use type coercion to fix proxied methods

* Update shepherd

* Update to typescript 2.8.1

* Fix merged typings

* Address PR comments

* replace myc-shepherd with mycrypto-shepherd

* fix web3 nodes not unsetting

* Fix tscheck

* Strip web3 network prefix from node dropdown
2018-04-06 17:23:25 -05:00
HenryNguyen5 08a7cb1f2b Check for buffer type and decode to hex instead of utf8 (#1469)
* Check for buffer type and decode to hex instead of utf8

* Fix typo
2018-04-06 16:34:43 -05:00
Maciej Hirsz 307e941684 Parity Signer (#1349)
* Parity Signer Squashed

* ParitySigner to be a container

* Parity Signer: style and polish

* target blank on appstore links

* PR fixes

* Move QrSignerModal to SendTransaction container

* Rework redux, use signing saga

* Cleanup

* Use new logo, change helpLink

* Rework finalize actions and types a bit

* Webcam info + wiki link on unlock screen

* Make the Parity QR Signer its own component, that has error messaging and ismore robust about adding / removing cameras.

* Unneded l10n
2018-04-06 16:32:25 -05:00
Daniel Ternyak c65296d953
Add Etherchain links (#1462)
* add etherchain to transaction succeeded notification

* additional etherchain links

* shorten verify copy

* fix config mis-match
2018-04-06 16:08:28 -05:00
HenryNguyen5 04eaa08d6c Shepherd MVP Integration (#1413)
* initial mvp

* First functioning pass

* Add token balance shim

* Add working web3 implementation

* Fix tests

* Fix tsc errors

* Implement token batch splitting

* Undo logger change

* Fix linting errors

* Revert makeconfig change

* Add typing to token proxy + use string interpolation

* Remove useless parameter

* Remove logging

* Use type coercion to fix proxied methods

* Update shepherd

* Update to typescript 2.8.1

* Fix merged typings

* Address PR comments

* replace myc-shepherd with mycrypto-shepherd
2018-04-06 15:52:48 -05:00
William O'Beirne ad838f6eb2 Reduce Shapeshift Requests (#1463)
* Use market info instead of fetching each and every pair.

* Make loaders the size of the content.
2018-04-06 13:59:07 -05:00
William O'Beirne 8fb0e03d8d Add New Networks (#1259)
* Add new networks.

* Handle typing issues with DPath being possibly undefined.

* Remove copied nodes from tests.

* Review comments, refactor makeExplorer.

* Remove ETSC

* Re-add import

* Update snapshot
2018-04-06 09:02:02 -05:00
HenryNguyen5 1047975b1b Update to typescript 2.8.1 (#1456) 2018-04-05 21:17:58 -05:00
William O'Beirne acd1610083 Fix unlock header toggle logic (#1454) 2018-04-05 16:23:15 -05:00
William O'Beirne c3d1e4e3af Token Balance retry button & equivalent values fix (#1453)
* Add refresh button to token balances error. Refactor actions a bit.

* Fix assertion error from bn on rates
2018-04-05 16:19:14 -05:00
Daniel Ternyak c9676cac62
Deterministic Webpack 4 (#1445)
* (Reapplied) Upgrade to Webpack 4

* remove yarn.lock from gitignore

* add yarn.lock

* custom hashing for css and client bundle filenames

* add hash-files dep

* update deps

* add .wwp-cache to .gitignore

* use latest git hash as filename hash

* remove unused hash-files dep

* update favicon plugin

* remove yarn.lock
2018-04-05 15:53:36 -05:00
Daniel Ternyak 2c226ff02c
Fix gastracker url path (#1429) 2018-04-05 10:58:32 -05:00
Daniel Ternyak a4872e6558
Add checksumming to payment request & confirmation modal (#1428)
* Add checksum to payment request to address

* add checksum to confirmation modal
2018-04-02 14:38:54 -05:00
Taylor Monahan d21e4349ef update trezor referral URL (#1411) 2018-03-28 23:25:16 -05:00
HenryNguyen5 07d9325702 Remove MyEtherWallet Ref (#1412) 2018-03-28 23:24:52 -05:00
Daniel Ternyak 7930ab6611
Revert "Upgrade to Webpack 4 (#1386)" (#1406)
This reverts commit d19c4f44e6.
2018-03-28 14:34:29 -05:00
James Prado b7e2bbef96 Fix textarea styles (#1398) 2018-03-27 16:06:55 -05:00
Daniel Ternyak 844a3b9662
Update default contracts (#1394)
* update existing contracts

* remove duplicate contract
2018-03-27 12:30:41 -05:00
William O'Beirne d19c4f44e6 Upgrade to Webpack 4 (#1386)
* Initial attempt at webpack 4 upgrade, still not working.

* Remove unused modules, update some more packages.

* Wrangle types due to webpack weirdness.

* Undefined function

* Package updates.

* Replace extract text plugin. Re-add unusable code, but comment it out.

* Fix uglification

* Remove custom uglify, disable concatenateModules

* Upgrade and reenable favicons. Get rid of CSS warning.

* Fix up tscheck

* Add webpack modes to freezer, electron.

* Uodate webpack dev middleware
2018-03-26 23:04:08 -05:00
Daniel Ternyak bb0014dbbb
Fix typos in translations (#1384) 2018-03-26 12:48:41 -05:00
Daniel Ternyak b2c2d12a14
Fix translation issue (#1378) 2018-03-23 11:58:33 -05:00
James Prado 910093b761 Update code blocks & generate / send tx buttons (#1333)
* Update account view routing

* update styles

* Fix WalletDecrypt types

* Replace disabled textareas with code blocks

* Fix broken animation

* Update snapshot

* Make contract interact dropdowns clearable & searchable

* Update node-sass to v4.8.3

* Fix swap inputs incorrectly incorrectly displaying invalid

* Refactor send tx & generate tx button

* Update broadcast tx & add more transaction details in tx confirmation

* Add signing prop to send button

* Update lite send

* Update codeblock styles

* Update snapshot

* Revert renaming Dropdown
2018-03-23 11:41:47 -05:00
William O'Beirne 02711b390f Shapeshift Token Box UI (#1371)
* Convert to box style, fix TRST

* Disabled option, better responsive behavior.

* Removed unnecessary logic of splitting out origin and destination option arrays.
2018-03-23 11:25:44 -05:00
William O'Beirne bdaf40a0ce Send Form Style Adjustments (#1368)
* Remove title from account, tighten buttons and subtabs.

* Send everything button in input.

* Request tx to full width, adjust transaction fee spacing.

* Fix token balances button spacing.

* Fix address identicon flying offscreen. Tighten up identicon, show border even when theres no identicon.

* Add isSelfAddress boolean to AddressField, use it on WalletInfo tab.

* Use short amount again.

* Unused
2018-03-22 13:30:51 -05:00
Michael - Blurpesec 68b1447b31 Update keystore visual indicator (#1355)
* update keystore visual indicator

* Update Keystore.tsx

* visual indication using filename

* updated for visual indication using filename
2018-03-22 13:00:55 -05:00
James Prado 816ce3180f Translation Updates (#1323)
* Update account view routing

* Temporarily add unicode character to translated strings for testing

* Temporarily select add unicode to all untranslated strings

* Format changes

* Add all english translations for /account & /generate

* Add the rest of the english translations

* Add a few more missing translations

* Update en translations

* Get selectedLanguage from localstorage instead of redux sttate

* Update snapshots

* Add missing translation keys & Update translate functs & change variable prefix

* translate all markdown strings & remove old translation strings

* Update snapshot

* Add a few more translation strs

* Move raw strings being translated into json

* All translation keys are now Uppercase

* Fix up the last few translations

* Update snapshot

* Uppercase de translation strings

* Bring back shapeshift logo on swap

* Fix contracts tab translations

* Fix a few more translations

* Fix translations

* remove debugging stuff

* Update snapshots

* Use react.fragment as markdown root renderer

* Seperate markdown translations into their own function

* Clean up translation functions

* Clean up translation functions

* Update snapshot

* Fix some broken translation strings

* Add prettier ignore file
2018-03-21 22:50:25 -05:00
William O'Beirne 7521337bda Custom DPaths, Improvements, and Fix SingularDTV (#1351)
* Add dpath to select option display

* Re-enable custom path

* Make it a submittable form to behave better with HW wallets

* Adjust styles

* Widen regex to allow for SingularDTV dpath
2018-03-21 15:19:15 -05:00
Michael - Blurpesec 8eeefe7e25 Fix offline broadcast link (#1350)
* Fixed offline broadcast link

* fix for link from root
2018-03-21 13:49:33 -05:00
William O'Beirne 5d41a7f774 Remove all LESS code (#1348)
* Checking in removal process.

* Final removal of all SCSS

* Remove unnecessary test

* tscheck
2018-03-20 15:08:57 -05:00
Daniel Ternyak 8c0dd3f455
Use ethereum-blockies-base64 (#1326)
* use makeBlockie from ethereum-blockies-base64

* adjust type ethereum-blockies-base64 type declaration

* add ethereum-blockies-base64

* update ethereum-blockies-base64; remove redundent declaration file
2018-03-17 16:31:28 -05:00
William O'Beirne db6b737cad Show Recent Txs on Check Tx Page (#1147)
* Save transactions to local storage.

* Checksum more things + reset hash on network change.

* Fix IHexTransaction type, grab from from tx object directly.

* Refactor storage of recent transactions to use redux storage and loading.

* Refactor types to a transactions types file.

* Initial crack at recent transactions tab on account

* Punctuation.

* Transaction Status responsive behavior.

* Refactor transaction helper function out to remove circular dependency.

* Fix typings

* Collapse subtabs to select list when too small.

* s/wallet/address

* Type select onChange

* Get fields from current state if web3 tx
2018-03-14 15:10:14 -05:00
William O'Beirne 4b8adc81ce Allow 0 ETH Transactions (#1307)
* Allow zero number

* Fail when request payment is zero value, or if you try to send token with zero value.

* Parseint instead of addition casting to catch empty string.
2018-03-14 14:51:37 -05:00
anticlimactic 16469e1a62 Show Disabled Send Button on /pushtx (#1302)
* Fixes #1291. Implemented a new boolean that allows you to toggle whether you are using a disabled send tx button that persists or a send tx button that remains invisible until a valid transaction is present.

* Fixed object shorthand precommit error.

* Cleanup boolean logic, remove redundant code, make comparision elements more obvious
2018-03-12 00:06:09 -05:00
Daniel Ternyak 8649655019
Add HackerOne to Announcement (#1218) 2018-03-11 17:25:24 -05:00
James Prado 4788381641 Update Account SubTab Routing / Token Scanner CSS Updates (#1276)
* Redirect user to subtab after logging in

* Update token balances styles

* Adjust routing for readOnly wallets
2018-03-11 17:19:35 -05:00
James Prado 9cac0298a2 Improve accessibility (a11y) (#1267)
* Manage modal focus

* Add isOpen prop to CustomNodeModal

* Remove outline overrides

* Update outline style for inputs

* Fix modal focus management & Cleanup CustomNodeModal

* Add aria-label on modal close button

* Fix modal scroll to top

* Add aria-live property for notifications

* Add aria-busy to Spinner component

* Fix border styles for generatewallet password inputs

* Update token balances inputs

* Remove multiple h1's & Update styles

* Add alt text to all img elements

* Update swap link from bity to shapeshift

* Update aria-labels and alt text

* Only show keystore password input when required

* Revert "Only show keystore password input when required"

This reverts commit 7ec5de52da0982cd3131f365b142f6915638d831.

* address changes requested
2018-03-08 13:28:43 -06:00
aitrean cf9887f21f Outstanding tasks to Productionize Tx (#1194)
* Verify and complete all branching saga logic tests for transaction stack.

* Write reducer tests for refactored transaction stack.

* Add selector tests. Some files still need to be debugged.

* Add snapshot test for fields, additional seelector testing.

* Remove fields snapshots.

* Remove ABIs from the TestState json

* Use redux state instead of raw json in selector testing.

* Fix merge issues.

* Remove log

* Fix state values.

* Change test value to wei.

* Last touchup.

* Fix buffer shape, change Wei typo, use reasonable wei values.

* Last touch up.
2018-03-08 12:03:45 -06:00
HenryNguyen5 94b3f3403b Fix recommended gas price breaking on subtab switch (#1268) 2018-03-07 17:55:46 -06:00
HenryNguyen5 16e6677c0f Derive available tx metadata (#1257)
* Derive "from" and "unit" parameters from current transaction when possible

* Fix tsc errors

* Address changes
2018-03-07 17:42:16 -06:00
William O'Beirne 3bce82ba86 Fix favicon transparency. (#1289) 2018-03-07 17:37:59 -06:00
HenryNguyen5 c340246ca0 Enable no-implicit-any (#1263)
* Progress commit

* Update more types

* Fix more types

* Fix abi function types

* Fix lib types

* Fix rest of types

* Address wbobeirne changes

* Change origin and destination check
2018-03-07 17:36:05 -06:00
Daniel Ternyak 3278318fa6
Fix Coinbase Widget (#1286)
* Connect Promos; pass current wallet address to Coinbase

* Use ShapeShift as promo if no wallet instance when showing Coinbase

* use appstate for typing
2018-03-07 10:54:14 -06:00
HenryNguyen5 2d057eb0b2 Fix swap timer (#1265) 2018-03-05 22:51:31 -06:00
William O'Beirne a5be81e96d Change swap link icon to ShapeShift logo. Get rid of new banner. (#1264) 2018-03-05 21:22:45 -06:00
Taylor Monahan 7941403782 Copy / messaging tweaks (#1253)
* replace "don't have a wallet" with "account" for more consistency

* Update Copyright info in disclaimer model

* fix prettier issues
2018-03-05 13:51:06 -06:00
William O'Beirne d0379b19a0 Fix Disclaimer Open on ESC (#1245)
* Don’t listen to escape while modal is closed.

* Remove console
2018-03-05 13:00:54 -06:00
William O'Beirne 3a36818412 Add Check TX Button to Transaction Notification (#1217)
* Reinstates v3 behavior on transaction send:

* Alert shows Check TX Status button

* Check TX page uses txHash query param

* LogOutPrompt now carries over search params and hash

* Remove console log

* Update test.
2018-03-05 12:58:53 -06:00
William O'Beirne e3194a649e Fix Blurry Modals (#1246) 2018-03-05 12:52:35 -06:00
Luit Hollander a9aeacb775 Fix Repo Link (#1239) 2018-03-03 13:12:45 -06:00
William O'Beirne 6927aa0b55 Prevent Scrolling From Altering Amount Field (#1234)
* Prevent scrolling to adjust number input.

* Blur instead, less annoying.
2018-03-03 13:11:05 -06:00
HenryNguyen5 4dd0fc9785 Fix contract interact (#1233)
* reduce unintended side effects from empty units

* Fix contract interaction "to" address being empty

* Fix tsc errors
2018-03-02 15:57:17 -06:00
HenryNguyen5 e9d719be52 Remove tx on state change (#1224)
* Clear serialized transaction on any change to transaction state

* Fix tsc errors

* remove console error

* Remove property mutations

* dont reset network unit when unit property isnt being reset
2018-03-02 00:28:50 -06:00
Daniel Ternyak 84319ab9a1
Fix unit value (#1223) 2018-03-01 23:31:27 -06:00
James Prado aabcd3f7a3 Use Network Symbol in Confirmation Modal (#1039)
* Set default unit to 'ETH' instead of 'ether'

* Use 'isEtherUnit()' everywhere

* Set default unit to empty string

* Update isEthUnit to isNetworkUnit

* Fix unit conversion for non-ethereum networks

* Set default network unit properly

* Fix tests

* fix typos

* Update isNetworkUnit selector

* Update isNetworkUnit

* Fix validationhelpers tests

* Add mock state to tests & Move isNetworkUnit to selectors

* Fix validation helper spec

* fix unit swap spec
2018-03-01 19:24:14 -06:00
Daniel Ternyak 162713ac6d
Logo updates (#1216)
* Update image brand color, remove unused images.

* Update brand color.
2018-03-01 13:49:07 -06:00
William O'Beirne 653c363279 Copy address touchups (#1215)
* Checksum address, adjust styles.

* Pull up address
2018-03-01 13:36:30 -06:00
James Prado 9ef1920fe0 Update dropdowns, inputs, and textareas (#1169)
* Align footer to bottom

* Fix request payment offset padding

* Update request payment padding

* Add new Input and Dropdown components

* Fix offset margins in equiv vals

* Update all send tx inputs & dropdowns

* Update generate wallet dropdowns

* Update inputs & dropdowns for contracts tab

* Add inputs & dropdowns for all but swap tab

* amend

* Fix imports

* inputs are invalid when not disabled or readonly

* Fix offset refresh button

* Add togglable password back to wallet generation

* Update swap inputs, textareas, and dropdowns

* Update any outstanding inputs

* Make UnitDropDown searchable

* unitdropdown searchanble if options > 10

* Fix css issues

* Reset before setting currentTo
2018-03-01 11:53:29 -06:00
Danny Skubak 23546a1cf9 Force Node Change on Web3 Unset (#1207)
* add CONFIG_NODE_CHANGE_FORCE action

* implement forceful node change on web3

* update comment

* add test

* make tsc happy

* update test
2018-02-28 22:31:33 -06:00
Rajiv Shah f12d72a57e Fix typo in disclaimer modal (#1118) 2018-02-28 21:04:58 -06:00
William O'Beirne 1eb57a38bc Address component for checksumming + linking to explorer (#1168)
* Add address component that checksums and optionally links to block explorer.

* tscheck

* Add exclusive props, type guard.
2018-02-28 20:54:43 -06:00
William O'Beirne a430fe650c Update copy / links for Beta (#1193)
* AlphaAgreement -> BetaAgreement.

* Banner color.

* Remove language disclaimer.

* Discord link in footer.

* Update font for discord icon.

* Adjust copy.

* Link to github repo in error message.

* Remove always error
2018-02-27 15:35:32 -06:00
James Prado 81d4444dff Add regex for BIP44 Strings (#1035)
* Add regex check for BIP44 paths

* Add tests for BIP44 regex

* Remove '/config' from excluded paths in jest

* update path

* Update Validator tests & remove old dPathRegex tests

* Test hardcoded dpaths
2018-02-26 19:20:41 -06:00
Amidou Kante 4576b8f325 Copy to clipboard (#1146)
* added code for copy to clipbaord svg

* removed svg link

* can copy clipboard to mouse

* can copy clipboard to mouse

* can copy clipboard to mouse

* change copy svg to copy icon

* updated css styling

* locked in version number

* removed css state color

* scss updates coloring instead of additonal state

* change colors to scss variables

* changed p tag to span tag

* final style updates

* function to revert copied text
2018-02-25 14:02:03 -06:00
William O'Beirne 1b6143e457 Don't refresh on network change (#1144)
* Configure sagas and components to react to network switch.

* tscheck

* Update tests with new behavior.

* tscheck

* Log out of wallet on network change.

* Fix up test.
2018-02-24 19:32:34 -06:00
William O'Beirne 33f5ede22a Minor swap rates refactor (#1162)
* Refactor swaps:
* Remove references to bity fallback, it aint happening
* Consolidate sagas to single orchestrator function like other sagas
* Grab rates once, dont continuously poll

* tscheck

* Re-instate the auto-fetching behavior. This time, only notify the first time.

* Make CurrentRates responsible for redux actions. Fix up some typings.

* Remove commented code.

* Update snapshot.
2018-02-24 19:29:34 -06:00
William O'Beirne b48617e95e Simplify custom node URL (#1141)
* Simplify custom nodes to just be a URL, not a url + port.

* Allow modals to specify max width (#1142)
2018-02-24 12:02:07 -06:00
William O'Beirne c76d0b3fa5 Handle Gas / Estimates on a Per Network Basis (#1160)
* Give each network the ability to specify default estimates, and whether or not they should fetch estimates from API. Convert gas slider to always use estimates.

* Fix gas cache invalidation, invalid too high / low logic.

* Fix up tests.

* tscheck
2018-02-24 12:00:00 -06:00
James Prado 48536f79be Align footer to bottom (#1150) 2018-02-24 11:57:54 -06:00
Danny Skubak 94061e0c3e Add Blockscale Beta Node (#1134) 2018-02-24 11:56:18 -06:00
Daniel Ternyak a50dc2ebb0
Adjust Wallet Interface (#1154)
* Adjust Base Wallet Interface to not return promises' for getAdderssString; adjust callers to not await

* remove async for saveWalletConfig
2018-02-21 12:23:04 -06:00
William O'Beirne 9727051290 Source version number from package.json (#1145) 2018-02-19 21:46:07 -06:00
Daniel Ternyak 891014894e
Tag Beta 0.3.2 (#1132)
* Patch Web3 boolean logic

* Tag Beta 0.3.2
2018-02-17 18:49:19 -06:00
Daniel Ternyak 39fba57831
Patch Web3 boolean logic (#1131) 2018-02-17 18:48:31 -06:00
Daniel Ternyak e630b1f9ba
Tag Beta 0.3.1 (#1129) 2018-02-17 18:27:30 -06:00
Pete Jihoon Kim 2f23aa96de Fix compatibility with unknown Web 3 providers (#1128)
* Fix compatibility with unknown Web3 providers

* Detect Cipher Browser

* Fix incorrect translation label
2018-02-17 18:25:01 -06:00