Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New stellar-config crate #1288

Open
willemneal opened this issue Apr 23, 2024 · 0 comments
Open

New stellar-config crate #1288

willemneal opened this issue Apr 23, 2024 · 0 comments
Assignees

Comments

@willemneal
Copy link
Member

willemneal commented Apr 23, 2024

What problem does your feature solve?

Initially the CLI was the only crate that needed to know about the config. But it should rather be a dependency so that other crates can read from a configuration to know about:

  • Networks
  • Keys
  • Contract Aliases

One initial use case: Compile time info:

For example, the native SAC has a deterministic Address given a network. So a contract compiled for testnet should be able to statically include it. However, the contract needs to know what network it's being compiled for, which could be provided through stellar-config.

What would you like to see?

Standardize set of configurations to be collected into one crate.

What alternatives are there?

@willemneal willemneal self-assigned this Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant