Commit Graph

2968 Commits

Author SHA1 Message Date
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 3c795462b7
Rollback web3 to v1.2.11 to avoid issues with walletconnect (#1599) 2020-11-12 20:20:54 +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 296cf30384
Fix development deployment to always use rinkeby network (#1573) 2020-11-06 08:36:26 +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
Agustin Pane 4b37b5d867
(Feature) - #1436 Network configuration documentation (#1533)
* Adds networks.md

* Updates readme.md

* Add some rewording

Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
Co-authored-by: Fernando <fernando.greco@gmail.com>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-11-05 11:21:31 +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 81192859e9
Merge pull request #1566 from gnosis/release/v2.14.0
Backmerge v2.14.0 to development
2020-11-03 18:22:00 +01:00
Daniel Sanchez c4ebb63f5b
Merge branch 'development' into release/v2.14.0 2020-11-03 18:01:32 +01:00
Daniel Sanchez 0f8a0e93b5
Merge pull request #1565 from gnosis/release/v2.14.0
Fix travis instruction
2020-11-03 11:08:45 +01:00
Daniel Sanchez 1ffad69ae2 Separate travis instruction 2020-11-03 09:54:26 +01:00
Daniel Sanchez 6d5164f103
Merge pull request #1537 from gnosis/release/v2.14.0
Release v2.14.0
2020-11-03 09:26:17 +01:00
Daniel Sanchez 8d9b229c9e Disable release build 2020-11-03 09:01:10 +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
Daniel Sanchez ae99eac3b1 Build xDai on master PR 2020-11-02 09:45:59 +01:00
Daniel Sanchez aef4268272 Update xDai regex 2020-11-02 09:43:55 +01:00
Daniel Sanchez 64aebf59f5 Update xDai regex 2020-11-02 09:41:16 +01:00
Daniel Sanchez b147099729 Update release branch regex 2020-11-02 09:37:49 +01:00
Daniel Sanchez 83954dc4d5 Build xDai review on release branch 2020-11-02 09:28:37 +01:00
Daniel Sanchez 4b45f5679a Restore Volta build for PRs 2020-10-30 22:46:09 +01: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
Daniel Sanchez 26dd60a12f Set v2.14.0 2020-10-30 20:23:21 +01: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
Daniel Sanchez afb876c7c8 Deploy Volta to staging 2020-10-28 17:50:59 +01:00
Daniel Sanchez 6c50f1adc6 Deploy EWC staging from release branch 2020-10-28 17:04:28 +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
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