Commit Graph

3498 Commits

Author SHA1 Message Date
Mati Dastugue 096938ad59 Merge branch 'development' of github.com:gnosis/safe-react into feature/#512-network-switching 2021-06-04 14:43:29 -03:00
katspaugh 1c5bb22a59
Update readme, remove truffle and ganache instructions (#2398)
* Update readme, remove truffle and ganache instructions

* Rm exchange rate constants

* Move env vars info higher
2021-06-04 16:20:25 +02:00
Mati Dastugue 45205f8a77
Bugfix - Owners table sorting is not working correctly (#2364)
* Add custom sort funcionality

* Add correct types

* Fix undefined sorting type
2021-06-04 15:03:51 +02:00
Mati Dastugue a78116423f Fix errors 2021-06-04 01:30:41 -03:00
Agustín Longoni ea38a95b5d
Merge branch 'development' into feature/#512-network-switching 2021-06-03 17:43:19 -03:00
Mati Dastugue 3011b65d62 select networks dynamically 2021-06-03 15:59:41 -03:00
Mikhail Mikheev 7ac1e1efdd
Feature: Relay safe apps sdk getBySafeTxHash api request (#2361)
* install new sdk version

* fix ts errors

* handler scaffold

* add api function for fetching tx, safe app msg handler

* bring back getEnvInfo method

* remove upperFirst where it is not needed

* move upperFirst import
2021-06-03 18:54:21 +04:00
Mati Dastugue 7a186026cd Update tests 2021-06-02 23:42:56 -03:00
Mati Dastugue 7a4e86fda4 Merge branch 'development' of github.com:gnosis/safe-react into feature/#512-network-switching 2021-06-02 23:27:16 -03:00
juampibermani 07465a0b29
Fix: don't display Intercom in Safe Apps (#2365)
* Check if current screen is the app view

* Get app url from utils hook

* Hook rename and updated effect dependency
2021-06-02 17:03:03 -03:00
Daniel Sanchez e97d228429 Set v3.6.7 2021-06-02 11:58:46 +02:00
Mati Dastugue 9f81e57f05 Add util for getting all networks info 2021-06-02 01:56:03 -03:00
Mati Dastugue ab51fe6be4 Merge branch 'feature/#512-network-switching' of github.com:gnosis/safe-react into feature/#512-network-switching 2021-06-02 00:52:00 -03:00
Mati Dastugue 4343fac011 Merge branch 'development' of github.com:gnosis/safe-react into feature/#512-network-switching 2021-06-02 00:51:45 -03:00
Agustín Longoni 6e0dccd28c fix styles on network label 2021-06-01 14:16:48 -03:00
Agustín Longoni edfbf4b649 add Check icon - sample 2021-06-01 11:10:43 -03:00
Mati Dastugue 2d6cbb21f5 update merfe 2021-06-01 10:59:31 -03:00
Mati Dastugue 02901c40e2 Add network info 2021-06-01 10:56:47 -03:00
Mikhail Mikheev cc345946e6
Feature: Better error handling for Safe apps things (#2340)
* handle request/app fetch errors

* shorted extraMessage for app fetch error

* use context instead of extra for safe app url exception when fetching

* app -> safeApp for sentry context
2021-06-01 12:10:57 +02:00
Daniel Sanchez 1758cb34c3 Merge branch 'development' into hotfix/v3.6.6 2021-06-01 11:15:15 +02:00
Daniel Sanchez 6bc73b744a Set v3.6.6 2021-06-01 10:29:56 +02:00
Daniel Sanchez 8c40f43730 Fix crash with Coinbase Wallet after upgrade to latest version (#2363)
* Fix name changing in bnc-onboard Coinbase Wallet

* Add comment in wallet provider list to explain the use
2021-06-01 10:29:40 +02:00
Daniel Sanchez f1851d47a4
Fix crash with Coinbase Wallet after upgrade to latest version (#2363)
* Fix name changing in bnc-onboard Coinbase Wallet

* Add comment in wallet provider list to explain the use
2021-06-01 10:28:44 +02:00
Agustín Longoni b8ad9e57bc fix styles and add links for each network 2021-05-31 19:55:06 -03:00
Agustín Longoni 9a03fa6702 read networknames from contants 2021-05-31 10:03:54 -03:00
Agustín Longoni 00929332a5 add NETWORKSNAMES 2021-05-28 17:08:34 -03:00
Agustín Longoni a54f020876 fix NetworkSelector width 2021-05-28 16:32:05 -03:00
Agustín Longoni 053597214f fix width of network labels 2021-05-28 16:17:33 -03:00
Agustín Longoni 9ef4977d4b fix NetworkSelector styles 2021-05-28 16:14:16 -03:00
dependabot[bot] c1dd274ede
Bump dns-packet from 1.3.1 to 1.3.4 (#2338)
Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 1.3.1 to 1.3.4.
- [Release notes](https://github.com/mafintosh/dns-packet/releases)
- [Changelog](https://github.com/mafintosh/dns-packet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mafintosh/dns-packet/compare/v1.3.1...v1.3.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-28 18:04:41 +02: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
Agustín Longoni 949bef8399 delete commented code 2021-05-27 16:48:58 -03:00
Agustín Longoni 21f7b74db9 fix Wallet icon container 2021-05-27 16:46:03 -03:00
Agustín Longoni e697aba2dd add NetworkSelector component 2021-05-27 16:26:17 -03: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