Commit Graph

2305 Commits

Author SHA1 Message Date
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
nicosampler 5f15090df5 update safe-apps legend 2020-11-27 11:04:55 -03: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
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
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 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
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
Agustin Pane 38751958bb
(Fix) - #1154 Add more owners on safe creation (#1583)
* Add types in getAddressValidator
Remove unused props

* Absolute import

* Adds safeOwnersAddressesSelector

* Fix uniqueAddress function

* Replaces getAddressesListFromAddressBook with addressBookAddressesListSelector

* Remove comment

* Types

* Fix tests

* Improves safeOwnersAddressesSelector

* Remove memoize from uniqueAddress

* Improves uniqueAddress validation

* Improves uniqueAddress function to check checksum values
Add tests

* Removes toArray from safeOwnersAddressesSelector
Allows uniqueAddress to use both string[] and List<string>

* Renames safeOwnersAddressesSelector to safeOwnersAddressesListSelector

* Update src/components/forms/validator.ts

Improves uniqueAddress

Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>

* Fix tests

* Fix uniqueAddress

* Fix types extensions

Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
Co-authored-by: Fernando <fernando.greco@gmail.com>
2020-11-17 09:34:01 -03:00
Agustin Pane 9f1dc37bbb
(Fix) #1587 - Ens mislabeled as eth (#1601)
* Fix fetch symbol for incoming txs

* Fix getting symbol promise from erc721

