move state types from signed_core into signed_state

This commit is contained in:
2026-10-13 18:01:38 +07:00
parent 74e1226b93
commit 5b16ba50c2
8 changed files with 99 additions and 36 deletions
+9 -1
View File
@@ -46,8 +46,16 @@ pub enum GitPushMode {
Main,
}
/// A git ref with the commit it points at.
pub struct GitRef {
/// Full ref name, like `refs/heads/main` or `refs/tags/v1.0`.
pub name: String,
/// Commit id, `bitcoin_hashes::sha1::Hash`, the type NIP-34 tags carry.
pub commit: Sha1Hash,
}
pub struct SyncState {
pub refs: Vec<(String, String)>,
pub refs: Vec<GitRef>,
pub head: Option<String>,
/// Local repository to push from; `None` for states parsed from events.
pub path: Option<PathBuf>,