* 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`
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* Replaces old EtherscanBtn with ExplorerButton from safe components
* Remove default exports
Fix typo un etherscanLink name import
* Replaces EtherscanBtn with ExplorerButton
* Remove etherscanButton component
* 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>