Commit Graph

168 Commits

Author SHA1 Message Date
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