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

Introduces query for contract build information #919

Merged
merged 3 commits into from
Nov 25, 2021

Conversation

jstuczyn
Copy link
Contributor

This pull request solves the problem of "what version of the contract have we exactly deployed?". It introduces a query that returns the build information. Currently it includes the following:

MixnetContractVersion {
    build_timestamp: "2021-11-25T12:18:41.573392838+00:00",
    build_version: "0.1.0",
    commit_sha: "39c7b131b69a8d3217372853afb7e776207b6d19",
    commit_timestamp: "2021-11-25T10:27:31+00:00",
    commit_branch: "feature/contract-version",
    rustc_version: "1.56.1",
}

If anyone feels like something else could be added there, full list of available options is here: https://docs.rs/vergen/5.1.17/vergen/

@jstuczyn jstuczyn added the enhancement New feature or request label Nov 25, 2021
@jstuczyn jstuczyn merged commit c361de6 into develop Nov 25, 2021
@jstuczyn jstuczyn deleted the feature/contract-version branch November 25, 2021 15:17
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

Successfully merging this pull request may close these issues.

None yet

2 participants