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

feat(vault): client release version #668

Merged

Conversation

daniel-savu
Copy link
Contributor

@daniel-savu daniel-savu commented Jul 7, 2022

Vault Release Binary Info

This PR adds storage fields to act as the on-chain source of truth about the currently recommended vault version. It is part of the broader effort to develop a vault auto-updater (see #672 and interlay/interbtc-clients#310).

Adds two storage fields, CurrentClientRelease and PendingClientRelease, and two corresponding events NotifyClientRelease and ApplyClientRelease. PendingClientRelease is meant to be batched alongside the parachainSystem.enactAuthorizedUpgrade relay chain xcm call, shortly before a runtime upgraded is applied (about an hour); this allows the auto-updater software the time to download the next release binary and switch to it immediately after a runtime upgrade.

When a runtime upgrade occurs, the client version stored in PendingClientRelease is migrated to CurrentClientRelease.

@daniel-savu daniel-savu marked this pull request as draft July 7, 2022 17:11
crates/vault-registry/src/lib.rs Outdated Show resolved Hide resolved
crates/vault-registry/src/lib.rs Outdated Show resolved Hide resolved
crates/vault-registry/src/lib.rs Outdated Show resolved Hide resolved
crates/vault-registry/src/lib.rs Outdated Show resolved Hide resolved
crates/vault-registry/src/lib.rs Outdated Show resolved Hide resolved
crates/vault-registry/src/lib.rs Outdated Show resolved Hide resolved
crates/vault-registry/src/lib.rs Outdated Show resolved Hide resolved
crates/vault-registry/src/lib.rs Outdated Show resolved Hide resolved
@daniel-savu daniel-savu force-pushed the feature/vault-release-version branch from 50da4f6 to 2c5710e Compare July 25, 2022 06:51
@daniel-savu daniel-savu marked this pull request as ready for review July 25, 2022 07:21
crates/vault-registry/src/lib.rs Outdated Show resolved Hide resolved
crates/vault-registry/src/types.rs Outdated Show resolved Hide resolved
@daniel-savu daniel-savu merged commit 8345465 into interlay:master Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants