Commit Graph

720 Commits

Author SHA1 Message Date
Daniel Ternyak fe86f2f79f
chore(package): update tslint to version 5.9.1 (#795)
Closes #792
2018-01-11 01:35:22 -06:00
Eddie Wang f4b8364abc Stop Timer when Swap Order is Received (#791) 2018-01-11 01:08:36 -06:00
Eddie Wang db4dc516e2 Clear transaction data on transaction resign (#788) 2018-01-11 01:07:38 -06:00
William O'Beirne 418b186642 Resolve custom token conflicts (#767)
* Remove custom token if it conflicts with symbol or address.

* Refactor deduping to utils function. Add unit tests for said function.

* Fix tscheck
2018-01-11 00:50:31 -06:00
William O'Beirne 7d2c3e1990 Unit tests for token & contract JSON (#768) 2018-01-11 00:47:48 -06:00
aitrean af2e0b69e1 Web Worker Decrypt (#680)
1. Attempt an empty password every time a keystore is uploaded.
2. Delegate scrypt decryption (ie ethereumjs-wallet.fromV3) to its own web worker and interface with it through an async typescript function that gets handled in the wallet saga. This keeps the UI unblocked when scrypt takes a long time to decrypt.
3. Add logic to show a spinner x number of milliseconds after file upload so the user will understand when a wallet is being decrypted.
2018-01-11 00:44:13 -06:00
greenkeeper[bot] a84a6e98fc chore(package): update jest to version 22.0.5 (#783) 2018-01-10 15:52:17 -06:00
greenkeeper[bot] 1f2d5b853d chore(package): update nodemon to version 1.14.10 (#779) 2018-01-10 14:59:38 -06:00
William O'Beirne fb0cce1d68 Rename Aux to AuxComponent for Windows (#771)
* Rename reseved filename 'Aux' to 'AuxComponent'

* fix prettier
2018-01-09 23:29:24 -06:00
Jack Clancy 26619e28cc Enforce HTTPS / Prevent Reverse Tabnabbing (#773)
* working version of test custom rule config

* setting no imports to false so tests will pass

* adding anchor blank noopener rule, rule currently off to allow tests to pass

* removing copied code from tslint-microsoft-contrib

* adding tslint-microsoft-contrib to dev deps

* extending tslint for external http rule

* locking tslint-microsoft-contrib version and turning on target blank noopener rule

* final fixes for pull #663

* add noopener noreferrer as needed

* fixing false positives for a tags without href

* really fix linting errors

* fix imports

* remove accidently(?) added LedgerNano duplicate file
2018-01-09 23:17:52 -06:00
William O'Beirne 6e2b74c79a Use network unit everywhere, fix network redux state (#765)
* Use network unit in confirmation modal. Make sure network is set at init.

* Fix token display

* Ensure that when the node changes, the network also changes. Show network unit in unit dropdown.

* Type saga, fix tests.
2018-01-09 14:13:14 -06:00
greenkeeper[bot] c54ba441fa fix(package): update rc-slider to version 8.6.0 (#761) 2018-01-09 08:27:47 -06:00
Daniel Ternyak d5ece361aa
Revert "Implement `offline-plugin` for Service Workers / App Cache (#701)" (#760)
This reverts commit ef506c54d6.
2018-01-08 23:04:20 -06:00
Daniel Ternyak 401a57dc0d
Tag Release 0.0.8 (#758) 2018-01-08 22:13:09 -06:00
Daniel Ternyak 4ad19e2fec
Clear `dist` between builds (#757) 2018-01-08 22:11:05 -06:00
greenkeeper[bot] 473defa7f1 chore(package): update url-search-params-polyfill to version 2.0.2 (#756) 2018-01-08 21:51:06 -06:00
greenkeeper[bot] 1faaf9deb4 fix(package): update hard-source-webpack-plugin to version 0.5.15 (#752) 2018-01-08 21:10:28 -06:00
Eddie Wang aef80e9bd4 Add Default Tokens (#753) 2018-01-08 20:59:32 -06:00
William O'Beirne 6920296f37 Remove 'evaluate' babel minify rule to prevent ios / safari errors. (#755) 2018-01-08 20:47:42 -06:00
greenkeeper[bot] f0ec0f3c0b chore(package): update nodemon to version 1.14.9 (#748) 2018-01-08 10:38:36 -06:00
Daniel Ternyak ff6747b1b1
Tag Release 0.0.7 (#746) 2018-01-08 01:19:27 -06:00
William O'Beirne 6ec04f6731 Fix ENS Address Field (#724)
* Fixed borked tag.

* Fix saga tests.

* fix tscheck error
2018-01-08 01:12:16 -06:00
William O'Beirne 62381427e4 Slider prop error fix (#743)
* Cast to float.

* Force gas price and limit inputs to be numbers.
2018-01-07 23:30:56 -06:00
William O'Beirne ce3b513354 Fix Safari / iOS illegal character syntax error (#742) 2018-01-07 20:00:22 -06:00
Daniel Ternyak e1c246728e
Configure Freezer (#741) 2018-01-07 19:32:04 -06:00
Daniel Ternyak 92d8ecf353
Web3 Improvements (#740)
* increase timeout for web3 auto-login; don't attempt login when web3 is unavailable

* only auto-login when metamask available

* combine multiple imports
2018-01-07 19:21:11 -06:00
Daniel Ternyak 897fc3f9b3
Pin package versions (#739) 2018-01-07 11:14:02 -06:00
greenkeeper[bot] 2836d4dedc fix(package): update bip39 to version 2.5.0 (#737) 2018-01-07 10:56:25 -06:00
greenkeeper[bot] fef1243e3c chore(package): update nodemon to version 1.14.8 (#736) 2018-01-07 10:48:48 -06:00
William O'Beirne edda9f71ea Improved Gas UX (Pt. 1 - Gas Slider on Send) (#728)
* Initial crack at simple only gas slider component.

* Work on advanced component. Refactor redux and components to specify gas limit vs price.

* Convert fee summary to a render cbesque thing.

* Rework responsive columns.

* Remove force offline button.

* Tweak styles.

* Fix tscheck issues, remove unneeded prop.

* Fix references to GasField

* Gas slider in lite send.

* Make gas slider network-aware for symbol and price calculation.
2018-01-07 10:43:06 -06:00
greenkeeper[bot] 98afc22537 chore(package): update webpack-dev-middleware to version 2.0.4 (#738) 2018-01-07 10:21:14 -06:00
greenkeeper[bot] c24ff2fc34 chore(package): update ts-jest to version 22.0.1 (#735) 2018-01-05 23:29:28 -06:00
greenkeeper[bot] f161658f56 fix(package): update ethereumjs-util to version 5.1.3 (#734) 2018-01-05 10:23:07 -06:00
greenkeeper[bot] 90762ef680 chore(package): update css-loader to version 0.28.8 (#732) 2018-01-05 10:22:08 -06:00
greenkeeper[bot] cc104e7d66 chore(package): update @types/lodash to version 4.14.92 (#730) 2018-01-04 23:55:33 -06:00
greenkeeper[bot] 8bccca7d2f chore(package): update @types/jest to version 22.0.1 (#729) 2018-01-04 23:54:56 -06:00
William O'Beirne 498aeec92c Fix Logout Prompt (#725) 2018-01-04 10:31:22 -06:00
William O'Beirne 18695d0936 Fix Trezor signing + stronger typing (#723) 2018-01-04 10:07:10 -06:00
Daniel Ternyak 42b16155c5
chore(package): update @types/react to version 16.0.34 (#722)
Closes #719
2018-01-03 17:53:53 -06:00
William O'Beirne bcd85ee3a2 Fix Custom Token Delete (#717) 2018-01-02 21:48:17 -06:00
Danny Skubak b939e8ceda Request Payment SubTab - EIP 681 (#671)
* progress

* Normalize bity api response

* Filter api response

* Track swap information in component state

* Update dropdown onchange

* remove dead code

* Update Min Max Validation

* Update minmax err msg && fix onChangeOriginKind

* Add origin & destination to redux state

* Update types & Update tests

* Update types

* Update swap.spec.ts test

* Remove commented out code

* Remove hardcoded coin array

* Create types.ts for swap reducer

* Update swapinput type

* Update bityRates in localStorage & Replace all instances of ...Kind / ...Amount props

* Add shapeshift banner

* initial work for sagas

* Update Types

* Update swap reducer initial state

* Update Types & Store empty obj for bityRates / options

* Update more types

* added shapeshift file and rates comments

* action reducers and prop mapping to components

* add typings and swap icon

* more actions reducers and sagas

* debugging shapeshift service

* add Headers

* Fix content type

* add order reset saga and ui fixes

* remove console log and swap b/w Bity and Shapeshift

* working state for Shapeshift and Bity - tested with mainnet

* add icon component

* UI improvements and fix select bug

* fix timer bug

* add bity fallback options and toFixed floats

* tslint errors

* add arrow to dropdown and add support footer

* Add service provider

* fix minor $ bug and stop timer on order complete

* better load UX and dropdown UX

* fixed single test

* currRate prop bugs and reduce LS bloat

* takeEvery on timer saga and don't clear state.options to restartSwap reducer

* export tx sagas and fix minor type

* Add ShapeShift Rates functionality when selecting a ShapeShift pair.

* type fixes

* BugFix: Don't change displayed ShapeShift Rate Inputs on every dropdown change
Also contains some caching / performance improvements

* BugFix: Don't remote rate inputs when falsy amount

* fix type error

* Progress commit

* Implement saga logic

* Make address field factory component

* Shorten debounce time

* Make new actions / sagas  for handling single token lookup

* Implement working version of litesend

* make unit dropdown searchable, add props for all tokens, custom validation

* add string generators for EIP 681 token & ether transactions

* add new selectors

* add request payment tab

* Change saga into selector

* Add failing spec

* fix broken test

* add debounce to error message

* fix tests

* update snapshots

* test coverage

* move setState disabled property from debounce so we instantly can go to next step on valid amounts

* reset amount value (useful for switching between tabs)

* much deeper test coverage, fix debounce ux, and fix bity flashing at swap page load

* fix minor failing test

* seperate shapeshift erc20 token whitelist

* fix saveState store bug

* break orderTimeRemaining saga up and rewrite tests

* fix tslint error

* add isReadOnly prop to address field

* use AddressField component, add additional validation

* make prop optional

* correct validation

* allow for request tab to be used with view only wallet

* account for undefined activeTab

* add types
2018-01-02 21:18:10 -06:00
greenkeeper[bot] edde125798 chore(package): update @types/react to version 16.0.32 (#714) 2018-01-02 21:04:28 -06:00
William O'Beirne b4f2934878 Show warning when no tokens are found after scan (#711)
* Show warning when no tokens are found.

* Rework no tokens message so users can still add customs or scan for new ones.
2018-01-02 21:04:12 -06:00
Eddie Wang 88532cdc3c Shapeshift Integration (#564)
* progress

* Normalize bity api response

* Filter api response

* Track swap information in component state

* Update dropdown onchange

* remove dead code

* Update Min Max Validation

* Update minmax err msg && fix onChangeOriginKind

* Add origin & destination to redux state

* Update types & Update tests

* Update types

* Update swap.spec.ts test

* Remove commented out code

* Remove hardcoded coin array

* Create types.ts for swap reducer

* Update swapinput type

* Update bityRates in localStorage & Replace all instances of ...Kind / ...Amount props

* Add shapeshift banner

* initial work for sagas

* Update Types

* Update swap reducer initial state

* Update Types & Store empty obj for bityRates / options

* Update more types

* added shapeshift file and rates comments

* action reducers and prop mapping to components

* add typings and swap icon

* more actions reducers and sagas

* debugging shapeshift service

* add Headers

* Fix content type

* add order reset saga and ui fixes

* remove console log and swap b/w Bity and Shapeshift

* working state for Shapeshift and Bity - tested with mainnet

* add icon component

* UI improvements and fix select bug

* fix timer bug

* add bity fallback options and toFixed floats

* tslint errors

* add arrow to dropdown and add support footer

* Add service provider

* fix minor $ bug and stop timer on order complete

* better load UX and dropdown UX

* fixed single test

* currRate prop bugs and reduce LS bloat

* takeEvery on timer saga and don't clear state.options to restartSwap reducer

* export tx sagas and fix minor type

* Add ShapeShift Rates functionality when selecting a ShapeShift pair.

* type fixes

* BugFix: Don't change displayed ShapeShift Rate Inputs on every dropdown change
Also contains some caching / performance improvements

* BugFix: Don't remote rate inputs when falsy amount

* fix type error

* Progress commit

* Implement saga logic

* Make address field factory component

* Shorten debounce time

* Make new actions / sagas  for handling single token lookup

* Implement working version of litesend

* Change saga into selector

* Add failing spec

* fix broken test

* add debounce to error message

* fix tests

* update snapshots

* test coverage

* move setState disabled property from debounce so we instantly can go to next step on valid amounts

* much deeper test coverage, fix debounce ux, and fix bity flashing at swap page load

* fix minor failing test

* seperate shapeshift erc20 token whitelist

* fix saveState store bug

* break orderTimeRemaining saga up and rewrite tests

* add new swap icon

* remove unused allowReadOnly prop

* change offlineaware to walletdecrypt for litesend

* fix LiteSend changewallet bug

* fix error message UX

* fix button styling to match develop

* fix liteSend test

* Fix LiteSend UX on unavl tokens, dropdown null value, and don't show decrypt in litesend after successful wallet decrypt.

* add litesend network check
2018-01-02 12:04:50 -06:00
William O'Beirne 2f98555b00 Fix deterministic modal token values (#708)
* Fix borked deterministic wallet saga for token values.

* Fix test.
2018-01-02 11:49:18 -06:00
William O'Beirne d1b8f4b65a Ledger warning (#709)
* Ledger HTTPS warning.

* Missed colon.
2018-01-02 00:45:21 -06:00
Eddie Wang 3733adfd84 Add "404" Page (#705)
* add error page

* address PR comments
2018-01-01 18:37:41 -06:00
William O'Beirne 9c913de8e0 Disable mangle (temporarily?) to fix prod build (#706) 2018-01-01 18:12:27 -06:00
James Prado 23e99e56e1 Ensure CI fails on non-prettier compliant PRs (#693) 2018-01-01 17:51:18 -06:00
William O'Beirne ef506c54d6 Implement `offline-plugin` for Service Workers / App Cache (#701) 2018-01-01 17:15:13 -06:00