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

Multi-network for Remote contract import. #114

Open
geofmureithi opened this issue Nov 24, 2023 · 1 comment
Open

Multi-network for Remote contract import. #114

geofmureithi opened this issue Nov 24, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@geofmureithi
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Currently remote cross contract import only supports OCI. The community wants more sources of contracts.

  • Network
  • Direct path

Describe the solution you'd like
I should be able to import via alternative methods

Describe alternatives you've considered
N/A

Additional context
https://discord.com/channels/897514728459468821/1177272905780973568

@geofmureithi geofmureithi added the enhancement New feature or request label Nov 24, 2023
@geofmureithi
Copy link
Contributor Author

Currently, OCI works like this:

voting = "ghcr.io/eigerco/nebula/contracts/voting:v0.2.0"

This is also valid:

voting = { reference = "ghcr.io/eigerco/nebula/contracts/voting:v0.2.0", digest="sha" }

Improvements can be done:

#[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(untagged)]
pub enum Contract {
    NoDigest(String),
    WithDigest {
        digest: Option<String>,
        reference: String,
    },
  Network(todo!()),
  Fs(PathBuf)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant