Skip to content
This repository has been archived by the owner on Mar 14, 2019. It is now read-only.

Remove dependency from environment variables #152

Open
kedarchandrayan opened this issue Jul 18, 2018 · 0 comments
Open

Remove dependency from environment variables #152

kedarchandrayan opened this issue Jul 18, 2018 · 0 comments

Comments

@kedarchandrayan
Copy link
Contributor

kedarchandrayan commented Jul 18, 2018

Presently, environment variables are being used for storing and getting following information:

  1. contract addresses like openst utility contract addresses, etc
  2. user addresses like utility chain owner, etc
  3. utility and value chain gas prices
  4. st prime uuid
  5. utility and value chain GETH endpoints
  6. Dynamo DB connection params
  7. DAX connection params

Environment variables were a hard dependency. The flexibility of creating two different instances of platform was not possible.

For Example: If an application wants to interact with multiple utility chains. With environment variables they could only interact with the platform instance set in the variables. Interacting with multiple chains is not possible.

To achieve this flexibility, we will take configuration as openst platform constructor params and then use the config in place of environment variables, where-ever needed. This will allow platform to connect to a configured set of services. (redis , memcache, DynamoDB, Geth)

After this change the application will create different configurations, instantiate platform for each configuration and then communicate with respective (appropriate) platform instance.

@AnaghaMurtarkar AnaghaMurtarkar changed the title Remove dependency from environment valriables Remove dependency from environment variables Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants