* 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>
* 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>