Commit Graph

2262 Commits

Author SHA1 Message Date
fernandomg a8b8284bf4 fix modules discovery 2020-07-13 18:26:09 -03:00
fernandomg caaf7c8812 fix typing after merge 2020-07-13 16:25:38 -03:00
fernandomg 77eb70edf7 Merge branch 'development' into feature/#934-advanced-settings 2020-07-13 13:37:16 -03:00
francovenica 0129a720b0
Merge branch 'development' into AddingTestId 2020-07-13 10:19:52 -03:00
Mikhail Mikheev 34209aeb49 Merge branch 'master' of github.com:gnosis/safe-react into 2.6.1-dev-master-backemerge 2020-07-09 11:39:24 +04:00
Mikhail Mikheev c6d8d179aa
Merge branch 'development' into AddingTestId 2020-07-09 10:31:24 +04:00
Mikhail Mikheev 5072ad71b8
Merge branch 'development' into coveralls 2020-07-09 09:53:46 +04:00
Mati Dastugue 67c7506c4d Wallet enhancements 2020-07-09 01:06:49 -03:00
Agustin Pane ec83fc61ca Replaces ProviderInfo with ProviderProps 2020-07-08 16:12:45 -03:00
Agustin Pane c55c9236aa Add types for isSmartContractWallet 2020-07-08 16:08:08 -03:00
Mati Dastugue 5925f6ef9b
Update ts type for handleChange 2020-07-08 16:00:24 -03:00
nicosampler fb12430cc9 update request app 2020-07-08 15:47:31 -03:00
francovenica 855a69e434
Merge branch 'development' into AddingTestId 2020-07-08 13:35:44 -03:00
Mati Dastugue 73ba4d1897
Merge branch 'development' into fix/allow-repick 2020-07-08 12:41:43 -03:00
Fernando 9d4a7b84d5
(Fix) Load Safe if the address exist (#1104) 2020-07-08 11:41:25 -03:00
Agustin Pane 53731ffd9c Merge branch 'development' of https://github.com/gnosis/safe-react into coveralls
# Conflicts:
#	yarn.lock
2020-07-08 10:27:41 -03:00
Agustin Pane 7458eb0957 Fixs getProviderInfo usage 2020-07-08 10:26:33 -03:00
Agustin Pane 8fd252d1a7 Adds types in getWeb3.ts 2020-07-08 10:25:45 -03:00
Agustin Pane 8fb5cf5e63 Adds web3-core types 2020-07-08 10:07:38 -03:00
francovenica 6b3d7304f4
Merge branch 'development' into AddingTestId 2020-07-07 17:13:14 -03:00
Franco Venica b10928dbde add test id for send_funds test 2020-07-07 16:20:18 -03:00
Mati Dastugue 6611027b35 Merge branch 'development' of github.com:gnosis/safe-react into fix/allow-repick 2020-07-07 12:25:55 -03:00
Mikhail Mikheev e4ffd326a8 add 1inch.exchange app 2020-07-07 16:09:10 +04:00
Mikhail Mikheev 492b45f13a
Merge branch 'development' into 2.5.2-dev-master-backmerge 2020-07-07 11:28:41 +04:00
Agustin Pane 26a358a3af
(Feature) - 1029 Improve Polling behaviour (#1047)
* Adds exponential backOff for fetch methods

* Avoid multiple requests before the last finished

* Removes unused dependency

* Adds try catch

* Fix isFetchingData variable initialization

* Add return type to fetchAllUserCollectiblesByCategoryAsync

* Improve typings for fetchSafeTokens

* Add more types

* Improve types usage

* Improve types usage

* Refactor useCheckForUpdates to avoid calling the actions before they finished

* Updates typing in OpenSea.ts

* Update store types

* Update store types

* Remove unused promises

* useCheckForUPdates & useFetchTokens refactor wip

* enhanced safe state/selector types

* refactor useCheckForUpdates

* improve comment in useSafeScheduledUpdaates

* type enhancements

* use checksumAddress to checksum an address

* dep bump

Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
Co-authored-by: Mati Dastugue <matias.dastugue@altoros.com>
2020-07-06 16:34:14 -03:00
Mikhail Mikheev 54ed00564b
2.5.1 Dev <- master backmerge (#1093)
* check if there as a pending transaction before marking transaction as a cancellation one

* update pkg.json
2020-07-06 12:04:31 -03:00
Agustin Pane 4c7fa87b1d Merge branch 'master' into 2.5.2-dev-master-backmerge 2020-07-06 12:02:52 -03:00
Agustin Pane d5f05536c3
(Hotfix) Tx decoding (#1094)
* Add types

* Fix missing condition

* Update Version
2020-07-06 09:54:49 -03:00
fernandomg 60c535e387 fix: disableModule params 2020-07-06 08:17:10 -03:00
fernandomg 5f413ff5e9 fix: type check 2020-07-06 08:11:35 -03:00
Fernando 0f5d8e80bb
Merge branch 'development' into feature/#934-advanced-settings 2020-07-06 07:59:11 -03:00
Mikhail Mikheev ab7fab365f check if there as a pending transaction before marking transaction as a cancellation one 2020-07-06 14:41:55 +04:00
Mati Dastugue 0f4f1077fe Allow repick address in contract interaction mode 2020-07-03 18:00:39 -03:00
Mati Dastugue 72a13f8c74
Update name in props 2020-07-03 14:48:18 -03:00
Mati Dastugue b9e8bcc179
Merge branch 'development' into feature/address-book-suggestions 2020-07-03 14:08:10 -03:00
fernandomg 91e300a862 Use external loader instead of GnoTable builtin one 2020-07-03 09:55:32 -03:00
Fernando 38b1d83f8c
Merge branch 'development' into feature/#934-advanced-settings 2020-07-03 09:38:19 -03:00
Agustin Pane 36e78e00b4
(Fix) - Settings ui break (#1073)
* Adds useWindowDimensions hook
Uses useWindowDimensions hook to render the address on ownerAddressTable depending of the size of the screen

* Fix table width for medium sizes

* Reduces padding for medium screen sizes
Also simplifies js logic for adding cut addresses

* Adjust the padding for larger screens

* Adjust the padding for larger screens

Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
2020-07-03 16:23:30 +04:00
Agustin Pane 2ea1608d30 Merge branch 'development' of https://github.com/gnosis/safe-react into coveralls 2020-07-03 08:55:34 -03:00
Fernando 9931ef9210
Merge branch 'development' into feature/#934-advanced-settings 2020-07-03 08:07:12 -03:00
nicolas 822903c83d
sapp iframe size (#1081)
* sapp iframe size

* review changes

* CenteredMT

* remove className

Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
2020-07-03 14:12:49 +04:00
Mati Dastugue 0e3436bf67
Prevent showing enable data modal (#1086)
* Prevent from showing enable modal

* Add message info for failing txs

* c'mon Travis! Stop complaining.

* PR feedback improvements

Co-authored-by: Mati Dastugue <mdastugu@amazon.com>
Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
2020-07-03 13:59:36 +04:00
Fernando 244f81b0a4
Merge branch 'development' into feature/#934-advanced-settings 2020-07-02 20:36:51 -03:00
Mati Dastugue 7db9fae535
Merge branch 'development' into feature/address-book-suggestions 2020-07-02 13:34:19 -03:00
Agustin Pane 3e982b741f Merge branch 'master' of https://github.com/gnosis/safe-react into coveralls
# Conflicts:
#	yarn.lock
2020-07-02 09:06:28 -03:00
fernandomg c84caeb027 Change Advanced Settings icon
- this required to point the `@gnosis.pm/safe-react-components` to the github repo
2020-07-01 16:23:58 -03:00
fernandomg bac59b9b38 remove trash code 2020-07-01 12:55:09 -03:00
fernandomg 1a095e561b fix state type in collectibles selector 2020-07-01 12:54:27 -03:00
nicosampler 725a9e9a84 sort apps alphabetically 2020-07-01 11:22:32 -03:00
nicosampler 1cdd16abb6 Add Idle sapp 2020-07-01 11:15:51 -03:00
fernandomg ea6fc17457 Rephrase remove modal message 2020-07-01 09:03:57 -03:00
Agustin Pane 98ec85d454 Merge branch 'development' of https://github.com/gnosis/safe-react into coveralls 2020-07-01 08:50:14 -03:00
fernandomg d5f6ef26f5 fix typo 2020-06-30 21:32:41 -03:00
fernandomg 873f8bad74 Enable "disable module" functionality
- changed `remoteModules` in favor of `remoteModulesPaginated`, so we can properly have track of the `prevModule` for every module
- refactored how module is stored from an array of `moduleAddress`es, to an array of `[moduleAddress, prevModuleAddress]`
- Implemented the RemoveModule by copying the `RemoveSafeModule` implementation
- TODO: display data
2020-06-30 21:30:51 -03:00
fernandomg a6ff15d1f3 Fix styles and use all the possible safe-react-components 2020-06-30 18:27:21 -03:00
fernandomg 91dc0bbc29 Migrate Settings menu to gnosis-safe-components 2020-06-30 17:10:33 -03:00
fernandomg dc75d97083 WIP: fix typings (?)
Not so sure about how robust the fix is. But allow me to continue developing
2020-06-30 15:49:47 -03:00
fernandomg ec09b3bd55 Merge branch 'development' into feature/#934-advanced-settings
# Conflicts:
#	src/routes/safe/store/actions/fetchSafe.ts
#	src/routes/safe/store/models/safe.ts
#	src/routes/safe/store/reducer/safe.ts
2020-06-30 14:23:58 -03:00
Mati Dastugue 02eeb0410e Merge branch 'development' of github.com:gnosis/safe-react into feature/address-book-suggestions 2020-06-30 12:59:38 -03:00
Agustin Pane 35a118b975 Updates coverage script 2020-06-30 12:06:46 -03:00
Mikhail Mikheev a8483a97da
Merge pull request #1041 from gnosis/1013-undefined-error
(Fix) - #1013 undefined error
2020-06-30 18:48:33 +04:00
fernandomg ebf8d149a2 WIP: code cleanup and fix typings 2020-06-29 15:46:00 -03:00
Fernando 328343fa9d
Merge pull request #1069 from gnosis/2.3.2-dev-master-backmerge 2020-06-29 13:53:57 -03:00
Mati Dastugue 0587bb9139 Fix types + improve form values 2020-06-29 13:48:46 -03:00
nicolas 6def3cbc93
add Aave app (#1075) 2020-06-29 13:39:48 -03:00
Mati Dastugue f21913d84a Merge branch 'development' of github.com:gnosis/safe-react into feature/address-book-suggestions 2020-06-29 12:57:14 -03:00
Mikhail Mikheev ed72219f03 type definition fixes 2020-06-29 15:29:27 +04:00
fernandomg 3eba845314 WIP: add `Advanced` settings
there's a lot of duplicated code, just copying functionalities and building basic structure for the section
2020-06-26 18:57:17 -03:00
fernandomg cbc8121bd9 fix typings 2020-06-26 18:56:08 -03:00
fernandomg 2d8da9ca98 add modules 2020-06-26 18:55:48 -03:00
Mati Dastugue 89100d5158 Change value validator 2020-06-26 13:04:43 -03:00
nicosampler 5ddb487411 typo 2020-06-26 12:29:01 -03:00
nicosampler ecf9e1dd79 explicitly type classNames 2020-06-26 12:19:29 -03:00
Mikhail Mikheev f2f9cb7d81 default safe logic fixes 2020-06-26 18:38:59 +04:00
nicosampler 7271d465e1 Fix: Sapp confirmTXs modal width. 2020-06-26 11:10:05 -03:00
Mikhail Mikheev ca51768b04 Merge branch 'development' of github.com:gnosis/safe-react into 1013-undefined-error 2020-06-26 18:09:55 +04:00
Mikhail Mikheev 00843b5c66 Fix dev mainnet config 2020-06-26 13:36:43 +04:00
Mikhail Mikheev 728bcc3f8e fix catching errors during retrieving token symbols/decimals 2020-06-26 13:34:12 +04:00
Mikhail Mikheev 46c227881a hardcode ens contract address to isERC721Transaction function, fallback to 18/unknown in methods fetching token decimals 2020-06-26 13:22:34 +04:00
Mati Dastugue d11142de70 Update types 2020-06-25 21:22:17 -03:00
Mati Dastugue c5681f1491 Merge branch 'development' of github.com:gnosis/safe-react into feature/address-book-suggestions 2020-06-25 20:59:37 -03:00
Agustin Pane abd61dc055 Move window definition 2020-06-25 12:47:23 -03:00
Agustin Pane d7d2305b9c Adds global interface for window.web3 2020-06-25 12:27:38 -03:00
Agustin Pane d61146c017 Merge branch 'master' of https://github.com/gnosis/safe-react into coveralls
# Conflicts:
#	yarn.lock
2020-06-25 10:42:30 -03:00
Agustin Pane 8d1ef7ac36 Disable errored tests 2020-06-25 10:36:57 -03:00
Mikhail Mikheev f39b0903ca
2.3.1 bugfix
* fallback to tx.recipient in case no if statement worked in getTxData

* update pkg.json
2020-06-25 16:18:53 +04:00
Agustin Pane 7fe182db3c Add default provider for node 2020-06-25 08:53:27 -03:00
Mati Dastugue 79fbc2a54b Add types for Address book suggestion 2020-06-24 16:57:45 -03:00
Mati Dastugue cf2fd4522c Merge branch 'development' of github.com:gnosis/safe-react into feature/address-book-suggestions 2020-06-24 16:39:30 -03:00
Mati Dastugue 62270e180b update types 2020-06-24 16:39:19 -03:00
Agustin Pane 0f699acea3 Fix confirmation file to make tests run 2020-06-24 11:14:03 -03:00
nicolas 38f6123d73
Disable Aave (#1052) 2020-06-23 13:20:01 -03:00
Mikhail Mikheev 01358de643 fix default safe return 2020-06-23 19:57:30 +04:00
Mikhail Mikheev c925449db2 fix apps types, fix lastTimeUserLoggedInForSafes type 2020-06-23 19:38:09 +04:00
Mikhail Mikheev 21ae4800c9 fix getDefaultSafe return type 2020-06-23 19:09:24 +04:00
Mikhail Mikheev f8d6ad4ca2 more fixes for pendingCreationTx 2020-06-23 19:06:23 +04:00
Mikhail Mikheev 96ffd52266 fix pendingSafeTx type issues 2020-06-23 19:05:42 +04:00
Mikhail Mikheev 8f0cccdb59 Fix token storage type errors, remove unused functions 2020-06-23 19:03:02 +04:00
Mati Dastugue 6d2638410f Set address book suggestions 2020-06-23 10:36:30 -03:00
Mikhail Mikheev e7c012d5d1 Fix addressbook type errors 2020-06-23 17:33:57 +04:00
Agustin Pane ebb02df721
(Fix) Fix undefined for maxValue validator in case there is no token selected (#1031)
* Fix undefined for maxValue validator  in case there is no token selected

* Add condition on validator

* Fix reset form status

* Force the re-validation on the amount field

* Fix paste address
2020-06-23 10:28:12 -03:00
Mikhail Mikheev 18f03b8bc1 typing loadFromStorage wip 2020-06-23 13:53:10 +04:00
nicolas 8c2d67897d
Adding Aave and Sablier apps (#1045) 2020-06-22 16:27:08 -03:00
Mati Dastugue 768c12e975 Merge branch 'development' of github.com:gnosis/safe-react into feature/supportCustomTX 2020-06-22 12:18:09 -03:00
Agustin Pane 231a9a7d35 Remove types 2020-06-22 12:05:08 -03:00
nicolas 2f46268fdf
Fix condition in TX sent from safe-apps (#1037)
* fix condition

* add type
2020-06-22 11:12:03 -03:00
Agustin Pane cc6aa13451 Fix types 2020-06-19 20:00:24 -03:00
francovenica b02924f5ef
Adding test (feature) (#1030)
* data-testid for load and create safe

* fix connect button id

* removed buttons data-testid property
2020-06-19 19:06:53 -03:00
Mati Dastugue 4241d1fa96 Fix TS types 2020-06-19 14:24:28 -03:00
Agustin Pane caa94c879b Types 2020-06-19 13:02:54 -03:00
Agustin Pane 5c00d51c3c Remove types on loadFromStorage 2020-06-19 12:21:24 -03:00
Agustin Pane 3283bf1dc6 Add types 2020-06-19 11:18:33 -03:00
Agustin Pane bcb468e3ec Fix race condition 2020-06-19 11:07:23 -03:00
Agustin Pane fe7e4b5536 Merge branch 'development' of https://github.com/gnosis/safe-react into 1013-undefined-error 2020-06-19 10:00:56 -03:00
Mati Dastugue 45ca501c60 Fix value bug + preserve values when changing switch 2020-06-18 20:14:53 -03:00
Mati Dastugue 3628ee9b5f Merge branch 'development' of github.com:gnosis/safe-react into development 2020-06-18 16:18:07 -03:00
Mati Dastugue 84fae2e845 Add support for customTX 2020-06-18 16:17:47 -03:00
Mati Dastugue a5b4585049
Merge pull request #1010 from gnosis/feature/txsCollectibles
Collectibles Transactions + Add WalletLink Support
2020-06-18 11:33:21 -03:00
nicolas 813619c123
hide sapp iframe until it loads completely (#1020)
* hide sapp iframe until it loads completely

* review changes

* remove code

* moving type

* adding styled-components types

* fix TS error

* refactor iframe loading
2020-06-18 14:03:12 +04:00
Fernando 0296a670e7
(Fix) [Contract Interaction] Support array-like arguments (#1009)
* Add `ArrayTypeInput` to support array type values

- also updated types for ContractInteraction/utils

* Update placeholder message

* Support fixed size arrays

- refactored how Field's key is generated due to conflicts with final-form library and `[]` in the name
- also simplified validation for array-like fields, as it messed with arguments of type `T[][2][][3]`
2020-06-18 13:53:49 +04:00
Mati Dastugue 75ee00caec
Fix methodToCall variable 2020-06-16 13:05:43 -03:00
Agustin Pane 336413c8e5 Fix undefined for maxValue validator in case there is no token selected 2020-06-16 09:29:12 -03:00
Mati Dastugue b5f73c8e3c Fix typo. Add Typescript types 2020-06-13 15:50:15 -03:00
Mati Dastugue 552611d779 Fix typo in function name + Add Wallet link 2020-06-12 16:35:24 -03:00
Mati Dastugue 678d7ed5a4 Merge branch 'development' of github.com:gnosis/safe-react into feature/txsCollectibles 2020-06-11 21:35:29 -03:00
Agustin Pane 6d1a349d87
(Fix) - Identicons fix (#1004)
* Replaces old blockies dependency with ethereum-blockies-base64

* Add types

* Refactor as functional component

* Simplify identicon logic

* Simplify identicon styling logic

* Simplify identicon styling logic
2020-06-11 12:13:14 -03:00
Mati Dastugue 027b8ccc51 Merge with dev 2020-06-10 11:39:15 -03:00
Mati Dastugue a3541d8a33 Add support for collectibles 2020-06-10 11:32:30 -03:00
Fernando 41ec0786b7
(Refactor) Update `dataDecoded` structure (#995) 2020-06-09 16:15:31 -03:00
nicolas 509aefe286
fix config (#1002) 2020-06-09 13:19:17 -03:00
nicolas ea1662bc6f
Safe apps url config (#1001)
* safe-react-apps  url from config and add request app

* Adding types

* safe-react-components bump

* extracting types

* add return type

Co-authored-by: lukasschor <lukas.schor@gnosis.pm>
Co-authored-by: Mati Dastugue <matias.dastugue@altoros.com>
Co-authored-by: Fernando <fernando.greco@gmail.com>
Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
2020-06-09 11:34:43 -03:00
Mikhail Mikheev 8f9cd58d4e
Merge pull request #985 from gnosis/fix/#983-support-ens-for-contract-interaction
(Fix) [Contract Interaction] Support ENS for contract address
2020-06-09 18:11:28 +04:00
Mikhail Mikheev 6d56286c02 Merge branch 'development' of github.com:gnosis/safe-react into 982-fiatbalances-dont-show 2020-06-09 14:04:28 +04:00
Mikhail Mikheev cdbdf69829
Merge pull request #996 from gnosis/fix/#994-contractInteraction-no_data-for-abi-field
(Fix) Properly identify methods to interact with
2020-06-09 12:49:24 +04:00
fernandomg 9db0d76fa1 Allow pure functions to be called 2020-06-08 15:54:09 -03:00
Mati Dastugue f7faf3e29c Merge with dev 2020-06-08 13:24:48 -03:00
fernandomg 7d83843b96 properly identify methods to interact with 2020-06-06 17:34:26 -03:00
Fernando cefb33b593
(Fix) [Contract Interaction] Parameter validation (#974) 2020-06-06 10:32:25 -03:00
fernandomg d488436054 avoid populating abi field with invalid data if it's not required 2020-06-05 11:22:35 -03:00
fernandomg 78682a90af add decorator to extract eth address from ENS for contract address 2020-06-05 11:22:35 -03:00
fernandomg 3ac845106b move `isValidEnsName` to utils 2020-06-05 11:22:35 -03:00
fernandomg 45a3719bb0 Merge branch 'development' into fix/#950-parameter-validation-contractInteraction 2020-06-05 11:21:47 -03:00
Agustin Pane ed56191e56 Fix types 2020-06-05 11:08:29 -03:00
Agustin Pane 3deb37da26 Fix types 2020-06-05 09:33:37 -03:00
Agustin Pane 6c857ee02a Merge branch 'development' of https://github.com/gnosis/safe-react into 957-null-balances
# Conflicts:
#	package.json
2020-06-05 09:05:01 -03:00
Mikhail Mikheev 5a7ced92ad
Merge pull request #897 from gnosis/536-notifications-status-labels-sync
Feature: Hide transactions with no confirmations, labels/notifications sync
2020-06-05 14:20:04 +04:00
Agustin Pane e5c6d8040d
(Fix) Null balances (#971)
* Fixs balances will null value

* Fixs collectibles not loading

* Uses useLocation hooks

* Add types

* fix types for useLocation

Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
2020-06-04 17:54:39 -03:00
fernandomg 4d41e813ed Merge branch 'development' into fix/#950-parameter-validation-contractInteraction
# Conflicts:
#	package.json
#	src/routes/safe/components/Balances/SendModal/screens/ContractInteraction/RenderInputParams/index.tsx
#	src/routes/safe/components/Balances/SendModal/screens/ContractInteraction/Review/index.tsx
#	src/routes/safe/components/Balances/SendModal/screens/ContractInteraction/Review/style.ts
#	src/routes/safe/components/Balances/SendModal/screens/ContractInteraction/index.tsx
#	src/routes/safe/components/Balances/SendModal/screens/ContractInteraction/utils/index.ts
#	yarn.lock
2020-06-04 11:17:49 -03:00
Agustin Pane 63193d2429
(Fix) [Contract Interaction] boolean fields (#976)
* Replaces checkbox component with safe apps components

* Refactor input params to use checkbox component for boolean types

* Remove "anys"
Fix boolean values display on review tx

* Remove any

* Fix ts issues

* Exports boolean fn to util function

* Extract input component rendering to another component

* Fixs imports
Add types

* Remove old checkbox component

* Add types

* Add types

* fix `data` string not being updated after modifying a reviewed tx

* fixes required for typescript 3.9.3 upgrade

* bump typescript version

* add travis_wait for build command

* add cache for yarn

* travis wait fix

* remove travis_wait

* Revert "fix `data` string not being updated after modifying a reviewed tx"

This reverts commit 49356054cd93726b058073d3cd2e7a0244fd5914.

* Revert "Revert "fix `data` string not being updated after modifying a reviewed tx""

This reverts commit f2572e68dc59c01d8e4b1eccf975faf4006cd7a7.

Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
2020-06-04 10:56:55 -03:00
Agustin Pane 1a901126df Adds fallback to USD as currency rate selected in case that the data stored is not defined 2020-06-04 10:49:12 -03:00
Agustin Pane 6858a8d6d6 Refactors AVAILABLE_CURRENCIES as enum
Add types for currency values
2020-06-04 10:12:06 -03:00
fernandomg 0cf786e8d1 fix `data` string not being updated after modifying a reviewed tx 2020-06-03 14:04:58 -03:00
fernandomg e3a9945675 add types and fix `useField` usage 2020-06-03 14:04:15 -03:00
fernandomg c946cd98e0 Merge branch 'development' into 536-notifications-status-labels-sync
# Conflicts:
#	yarn.lock
2020-06-03 10:35:26 -03:00
fernandomg 02bb5211a7 fix errors when creating tx in safe v1.0.0
- Code was expecting `ExecutionSuccess` event. That's not part of v1.0.0
- `transactionHash` is part of the tx receipt, so no need to extract it from the event
- `safeTxHash` is calculated client-side, so no longer needed to get it from tx receipt
2020-06-03 10:34:31 -03:00
fernandomg cd77fba5b7 fix useField abi config object param 2020-06-02 13:32:11 -03:00
fernandomg 95a753cbe5 fix 'non-empty-pattern' ts warning 2020-06-02 10:50:32 -03:00
fernandomg 7dfa7af41d add general types to ContractInteraction components 2020-06-02 10:45:55 -03:00
fernandomg 2c0bcfefe6 convert ABIService from class to module and add typings 2020-06-02 10:22:49 -03:00
fernandomg f049f8598d fix styles typing 2020-06-02 10:17:02 -03:00
fernandomg b07f0e90d9 use method `.call` only for the read methods
- review screen then will attempt to evaluate the validity of the write method
2020-06-02 09:04:29 -03:00
fernandomg d4ef317cce Merge branch 'development' into fix/#950-parameter-validation-contractInteraction
# Conflicts:
#	yarn.lock
2020-06-01 23:39:52 -03:00
fernandomg ed995df5b7 simplify call/review buttons
- unify handleSubmit
- use `.call` to identify a failing tx
2020-06-01 23:38:27 -03:00
fernandomg a28c598af1 add title to call-result values 2020-06-01 23:36:39 -03:00
fernandomg 1442f33d5a fix error message format, prevent text overflow 2020-06-01 23:35:35 -03:00
Mati Dastugue 3bcdb80f26
Merge pull request #967 from gnosis/fix/ledger
Fix Ledger issues on Desktop App
2020-06-01 16:54:28 -03:00
fernandomg d5cf8c94ab change `signature` key name to `methodSignature`
There is something down there that mutates the `tx` object in the Review screen and was overwriting the `signature` key with the method's hash
2020-06-01 14:54:42 -03:00
fernandomg 420b9cb58e properly update method selected 2020-06-01 14:51:45 -03:00
Agustin Pane 76eeb17dd2
(Fix) Balances tabs fixs (#973)
* Fix cannot change safe from sidebar

* Removes collectibles header for 1.0.0 safes

* Removes exact path in balances route
2020-06-01 13:50:45 -03:00
fernandomg 45bbbc9967 properly handle submit errors 2020-05-29 21:45:22 -03:00
fernandomg df0562911e hide EthValue if the method set does not require it 2020-05-29 21:44:40 -03:00
fernandomg 394a98b424 create form error component 2020-05-29 21:43:56 -03:00
fernandomg 4de3308069 extend TextField to support submit errors 2020-05-29 21:43:37 -03:00
fernandomg 8e75e999ef fix: transaction details 2020-05-29 14:25:24 -03:00
Mati Dastugue 7b0eb4cf7d Merge branch 'development' of github.com:gnosis/safe-react into fix/ledger 2020-05-29 12:22:41 -03:00
Agustín Longoni 4ddffaab76
Merge pull request #968 from gnosis/issue-964
(Fix) Flags css import
2020-05-29 08:32:10 -03:00
Agustin Pane 971b2ee6d3
(Fix) - Fixs tab selection (#960)
* Fixs tab selection

* Refactor balances tab to use react router
2020-05-29 08:07:32 -03:00
Mikhail Mikheev 710f6a5ab6
Merge pull request #966 from gnosis/fix-awaitingTransactions
Fix app crashing when safeTransactions is undefined
2020-05-29 14:50:17 +04:00
Mikhail Mikheev fda93a53c8 fix generateSafeTxHash typing 2020-05-29 14:00:20 +04:00
Agustín Longoni c0dbfa0dbb fix flags css import 2020-05-28 16:22:51 -03:00
fernandomg 498f9a4d1b Merge branch 'development' into 536-notifications-status-labels-sync
# Conflicts:
#	package.json
#	src/logic/contracts/generateBatchRequests.ts
#	src/logic/tokens/utils/tokenHelpers.ts
2020-05-28 13:51:19 -03:00
nicolas 4065d5a007
Allow to load Safe Apps with ENS names (#911)
* Remove ethereum-ens in favour of web3.eth.ens

* Allow load Apps from ENS names

* remove comment

* review changes

* replace REACT_APP_IPFS_NODE by REACT_APP_IPFS_GATEWAY

* review fixes

* TS Errors

* fix paths

* Fix validtor

* Apps: Move App form to a separate file

* re-build

* review changes

* fix iframeEl type

* remove validation

* fix type

* update web3 version

* remove type in getContentFromENS

Co-authored-by: lukasschor <lukas.schor@gnosis.pm>
Co-authored-by: Mati Dastugue <matias.dastugue@altoros.com>
Co-authored-by: Fernando <fernando.greco@gmail.com>
Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
2020-05-28 12:50:08 -03:00
Mati Dastugue 7a20aaac42
Merge pull request #935 from gnosis/fix/trezor-support
Add Trezor support
2020-05-28 12:23:13 -03:00
Agustin Pane 7a79579238 Revert initial fix
Add default transaction value for safes without outgoing transactions
2020-05-28 12:03:21 -03:00
Agustin Pane cf38e97907
(Feature) #416 - Add releases link (#936)
* - Add releases link

* - Adds border bottom

* Merge branch 'development' into 623-show-more

# Conflicts:
#	src/routes/safe/components/Transactions/TxsTable/ExpandedTx/TxDescription/index.tsx

* fix hooks import casing

* Improves css link

* Fix hooks import

* Fix hooks import

* Link styling

Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
2020-05-28 11:28:57 -03:00
Agustin Pane 2eeb9fc094
Fix icons on send and receive buttons (#962) 2020-05-28 07:33:37 -03:00
fernandomg 4e6741e1b9 fix: set proper transaction statuses 2020-05-28 01:07:05 -03:00
fernandomg 1453de1162 fix: avoid accessing `txHash` if it's not defined
This scenario can be reproduced by rejecting a tx in the owner's wallet
2020-05-28 01:03:08 -03:00
fernandomg aefe721e8f fix: owners column buttons statuses 2020-05-28 01:02:19 -03:00
Mati Dastugue bc2b6da5e4 Fix ledger issue 2020-05-27 21:11:52 -03:00
Mati Dastugue bf5a24d762 Fix merge 2020-05-27 21:08:20 -03:00
fernandomg a68a2d32d0 feature: calculate `safeTxHash` on client-side 2020-05-27 17:55:41 -03:00
fernandomg a5a99167f4 fix: set default values for decimals and symbol to ETH 2020-05-27 14:34:25 -03:00
fernandomg 62f1a82793 chore: fixes after merge 2020-05-27 13:37:51 -03:00
nicosampler afa1f92d3d Fix app crashing when safeTransactions is undefined 2020-05-27 13:17:11 -03:00
fernandomg 43acdfb95c Merge branch 'development' into 536-notifications-status-labels-sync
# Conflicts:
#	src/routes/safe/components/Balances/index.tsx
#	src/routes/safe/components/Transactions/TxsTable/index.tsx
#	src/routes/safe/container/hooks/useLoadSafe.tsx
#	src/routes/safe/container/index.tsx
#	src/routes/safe/store/actions/fetchTransactions.ts
#	src/routes/safe/store/actions/transactions/addOrUpdateTransactions.ts
#	src/routes/safe/store/middleware/notificationsMiddleware.ts
#	src/routes/safe/store/models/transaction.ts
#	src/routes/safe/store/reducer/transactions.ts
2020-05-27 13:12:09 -03:00
fernandomg 85b132de6b refactor: FetchTransactions.ts from class to module 2020-05-27 13:04:10 -03:00
fernandomg e08083743d refactor: fetch safe and tokens simultaneously 2020-05-27 10:13:28 -03:00
fernandomg 823fc40f7d refactor: simplify safe's fields selectors 2020-05-27 10:10:13 -03:00
fernandomg d0d19b0b3e refactor: use default values for immutable getters 2020-05-27 10:09:28 -03:00
fernandomg 7c2f27cf2d chore: clean file 2020-05-27 08:56:47 -03:00
fernandomg 3b94bc906c refactor: wrap `generateBatchRequest` into a more meaningful/descriptive funciton 2020-05-27 08:55:32 -03:00
fernandomg 6fb71d1ec4 chore: add types
Not sure right now how to properly deal with `d.ts` files. So, I decided to let those types that depend on others inside a module.
2020-05-27 08:55:30 -03:00
Agustin Pane de4d564955
(Feature) #554 - Safe creation tx details (#894)
* ChecksumAddresses when add new addressBook entry
ChecksumAddresses when add new owner
ChecksumAddresses when replaces owner

* Refactor expandedTx to show creation safe data

* Export CreationTx, IncomingTx and OutgoingTx render to components
Rename components

* Renames addMockSafeCreationTx to getCreationTx

* Avoid unnecessary fetch of creation tx after the first fetch

* - Loads creationTx once the safe loads
- Adds addOrUpdateTransactions.js
- Adds fetchSafeCreationTx.js
- Removes creationTx logic from fetchTransactions.js
- Updates notificationsMiddleware.js

* Fixs getAwaitingTransactions

* Remove creationTx selector

* Merge branch 'development' of https://github.com/gnosis/safe-react into 416-contract-version-improvements

# Conflicts:
#	src/routes/safe/components/Balances/index.tsx
#	src/routes/safe/container/index.tsx

* Merge branch 'development' of https://github.com/gnosis/safe-react into 416-contract-version-improvements

# Conflicts:
#	src/routes/safe/components/Balances/index.tsx
#	src/routes/safe/container/index.tsx

* Fix date column in safe creation

* Add copy and etherscanlinks to creation safe details

* Fix hooks import
2020-05-26 15:00:26 -03:00
fernandomg 1947f1c470 refactor: import web3ReadOnly as web3 2020-05-26 08:19:09 -03:00
fernandomg bce4cf60e0 fix: use selector for `cancellationTxs`.
This will prevent errors when there's no `cancellationTx` existent for the current safe as the selector defaults to an empty Map.
2020-05-26 08:17:20 -03:00
Mikhail Mikheev 5803ca0ea4 fix hooks import casing 2020-05-25 16:07:40 +04:00
Mikhail Mikheev 9e39b81f9c Merge branch 'development' of github.com:gnosis/safe-react into empty-space-validator 2020-05-25 16:01:12 +04:00
Mikhail Mikheev c8e9ef9a3a fix hooks import casing 2020-05-25 15:43:00 +04:00
fernandomg 9b257d901a fix: properly update txs status on safe's startup 2020-05-23 15:51:23 -03:00
fernandomg e9153c54d4 fix: wallet connection 2020-05-23 11:24:21 -03:00
Mikhail Mikheev fc89af57aa
Merge pull request #952 from gnosis/stepper-transparent-bg
Bug: Stepper component non-transparent bg
2020-05-23 12:10:24 +04:00
fernandomg 1742f84b86 fix: `Hooks` import 2020-05-23 03:08:58 -03:00
fernandomg bbf6d4a28d Merge branch 'development' into 536-notifications-status-labels-sync
# Conflicts:
#	src/routes/safe/container/index.tsx
2020-05-23 02:58:32 -03:00
fernandomg 00b1c7c3b0 chore: change hooks imports to relative paths 2020-05-23 02:53:14 -03:00
fernandomg 66b02b401d fix: update mocked tx status based on the tx receipt 2020-05-23 02:38:25 -03:00
fernandomg 46c9ac3e03 refactor: update tx status when provider changes 2020-05-23 02:09:21 -03:00
fernandomg 2c41105474 feature: set tx's owners pending status 2020-05-23 01:54:37 -03:00
fernandomg 165d0ff0d6 feature: add owner's _pending_ bullet icon 2020-05-22 23:49:22 -03:00
fernandomg 92ad62800e fix: typos and types 2020-05-22 23:48:24 -03:00
fernandomg 5a02cbfc9a fix: remove old `index.jsx` file 2020-05-22 17:19:35 -03:00
fernandomg 209d373516 fix: leave blank the default token for Send Funds modal 2020-05-22 17:05:27 -03:00
fernandomg 926795eef1 refactor: transactions table info and details 2020-05-22 16:50:24 -03:00
fernandomg 6c1bc100b6 refactor: allow adding mocked transactions 2020-05-22 16:50:17 -03:00
fernandomg 376af39f3c refactor: notifications middleware 2020-05-22 16:50:10 -03:00
fernandomg c9a01f6892 refactor: modify how transactions returned by server are processed 2020-05-22 16:49:59 -03:00
fernandomg 89261d0ed3 refactor: (cancellation)transactions reducers and actions 2020-05-22 16:49:48 -03:00
fernandomg d0dbd8a28c fix: prevent identicon error when no address is provided 2020-05-22 16:49:08 -03:00
fernandomg b4a470a770 chore: fix build after development merge 2020-05-22 16:48:57 -03:00
Mati Dastugue 5981ee111d Fix file name 2020-05-22 13:09:57 -03:00
Mati Dastugue f9493c1cd7 Merge with develop 2020-05-22 12:27:55 -03:00
Agustin Pane 425f1ad3e5
(Fix) - #623 Fixes short tx data (#928)
* Fixs short tx data

* Feedback
2020-05-22 11:46:20 -03:00
fernandomg 1be3aa0e3a Merge branch 'development' into 536-notifications-status-labels-sync
# Conflicts:
#	package.json
#	yarn.lock
2020-05-22 11:25:06 -03:00
Mikhail Mikheev 203c8b0ab3
Remove react_app_apps_disabled env var (#953) 2020-05-22 09:31:24 -03:00
Mikhail Mikheev 14d9a3a78f fix required validator 2020-05-22 14:33:08 +04:00
Mikhail Mikheev 26e9c1cb67 add transparent bg to stepper root in mui theme 2020-05-22 13:56:53 +04:00
nicolas 1ae63f6784
Clean up dependencies (#944)
* Clean up dependencies

* Fix css mixing not being called
2020-05-22 13:48:27 +04:00
fernandomg fb31bcad2b Merge branch 'development' into 536-notifications-status-labels-sync 2020-05-22 00:36:43 -03:00
Agustin Pane 7cc6349785
Fix: app crashing when safe address is null (#947)
* - Fixs non null check on notificationsMiddleware.ts

* - Fixs non null check on notificationsMiddleware.ts

* - Removes yarn.lock changes
2020-05-21 14:57:03 -03:00
Mati Dastugue 3a30db8068 Merge with dev. Fix ts 2020-05-21 13:06:00 -03:00
nicolas 982d79c0d0
Migrating to Typescript and bringing back react-scripts (#933)
* remove flow from src

* remove unused files

* remove rules from eslint

* replace absolute paths

* add tsconfig

* update package.json

* remove babel-polyfill

* eslint fix

* remove jsconfig.json

* replace .scss by .module.scss

* Revert "replace absolute paths"

This reverts commit e430c71263a1a4c190d50e72271bba7ea6356bc4.

* replace ~/ by src/

* js fixes

* scss fixes

* fix unused vars

* adding eslint

* adding back config folder

* fix eslint and prettier

* force build

* fix baseUrl

* rename js/jsx to ts/tsx

* some rules

* rename files with jsx syntax to tsx

* fix app build

* Revert "fix baseUrl"

This reverts commit 523f29c7b61e14dd6be0ffc3cd199ff399157467.

* some fixes

* replace ts to tsx

* some TS fixes

* more tsc changes

* more tsc fixes

* more fixes

* more ts fixes

* more fixes

* last fix

* fixes

* prettier fix

* some fixes

* fix safe information aligment

* add yarn.lock

* fix blockies and build memory space

* include blockies in tsconfig

* fix blockies

* fix blockies import

* fix Identicon component

* fix build command

* Fix ref type in Identicon

* add libusb-1.0-0-dev to travis

* build command fix [2]

* build command fix [3]

* fix margin layout

* Update  yarn lock

* remove @ts-ignore

* hide Critial dependency

Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>
Co-authored-by: Mati Dastugue <matias.dastugue@altoros.com>
2020-05-20 16:15:21 -03:00
Mati Dastugue 593b077ec4 Enable trezor 2020-05-19 17:52:09 -03:00
Mati Dastugue 51f6c9a3e8 Fix trezor connect 2020-05-19 17:42:41 -03:00
Mikhail Mikheev 6377c80e4f
Feature #739: Deployment screen improvements (#908)
* Dep bump

* add deps to useEffect hook

* Revert "Dep bump"

This reverts commit f22795296cd7989ecda594ffef4478c2f5d92911.

* fix / redirect

* Fix currency fetch 400 error

* extract tab labels to components

* fix currency dropdown not showing, rename DropdownCurrency component to CurrencyDropdown

* Fix loader component type

* move steps to a separate file

* make confirmation banner green

* track safe creation in analytics

* add back button

* remove width style from backbutton

* remove width style from backbutton (prev was just commented)

* remove components-v2 and use safe-react-components

* fix duplicated import

* bring back addressinfo component because it was not included in safe-react-components

* Fix broken import (CurrencyDropdown component was renamed)

* add CustomIconText component to fix transaction tab crash

* bring back ListLayoutComponent
2020-05-19 15:55:35 +04:00
Agustin Pane df8897c284
Adds copy to clipboard in owners table (#918) 2020-05-15 11:59:10 -03:00
nicolas 77e4987919
Inform the user if a Safe-App initiate a malformed TX (#895)
* @gnosis.pm/safe-react-components from NPM

* Infor is TX is malformed

* review fixes

* improve names

* review fixes

* trigger build
2020-05-14 10:50:04 -03:00
Fernando c396b3eaf8
(Feature) Easier Smart Contract Interaction (#741) 2020-05-13 17:06:01 -03:00
Agustin Pane 30ab99c79c
(Fix) #876 - Checksummed addresses (#884)
* Checksum addresses when build address book from localStorage
Checksum owner's addresses when build safe from localStorage

* ChecksumAddresses when add new addressBook entry
ChecksumAddresses when add new owner
ChecksumAddresses when replaces owner

* Adds checksumAddress function
Replaces old web3 usage with checksumAddress

* Refactors all web3.utils.toChecksumAddress with checksumAddress()

* Fix duplicating var name
2020-05-12 15:33:39 -03:00
Mikhail Mikheev 7c141ca1ad Fix currency fetch 400 error 2020-05-12 13:24:18 -03:00
Mati Dastugue 30105ecda0 Disable trezor fot the first release 2020-05-12 11:40:19 -03:00