Commit Graph

3129 Commits

Author SHA1 Message Date
Daniel Sanchez 02ba83cef2
Bump dependencies (#1529)
* Upgrade Typescript to v4.0.3

* Upgrade dependencies with minor changes

* Cleanup yarn.lock file

* Upgrade types dependencies

* Fix inconsistency with @typescript/eslint caused by react-scripts

* Fix eslint issues

Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
2020-10-28 12:48:31 +01:00
Daniel Sanchez 27fbb38ccf
Update Sablier app (#1525) 2020-10-27 16:52:32 +01:00
Mati Dastugue cb051b1955
Collectibles List - Manage list when no collectibles (#1419)
* Bump new onboard.js version

* Remove component

* Fix travis rollback bug

* Fix Typos + Updated logic

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
2020-10-27 11:53:03 -03:00
Fernando aa181fb9a1
(Fix) Modules not shown in Advanced Settings (#1516) 2020-10-27 11:04:44 -03:00
Agustin Pane 4ce8917f34
(Bug) - #1503 Fix collectibles groups is not removed when the last item from it is sent (#1511)
* Remove default export with const

* Filter collectibles group with user's available nftAsset

* Improves filter

* Fix duplicated assets
2020-10-26 10:58:01 -03:00
Agustin Pane 058fec3dbc
(Feature) - Send erc721 collectible with proxy contact (#1508)
* Removed containsMethodByHash condition check, now we always expect that safeTransferFrom is defined on the erc721 contract

* Types

* More types

* Add try catch on estimateGas

* Add try catch on submit transaction

* More types

* More types

* More types

* ReviewTx modal props

* Fix SendCollectible modal types

* Add guard for safeAddress

* Move some imports

* Fix DispatchReturn types

* Fix import of Dispatch

* Remove console log

* Adds logs

* Fix import

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-10-26 10:11:52 -03:00
Daniel Sanchez 95d102d337
Fix show token balances after sending out all tokens (#1521) 2020-10-26 11:34:53 +01:00
Mikhail Mikheev 1c53167a9a
Feature #1480: Handle rpc calls from apps SDK (#1519)
* sdk version update

* point sdk to a newer commit

* Update iframe message handler

* ConfirmTransactionModal tweaks to support params

* handle sendTransactionsWithParams, display safeTxGas in app tx modal

* new sdk version

* yarn lock update

* install libudev in travis

* update sdk version

* Estimating safeTxGas for Safe Apps Txs WIP

* safetxgas estimation warning wip

* gas estimation in confirm transaction modal

* yarn lock update

* update sdk version

* add handler for rpc calls

* use send method

* update sdk version

* dep bump

* wip

* update sdk

* remove unused interface and console.log

* remove async, tweak check for send func

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
2020-10-26 13:53:01 +04:00
Daniel Sanchez 5f3a9ef1a9
Update calculateGasPrice to fetch from config (#1517)
* Update calculateGasPrice to fetch from config

* Remove unused gas estimation function

* Remove unused gasCost estimate function

* Add gasParameter to gasPriceOracle
2020-10-23 17:18:09 +02:00
Mati Dastugue c9e9fe8ca6
Enable/Disable wallets by configuration flag (#1504)
* Add disableWallets key to config

* Fix merge issues
2020-10-23 13:30:09 +02:00
nicolas 8aeb5a1c01
Add coin by network (#1505)
* Add coin by network

* Join tests in same file

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-10-23 12:58:46 +02:00
Mikhail Mikheev 56430b5966
Feature #1440: Handle transactions with set safeTxGas from Safe Apps (#1442)
* sdk version update

* point sdk to a newer commit

* Update iframe message handler

* ConfirmTransactionModal tweaks to support params

* handle sendTransactionsWithParams, display safeTxGas in app tx modal

* new sdk version

* yarn lock update

* install libudev in travis

* update sdk version

* Estimating safeTxGas for Safe Apps Txs WIP

* safetxgas estimation warning wip

* gas estimation in confirm transaction modal

* yarn lock update

* review fixes

* Change estimation loading msg, use imported vars to index payload type

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-10-22 17:43:59 +04:00
Daniel Sanchez 2e5df72296
Merge pull request #1507 from gnosis/hotfix/v2.13.1
Backmerge hotfix v2.13.1
2020-10-21 16:07:54 +02:00
Daniel Sanchez 03ac7dde62
Merge pull request #1506 from gnosis/hotfix/v2.13.1
Hotfix v2.13.1
2020-10-20 18:12:08 +02:00
Daniel Sanchez bc5878b5d4 Remove release/v2.13.0 branch from travis file 2020-10-20 17:53:47 +02:00
Daniel Sanchez f46c4f72ad Set v2.13.1 2020-10-20 17:47:25 +02:00
Daniel Sanchez 24c917d821 Set warn level to batch request catch 2020-10-20 17:46:09 +02:00
Daniel Sanchez 0eef6932b1
Merge pull request #1496 from gnosis/release/v2.13.0
Backmerge Release v2.13.0
2020-10-20 10:55:41 +02:00
Daniel Sanchez b4faa3b617
Merge branch 'development' into release/v2.13.0 2020-10-19 18:11:46 +02:00
Daniel Sanchez c6d54b3eb5
Fix etherscan links (#1497) 2020-10-19 18:11:21 +02:00
Daniel Sanchez 319ad7554e
Merge pull request #1493 from gnosis/release/v2.13.0
Release v2.13.0
2020-10-19 14:45:26 +02:00
Daniel Sanchez 79cdc1e82c Fix getGoogleAnalyticsTrackingID 2020-10-19 13:49:07 +02:00
Daniel Sanchez ca376c96a8 Set version v2.13.0 2020-10-19 13:40:42 +02:00
Daniel Sanchez c00ece45b4 Add Google Analytics parameters 2020-10-19 13:38:12 +02:00
Daniel Sanchez d3d9fdcd63 Merge remote-tracking branch 'origin/master' into release/v2.13.0 2020-10-19 13:10:56 +02:00
Daniel Sanchez c73b877f0f
Fix electron builder and patch electron version (#1492) 2020-10-19 13:03:42 +04:00
Daniel Sanchez 037235a024 Update xDai staging based on release/v2.13.0 2020-10-18 21:52:11 +02:00
Fernando 9ca9007105
(Feature) - xDai Compatibility (#1476)
* feat: Support for Volta and EWC

* chore: Store network ID in the ETHEREUM_NETWORK enum itself

* chore: forward tx and address to non-etherscan explorers

* fix test, avoid assigning enum to const

* (Feature) [xDai] - Create network-based configurations (#1420)

Co-authored-by: Matias Dastugue <matias.dastugue@altoros.com>
Co-authored-by: Mati Dastugue <mdastugu@amazon.com>

* (Feature) [xDai] Use generic config (#1422)

Co-authored-by: Matias Dastugue <matias.dastugue@altoros.com>
Co-authored-by: Mati Dastugue <mdastugu@amazon.com>

* fix function name after merge development

* (Feature) [xDai] - Contract interaction abi lookup (#1429)

* Filter Apps by network (#1433)

* Filter apps by network

* (Feature) [xDai] - Parametrize ethscan values (#1424)

* (Feature) [xDai] - Use parametrized network values (#1437)

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>

* (Feature) [xDai] - Use tx service for loading token info (#1435)

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>

* (Feature) [xDai] - Visually differentiate networks (#1431)

Co-authored-by: fernandomg <fernando.greco@gmail.com>
Co-authored-by: Agustin Pane <agustin.pane@gmail.com>

* (Feature) [xDai] - Cosmetic fixes (#1449)

* Add staging configuration for deployment using xDai (#1459)

* Add staging xDai deployment to travis

* Add safe apps production url for xdai

* Add travis rule to build xDai on master or integration branch

* (Bugfix) Set min height to ListContentLayout wrapper #1447 (#1451)

* fix min-height app container and margin to info text at
bottom

* change css unit from % to vh

Co-authored-by: nicosampler <nf.dominguez.87@gmail.com>

* disable OpenZepplin in xDai (#1465)

* remove any in config/index.ts (#1462)

* [xDai] Parametrize Native Coin (#1444)

* fix `generateBatchRequest` calls

* Fix some ETH harcoded values + Add tests

* Fix null or undefined value

* Move nativeCoin outside component + fix toTokenInput function

* Remove native coin from useEffect

Co-authored-by: fernandomg <fernando.greco@gmail.com>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>

* (Feature) [xDai] - Disable safe sections based on network config (#1468)

* Adds FEATURES enum
Renames features to disabledFeatures

* Uses FEATURES enum instead of hard-coded contract features

* Refactor enabledFeatures function, now checks that there are not disabled features by config before return the enabledFeatures result

* Adds SAFE_APPS and CONTRACT_INTERACTION to FEATURES enum

* Remove SAFE_APPS from sidebar if disabled

* Redirect user from /apps if safe apps are disabled

* Disables contract interaction from config

* Remove !remoteOwners

* Move settings to a constant

* Deploy from xDai integration branch only to xDai staging

* Fix .travis.yml warnings

* Update branch and condition for staging deployment

* Update xDai depoy condition

* (Feature) [xDai] - Fetch collectibles from Gnosis services (#1460)

* Add https to safe-xdai apps link

* make getExplorerInfo return values per network (#1470)

* (Fix) "Approve transaction" modal closes (#1477)

* add equality function to prevent re-renders

- I left the inline equalityFn, as an ad-hoc solution.
First, because we're going to remove this when https://github.com/gnosis/safe-react/issues/1479 is done
Second, because this way it infers the types defined in the useSelector generics

* (Fix) xDai feature issues (#1484)

Co-authored-by: nicosampler <nf.dominguez.87@gmail.com>

* RPC interactions errors (#1475)

* Add options to httpProvider

* Add log when generateatchRequest fails

* add types to generateBarchRequest

* fix types in `generateBatchRequests`

* add `.d` for imports of definition files

* add `undefined` alternative value for `generateBatchRequests` ReturnValues

- also, fixed typing errors in related functions

* fix return values for `generateBatchRequests` in tests

Co-authored-by: fernandomg <fernando.greco@gmail.com>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>

* (Feature) xDai configs (#1489)

* (Feature) - Replaces ETH with network native coin (#1491)

* Remove networkInfo from the components

* Replaces humanReadableValue to fromTokenUnit

Co-authored-by: JosephBagaric <bagaricjos@gmail.com>
Co-authored-by: Matias Dastugue <matias.dastugue@altoros.com>
Co-authored-by: Mati Dastugue <mdastugu@amazon.com>
Co-authored-by: Agustin Pane <agustin.pane@gmail.com>
Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>
Co-authored-by: nicosampler <nf.dominguez.87@gmail.com>
Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
2020-10-18 21:48:22 +02:00
Mikhail Mikheev 396f6dd99b
Bug #1384: Deadlock with pending older transactions (#1455)
* don't use nonce in tx reducer

* remove displaying of pending status if tx has no confirmations

* Fix test for transactions pending status

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-10-16 13:23:07 +02:00
Agustin Pane b04ec4337b
(Feature) - Update balance endpoint parameter usage (#1482)
* Replaces old balanceUsd with fiatBalance and fiatCode on BalanceEndpoint API

* Update balance endpoint tests

Co-authored-by: Fernando <fernando.greco@gmail.com>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-10-15 14:43:18 -03:00
Daniel Sanchez eab0e73ac6
Bump dependencies (#1478)
* Upgrade dependencies without breaking changes

* Update electron and gnosis dependencies with minor changes

* Upgrade dependencies with minor changes and remove unnecessary electron dependency

* Upgrade truffle-contract to latest @truffle/contract
2020-10-15 17:01:12 +02:00
Daniel Sanchez 14e94ad877
Merge pull request #1467 from gnosis/update-sablier-app
Backmerge v2.12.2 to development
2020-10-13 16:05:43 +02:00
Daniel Sanchez 9393285b4a
[v2.12.2] - Update Sablier app (#1464)
* Add RLY token to Sablier app

* Set v2.12.2
2020-10-13 13:30:56 +02:00
Mati Dastugue 1ee9dc3a8d
Merge pull request #1438 from gnosis/dependabot/npm_and_yarn/electron-9.3.1
Bump electron from 9.3.0 to 9.3.1
2020-10-08 17:18:23 -03:00
dependabot[bot] 032b93c603
Bump electron from 9.3.0 to 9.3.1
Bumps [electron](https://github.com/electron/electron) from 9.3.0 to 9.3.1.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/master/docs/breaking-changes.md)
- [Commits](https://github.com/electron/electron/compare/v9.3.0...v9.3.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-06 18:15:48 +00:00
Agustin Pane 8d82086f0c
(Feature) Remove automatic load addressbook owners (#1406)
* Remove the auto adding owners when the safe loads

* Let the user add "invalid names" in the addressbook and also shows them on the addressbook

* Fix update name of safe if addressbook updated

* Removes unused addSafe action, replaces it with addOrUpdateSafe

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-10-05 14:45:51 -03:00
Fernando 5a41c3857d
(Fix) Contract interaction ABI resets (#1394)
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-10-05 12:13:19 -03:00
Mati Dastugue 21ea1ad9dd
Desktop app - Detect port and change it if needed (#1395)
* Bump new onboard.js version

* Detect if port is used and change it if needed before starting the server

* Fix icon creation

* Fix formatting

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
2020-10-05 12:52:15 +04:00
Mati Dastugue f335b892bb Merge branch 'development' of github.com:gnosis/safe-react into development 2020-09-29 20:27:38 -03:00
Agustin Pane f4f90acc22
Checksum the address on addressInput (#1410) 2020-09-29 16:07:36 -03:00
Daniel Sanchez 296a6f62a1
Merge pull request #1413 from gnosis/tweak-production-travis-build
Backmerge v2.12.1 with travis fix
2020-09-29 18:43:40 +02:00
Daniel Sanchez 5649369ac7
Merge branch 'development' into tweak-production-travis-build 2020-09-29 17:58:17 +02:00
Daniel Sanchez 32570c6587
Merge pull request #1412 from gnosis/tweak-production-travis-build
New patch version with travis release tweak
2020-09-29 17:32:35 +02:00
Daniel Sanchez 24f2828a7b
Merge pull request #1411 from gnosis/release/v2.12.0
Backmerge 2.12.0 to development
2020-09-29 17:18:23 +02:00
Daniel Sanchez 8057ebfbae New patch version with travis release tweak 2020-09-29 17:14:30 +02:00
Daniel Sanchez daf8421aaf
Merge branch 'development' into release/v2.12.0 2020-09-29 16:51:50 +02:00
Mati Dastugue ab1775e891
Change wording when trying to add an incompatible Safe address (#1405)
* Update mastercopy error
2020-09-28 20:35:42 +02:00
Daniel Sanchez 21bd4a2eb7
Merge pull request #1397 from gnosis/release/v2.12.0
Release v2.12.0
2020-09-28 18:05:05 +02:00
Daniel Sanchez aeda4f64c3
v2.12.0 Bugfix - Fix Activate/Blacklist tokens (#1401)
* Fix activate / blacklist token or asset

* Fix asset add test

* Add new actions to storage middleware to save on change
2020-09-25 18:39:12 +02:00
Agustin Pane c1bc366c51
(Bugfix) Owners duplicated (#1402)
* Fix adding owners

* Lint
2020-09-25 12:43:48 -03:00