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

Remove dependency from environment variables #152

@kedarchandrayan

Description

@kedarchandrayan

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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions