Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

### `nexus-sdk`

#### Added

- Move identifiers for changing the leader status

## [`0.8.4`] - 2026-04-08

### `nexus-cli`
Expand Down
29 changes: 25 additions & 4 deletions sdk/src/idents/workflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1167,19 +1167,40 @@ impl Leader {
module: LEADER_MODULE,
name: sui::types::Identifier::from_static("register"),
};
/// Set a leader's status.
///
/// `nexus_workflow::leader::set_status`
pub const SET_STATUS: ModuleAndNameIdent = ModuleAndNameIdent {
module: LEADER_MODULE,
name: sui::types::Identifier::from_static("set_status"),
};
/// Stake SUI into a leader's pool.
///
/// `nexus_workflow::leader::stake`
pub const STAKE: ModuleAndNameIdent = ModuleAndNameIdent {
module: LEADER_MODULE,
name: sui::types::Identifier::from_static("stake"),
};
/// Update or register a leader node.
/// Create `LeaderStatus::ACTIVE`.
///
/// `nexus_workflow::leader::status_active`
pub const STATUS_ACTIVE: ModuleAndNameIdent = ModuleAndNameIdent {
module: LEADER_MODULE,
name: sui::types::Identifier::from_static("status_active"),
};
/// Create `LeaderStatus::SLASHED`.
///
/// `nexus_workflow::leader::status_slashed`
pub const STATUS_SLASHED: ModuleAndNameIdent = ModuleAndNameIdent {
module: LEADER_MODULE,
name: sui::types::Identifier::from_static("status_slashed"),
};
/// Create `LeaderStatus::SUSPENDED`.
///
/// `nexus_workflow::leader::upsert_self`
pub const UPSERT_SELF: ModuleAndNameIdent = ModuleAndNameIdent {
/// `nexus_workflow::leader::status_suspended`
pub const STATUS_SUSPENDED: ModuleAndNameIdent = ModuleAndNameIdent {
module: LEADER_MODULE,
name: sui::types::Identifier::from_static("upsert_self"),
name: sui::types::Identifier::from_static("status_suspended"),
};
}

Expand Down
Loading