Skip to content
This repository was archived by the owner on Nov 10, 2023. It is now read-only.

(Feature) - xDai Compatibility#1476

Merged
dasanra merged 41 commits intodevelopmentfrom
feature/#1353-xDai-compatibility
Oct 18, 2020
Merged

(Feature) - xDai Compatibility#1476
dasanra merged 41 commits intodevelopmentfrom
feature/#1353-xDai-compatibility

Conversation

@fernandomg
Copy link
Contributor

@fernandomg fernandomg commented Oct 14, 2020

This PR closes #1353, by:

  • defining network-specific config files
  • implementing generic config to consume config files
  • removing all the hardcoded values related to native coins
  • making safe-apps support different networks

josipbagaric and others added 30 commits September 29, 2020 11:23
Co-authored-by: Matias Dastugue <matias.dastugue@altoros.com>
Co-authored-by: Mati Dastugue <mdastugu@amazon.com>
Co-authored-by: Matias Dastugue <matias.dastugue@altoros.com>
Co-authored-by: Mati Dastugue <mdastugu@amazon.com>
* Filter apps by network

* add missing network
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
Co-authored-by: fernandomg <fernando.greco@gmail.com>
Co-authored-by: Agustin Pane <agustin.pane@gmail.com>
* Add staging xDai deployment to travis

* Add safe apps production url for xdai

* Add travis rule to build xDai on master or integration branch
* fix min-height app containter and margin to info text at
bottom

* change css unit from % to vh

Co-authored-by: nicosampler <nf.dominguez.87@gmail.com>
* Replace all harcoded values

* fix `generateBatchRequest` calls

* Fix some ETH harcoded values + Add tests

* Fix null or undefinded value

* Move nativeCoin outside component + fix toTokenInput function

* Remove native coin from useEffect

Co-authored-by: fernandomg <fernando.greco@gmail.com>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
)

* Adds FEATURES enum
Renames features to disabledFeatures

* Uses FEATURES enum instead of hardcoded contract features

* Refactor enabledFeatures function, now checks that there are not disabled features by config before return the enabledFeatures result

* Adds SAFE_APPS and CONTRACT_INTERACTION to FEATURES enum

* Remove SAFE_APPS from sidebar if disabled

* Redirect user from /apps if safe apps are disabled

* Disables contract interaction from config

* Remove !remoteOwners

* Move settings to a constant
@fernandomg fernandomg self-assigned this Oct 14, 2020
@github-actions
Copy link

CLA Assistant Lite All Contributors have signed the CLA.

@github-actions
Copy link

github-actions bot commented Oct 14, 2020

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 34 0
Ignored 15 N/A
  • Result: ✅ success

  • Annotations: 34 total


[warning] @typescript-eslint/explicit-module-boundary-types

Require explicit return and argument types on exported functions' and classes' public class methods


Report generated by eslint-plus-action

@ghost
Copy link

ghost commented Oct 14, 2020

Travis automatic deployment:
https://pr1476--safereact.review.gnosisdev.com/app

fernandomg and others added 2 commits October 15, 2020 14:19
* add equality function to prevent re-renders

* fix typing

- I left the inline equalityFn, as an ad-hoc solution.
First, because we're going to remove this when #1479 is done
Second, because this way it infers the types defined in the useSelector generics
@ghost
Copy link

ghost commented Oct 15, 2020

Travis automatic deployment:
https://pr1476--safereact.review.gnosisdev.com/app

Co-authored-by: nicosampler <nf.dominguez.87@gmail.com>
@ghost
Copy link

ghost commented Oct 16, 2020

Travis automatic deployment:
https://pr1476--safereact.review.gnosisdev.com/app

@ghost
Copy link

ghost commented Oct 16, 2020

Travis automatic deployment:
https://pr1476--safereact.review.gnosisdev.com/app

* Add options to httpProvider

* Add log when generateatchRequest fails

* add types to generateBarchRequest

* fix types in `generateBatchRequests`

* add `.d` for imports of definition files

* add `undefined` alternative value for `generateBatchRequests` ReturnValues

- also, fixed typing errors in related functions

* fix return values for `generateBatchRequests` in tests

Co-authored-by: fernandomg <fernando.greco@gmail.com>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
@ghost
Copy link

ghost commented Oct 16, 2020

Travis automatic deployment:
https://pr1476--safereact.review.gnosisdev.com/app

@ghost
Copy link

ghost commented Oct 16, 2020

Travis automatic deployment:
https://pr1476--safereact.review.gnosisdev.com/app

* Replace old ETH values with native coin

* Replace old ETH values with native coin

* Replace old ETH values with native coin

* Replace old ETH values with native coin

* Remove networkInfo from the components

* Replaces humanReadableValue to fromTokenUnit

* Remove typo
@ghost
Copy link

ghost commented Oct 16, 2020

Travis automatic deployment:
https://pr1476--safereact.review.gnosisdev.com/app

@dasanra dasanra marked this pull request as ready for review October 18, 2020 19:45
@dasanra dasanra merged commit 9ca9007 into development Oct 18, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Oct 18, 2020
@dasanra dasanra deleted the feature/#1353-xDai-compatibility branch October 18, 2020 19:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

xDai compatibility

8 participants