* Coded exceptions + registry
* adding throwError function
* Log to sentry
* Chore: coded exceptions registry and utils (#2161)
* Add error 600 for token fetching
* Fix constants type error
* Log only the error message on prod
* Add error 601
* PR feedback from Nico
* Add readonly for the public props
* Add isTracked and set it to false for 601
* Add a comment on how to add new errors
* Rename var
* Replace the registry object with an enum
* Add a reverse lookup map
* Duplicate the code in the enum
Co-authored-by: nicosampler <nf.dominguez.87@gmail.com>
Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
* Remove UNKNOWN from owner list
* Fetch Safe Name from address book
* Update Safe name in address book when updating from settings > safe details
* Fix lint issue
* Add export feature
* Improve Address book export modal
* Use styled-components instead of material-ui styles
* Add comment
* Improve filename + set loading state false when error
* update SRC
* fix known address to take priority from adress book
* rename useGetTxTo to getTxTo
* Liliya feedback
* Liliya feedback
* fix eslint warning
* Fix customIcon for TX-collapsed if address is in AB
Co-authored-by: katspaugh <katspaugh@users.noreply.github.com>
* fix GA problem
* add types for js-cookie
* Cookies util: Add removeCookie and types
* Remove GA cookies when disabling permission
* test remove cookie
* try empty path
* test
* remove cookies using domain
* restore path '/'
* move remove cookies to GA util
Co-authored-by: katspaugh <katspaugh@users.noreply.github.com>
* use client-gateway endpoint for safeInfo
* remove condition to retrieve modules information as client-gateway is already returning the whole list
* create `allSettled` helper function, to divide promises logic from business logic
* set 'UNKNOWN' as default value for owner's record creation
* simplify `fetchSafe` and `buildSafe` logic
* fix check for modules existence
* Add tests for functions used to fetch information
* (Chore) Remove unused code (#2123)
* Not all Collectibles are displayed (#2172)
* replace fetchErc20AndErc721AssetsList by fetchSafeCollectibles
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>
Co-authored-by: katspaugh <katspaugh@gmail.com>
* Add validations to prevent very long fields
* Fix validation for QR scan
* Get decimals according to the selected token
* Add decimals length validation