Commit Graph

3031 Commits

Author SHA1 Message Date
Daniel Sanchez f782c35e31
Clean dependencies warnings (#1716)
* Add resolution for babel version

Update @rescrips/cli to be compatible with react-scripts 4

* Upgrade packages to avoid install warnings
2020-12-11 20:42:13 +01:00
nicolas c9a06ec1c2
Handle console erros and warnings (#1709)
* Remove Warning: React.createFactory() is deprecated

* make TS recognize Window definition by adding an empty export

* Silent MM warning  ethereum.autoRefreshOnNetworkChange

* remove warning when requesting data from contract with null address.
2020-12-11 19:38:16 +01:00
Mikhail Mikheev 94175a6970
Feature #1593: Support promise-based api of Safe Apps SDK (#1594)
* use multiple versions of safe apps sdk

* use multiple versions of safe apps sdk

* Type fixes

* wip error for multiple versions

* fix multiple sdk versions

* app communicator wip

* communicator wip

* getEnvInfo handler

* update sdk

* app communicator wip

* sdk dep bump

* promisified getSafeInfo

* sendTransactions handler wip

* don't send a response if a handler doesnt return anything

* add handler for transaction sending

* wip rpc call handler

* rpc handler

* rpc handler fix

* V2 Communicator

* remove tsbuildinfo

* fix communicator

* fix error handling for rpc requests

* rpc call fixes

* Update sdk

* Adapting app to use formatters wip

* use messafe formatter from sdk

* Sdk update

* update safe apps sdk version, remove ethBalance from response for safe apps sdk v1

* bump sdk to beta version

* update yarn.lock

* update yarn.lock

* update yarn.lock

* use beta version of the sdk

* enhance validation check

* update dependecies

* Update to python3 dependencies

* Revert "Update to python3 dependencies"

This reverts commit 1332940c77cb649b53ec3e1adfdca10b88e24a87.

* fix transaction params type import

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-12-11 12:31:55 +04:00
Fernando 71f1ea7ad1
(Fix) Duplicated address validation (#1699)
* use createStyles/makeStyles

* simplify `addressBookQueryParamsSelector`

* avoid using `createSelector`

as memoization in this scenario is not working as expected and list is not refreshed

* refactor `uniqueAddress` curried function and strategy to validate

- `selectedEntry` being `null` made the code harder to follow

* fix `uniqueAddress` validator tests

* use arrow function
2020-12-10 16:07:38 +01:00
Fernando 4079ff9abe
add missing parameters to TransferDescription (#1686) 2020-12-10 00:25:20 +01:00
nicolas 2fe1fb2794
Remove safe address tracking for GA (#1683)
* reactGA bump

* remove address from GA

* remove unneeded option

* Disable travis cache

* Set travis to use latest linux build image

* Update to use python3 dependencies

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-12-09 20:45:06 +01:00
Agustin Pane 9175552488
(Feature) - #1656 Tx is sent to backend even if not signed (#1672)
* Fix black notification

* Fix executing tx even if the user rejected it

* Fix hidden metamask error code

* Fix proccessTransaction notifications and metamask sign reject handling
2020-12-09 18:02:09 +01:00
Fernando f161875902
(Fix) Duplicated Owner Addresses on Safe Creation (#1666)
* add form level validation for OwnersForm

- also fixed `calculateValuesAfterRemoving` function that removed an owner's row by clicking on the trash icon

* add tests for `calculateValuesAfterRemoving` function

* reformat with prettier
2020-12-09 12:55:55 +01:00
Daniel Sanchez 258790dcca
Backmerge hotfix v2.16.2 (#1702) 2020-12-04 19:28:46 -03:00
Daniel Sanchez 9a9bb3c775
Upgrade dependencies (#1691)
* Upgrade dependencies without breaking changes

* Upgrade react-scripts to v4

* Use import instead of require in icons

* Update styles dependencies

* Remove react-app-rewired as is deprecated and not needed anymore

* Update prettier and testing-library/react dependencies

* Upgrade @ledger for desktop app

* Fix types in fetchSafeTokens test

* Use rescripts to remove ESLint plugin from react-scripts webpack

* Disable travis cache

Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
2020-12-04 18:38:49 +01:00
Agustin Pane c0a8d24828
(Fix) - Shows a timeout message on app timeout (#1654)
* Shows a timeout message on api timeout

* Improves loading text

* Improves clear timeout

* Fix typo

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-12-03 08:56:34 -03:00
Daniel Sanchez 40e0a7b6fb
Merge pull request #1681 from gnosis/release/v2.16.0
Backmerge Release v2.16.0
2020-12-01 17:40:00 +01:00
Daniel Sanchez 08bd74229f
Merge pull request #1657 from gnosis/release/v2.16.0
Release v2.16.0
2020-12-01 11:10:25 +01:00
Daniel Sanchez 265f43e72e Disable Ledger and Trezor in Volta network 2020-11-30 19:47:08 +01:00
Daniel Sanchez d5abbd7aae Update WalletConnect app to show correct logo 2020-11-30 19:28:10 +01:00
Fernando 76ef99fa96
(Fix) Native Coin transfer not shown (#1670)
* allow to display native coin transfers in the expanded view

* fix issue with fragment being passed to material-ui menu
2020-11-30 17:10:42 +01:00
Daniel Sanchez 8d73ebd177 Lower sentry sample rate to avoid threshold overflow 2020-11-30 15:15:27 +01:00
Daniel Sanchez a7cf0ffbf2 Rollback bnc-onboard dependency 2020-11-30 09:49:51 +01:00
nicosampler 5f15090df5 update safe-apps legend 2020-11-27 11:04:55 -03:00
Daniel Sanchez 36115e098f Set wider aspect ratio to electron app 2020-11-27 13:17:34 +01:00
Daniel Sanchez cb11099304 Upgrade sentry deps to latest version
Upgrade electron to v9.3.5 to avoid v9.3.4 language bug
2020-11-27 13:17:00 +01:00
Daniel Sanchez 4e6ce1bef0 Set v2.16.0 2020-11-27 12:23:48 +01:00
Daniel Sanchez 7273da91fe Add Sablier, WalletConnect and TX-Builder latest versions 2020-11-27 12:22:59 +01:00
nicolas ba680f7158
SafeApps new layout (#1600)
* speed-up load time  for safe-apps

* show loading status until all the apps are loaded

* Add App route

* Add cards for each safe-app

* move logic to AppFrame

* add basic skeleton styles

* css fixes

* fix image sizes

* add transition animation to skeleton

* remove duplicated code

* Modals

* refactor skeleton

* refactor layout using flexbox

* make content clickable in cards

* cards container as css-grid

* remove fixed width for cards

* replace auto by 1fr

* remove margin for cards

* add card component and remove some css

* rename buttons

* add margin to app list

* refactor useAppList

* fix disclaimer always flashing

* fix pointer cursor for Add app icon

* add styled component keyframe

* update safe-react-components

* fix margin and card height, icon size

* fix margin in iconImg and app name

* fix margins on apps container (breadcrumb area)

* remove style comment

* fix margin on HelpCenter
/ remove overflow in sidebar

* Improve featuresEnabled for sidebar and apps page.

Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>
Co-authored-by: Fernando <fernando.greco@gmail.com>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-11-26 18:40:29 +01:00
nicolas 0ecd70fdbc
Support Circles Safes in frontend on xDai (#1636)
* fix web3 issue

* update settings

* get masterCopy Address from backend

* fix prettier errors

* Fix Circles typo

* Change Circles detect logic

* Use sameAddress to compare mastercopy addresses

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-11-26 18:00:19 +01:00
Mati Dastugue e3a8b9fe2a
Remove dappId from OnboardJS connection (#1627)
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
2020-11-26 12:31:56 -03:00
Fernando fc1250d528
(Feature) Spending Limit (#1637)
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-11-25 15:59:17 -03:00
Fernando dca9f19fd0
(Fix) remove module feature (#1646) 2020-11-25 15:35:09 -03:00
Daniel Sanchez 53a1dcf0aa
Merge pull request #1644 from gnosis/hotfix/v2.15.1
Backmerge Hotfix v2.15.1
2020-11-25 10:55:56 +01:00
Daniel Sanchez 9ef6d36ba1
Merge branch 'development' into hotfix/v2.15.1 2020-11-24 09:09:48 +01:00
Daniel Sanchez 81a9baf9b8
Merge pull request #1640 from gnosis/hotfix/v2.15.1
Hotfix v2.15.1
2020-11-23 11:24:33 +01:00
Daniel Sanchez 3e6bf5b9d4 Set v2.15.1 2020-11-23 10:08:54 +01:00
Agustin Pane 7e2bd37647 (Fix) Geth nodes gas estimation errors (#1635)
* Replaces getNonGETHErrorDataResult with getDataFromNodeErrorMessage
Updates the extraction of data from the error message to include new GETH nodes version

* Add tests for new GETH nodes
2020-11-23 10:08:18 +01:00
Agustin Pane 6ed1e2ea18
(Fix) Geth nodes gas estimation errors (#1635)
* Replaces getNonGETHErrorDataResult with getDataFromNodeErrorMessage
Updates the extraction of data from the error message to include new GETH nodes version

* Add tests for new GETH nodes
2020-11-20 17:56:29 +01:00
Daniel Sanchez 9fdf4e298f
Bump dependencies without breaking changes (#1632) 2020-11-20 09:26:08 +01:00
Agustin Pane 592999da3f
Uses addressbook names in the review remove owner (#1631) 2020-11-19 16:40:49 +01:00
Agustin Pane e482d3259b
(Fix) - #1605 QR Input address fix (#1612)
* Add types

* Fix missing address in input field

* Fix reopening file upload modal once closed

* Error first callback onFileUploadHandlerClose

* Adds error text for qrs that can't be read
Fixes popping up again for wrong qr codes

* Fix opening modal

Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
2020-11-19 12:22:48 -03:00
Agustin Pane 486bb4b203
(Feature) - Replaces createProxy with createProxyWithNonce method no safe creation (#1630)
* Replaces createProxy with createProxyWithNonce method no safe creation

* Updates estimationGas method

* Moves safeCreationSalt as a parameter

* Fix default export

Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
2020-11-19 09:19:31 -03:00
Agustin Pane 8876469166
(Fix) - Adds operation call check on isTokenTransfer (#1613)
* Adds operation call check on isTokenTransfer

* Add comment in unclear if

Co-authored-by: Fernando <fernando.greco@gmail.com>
Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-11-18 15:11:20 -03:00
Agustin Pane 3f6a8ee3f8
(Feature) - EWC/Volta ENS support on web3 patch (#1596)
* Adds patch-package and postinstall

* Creates a patch to add EWC and Volta in web3-eth and web3-eth-ens

* Adds support for ewc in isValidEnsName

* Update web3 ewc patch

* Enables ens lookup for ewc and volta

* Fix eslint

* Update patch
Fix patch-package script in package.json

Co-authored-by: Fernando <fernando.greco@gmail.com>
Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-11-18 14:42:00 -03:00
Daniel Sanchez a4cdf3db70
Merge pull request #1628 from gnosis/release/v2.15.0
Backmerge release v2.15.0
2020-11-18 16:23:55 +01:00
Daniel Sanchez 37877d7fba
Merge branch 'development' into release/v2.15.0 2020-11-18 15:51:24 +01:00
Agustin Pane 0913f2539f
Update legal text (#1624) 2020-11-18 11:23:09 -03:00
nicolas 1d3d61d812
Merge branch 'development' into release/v2.15.0 2020-11-18 10:08:53 -03:00
Daniel Sanchez c36a610cbe
Merge pull request #1625 from gnosis/release/v2.14.1
Electron fixes for Release v2.14.1
2020-11-18 13:30:08 +01:00
nicolas 996d339982
Layout refactor (#1604)
* refactor layout using flexfox

* comments

* fix sidebar css

* remove overflow y

Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>
2020-11-17 15:47:17 -03:00
Daniel Sanchez 88052028d0 Fix electron comment message 2020-11-17 17:57:32 +01:00
Daniel Sanchez fb3ad8c0df Merge branch 'master' into release/v2.14.1 2020-11-17 17:56:56 +01:00
Daniel Sanchez 8d69d958d8 Update release artifacts upload
Disable dev tools in production
2020-11-17 16:20:28 +01:00
Daniel Sanchez 456d28c37d Change hw-transport-node-hid for hw-transport-node-hid-singleton 2020-11-17 15:37:59 +01:00