* Adda ens contract addresses for different networks
2020-11-16 11:20:07 -03:00
Daniel Sanchez 033de25cf5 Set production Sablier and WalletConnect IPFS hash 2020-11-16 12:45:35 +01:00
Fernando da1e39c2ef
(Fix) Remove the provider when the site is disconnected (#1585) 2020-11-12 11:40:28 -03:00
Fernando 914333dc54
(Fix) Support CryptoKitties NFTs (#1574)
* create `logic/collectibles/utils` file and move all the
 NFT-related helper functions into it

`generateERC721TransferTxData` will decide whether the method
 to transfer an NFT will be `transfer` or `safeTransferFrom`,
 based on preset conditions where CryptoKitties tokens is taken
 as an exception.

Also, `transfer` was used instead of `transferFrom`
 because `transferFrom` is not implemented in the
 rinkeby version, and was the method used as a
 fallback before.

- moved `SAFE_TRANSFER_FROM_WITHOUT_DATA_HASH` const
- moved `isSendERC721Transaction` function
- moved `getERC721Symbol` function
- moved `isERC721Contract` function
- created `getTransferMethodByContractAddress` along with `CK_ADDRESS` const
- created `generateERC721TransferTxData` function
- refactored `ReviewCollectible` component to use `generateERC721TransferTxData`
- updated tests

* remove `ENS_ADDRESS` constant as it's not used

* add unmock of collectibles/utils

* add tests for `getTransferMethodByContractAddress`
2020-11-11 18:31:54 -03:00
Agustin Pane 294ba47142
(Feature) - #1244 send tx again (#1582)
* Types

* Adds tokenAddress to getTxData for tokenTransfer transactions

* Adds sendModalOpenHandler to EllipsisTransactionDetails

* Adds getRawTxAmount util

* Add isTokenTransfer fix for ether in getTxData

* Uses sendFund modal for retry outgoing transfer transactions

* Adds ether address in getTxData result for outgoig transfers

* Uses nativeCoin

* Remove fragmnet

* Fix decimals for native coin

* Fix decimals usage in tx transfer amount

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-11-11 14:20:10 -03:00
Mati Dastugue 19e6df725a
Add tracking info to Google analytics (#1584)
Add extra information to Google Analytics (#1510 )
2020-11-11 15:44:14 +01:00
Agustin Pane ca732001bf
(Fix) - #1561 Outgoing instead of custom tx for sending collectibles (#1567)
* Refactor getTxData

* Add SAFE_TRANSFER_FROM in SAFE_METHODS_NAMES

* Adds check on isSendERC721Transaction for erc721 send

* Adds TOKEN_TRANSFER_METHODS_NAMES types

* Replace type SAFE_TRANSFER_FROM

* Fix import

* Adds nftAssetsListAddressSelector

* Remove txCode and knownTokens from isSendERC721Transaction
Now it directly checks agains the list of nftAssets on the store

* Refactor ENS_TOKEN_CONTRACT usage check

* Add TODO

* Add return for ENS symbol

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
Co-authored-by: Fernando <fernando.greco@gmail.com>
2020-11-10 17:09:41 -03:00
Fernando 325864cffb
(Fix) Prevent ENS check when not supported (#1570) 2020-11-10 16:16:44 -03:00
Agustin Pane 2a01470d2d
(Fix) - #1542 CopyBtn content in addressbook (#1579)
* Fix CopyBtn content

* Fix explorer url

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-11-10 11:51:14 -03:00
Fernando 325adda00d
(Fix) Error when using up to the max amount of decimals for token transfer (#1576) 2020-11-09 17:04:28 -03:00
Daniel Sanchez 0c67c48648
Upgrade dependencies (#1572)
* Upgrade web3 to v1.3.0

* Remove polished direct dependency

* Upgrade types dependencies

* Upgrade ledger and electron related dependencies

* Update gnosis-safe-components to latest version

* Upgrade sentry dependencies to latest version

* Upgrade truffle-contract and axios

* Upgrade electron dependencies

* Use fade instead rgba with hex value

Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
2020-11-06 17:01:40 +01:00
Daniel Sanchez 387ebe68fb
Updates bnc-notify version and adds support for GridPlus Lattice [internal] (#1569)
* Adds support for GridPlus Lattice and bumps `bnc-onboard` version.
For more information on the GridPlus Lattice, see https://gridplus.io/lattice

* Disable Lattice wallet from incompatible chains

Co-authored-by: Alex Miller <asmiller1989@gmail.com>
Co-authored-by: Fernando <fernando.greco@gmail.com>
2020-11-05 16:02:24 +01:00
Fernando 7a881537e5
(Fix) Executed transactions status (#1552)
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-11-04 19:40:59 -03:00
Agustin Pane c9fb7fcc10
(Fix) - #1554 Send collectible crash on addressBook (#1559)
* Type TokenSelectField

* Type collectibleSelectField
Remove anys in SendCollectibleTxInfo
Fix cast in SendModal

* Replace cast to toString

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-11-04 10:37:26 -03:00
Agustin Pane f69bffd089
(Fix) Feature/1558 Replace owner modal names (#1562)
* Types

* Uses addressBook when displaying the replace owner modal

Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-11-04 10:18:46 -03:00
Daniel Sanchez c4ebb63f5b
Merge branch 'development' into release/v2.14.0 2020-11-03 18:01:32 +01:00
Mati Dastugue c246223c82 xDai - Disable Wallets (#1563)
* Disable not working wallets for xDai
2020-11-02 19:26:03 +01:00
Mati Dastugue aa5be55414
xDai - Disable Wallets (#1563)
* Disable not working wallets for xDai
2020-11-02 19:24:13 +01:00
Daniel Sanchez d176301328 Update EWC/Volta config to use own apps URL 2020-11-02 17:38:16 +01:00
Agustin Pane cd8dc8d486
Uses orderedNFTAssets (#1546)
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-11-02 09:27:49 -03:00
nicolas df42b36194
Add Sentry config and ErrorBoundary Component (#1528)
* Add Sentry config and ErrorBoundary Component

* Update travis file to upload sentry sourcemaps

* Add design implementation for ErrorBoundary

* Add Sentry DSN configuration for all networks

* Push sourcemaps to sentry only on staging/production build

* move isProdction to constants file

* change Button for Link

* fix redirect when safeAddress is provided but not a subpath for it.

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-10-30 20:55:40 +01:00
nicolas 9fea501e4e
Remove request app from rinkeby (#1545) 2020-10-30 20:40:03 +01:00
Agustin Pane 503b99973e
(Feature) - #1531 EWC estimate fee on modal (#1543)
* Add fixed price in gas to ewc configuration
2020-10-30 20:30:40 +01:00
Agustin Pane 3fa0b74137
(Feature) - #1541 etherscan on ewc (#1544)
* Replaces old EtherscanBtn with ExplorerButton from safe components

* Remove default exports
Fix typo un etherscanLink name import

* Replaces EtherscanBtn with ExplorerButton

* Remove etherscanButton component
2020-10-30 16:25:04 -03:00
Mati Dastugue c798f1e03e
EWC/Volta - Disable not working wallets (#1549)
* Disable wallets for Volta and EWC networks
2020-10-30 20:22:35 +01:00
Daniel Sanchez ec96edb16f Set production pin to Aave safe-app 2020-10-29 12:37:16 +01:00
Agustin Pane 551db136f3
(Feature) #1515 Gas estimation for NON-GETH nodes (#1523)
* Remove unnecesary await

* Implement gas calculation for NON-GETH nodes

* Add tests

* Refactor estimateSafeTxGas: now getGasEstimationTxResponse calculates gas or throws errors based on the current node

* Refactor getOpenEthereumErrorDataResult to make it works with Nethermind
Updates tests

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-10-28 17:03:14 +01:00
nicolas 0278722645
Add config for EWC and Volta (#1513)
* Add config for EWC and Volta

* Join tests in same file

* change price oracle in volta

* add travis config for volta and ewc

* Update travis to build xDai only in master or version release

* Add PR environment by network

* simplify some constants assignments

* Add PUBLIC_URL overwrite for PRs

* Change PULL_REQUEST condition test

* Use absolute path for PUBLIC_URL

* Fix missing https://

* Adapt EWC/Volta config to use new gasPriceOracle format

* disable openZeppeling in volta and EWC

* Deploy EWC to staging

* Fix Portis, Fortmatic and Blocknative key refactor

* Set EWC deployment to release/2.14.0

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-10-28 13:10:40 +01:00