Commit Graph

676 Commits

Author SHA1 Message Date
William O'Beirne 1510533ec7 Equivalent values for all tokens (ETH + ERC20s) (#420)
* Fetch all token rates at once. Add option for displaying all token values.

* Ensure spinner always shows before equivalent values are ready.

* Fix up test.
2017-11-18 14:15:02 -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
skubakdj c31490c8b4 Redux Reducer Tests (#390)
* set return type in resetWallet action creator

* update config reducer test

* update generateWallet reducer test

* update swap reducer test

* update wallet reducer test

* create customTokens reducer test

* create deterministicWallets reducer test

* create ens reducer test

* create notifications reducer test

* add crypto compare success/fail actions

* add rates reducer test

* remove unnecessary comments

* remove more comments

* remove duplicate import

* update wallet reducer test to use BN

* update dWallet reducer test to use BN

* update wallet reducer tests

* update rates reducer tests
2017-11-17 13:12:27 -08:00
William O'Beirne 159000caf8 Add information about typing connected components. (#412) 2017-11-17 10:49:00 -08: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
Daniel Ternyak 8f69f103e0
Set Bity Rates Polling Cycle to 30 Seconds 2017-11-16 14:25:30 -06:00
skubakdj 2a6d93eaa4 Unset Web3 Node on Wallet Reset (#409)
* unset web3 node on wallet reset

* use wallet TypeKeys enum instead of strings
2017-11-16 12:16:09 -06: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
William O'Beirne 8bc1a348c7 Equivalent Values for Tokens (#366)
* Add select with tokens.

* Reformat state shape to allow multiple currency rates. Show those rates when selected.

* Add loader
2017-11-14 23:51:09 -06:00
James Prado 151b2d762f display network name if balance loaded (#402) 2017-11-14 23:47:03 -06:00
James Prado 05a9770a9b Fix account balance underline & spacing (#401) 2017-11-14 23:12:10 -06:00
James Prado 0d5d0cea9a Wallet Loading States & Spinner Update (#334)
* 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

* Replace '???' with Spinner & update spinner

* Add loading states for wallet balances

* Update wallet test

* Remove excess data passed to wallet balance reducer & Fix wallet balance types

* Merge 'develop' into 'loading-indicator'

* Add 'light' prop to Spinner

* Only show spinners when fetching data

* Remove format diff

* Apply naming conventions

* Remove network name when offline
2017-11-14 21:44:55 -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
James Prado 7581dc7838 Update readme - typing injected props (#375) 2017-11-14 19:17:43 -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
Eddie Wang a9f78011cb Swap UX Cleanup (#339)
Fixes #226
Fixes #383

Added a simple check to ensure that swap rates exist so we don't get a NaN error, which would be confusing to users.

Instead, the form is hidden and a spinner is shown until the bityRates are ready for the user.

* adds spinner while fetching

* added error on top of input

* removed classnames prop and added cn

* added simple err mssge

* css fixes and disabled button

* better err mssge generation and fixed swap details

* minor typo

* added redux notification on unreachable error

* minheight for err message and swap update on redux change

* fixed formatting and removed className prop
2017-11-14 10:37:56 -08: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
skubakdj c9c147db52 Wallet Decrypt - Web3 (MetaMask / Mist) (#303)
* add support for web3, disabled, and hidden in node dropdown header

* add web3 node config actions

* add web3 wallet actions

* add web3 node support

* add web3 wallet & web3 wallet ui selection

* add web3 wallet & config sagas

* add web3 transaction support to SendTransaction tab

* add web3 node check & reset to redux store

* remove comments from Web3.tsx

* update comment

* correct spacing display issue in Web3 component

* convert getTransactionCount response to string

* disable web3 wallets in offline mode

* implement sendCallRequest method on Web3 node

* remove unused vars

* make typescript happy

* convert wallet constants to enum & apply to wallet action files

* update wallet reducer to use TypeKeys enum

* remove unnecessary console log

* remove unnecessary await

* make token balance math more readable

* use NewTabLink in Web3.tsx, allow NewTabLink to accept className

* move web3.ts to non-deterministic folder

* update imports & method names, implement message signing

* add web3 wallet export

* use bufferToHex
2017-11-09 19:30:20 -08:00
HenryNguyen5 a00269507c EthereumJS-Wallet (Part 3) (#316)
* 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

* Strip out wallet classes for ethereumjs-wallet, stuff wallet types in privkey for now

* Seperate wallets into deterministic and non-deterministic, change IWallet and deterministic wallets to adhere to getAddressString

* Fix broken test, remove scryptsy

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

* Remove uuid from deps and keystore test

* Add ethereumjs-wallet to DLL

* Wrap mnemonic wallet

* Fix definition module for thirdparty wallets

* Fix MewV1 wallet not loading due to wrong library

* Fix tsc error

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

* Fix isKeystorePassRequired

* Fix tsc errors

* Merge package lock

* Update package lock

* regenerate lock file

* Lock typescript to 2.5.2

* Merge develop
2017-11-08 10:16:43 -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
William O'Beirne cb130a9bb6 Warn / Prevent Outdated Browsers from Wallet Generation (#329) 2017-11-06 22:24:54 -08:00