Commit Graph

2127 Commits

Author SHA1 Message Date
fernandomg 3858daf649 fix owners typing 2020-07-14 18:33:25 -03:00
fernandomg 32598bbe87 fix relative path 2020-07-14 17:04:39 -03:00
fernandomg 012f0a9693 Extract [string, string] as ModulePair type 2020-07-14 17:02:15 -03:00
fernandomg 79e80ea5e4 replace ternary with nullish coalescing operator 2020-07-14 16:43:32 -03:00
fernandomg 342acd27c4 use `JSX.Element` and fix imports 2020-07-14 16:42:05 -03:00
fernandomg 5cb1eb483a extract `TableColumn` interface to a common place and use where necessary 2020-07-14 16:22:22 -03:00
fernandomg 1fb191b7ae fix `valueInWei` so its always a string 2020-07-14 16:01:00 -03:00
fernandomg 92cb386cc7 remove usage of template string as `ethBalance` is only of string type now 2020-07-14 15:57:39 -03:00
fernandomg d9e428c4ed create `ProviderState`
done out of consistency, but with `ProviderRecord` it would have been enough
2020-07-14 15:00:37 -03:00
fernandomg c314910713 use `TokenState` in AppReduxState 2020-07-14 13:14:37 -03:00
fernandomg 4e18a416ee create `TokenState` 2020-07-14 12:57:10 -03:00
nicosampler 475e95bf5f Allow HX values 2020-07-14 10:15:04 -03:00
fernandomg f96eb3b8da rename SafeVersion interface 2020-07-14 09:21:11 -03:00
fernandomg b709f7774a fix ethBalance typing, set it to only `string` type 2020-07-14 08:39:48 -03:00
fernandomg 8bdfdb906c fix type for `AddressInfo` 2020-07-14 08:36:25 -03:00
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