Commit Graph

3473 Commits

Author SHA1 Message Date
juampibermani 4a81d880bd Persist only locally added safe apps 2021-06-03 16:21:42 -03:00
juampibermani dbc55a5df6 Log error in the console when safe apps list retrieval fails 2021-06-02 10:07:19 -03:00
juampibermani 3c87e196e4 Config service file with safe apps retrieval 2021-06-01 13:44:38 -03:00
juampibermani fc3da6f19f Update state on retrieval success 2021-05-31 15:08:43 -03:00
juampibermani b566e91eaa Renames and deleted unnecesary dependencies 2021-05-31 13:10:57 -03:00
juampibermani 31b2110307 Change notification type name 2021-05-31 10:51:34 -03:00
juampibermani ae37d95bfe Fixed linting errors 2021-05-28 13:03:02 -03:00
unknown 6b8f836937 Fetch safe apps list from the api 2021-05-28 10:05:35 -03:00
katspaugh 2fdc5e05a9
Add an API key in the ETHGasStation URL (#2332)
* Add an API key in the ETHGasStation URL

* Fix typo

* Revert mainnet api key

* Add the env var in github actions

* Revert "Fix typo"

This reverts commit c9b463099d9b38d481d21f42b4cedb8eafb0b83c.
2021-05-28 11:28:31 +02:00
nicolas 15d3cb8ff4
Tx decoded data, fix addresses array (#2309) 2021-05-27 13:34:24 +04:00
Mikhail Mikheev be39e4a8e3
Feature: Allow apps to request safe balances (#2316)
* add api function fetchTokenBalances, code improvements

* update test

* Update sdk version

* handle getSafeBalances call

* console.log > console.error

* rename declaration file

* rename declaration file, fix types

* use logError func to log error in communicator

* accept currency for getSafeBalance

* sort imports

* add generic error for processing safe apps requests

* add error codes for safe apps

* add usage of error 900

* fix logError usage in getAppInfo
2021-05-27 13:29:46 +04:00
Mikhail Mikheev 12edb5b988
Feature: Allow passing additional context to CodedException (#2334)
* Allow passing context to CodedException

* create a test for context

* update test

* sentryContext > context

* rename sentryContext in test
2021-05-27 12:54:18 +04:00
katspaugh bf39501ebb
Fix typo (#2335) 2021-05-27 09:53:28 +02:00
Mikhail Mikheev 5eef50ea4a
remove truffle related folders (#2333) 2021-05-26 17:58:47 +04:00
Daniel Sanchez 6773e546b6 Set v3.6.5 2021-05-25 11:20:52 +02:00
Daniel Sanchez 9119550373
Catch backend error and send controlled form error (#2324) 2021-05-25 10:41:31 +02:00
Mati Dastugue 3e4c9cf7d3
Bugfix - Safes added via URL not stored when changing name (#2310)
* Fix Types

* Fix adding a safe to the list after it was accessed via URL

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2021-05-25 10:41:13 +02:00
juampibermani 55b40f91be
Fix/2292 dont trigger transactions with not enough signatures (#2312)
* Check if the transaction confirmations reaches the threshold

* Added a notification when transaction doesn't have the confirmations

* Added confirmations verification before opening the execute modal
2021-05-24 11:40:54 +02:00
Fernando e0e23255ad
(Feature) Disable buttons while busy and fix modal buttons styles (#2247)
* button margin on Execute tx modal

* button margin on Advanced option modal

* fix lowercase on modal titles

* button margin and styles on Remove module modal

* button margin on Remove Safe modal

* buttons margins on Add new owner

* button margin and styles on Edit owner name modal

* button margin and styles on Replace owner modals

* fix modal heading height on Add new owner modal

* button margin and styles on Remove owner modals

* button aligmnent on Change required confirmations  modal

* buton alignment and styles on  create entry modal

* button aligmnent and styles Delete entry modal

* button alignment and styles on Add custom app modal

* add gap to the butons on modals

* add gap

* fix button color on Remove Safe

* add gap on remove module modal

* add gap on  Manage Safe Owners

* add gap on Policies modal

* add gap and remove some styles from TxList

* add gap and remove styles on Contract Interaction Modal

* add gap and remove styles from Send funds modal

* add gap and remove styles from Send collectible modal

* fix eslint issues

* upgrade SRC dependency

* remove unused variable

* WIP: common pattern for button status

* WIP: add status to generic Modal buttons

* WIP: text status for App modal

content is restricted to text

* WIP: common patter in settings buttons

* WIP: RemoveLimitModal button status

* add `testId` prop to Modal buttons

* use Modal's buttons status

* add default text for LOADING and READY status in Modal Buttons

* overwritte button text only when necessary

make use of the LOADING/READY default status texts

* create `useButtonStatus` hook to avoid code repetition

* Add `withoutBorder` prop to Modal.Footer

* Adapt Apps Modal footer to use Modal.Footer and Modal.Footer.Buttons

* Update Spending limits modals

* update app modal button text

* add `useButtonStatus` wherever it was missing

* rename and simplify `useButtonStatus`

new name: `useEstimationStatus`

removed `data` as argument, as it is was not adding any benefit

* update `txEstimationExecutionStatus` when no data provided

* Add validation for the hex data in custom contract interaction

* remove old buttons

* use default instead of cases

* set default EstimationStatus to SUCCESS

* Replace footer wrapper with `Modal.Footer`

* rollback EstimationStatus status when no `txData` is present

* fix Modal.Footer styles

Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>

* fix New Transaction modals buttons

Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>

* fix advanced settings styles

Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>

* fix settings->owners styles

Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>

* fix settings->remove safe modal styles

Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>

* fix settings->policies styles

Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>

* fix settings->spending limit styles

Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>

* fix apps modal styles

Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>

* fix txs list modal styles

Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>

* update Modal props and styles

Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>

* fix styles for Apps modals

Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>

* cleanup spending limit modal implementation

Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>

* fix receive modal button

* fix address book modal buttons

* fix receive modal header height

Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>

* fix add owner modal buttons

* fix add owner modal buttons (threshold)

* delete commented code

* fix Advanced option modal buttons and styles on Divider

Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2021-05-21 16:35:49 +02:00
Fernando b9b83206d3
(Chore) Simplify PR template (#2303)
* simplify PR template

* update titles

also changed to h2

* remove comment

Co-authored-by: katspaugh <katspaugh@users.noreply.github.com>
2021-05-21 10:54:08 +02:00
Joel Raju 24069ca5bf
Catch the TypeError which occours when contractCode is undefined (#2314) 2021-05-21 10:49:16 +02:00
Daniel Sanchez 08953e36c0
[Spending Limit] Integration PR (#2308)
* Added spending limit reset function and call (#2262)

* Added spending limit reset function and call

* Fix: don't use DELEGATE_CALL in multisend tx and spending limits

* Changed reset spending limit operation parameter from DELEGATE_CALL to CALL

* Deleted operation parameter from MultiSendTx

* Remove sort for Spent and ResetTime columns (#2295)

* Fix spending limit enable check (#2299)

* fix spending limit existence check

Co-authored-by: juampibermani <30930241+juampibermani@users.noreply.github.com>
Co-authored-by: katspaugh <katspaugh@gmail.com>
Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
Co-authored-by: Fernando <fernando.greco@gmail.com>
2021-05-21 09:52:52 +02:00
juampibermani 7ad8ecf4c7
Set recipient when going back from review (#2277)
* Set recipient when going back from review

* Updated recipient when props change

* Reset recipient on open modal

* Dont clean address when reviewing collectibles send

Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
2021-05-20 16:58:19 +02:00
katspaugh 1f9bb3aef4
Fix the input error message in contract interaction (#2253) (#2297)
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2021-05-20 11:09:12 +02:00
katspaugh b0fadee951
Chore: coded exceptions registry and utils (#2283)
* 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>
2021-05-20 10:49:50 +02:00
nicolas 6f2ae5af54
Fix call response in contract interaction (#2285) 2021-05-19 12:43:46 +02:00
katspaugh f9e6da4ffe
Fix endless loader in module settings (#2300)
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2021-05-18 17:46:21 +02:00
Daniel Sanchez 3f66ebd2a4
Set lower reset time functions for Rinkeby (#2307) 2021-05-18 17:24:12 +02:00
Daniel Sanchez ec247d9017
Upgrade dependencies (#2294)
* Upgrade dependencies without breaking changes
2021-05-18 09:28:38 +02:00
nicolas 4f6a3e93eb
Bug: Add custom app feature works weird or doesn't work (#2279)
* prevent trigger for "" value

* remove autocomplete for input

* Add loading indicator

* Ivan feedback

* fix  jumping

* Rename prop

Co-authored-by: katspaugh <katspaugh@users.noreply.github.com>
2021-05-14 11:32:49 +02:00
Anton f9f7b3dad2
Update readme.md (#2289) 2021-05-14 11:09:09 +02:00
Mikhail Mikheev eadb8aa7cf
Add chain id to getSafeInfo response (#2288)
Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
2021-05-13 13:02:11 +04:00
Mati Dastugue f28a248bc5
Bugfix - Back button resets fields on Owner modification modals (#2244)
* Prevent values reset when going back in modal

* Update deps

* Cleanup duplicated dependencies

* Revert "Update deps"

This reverts commit d29afb826a1254fa9cb7f291f23796446e7d1b64.

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
Co-authored-by: katspaugh <katspaugh@users.noreply.github.com>
2021-05-12 16:11:46 +02:00
nicolas ac2987d999
Consistently render known address with Address Book priority (#2195)
* 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>
2021-05-12 12:53:02 +02:00
Agustín Longoni 28e1bd3e77
Send modal styles (#2223)
* fix heading size and styles

* buttons width

* fix margins

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
Co-authored-by: katspaugh <katspaugh@users.noreply.github.com>
2021-05-12 12:11:02 +02:00
nicolas 961f274c6a
Fix: remove auto checksum address from InputAddress (#2242)
* Fix: remove auto chacksum address from InputAddress

* Mikhail feedback

Co-authored-by: katspaugh <katspaugh@users.noreply.github.com>
2021-05-12 12:00:44 +02:00
nicolas ad109668fb
Fix GA problem after disabling cookies. (#2241)
* 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>
2021-05-11 09:22:15 +02:00
Marius Kjærstad 5b8e1af9ef
Changed http:// to https:// on SemVer link (#2269)
Changed http:// to https:// on SemVer link in readme.md

Co-authored-by: katspaugh <katspaugh@users.noreply.github.com>
2021-05-10 17:56:56 +02:00
dependabot[bot] d899768741
Bump hosted-git-info from 2.8.8 to 2.8.9 (#2270)
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-10 12:41:54 +02:00
nicolas a6cdde07f5
Remove TS definition from checklist (#2268) 2021-05-10 10:50:18 +02:00
katspaugh 19cea9dd89
Rm Flow from the readme (#2271) 2021-05-10 10:38:08 +02:00
katspaugh 26dbc6dfb5 Merge branch 'development' of github.com:gnosis/safe-react into release-3.6.0 2021-05-10 09:21:09 +02:00
katspaugh fd0d7686f2
Bump to 3.6.0 (#2273) 2021-05-10 09:20:23 +02:00
Mati Dastugue 404e54e42d
Bugfix - Add Recipient name on Send Fund's second step modal (#2255)
* Set recipient name if it is selected from addressBook

* Remove unnecesary console.log + some improvements
2021-05-07 10:53:13 +02:00
Mati Dastugue f6c4124475
Revert "Bugfix - Submit button out of screen in Contract Interaction modal (#2185)" (#2256)
This reverts commit 4cca3cf0ed.
2021-05-05 17:30:44 +02:00
Fernando 2afbc827c9
(Feature) Add PR Template (#2212)
* create PULL_REQUEST_TEMPLATE.md

* Update checklist

* remove `documentation` from checklist
2021-05-05 17:15:44 +02:00
nicolas 8861653118
TxList: Add info about the next tx to be executed (#2218)
* TxList: Add info about the next tx to be executed

* review changes

* update message

Co-authored-by: katspaugh <katspaugh@users.noreply.github.com>
2021-05-03 17:29:33 +02:00
Agustín Longoni 84755f9098
Spending limit UI corrections (#2210)
* show the complete hash

* remove cut address (beneficiary)
2021-05-03 11:58:18 +02:00
nicolas 6dd3a781a6
Fix: App Crash on decoded data opening when tx-builder send ETH to multiple EOA (#2208)
* Fix: bytes value for decodedData
2021-05-03 11:48:15 +02:00
Fernando 42291e1208
(Fix) Refactor Safe information retrieval (#2122)
* 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>
2021-04-30 12:06:38 +02:00