Commit Graph

408 Commits

Author SHA1 Message Date
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
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
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
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
Daniel Ternyak e1c246728e
Configure Freezer (#741) 2018-01-07 19:32:04 -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
Daniel Ternyak 42b16155c5
chore(package): update @types/react to version 16.0.34 (#722)
Closes #719
2018-01-03 17:53:53 -06:00
greenkeeper[bot] edde125798 chore(package): update @types/react to version 16.0.32 (#714) 2018-01-02 21:04:28 -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
William O'Beirne 371e6e327c Wallet Decrypt Redesign (#677)
* Reorganize files to better match other components.

* Initial UI for wallet buttons.

* Fix leftover rebase conflict.

* Wallet selection, styling, mobile handling.

* Initial work on animations.

* Adjusted animations.

* Adjust wallet unlock forms to be more uniform. Fix view address saying 'unlock'

* Adjust tooltips.

* Fix embedded decrypt components.

* Cover whole sign msg form with decrypt.

* Give deploy contract a better unlock treatment like sign msg.

* Reset decrypt component on hide / show

* Unused var

* Fix tooltip hover.

* Fix hover lift.

* Make spacing better on mobile.

* Back button mobile handling.

* Redesign mobile button icons. Prevent clicking through when clicking on icons.

* TSCheck fixes.

* Attempt to unlock MetaMask onClick, and provide existing flow with notification when unlock fails.

* Get rid of outline.

* Remove decrypt min height. Make view only textarea.

* Add change wallet buttons to deploy contract and sign msg.

* Standardize
2018-01-01 13:46:28 -06:00
Daniel Ternyak 4fdc821695
chore(package): update @types/react to version 16.0.31 (#607)
Closes #574
2018-01-01 13:08:12 -06:00
greenkeeper[bot] 6814d58378 chore(package): update nodemon to version 1.14.7 (#697) 2017-12-31 19:17:04 -06:00
HenryNguyen5 616928c085 Webpack Upgrade (#665)
* Update TODO comments & Remove old TODO comments

* Fix undefined bityRate pair

* Fix any props in TODO

* Add HashRouter

* Update publicPath

* Revert "Update publicPath"

This reverts commit 1ab9068df4d570cf50bc4f2fcd97bd775e9aa768.

* Use HashRouter only if site is downloaded

* Update conditions for router

* Update asset paths & Change publicPath in production

* Remove hoist-non-react-statistics

* Revert "Remove hoist-non-react-statistics"

This reverts commit abc017a3f3ca1a00bebdd9201f0d18770581d8c5.

* Add hoist-non-react-statics as dev depencency

* Initial tests

* Lock hoist-non-react-statics version

* Add webpack-include-assets & favicon-webpack plugins

* Add env var BUILD_DOWNLOADABLE

* Remove dll from prod build

* Speed up rebuild times

* Change var to const

* lodash tree-shacking finagling

* Make app aware of its serving location

* Fix failing test

* Remove downloadable plugin

* Merge hash-router and get build working

* Add missing package.

* Make app aware of its serving location

* Revert "Make app aware of its serving location"

This reverts commit 8dae3b399e0392272cde25d45443391f6fb6594e.

* Revert "Remove downloadable plugin"

* Move AutoDLLPlugin to be in dev only

* Remove require HtmlWebpackIncludeAssetsPlugin

* Remove extra file added

* Bring config up to date with webpack 2 rules, add multi threading and proper cache busting

* Fix favicons package from freezing build process

* Make exclude rules more simple

* update freezer webpack config

* Move webpack multithreading to full source map dev builds only

* update freezer webpack config (#687)

* Add HtmlWebpackIncludeAssetsPlugin
2017-12-30 14:29:04 -06:00
Daniel Ternyak 170dc64284
fix(package): update qrcode to version 1.2.0 (#689)
Closes #672
2017-12-30 10:41:07 -06:00
James Prado 78e3bcd7c1 Add HashRouter for downloadable version (#651)
* Update TODO comments & Remove old TODO comments

* Fix undefined bityRate pair

* Add HashRouter

* Update publicPath

* Use HashRouter only if site is downloaded

* Update conditions for router

* Update asset paths & Change publicPath in production

* Remove hoist-non-react-statistics

* Add hoist-non-react-statics as dev depencency

* Lock hoist-non-react-statics version

* Add webpack-include-assets & favicon-webpack plugins

* Add env var BUILD_DOWNLOADABLE

* Make app aware of its serving location

* Remove downloadable plugin
2017-12-30 10:22:28 -06:00
Daniel Ternyak 80225b7680
chore(package): update nodemon to version 1.14.6 (#688)
Closes #685
2017-12-30 09:26:08 -06:00
Daniel Ternyak ca234b04b1
chore(package): update tslint-react to version 3.3.3 (#679)
Closes #674
2017-12-29 23:10:42 -06:00
greenkeeper[bot] ff9e4d7706 chore(package): update @types/jest to version 22.0.0 (#682) 2017-12-28 19:07:09 -06:00
greenkeeper[bot] 0a1f2da1a6 chore(package): update enzyme to version 3.3.0 (#681) 2017-12-28 17:52:39 -06:00
greenkeeper[bot] a9af8b6caf chore(package): update @types/jest to version 21.1.10 (#676) 2017-12-28 00:01:47 -06:00
HenryNguyen5 a660ba94d8 Cleanup test output, add separate coverage test command (#669) 2017-12-26 10:06:31 -06:00
greenkeeper[bot] f6e79e09df chore(package): update @types/react-router-redux to version 5.0.11 (#660) 2017-12-24 11:14:16 -06:00
Daniel Ternyak 893567e48f
chore(package): update nodemon to version 1.14.3 (#662)
Closes #655
2017-12-23 15:36:30 -06:00
greenkeeper[bot] c353673325 chore(package): update jest to version 22.0.4 (#653) 2017-12-23 15:23:07 -06:00
greenkeeper[bot] 3ba964e375 chore(package): update copy-webpack-plugin to version 4.3.1 (#654) 2017-12-23 15:22:56 -06:00
greenkeeper[bot] bdf234d1eb chore(package): update nodemon to version 1.14.2 (#655) 2017-12-23 15:22:10 -06:00
greenkeeper[bot] d2723f59ac chore(package): update webpack-dev-middleware to version 2.0.3 (#656) 2017-12-22 19:47:59 -06:00
greenkeeper[bot] 827ca95b94 chore(package): update nodemon to version 1.14.1 (#648) 2017-12-20 19:13:52 -06:00
greenkeeper[bot] fd11eeea16 chore(package): update nodemon to version 1.14.0 (#643) 2017-12-20 14:18:13 -06:00
greenkeeper[bot] efb2760229 chore(package): update @types/jest to version 21.1.9 (#644) 2017-12-20 13:40:55 -06:00
HenryNguyen5 f39787152e Fix Miscellaneous Types (#635)
* Add repo wide prettier command to prepush

* Make config file explict, remove formatAll to prepush

* Fix react router typings

* Add more typings

* Fix event typings,  fix transition children
2017-12-19 16:46:34 -06:00
Daniel Ternyak 766f75e4f7
chore(package): update jest to version 22.0.3 (#639)
Closes #638
2017-12-19 11:29:37 -06:00
greenkeeper[bot] 6a9983bdf2 fix(package): update moment to version 2.20.1 (#625) 2017-12-18 23:14:39 -06:00
Daniel Ternyak 820f545b83
Tag Release 0.0.6 (#622) 2017-12-18 20:09:25 -06:00
greenkeeper[bot] fe9533905d chore(package): update ts-jest to version 22.0.0 (#621) 2017-12-18 18:21:55 -06:00
greenkeeper[bot] c19b60c819 chore(package): update jest to version 22.0.1 (#617) 2017-12-18 17:44:06 -06:00
HenryNguyen5 da93fb1684 Prettier Reformat (#619)
* Add repo wide prettier command to prepush

* Make config file explict, remove formatAll to prepush
2017-12-18 17:29:26 -06:00
greenkeeper[bot] 882d7ca164 chore(package): update enzyme-adapter-react-16 to version 1.1.1 (#618) 2017-12-18 17:07:18 -06:00
HenryNguyen5 08d4ccbdae Productionize Transaction Stack (#456)
* export conditional input and hoc

* Move typings and fields out of send transaction

* Move fields into their own component for decoupled handling, use conditional inputs to simplify disabled components

* Handle hex and non hex strings automatically in BN conversion

* Fix handling of strings and numbers for BN

* add web3 fixes & comments

* Display short balances on deterministic modals

* add more tests, fix rounding

* Add spacer to balance sidebar network name

* Fix tsc error

* Add offline render CB

* Make more render callbacks

* Transform NonceField into its self contained component

* Remove styling from nonce field

* Better network handling in nonce cb

* Move network nonce initialization to componentDidMount

* Remove unessesary conditional input

* Make nonce component return a BN

* Simplify Query render cb

* Add gas query and token query render cbs

* Re-write address field component, strip out ENS name functionality for now

* Add address and data as unit types

* Cleanup Address Field component

* Export gas query

* Re-write gas field component

* Cleanup gas estimation check

* Re-write Data field

* Transaction field skeleton

* Export transaction field actions

* Rename fields to map to ethtx fields

* Make reducers for fields

* Fix reducer module exports

* Export reducer

* Formatting fix

* Type return of GasQuery

* Add transaction field getter / setter component

* Make transaction fields more flexible

* Formatting fix

* Split transaction fields component into two

* Remove erroneous prop

* Fix field naming to follow ethereum transaction fields

* Merge valid prop into componeent

* Change address field to be redux based

* Convert nonce field to redux based

* Make component for passing in current transaction

* Re-write Gas component to use redux state

* Reduxify data field component

* seperate transaction fields redux state into field data and meta data

* Rename SetTransactionFields to be singular

* Make render callback components for getting/setting meta fields

* Add non-zero option prop for token balance render cb

* re-write unit dropdown component to be redux based

* Make ether the first option

* Fix tsc error on tokenquery

* Handle query string default values in unit drop down

* Add thunks to package

* Add helper function for encoding transfer data

* Handle co-dependencies between fields via thunks, seperate value fields into ether and token based

* Fix wrong typing

* Add token metafield as export

* Start scaffolding out amount field component

* Make render cbs for conditional selection of value and balance

* Make render callbacks nullable

* Progress commit -- get dynaming swapping between tokens and ether working

* Get gas estimation working between ether and tokens

* Remove nonce from breaking gas estimation

* Add better validation for amount field

* Add 500ms debounce to gas saga

* Self contain custom message component

* Add web3 awareness to wallet render cb

* Add render cb for checking if  wallet is unlocked

* Cleanup inline typing

* export available params

* Add render cb to render component when a query string exists

* Add boolean callback param that check that the transaction is filled by user

* Remove uneeded typings from send transaction

* Fix misnomer

* Self contain generate transaction button

* Compartmentalize more send transaction components

* Add query string warning, custom message and generate tx button to fields

* Cleanup send tx component with new components

* export render callbacks

* saga transaction scaffolding

* make gas saga fully declarative

* transaction lib renaming

* Seperate gasprice into its own generator

* Make action creators for tx sign actions

* Clean up signing saga, introduce reducer for signing, make HW wallet libs compatible with new tx format, fix some typing with ethereumjs-tx

* Add TransactionComparison component

* Add pushTx

* Progress commit --  Streamline web3 and local signing / broadcasting flows. Need to still implement reducers for broadcasting and notifications

* Get local transaction broadcasting working

* re-write confirmation modal to be redux based

* Fix spacing and import

* Move confirmation modal to be attached to send button, create send button

* Properly handle broadcasting for conf modal

* Handle gas cost > balance for send everything

* Add signing status as its own component (#454)

* Fix ledger errors not showing on notifs

* Make dedicated actions for swapping from tokens to ether and ether to tokens

* Split actionTypes file

* Cleanup comments

* Cleanup comments

* Fix various tsc errors

* Lay down infrastructure for saving configurations per-wallet.

* Add pending and rejected states properly to token values.

* Add custom token form improvements.

* Fix metamask transaction errors

* Fix send entire balance estimation

* Fix add token form from never being enabled.

* Initial pass at account tab with send and view wallet tabs.

* Fix inactive tab.

* Hide private key, toggling

* Progress commit -- Replacing render callbacks with selectors, put  validation logic in sagas

* Moved the restore keystore functionality to view wallet info, and put it in a modal / util file.

* Fix navigation link active

* Force read only wallets to info tab.

* Remove commented code

* Saga-ify send everything

* Scan for new tokens, track saved tokens, only request tracked tokens on initial load.

* Add custom token to current wallets tracked tokens.

* Rework remove token icon.

* Adjust button margin

* Remove the rest of the needless render callbacks for selectors, sagaify nonce

* Bug fix send transaction

* remove unused redux-thunk

* Move fields to general components

* Clean up saga structure

* Refactor broadcast tx

* Implement better validation logic, get contract deploy working

* PR feedback.

* Convert tokenbalances component to connected redux component.

* Addressed feedback from Henry.

* Progress commit -- Implement Interact logic, needs manual testing

* Get rid of commented code

* move exports after declarations

* add tests, rough draft

* Get contract method calls working

* Bugfix contracts

* Cleanup hex prefixing

* Reset transaction state on wallet change

* Get rid of old send transaction component

* Disable sign transaction button when network request is underway

* Flatten send button tree, make nonce human readable in confirmation modal

* Add ghetto cost breakdown component, fix token field validation

* Create Generic SubTab and use in Send

* MVP of mnemonics with sub-tabs in Create Wallet view.

* Do dynamic revalidation

* move exports after declarations

* add forgotten signing tests

* update token spec

* update currentValue spec

* update validationHelpers spec

* Address TODO - use injected history to push navigation state instead of hardcoding window.location

* Use SubTabs in Contracts

* Fix revertPath prop for AcceptOrRedirectModal

* Use subtabs in SignAndVerifyMessage

* Routing for subtabs

* Fix routes, adjust sizing.

* Remove unused import

* Request nonce in base 10

* Add offline override to unit display

* Make cost breakdown less buggy

* Add non standard transaction warning

* Fix amount validity

* Cleanup datafield validity

* Display notif on gas estimation failure

* Add post-signing verification against fields, clean up gas price

* Fix tsc errors

* Code cleanup

* add exports to functions

* add specs for sendEverything and reset sagas

* delete duplicate files

* make tslint happy

* Merge develop

* Fix develop regressions

* Delegate nonce pulling  to wallet being set

* Clarify non standard transaction

* Make address a buffer to avoid leading 0's bug

* Clarify validation helper comment

* Increase debounce time, add console error

* Better validation for non-standard transactions

* Add verification skipping for broadcasting txs

* Fix state and wallet resetting for contract tabs

* Fix some spec files, remove contract.spec

* Remove broadcasting specs from wallet

* Close DeterministicWalletModal on confirm

* Revert "Close DeterministicWalletModal on confirm"

This reverts commit 16c860e854ca29e9de754164d8be5e24f722cbad.

* Reset hardware wallet state on unlocking. Dont render walletdecrypt content when its hidden.

* Fix client side broadcast checking

* Add more state resetters in error scenarios

* Fix gas estimation

* Add validation for value transactions to contract creation

* Add transaction comparaision differentiation depending on wallet type

* Fix token row display balance showing twice

* Properly handle failed transactions

* Handle bad error messages

* fix broken tests

* fix broken test

* Progress commit -- Implement generic subtab types

* Remove react router v3

* Remove unused routes

* Clean up Tabbing code, add onTabChange handler

* Fix tests

* Add nav fix

* revert opinionated sub-tab implementation

* additional reverts

* Add decimal validation

* Make gas price single source of truth, dont save any transaction state other than gas price

* Get rid of old wallet.spec reducer tests

* Add decimal validation when re-validating gasCost

* remove utilities view

* Remove cost breakdown

* Remove local gas estimation warning

* Create getShownTokenBalances selector; use in UnitDropDown and Equivalent Values

* Convert reducers to switch case

* Clean tsc errors

* Fix failing test

* fix tscheck error

* Add number validation to gas field

* Fix misaligned input dropdown

* Revert "Fix misaligned input dropdown"

This reverts commit a40a4c0e8d52471dea01e6727f741a737b798695.

* Set window timeout long enough for node switch to be persisted to state

* Transaction Refactor Style Fixes (#615)

* Fix unit dropdown alignment by rendering it in AmountField, and fixing a missed bootstrap case.

* Fix modal amount and gas text.

* Fix misaligned dropdown

* Update conditions for NavLink is-active class
2017-12-18 15:23:31 -06:00
greenkeeper[bot] d98389b201 chore(package): update webpack-dev-middleware to version 2.0.2 (#612) 2017-12-18 15:00:45 -06:00
greenkeeper[bot] 6b41dabf89 chore(package): update jest to version 22.0.0 (#610) 2017-12-18 09:57:47 -06:00
greenkeeper[bot] 5a28784e2d fix(package): update moment to version 2.20.0 (#605) 2017-12-16 21:37:23 -06:00
greenkeeper[bot] 821cb126d9 chore(package): update file-loader to version 1.1.6 (#602) 2017-12-15 23:56:29 -08:00
William O'Beirne f6410646c0 Fix iOS Safari with Polyfills (#599)
* Add polyfills, error text to error screen.

* copy update to warn users about ensuring that they only send us non-sensitive info
2017-12-15 18:53:27 -08:00
greenkeeper[bot] a25ff4eeb6 chore(package): update nodemon to version 1.13.3 (#600) 2017-12-15 17:36:56 -08:00
Daniel Ternyak a93a106666
chore(package): update nodemon to version 1.13.2 (#596)
Closes #591
2017-12-15 10:05:23 -08:00
greenkeeper[bot] 5ed9b66e0f chore(package): update @types/lodash to version 4.14.91 (#589) 2017-12-14 17:51:18 -08:00
Daniel Ternyak 712af1418d
Remove Redux-Form Types Dependency (#588) 2017-12-14 16:52:13 -08:00
greenkeeper[bot] 43d90c9dae chore(package): update enzyme-to-json to version 3.3.0 (#582) 2017-12-14 15:57:10 -08:00
greenkeeper[bot] b8d276953a chore(package): update style-loader to version 0.19.1 (#581) 2017-12-14 15:57:02 -08:00
greenkeeper[bot] 9dca5f28b4 chore(package): update @types/lodash to version 4.14.90 (#583) 2017-12-14 15:29:32 -08:00
greenkeeper[bot] 7cb871ec0a chore(package): update copy-webpack-plugin to version 4.3.0 (#580) 2017-12-14 11:30:02 -08:00
greenkeeper[bot] dd29038c24 chore(package): update @types/lodash to version 4.14.89 (#573) 2017-12-14 01:13:35 -08:00
Daniel Ternyak 8508670247
chore(package): update nodemon to version 1.12.7 (#575)
Closes #568
2017-12-13 20:52:45 -08:00
Daniel Ternyak 22d9598a22
chore(package): update webpack-dev-middleware to version 2.0.1 (#577)
Closes #576
2017-12-13 20:42:17 -08:00
greenkeeper[bot] ebbd706931 chore(package): update prettier to version 1.9.2 (#559) 2017-12-12 00:24:06 -08:00
greenkeeper[bot] 2fc49210a5 chore(package): update @types/react to version 16.0.29 (#555) 2017-12-11 18:31:13 -08:00
greenkeeper[bot] cfa1e8c34a fix(package): update jsonschema to version 1.2.2 (#547) 2017-12-11 18:09:07 -08:00
greenkeeper[bot] 8a02a13e62 fix(package): update moment to version 2.19.4 (#546) 2017-12-11 16:12:07 -08:00
James Prado 72e30643a9 Normalize Swap Reducer (#443) 2017-12-11 09:44:53 -08:00
greenkeeper[bot] d3210ebc8a chore(package): update resolve-url-loader to version 2.2.1 (#545) 2017-12-10 20:36:20 -08:00
greenkeeper[bot] a46c35a3e4 chore(package): update @types/react to version 16.0.28 (#537) 2017-12-07 14:21:16 -08:00
greenkeeper[bot] 413fe47113 chore(package): update @types/webpack-env to version 1.13.3 (#532) 2017-12-06 13:30:00 -08:00
greenkeeper[bot] 0dda9493a7 fix(package): update ethereumjs-abi to version 0.6.5 (#528) 2017-12-06 13:27:19 -08:00
greenkeeper[bot] ef81ac2618 chore(package): update @types/lodash to version 4.14.88 (#531) 2017-12-06 13:05:05 -08:00
Daniel Ternyak 7e154175f7
Address Derivation (CI) (#529)
* improve derivation-checking performance by batching docker calls; move into spec dir

* remove npm command to run derivation-checking; create 'int-test' (integration) command and hook up into jest

* add integration testing to CI; configure docker / docker image (dternyak/eth-priv-to-addr) in CI

* docker build -> docker pull

* use travis build matrix to group tests and improve build times

* remove int-test call

* attempt travis 'job' with all tests running in parallel

* remove typo

* attempt travis 'job' with all tests running in parallel (round 2)

* organize integration tests

* refactor/cleanup

* refactor/address comments
2017-12-05 22:24:40 -08:00
Daniel Ternyak f6965abb9d
chore(package): update nodemon to version 1.12.5 (#526)
Closes #518
2017-12-05 17:53:37 -08:00
greenkeeper[bot] 45d9c933e6 chore(package): update prettier to version 1.9.1 (#527) 2017-12-05 17:45:37 -08:00
greenkeeper[bot] 599a24056e chore(package): update lint-staged to version 6.0.0 (#505) 2017-12-05 13:54:20 -08:00
greenkeeper[bot] 4e8ae02dd9 chore(package): update @types/lodash to version 4.14.87 (#513) 2017-12-05 13:13:09 -08:00
greenkeeper[bot] 69a63d8731 chore(package): update webpack to version 3.10.0 (#517) 2017-12-05 11:37:52 -08:00
greenkeeper[bot] d14dea5bd6 chore(package): update prettier to version 1.9.0 (#524) 2017-12-05 10:37:25 -08:00
Daniel Ternyak 7c53eec7b2
Fix Production Build (#522) 2017-12-04 19:13:27 -08:00
greenkeeper[bot] 6fd487323a chore(package): update @types/react to version 16.0.26 (#514) 2017-12-04 14:54:20 -06:00
HenryNguyen5 387567e43b Fix Prettier Configuration (#515) 2017-12-03 18:32:07 -06:00
greenkeeper[bot] 646824de14 chore(package): update ts-jest to version 21.2.4 (#506) 2017-12-02 16:39:23 -06:00
Daniel Ternyak 4b3def2fce
Tag Release 0.0.5 (#507) 2017-12-01 10:34:27 -06:00
greenkeeper[bot] eb490a78b3 chore(package): update awesome-typescript-loader to version 3.4.1 (#503) 2017-11-30 22:05:27 -06:00
Daniel Ternyak 4f48eee99e
chore(package): update webpack to version 3.9.1 (#498)
Closes #497
2017-11-30 12:11:44 -06:00
greenkeeper[bot] 92a4551085 Update typescript to the latest version 🚀 (#467)
* chore(package): update typescript to version 2.6.2

* fix RPC type error
2017-11-30 11:36:10 -06:00
Eddie Wang 980366694c RPC Error Handling (#384)
* create ensureOkResponse and check against RPC responses

* Merge with develop branch

* added single unit test

* main nodes added

* getBalance method

* remove console.log

* minor conflict fix - readd polyfill to integration test

* added two more method tests

* seperate rpcnode from extended classes

* fixes etherscan

* added all tests

* revert files with only formatting changes

* remove console.logs - still need to update snapshot before tests will pass

* updated snapshot due to RpcNode fixes for Infura and Etherscan nodes

* added RpcNodeTest config so we don't rely on constants in code

* undo formatting changes

* Multiple fixes to error handling tokens.

* Fixed TSC errors

* Minor styling edit - change async func to promise

* changed shape of tokenBalances

* change balance type back to stricter TokenValue type

* remove package.json change and include test for error state.

* minor change removing unneeded line of code

* added longer timeout for api

* update snapshot
2017-11-29 23:35:17 -06:00
skubakdj a40b22fc68 Modified File Blacklist for Travis (#448) 2017-11-29 22:26:27 -06:00
William O'Beirne 31963b334c CI & Commit Hook Improvements (#411)
* Add tscheck command, add more stuff to prepush and precommit hooks, clean up travis output.

* Move tscheck to prepush, remove running tests entirely.

* Put tslint on prepush as well.
2017-11-29 17:20:24 -06:00
Daniel Ternyak 2030b60550
chore(package): update check-node-version to version 3.1.1 (#492)
Closes #490
2017-11-29 13:46:00 -06:00
greenkeeper[bot] 51db31b9fa fix(package): update moment to version 2.19.3 (#491) 2017-11-29 12:42:54 -06:00
greenkeeper[bot] a3f35f565f fix(package): update react to version 16.2.0 (#489) 2017-11-28 21:48:08 -06:00
greenkeeper[bot] 03583ee4f8 fix(package): update react-dom to version 16.2.0 (#488) 2017-11-28 21:43:31 -06:00
greenkeeper[bot] 080f2e0adb chore(package): update react-test-renderer to version 16.2.0 (#487) 2017-11-28 21:39:43 -06:00
greenkeeper[bot] 6da5fac1d1 Update @types/history to the latest version 🚀 (#389)
* chore(package): update @types/history to version 4.6.2

* Rework type to newly added history overrides.
2017-11-28 18:47:29 -06:00
greenkeeper[bot] 1eb687c670 chore(package): update @types/lodash to version 4.14.86 (#477) 2017-11-28 12:15:27 -06:00
greenkeeper[bot] a16964f9f9 chore(package): update redux-test-utils to version 0.2.2 (#475) 2017-11-28 07:29:28 -06:00
greenkeeper[bot] 2d642f3dc7 chore(package): update check-node-version to version 3.0.0 (#449) 2017-11-27 23:00:11 -06:00
greenkeeper[bot] 6bd4cda4ee chore(package): update @types/react-redux to version 5.0.14 (#471) 2017-11-27 18:39:21 -06:00
greenkeeper[bot] c9ad43969c chore(package): update @types/react-router to version 4.0.19 (#465) 2017-11-27 14:34:09 -06:00
greenkeeper[bot] af5fc98eec chore(package): update @types/react-router-dom to version 4.2.3 (#463) 2017-11-27 14:33:32 -06:00
greenkeeper[bot] 96cc41b7df chore(package): update webpack-dev-middleware to version 1.12.2 (#460) 2017-11-27 14:33:10 -06:00
skubakdj 2570abd977 Remove Redux-Form in Generate Wallet (#466)
* remove redux-form from package.json, vendors, reducers

* refactor GenerateWallet components, remove redux-form dependency
2017-11-27 14:31:23 -06:00
greenkeeper[bot] b2a3e1e45e chore(package): update webpack-hot-middleware to version 2.21.0 (#457) 2017-11-26 17:57:34 -06:00
Daniel Ternyak f63055bd63
chore(package): update copy-webpack-plugin to version 4.2.3 (#452)
Closes #451
2017-11-24 13:18:29 -06:00
greenkeeper[bot] 63f8c7b580 chore(package): update @types/jest to version 21.1.8 (#450) 2017-11-23 12:53:24 -06:00
greenkeeper[bot] 8d9373eee9 chore(package): update webpack-dev-middleware to version 1.12.1 (#447) 2017-11-22 17:45:31 -06:00
greenkeeper[bot] a03a170545 chore(package): update @types/react-router-dom to version 4.2.2 (#439) 2017-11-21 18:32:40 -06:00
greenkeeper[bot] d8c8a49d7d chore(package): update @types/jest to version 21.1.7 (#438) 2017-11-21 14:29:14 -06:00
greenkeeper[bot] f9b64d1f25 chore(package): update @types/react-router to version 4.0.18 (#440) 2017-11-21 13:55:20 -06:00
greenkeeper[bot] 794eef38c8 chore(package): update node-sass to version 4.7.2 2017-11-20 21:56:11 +00:00
Daniel Ternyak 5e18ec4311
Tag Alpha 0.0.4 (#428) 2017-11-18 14:54:08 -06:00
greenkeeper[bot] c1b7ba5b5e chore(package): update awesome-typescript-loader to version 3.4.0 (#424) 2017-11-18 12:44:27 -06:00
greenkeeper[bot] 7699dcefd5 chore(package): update node-sass to version 4.7.1 (#422) 2017-11-18 01:31:23 -06:00
greenkeeper[bot] ca76661957 chore(package): update copy-webpack-plugin to version 4.2.1 (#417) 2017-11-17 10:34:22 -08:00
greenkeeper[bot] 531015924c chore(package): update cache-loader to version 1.2.0 (#418) 2017-11-17 10:34:02 -08:00
greenkeeper[bot] 625d4b83c4 chore(package): update @types/react to version 16.0.25 (#419) 2017-11-17 10:33:43 -08:00
greenkeeper[bot] d48fb9cc21 chore(package): update ts-jest to version 21.2.3 (#416) 2017-11-16 22:49:16 -08:00
greenkeeper[bot] f4fbb16dd8 chore(package): update @types/react to version 16.0.24 (#410) 2017-11-16 12:14:41 -06:00
greenkeeper[bot] dc9fc8aaeb chore(package): update @types/react-redux to version 5.0.13 (#407) 2017-11-15 21:58:22 -06:00
greenkeeper[bot] b007359bd5 chore(package): update enzyme-adapter-react-16 to version 1.1.0 (#404) 2017-11-15 11:05:15 -06:00
greenkeeper[bot] 22cb76e7f8 Update @types/react to the latest version 🚀 (#406)
* chore(package): update @types/react to version 16.0.23

* Update package.json
2017-11-15 10:59:54 -06:00
greenkeeper[bot] ef2ed3f201 chore(package): update enzyme to version 3.2.0 (#403) 2017-11-15 10:56:57 -06:00
greenkeeper[bot] 76b2d567cf chore(package): update react-hot-loader to version 3.1.3 (#405) 2017-11-15 10:55:07 -06:00
greenkeeper[bot] 7e7c070abe chore(package): update @types/redux-form to version 7.0.9 (#363) 2017-11-14 19:47:29 -06:00
greenkeeper[bot] 4edfe67885 chore(package): update @types/react-router-dom to version 4.2.1 (#360) 2017-11-14 19:43:54 -06:00
Daniel Ternyak 3fa6374c91
chore(package): update redux-test-utils to version 0.2.1 (#399)
Closes #365
2017-11-14 19:43:32 -06:00
greenkeeper[bot] 0f8f6fded2 chore(package): update @types/react-dom to version 16.0.3 (#359) 2017-11-14 19:41:20 -06:00
greenkeeper[bot] 7c0fb0a7b7 chore(package): update @types/react-router to version 4.0.17 (#361) 2017-11-14 19:38:16 -06:00
Daniel Ternyak 9d51e16bc4
chore(package): update react-test-renderer to version 16.1.1 (#398)
Closes #367
2017-11-14 19:37:34 -06:00
Daniel Ternyak f1deca5a2f
chore(package): update @types/lodash to version 4.14.85 (#395)
Closes #357
2017-11-14 19:36:42 -06:00
Daniel Ternyak 55dfece6cd
fix(package): update react-dom to version 16.1.1 (#397)
Closes #369
2017-11-14 19:36:07 -06:00
greenkeeper[bot] f8056abc4b chore(package): update @types/react-router-redux to version 5.0.10 (#362) 2017-11-14 19:34:53 -06:00
Daniel Ternyak 39b573737a
fix(package): update react to version 16.1.1 (#396)
Closes #368
2017-11-14 19:31:11 -06:00
greenkeeper[bot] 1d31ce7b56 chore(package): update @types/jest to version 21.1.6 (#376) 2017-11-14 19:27:53 -06:00
greenkeeper[bot] b73c0f3983 fix(package): update react-markdown to version 2.5.1 (#374) 2017-11-14 19:25:03 -06:00
greenkeeper[bot] 1231c4af75 chore(package): update lint-staged to version 5.0.0 (#377) 2017-11-14 19:24:05 -06:00
greenkeeper[bot] 68eecd4fcb chore(package): update prettier to version 1.8.2 (#364) 2017-11-14 19:23:36 -06:00
greenkeeper[bot] 8ad64326d0 chore(package): update @types/react to version 16.0.22 (#358) 2017-11-14 19:22:16 -06:00
greenkeeper[bot] 744e10a598 fix(package): update qrcode to version 1.0.0 (#353) 2017-11-14 19:20:55 -06:00
greenkeeper[bot] 31b9f29bbb fix(package): update moment to version 2.19.2 (#380) 2017-11-14 19:11:38 -06:00
greenkeeper[bot] 6571f0a501 chore(package): update node-sass to version 4.6.1 (#381) 2017-11-14 19:07:44 -06:00
greenkeeper[bot] 8bab29af43 chore(package): update react-hot-loader to version 3.1.2 (#354) 2017-11-14 14:56:42 -06:00
greenkeeper[bot] c8011c19fb chore(package): update enzyme-to-json to version 3.2.2 (#352) 2017-11-14 14:52:07 -06:00
greenkeeper[bot] 66ef325591 chore(package): update ts-jest to version 21.2.0 (#349) 2017-11-14 14:29:25 -06:00
HenryNguyen5 8fe664c171 Replace bignumber.js with bn.js (#319)
* Add definition file for bn.js

* Remove types-bn

* make isBN a static property

* progress commit -- swap out bignumber.js for bn.js

* Swap out bignumber for bn in vendor

* Change modn to number return

* Start to strip out units lib for a string manipulation based lib

* Convert codebase to only base units

* Get rid of useless component

* Handle only wei in values

* Use unit conversion in sidebar

* Automatically strip hex prefix, and  handle decimal edge case

* Handle base 16 wei in transactions

* Make a render callback component for dealing with unit conversion

* Switch contracts to use bn.js, and get transaction values from signedTx instead of state

* Get send transaction  working with bn.js

* Remove redundant hex stripping,  return base value of tokens

* Cleanup unit file

* Re-implement toFixed for strings

* Use formatNumber in codebase

* Cleanup code

* Undo package test changes

* Update snapshot and remove console logs

* Use TokenValue / Wei more consistently where applicable

* Add typing to deterministicWallets, fix confirmation modal, make UnitDisplay more flexible

* Clean up prop handling in UnitDisplay

* Change instanceof to typeof check, change boolean of displayBalance

* Fix tsc errors

* Fix token row displaying wrong decimals

* Fix deterministic modal token display

* Handle hex and non hex strings automatically in BN conversion

* Fix handling of strings and numbers for BN

* add web3 fixes & comments

* Display short balances on deterministic modals

* add more tests, fix rounding

* Add spacer to balance sidebar network name

* Fix tsc error
2017-11-12 11:45:52 -08:00
greenkeeper[bot] 5766735a5a Update dependencies to enable Greenkeeper 🌴 (#344)
* chore(package): update dependencies

* docs(readme): add Greenkeeper badge

* Remove package lock and add it to ignore

* Pin typescript to 2.5.2

* Pin package versions to the versions previously in package-lock.json
2017-11-07 15:59:27 -08:00
HenryNguyen5 3bea632a9a EthereumJS-Wallet (Part 2) (#310)
* Progress commit -- ethereumjs-wallet typings

* Add hdkey module + better wallet typing

* Add provider-engine typings

* Add jsdoc descriptions for hdkey constructor methods

* Fix missing return type

* Fix another missing return

* Make provider engine options optional

* Add priv/pubkey members to wallet instance

* Turn into SFC + Use ethereumjs-lib

* Use proper interface naming for V3Wallet

* Switch to ethereumjs-wallet

* Switch to ethereumjs-wallet and refactor using NewTabLink

* Use proper interface naming for V3Wallet

* Use proper interface naming for PublicKeyOnlyWallet

* Fix broken test, re-add scryptsy to make this PR pass

* Fix definition module for thirdparty wallets

* Decrease n-factor to 1024, checksum address of keystore

* Update typedef for react-dom from 15 to 16

* Lock react-dom, set typescript to 2.5.2
2017-11-07 10:42:53 -08:00
James Prado 2075a416ae Animate transaction notifications & fix styles (#305)
* Add disclaimer modal to footer

* Remove duplicate code & unnecessary styles

* Fix formatting noise

* remove un-used css style

* Fix tslint error & add media query for modals

* Nest Media Query

* Add react-transition-group

* Animate notifications with react-transition-group

* Identify issue with notifications getting overridden

* Update RTG (react-transition-group) to v2 & identify keys as animation issue

* Add unique id on successful transactions for unique keys

* update classNames, remove unused import

* Revert removing lodash

* Remove unnecessary test util

* Remove formatting noise

* Remove all formatting noise

* Update CSS & Change notification unique id

* Add unique id for each notification
2017-11-06 22:20:19 -08:00
HenryNguyen5 05725b660b EthereumJS-Wallet Prep (Definition and Package) (#309)
* Progress commit -- ethereumjs-wallet typings

* Add hdkey module + better wallet typing

* Add provider-engine typings

* Add jsdoc descriptions for hdkey constructor methods

* Fix missing return type

* Fix another missing return

* Make provider engine options optional

* Add priv/pubkey members to wallet instance

* Use proper interface naming for V3Wallet

* Use proper interface naming for PublicKeyOnlyWallet
2017-10-25 17:20:05 -07:00
HenryNguyen5 346f777976 Add definition file for bn.js (#317)
* Add definition file for bn.js

* Remove types-bn

* make isBN a static property

* Swap out bignumber for bn in vendor

* Remove types-bn
2017-10-25 12:33:57 -07:00
James Prado 70a2b3ca9a Update Jest & Enzyme, Add snapshot tests (#307)
* Add disclaimer modal to footer

* Remove duplicate code & unnecessary styles

* Fix formatting noise

* remove un-used css style

* Fix tslint error & add media query for modals

* Nest Media Query

* Update Jest & Enzyme, Add snapshot tests

* Fix tslint errors in /spec, Update mock localstorage

* Update types in tests, Fix tslint error

* Specify module versions for browser

* Update sendTransaction snapshot
2017-10-24 19:17:26 -07:00
William O'Beirne baea6aaf5f Use babel minifier instead of uglify (#273) 2017-10-08 18:31:26 -07:00
skubakdj aac0176ca2 Wallet Decrypt - Ledger (#238)
* add static vendor js libraries

* add ledger config

* add ledger components

* add ledger wallet

* bugfix: trezor, set dPath on change

* add rlp type package, update types

* change address to public

* update tslint script to exclude all files in directory

* revert to private address and use getAddress()

* remove unnecessary eslint line out of library files

* remove IWallet import

* Fix ts errors

* Remove version controlled vendor files from DLL
2017-10-05 16:29:14 -07:00
James Prado 6f7e3c27e2 Fix regressions introduced in #241 (#247)
* Fix location query

* Remove unnecessary polyfill

* Fix tslint error & update history types

* Parse search str using Node Query String

* Revert "Parse search str using Node Query String"

This reverts commit 0a482dabf29c3fbcbfd3112b974d6b98c14dca2e.

* fix formatting

* Add query-string

* Rename App container to TabSection & pass it location prop

* Add react-router withRouter HOC to NavigationLink

* various adjustments/finalizations

* Add location to props interface
2017-10-03 21:13:49 -07:00
William O'Beirne 1a09c6a7a6 Refactor Dropdowns, Rainbow Node Selector (#244)
* Convert all dropdowns to use a single dropdown shell component. Restyle header ones to look like v3.

* Right align some.

* Color dropdown component, which node selector uses.

* Prettier fixes.
2017-10-02 15:36:59 -07:00
James Prado ad83b5a181 Update React-Router(-DOM) to 4.x and Simplify Routing (#241) 2017-09-28 19:09:01 -07:00
Daniel Ternyak 5b2f7efac5 React 16.0.0 (#240)
- bump react version to 16.0.0
- remove unneeded Perf plugin
2017-09-27 11:47:20 -07:00
Daniel Ternyak af84a589c5 Redux promise middleware (v2) (#233)
* add redux-promise-middleware to package.json and update package-lock.json

* intergrate redux-promise-middleware and simplify rates by replacing saga with promise

* fix unrelated breaking test

* -improve user messaging when network request fails. \n Clean up rates actions and reducers

* Address tslint errors
2017-09-25 20:41:11 -07:00
HenryNguyen5 5d4b36d453 Migrate to Typescript (#224)
* Refactor babel/types

* Refactor entry point

* Refactor actions

* Refactor api

* Full project refactor -- Broad type fixing sweep

* - completely fix merge conflicts
- handle various type errors

* Add tslint to package.json

* Dependency cleanup

* Fix module resolution

* Work on type definitions for untyped libs

* progress commit

* Add more definition typing

* various type additions

* Add unit types

* Fix sagaiterator  + unit types

* various types added

* additional type additions

* Fix typing on Sagas

* remove flowfixmes; swap translate for translateRaw

* Get rid of contracts - awaiting Henry's contract PR

* Remove contracts from routing

* Fix most of actions/reducers

* refactor actions directory structure

* fix reducer action type imports

* Fix most of type errors pre-actions refactor

* fix action creator imports in containers

* Refactor more

* Refactor index of actions

* fix action imports; use module level index export

* package-lock.json updated

* Use action types in props

* Type up action creators

* Fix most of connect errors

* Typefixing progress

* More types

* Fix run-time errors

* Caching improvements for webpack

* Remove path resolve from webpack

* Update non-breaking packages to latest version

* Fix token typing

* Remove unused color code

* Fix wallet decrypt dispatch

* Set redux-form related props/functions to ANY, since we're stripping it out later on

* Revert BigNumber.js package changes

* Extend window to custom object for Perf

* Format Navigation

* Typecase keystore errors as any (since we shouldnt touch this)

* Push wallet context fix

* - find/replace value->payload in swap
- properly type swap state properties
- extract inline reducer into reducer function

* - type local storage retrieved items as generic

* - bind all RPCClient methods with fat arrow

* - reformat

* Change to enums for constants

* Change state into any

* Fix swap errors

* ensure that seconds are passed into state as integers

* Fix rest of errors

* use parseInt explicitly instead of type coercion

* Fix derivation-checker, remove flow command, add tslint command, add tslint-react, tell travis to use tslint instead of flow.

* Whoops, remove those tests.

* Remove unsupported (yet) config option.

* Fix precommit to target ts and tsx files.

* Fix some errors, ignore some silly rules.

* Revert jest to v19, use ts-jest and make all tests typescript. Fixes all but one.

* Get rid of saga tests

* Fix tslint errors
2017-09-24 19:06:28 -07:00
William O'Beirne 5e66cccac5 Command for HTTPS dev server (#212)
* HTTPS dev command.

* Remove unused declaration.

* check-node-version for dev:https
2017-09-19 17:47:46 -07:00
skubakdj c88e96d603 Wallet Decrypt - Mnemonic (#180)
* add 'bip39' package

* add mnemonic decrypt, wallet wrapper

* add mnemonic path config

* add mnemonic support to deterministic components

* add mnemonic support

* accomodate for ledger ETH path

* remove comments

* update comments regarding path length

* rename modal open handler

* make several props optional

* add basic tests for mnemonic decrypt

* make flow happy, add user error notifications

* convert dpaths to js file, update references

* add ledger path to test

* Trezor DPath Fix (#196)

* Match v3 more closely.

* Require wallet index on deterministic wallets, update trezor to send index.

* remove redundent stripAndLower function and rename existing stripHex to stripHexPrefixAndLower
2017-09-15 12:29:38 -07:00
HenryNguyen5 7a460960d7 Build speed v2 (#195)
* Improve build speed by using cheap source maps and dropping eslint loader.

* use old 'source-map' on dev when SLOW_BUILD_SPEED env variable exists

* Increase build speed further via caching and DLL

* Cleanup code

* Add step to readme

* Move DLL loader to dev instead of base

* Add post install script

* Revert readme change

* ignore dll dir
2017-09-14 15:49:15 -07:00
William O'Beirne de7d4fbaa2 v3 Style Import (#151)
* Convert bootstrap to sass instead of checked in and less

* Darken body, adjust header.

* First pass at tab styles, each tab will need a lot of individual love tho.

* Update footer to main site content, improve responsiveness.

* Missing key added.

* Fix dropdowns.

* Convert GenerateWallet HTML over, still needs styling.

* Send form.

* Current rates styled.

* CurrencySwap form styles.

* SwapInfoHeader styled.

* Finish up swap restyling, minor usability improvements for mobile.

* Fix up notifications / alert customizations

* Import v3 variables.

* Fix notification spacing.

* Align input height base with buttons.

* Revert height base, add additional bootstrap overrides.

* Grid overrides.

* Move overrides to their own folder. Adjust naming.

* Fix inconsistencies.

* Style generate wallet pt 1.

* Style generate wallet pt 2

* Style generate wallet pt 3

* Fix swap

* Added some missing overries, fixed the fallout.

* Remove header text, indicate alpha version.

* Fix radio / checkbox weights.

* Bind => arrow

* Convert simpledropdown to proper form select, instead of weirdly implemented nonfuncitoning dropdown.

* Fix token balances buttons, footr icons.
2017-09-05 14:52:01 -05:00
Daniel Ternyak efee709d0f Swap Part 5 (#150)
* refactor notificationMessage

* MVP Bitcoin QR

* refactor currentrates and add loading state

* fix text space

* translate hardcoded text

* only show QR code when attempting to swap Bitcoin as the origin kind

* remove commented import

* add flow typings

* Don't show a notification of a stringified element
2017-08-31 08:56:49 -07:00
William O'Beirne f5b6a49463 Translation updates (#120)
* Updated all translations, moved into their own folders.

* Switch translations to use Markdown component.

* Remove markup tests, since were using a module now.

* Fix flow errors, render react elements instead of dangerouslysetinnerhtml.

* Make translate a connected component, so it updates with Redux.

* Fix flow errors

* First pass at returning raw when needed for placeholder.

* Added aria test.

* Fixed flow errors and linter warnings.

* Move settimeout to saga.

* Change reload to 250 ms from 1500 ms
2017-08-28 13:05:38 -05:00
William O'Beirne 1d235cf67a Trezor Unlock + Deterministic Wallet Groundwork (#137)
* Basic reducer / action / saga setup, rendering wallets.

* Better address rows, with values.

* Styling + back and next buttons.

* Formatting, dpath changing.

* Derived -> Deterministic

* Set wallet on confirm.

* Flesh out Trezor wallet, add transaction signing.

* Custom dpath, better handling of canceled switches and over-rendering / prop calling.

* Token empty string value.

* Move DPaths to config file.

* Clarifying comments.
2017-08-28 12:43:57 -05:00
William O'Beirne cfba08ccf4 Visual Alpha Prep (#135)
* Added alpha banner to top of site.

* Grey out non functioning nav items. Redirect help to groovehq.

* Disable view wallet while it's just a stub.

* Disable non-implemented wallets.
2017-08-25 09:37:36 +02:00
Daniel Ternyak 0474c52004 Derivation Checker (#134) 2017-08-24 18:41:47 +02:00
William O'Beirne bf4171dfbd Transaction confirmation modal (#108)
* Add a little arrow icon.

* Replaced toEther function with toUnit to reduce the number of conversion functions wed need. Add tests for conversion functions.

* First pass at a styled confirm transaction modal.

* More data about data

* Hook up generated transaction with modal

* Fix modal position

* Add from address. Restyle a bit.

* Only show textareas and button if transaction has been generated.

* Remove need for param.

* Copy.

* Use non-relative path.

* Initial crack at transaction token support.

* Fix flow type

* Unit tests for contracts and erc20

* Convert contract class to ethereumjs-abi, caught a bug

* Add decodeArgs for contracts, decodeTransfer for erc20

* Show token value in modal

* Show value from transaction data in confirmation.

* Show address of receiver, not token contract

* Flow type

* Only accept bigs

* Unlog

* Use ethereumjs-abis method ID function

* Get transaction stuff out of state. Leave todo notes.

* Intuit token from transaction to address.

* Move generate transaction out of node and into libs/transaction.

* timeout -> interval

* Promise.reject -> throw

* Get default currency from network.

* Add more unit tests for decoding. Adopt the $ prefix for decoding calls.

* Use signed transaction in confirmation modal.
2017-08-23 08:57:18 +02:00
William O'Beirne 7541d6f486 Estimate gas (WIP) (#102)
* relayout rpc code, start contract helper

* Dont ask for estimate if theres no value

* Split out conversion of ether to wei hex into lib function.

* big.js -> bignumber.js
2017-08-07 22:45:08 -05:00
skubakdj 3ef2b51a68 Add Promises & Signing to Wallet Classes (#105)
* add validation for raw tx

* add node module, add signing lib

* add tx & message signing, promise everything

* remove unnecessary returns

* move isValidRawTx to for loop

* add & use new type RawTx

* implement cleaner promises, reject instead of throw
2017-08-07 22:25:23 -05:00
Daniel Ternyak a66337ac0a Swap Part 4 (#101)
### Re-implements:
* min/max validators on initial currency swap selection
* polling of order status
* timer that persists across refreshes via localStorage (computed based on `createdTime` and `validFor` amount)
* swap persists across refreshes once order is created.
* various type refactors

### New additions:
* *SimpleButton* (can be PRd separately on request)
* clear loading state after order create (via SimpleButton and font-awesome)
* buffers for non-BTC swaps (bity does not actually accept 0.01 BTC worth of ETH as they claim they do in their JSON response, so a magic number of 10% is added to the minimum).
2017-07-31 18:14:30 -05:00
William O'Beirne e8ad2ce958 Flow style include fix (#75)
* Attempt to fix the flow include style errors, as outlined in this gist: https://gist.github.com/lambdahands/d19e0da96285b749f0ef (#75)
2017-07-27 11:50:29 -05:00
Daniel Ternyak 69851696e9 Update flow-bin version to 0.50.0 (#67) 2017-07-21 13:49:30 -05:00
William O'Beirne d2ae162e80 Enforce node / npm versions, add package-lock.json (#57)
* Enforce node / npm versions, add package-lock.json

* Have travis respect nvmrc. Add nvmrc.
2017-07-18 19:41:17 -05:00
Daniel Ternyak 37008e9fe9 Complete Generate/Create Wallet Flow (#38)
* GenerateWallet: Download real UTC file.

* Paper wallet (#45)

* Working paper wallet (#52)

* Reset Generate Wallet state when component will unmount
2017-07-16 16:02:13 -05:00
Daniel Ternyak 2265f75700 Adjust 'lint-staged' to pass single-quote via CLI; remove unneeded .prettierrc (#55) 2017-07-16 11:15:37 -05:00
Maciej Bembenista f4e63c7e02 Integrate Husky git hooks and configure a Prettier hook for JS (#53)
* Add Husky, lint-staged and prettier as dependencies, configure prettier precommit hook

* Change line width in Prettier to the default 80
2017-07-15 18:02:14 -05:00
William O'Beirne c9948626d1 Bundle and compress images with Webpack (#49)
* First pass at image loader

* Clean up config, convert some images as example.
2017-07-14 12:04:08 -05:00
crptm 780f3ba94f balance fetching (#41)
* balance fetching

* fix tests

* bump deps

* validate custom token form

* equiv values

* fix rates saga naming

* address review comments
2017-07-13 16:02:39 -05:00
crptm ecb11133dd move bity getRates to saga (#35)
* move bity getRates to saga

* typo

* bity polling
2017-07-07 21:00:09 -05:00
crptm 4b6f20dd63 remove dupe ethereumjs-util 2017-07-04 06:44:08 +04:00
crptm d6b7cca10a merge send-tx 2017-06-27 03:36:21 +04:00
crptm 240007fe43 merge develop 2017-06-27 03:13:21 +04:00
crptm 1fb4a004ac send wip 2017-06-27 02:27:55 +04:00
Daniel Ternyak c77f8430c5 Create Validator class and add deps to package.json 2017-06-24 01:08:57 -05:00
crptm d0becf7746 notifications 2017-06-22 03:31:59 +04:00
Daniel Kaspo ce3749000f Keystore decryption initial implementation. 2017-06-19 21:02:28 -04:00
Daniel Ternyak 81d5f64100 Swap: add axios and lodash to package.json 2017-06-11 20:05:36 -05:00
crptm aca012af6a tarnslate: html entites test 2017-06-02 00:13:59 +04:00
Daniel Ternyak a12d720c8a Resolve broken prod css 2017-04-24 18:36:59 -05:00
Daniel Ternyak 8cf7e25efd Add redux-form to package.json 2017-04-18 18:35:08 -05:00
Daniel Ternyak cfc5d20af2 add prop-types package 2017-04-14 01:27:29 -05:00
Daniel Ternyak 15cc449c1f fix version (npm required specific format) 2017-04-12 17:36:20 -05:00
Daniel Ternyak 5f7f38798e fix trailing comma breaking build/dev 2017-04-12 17:33:45 -05:00
Daniel Ternyak 41b219a853 create package.json 2017-04-12 00:00:48 -05:00