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

(Feature) [xDai] Use generic config#1422

Merged
fernandomg merged 31 commits intofeature/#1353-xDai-compatibilityfrom
feature/#1415-xDai-use-generic-config
Oct 5, 2020
Merged

(Feature) [xDai] Use generic config#1422
fernandomg merged 31 commits intofeature/#1353-xDai-compatibilityfrom
feature/#1415-xDai-use-generic-config

Conversation

@fernandomg
Copy link
Contributor

@fernandomg fernandomg commented Oct 2, 2020

This PR closes #1415, by:

  • replacing the current environment configs with newly created "generic configs"
  • updating the config to expose the necessary information added in the network config
  • adding tests to the config interface

fernandomg and others added 11 commits September 30, 2020 16:33
Co-authored-by: Matias Dastugue <matias.dastugue@altoros.com>
Co-authored-by: Matias Dastugue <matias.dastugue@altoros.com>
Co-authored-by: Matias Dastugue <matias.dastugue@altoros.com>
Co-authored-by: Matias Dastugue <matias.dastugue@altoros.com>
Co-authored-by: Matias Dastugue <matias.dastugue@altoros.com>
Co-authored-by: Matias Dastugue <matias.dastugue@altoros.com>
@fernandomg fernandomg self-assigned this Oct 2, 2020
@github-actions
Copy link

github-actions bot commented Oct 2, 2020

CLA Assistant Lite All Contributors have signed the CLA.

@github-actions
Copy link

github-actions bot commented Oct 2, 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 19 0
Ignored 10 N/A
  • Result: ✅ success

  • Annotations: 19 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

fernandomg and others added 15 commits October 2, 2020 09:23
Co-authored-by: Matias Dastugue <matias.dastugue@altoros.com>
Co-authored-by: Matias Dastugue <matias.dastugue@altoros.com>
Co-authored-by: Matias Dastugue <matias.dastugue@altoros.com>
Co-authored-by: Matias Dastugue <matias.dastugue@altoros.com>
…xDai-use-generic-config

# Conflicts:
#	src/config/networks/__tests__/networks.test.ts
#	src/config/networks/network.d.ts
…ion file

Co-authored-by: Matias Dastugue <matias.dastugue@altoros.com>
Co-authored-by: Matias Dastugue <matias.dastugue@altoros.com>
Co-authored-by: Matias Dastugue <matias.dastugue@altoros.com>
- also added 'local' as a network for testing purposes
@ghost
Copy link

ghost commented Oct 2, 2020

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

fernandomg and others added 2 commits October 2, 2020 17:01
Co-authored-by: Matias Dastugue <matias.dastugue@altoros.com>
…ai-use-generic-config

# Conflicts:
#	src/config/networks/__tests__/networks.test.ts
#	src/config/networks/mainnet.ts
#	src/config/networks/network.d.ts
#	src/config/networks/rinkeby.ts
#	src/config/networks/xdai.ts
#	src/logic/wallets/getWeb3.ts
@fernandomg fernandomg marked this pull request as ready for review October 2, 2020 20:08
@ghost
Copy link

ghost commented Oct 2, 2020

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

1 similar comment
@ghost
Copy link

ghost commented Oct 2, 2020

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

NETWORK: 'MAINNET',
}))
const { getTxServiceUrl, getGnosisSafeAppsUrl } = require('src/config')
const TX_SERVICE_URL = 'https://safe-transaction.mainnet.staging.gnosisdev.com/api/v1/'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't it be taken from src/config/networks/mainnet.ts?

Copy link
Contributor Author

@fernandomg fernandomg Oct 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 yes, you're right, as the goal of the test is to verify NODE_ENV and NETWORK values.

@ghost
Copy link

ghost commented Oct 5, 2020

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

@fernandomg fernandomg merged commit ab2d1cf into feature/#1353-xDai-compatibility Oct 5, 2020
@fernandomg fernandomg deleted the feature/#1415-xDai-use-generic-config branch October 5, 2020 17:44
@github-actions github-actions bot locked and limited conversation to collaborators Oct 5, 2020
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.

4 participants