diff --git a/CHANGELOG.md b/CHANGELOG.md index ce58c189..d45009aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` diff --git a/sdk/src/idents/workflow.rs b/sdk/src/idents/workflow.rs index 9caf3f26..1dbf6d26 100644 --- a/sdk/src/idents/workflow.rs +++ b/sdk/src/idents/workflow.rs @@ -1167,6 +1167,13 @@ 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` @@ -1174,12 +1181,26 @@ impl Leader { 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"), }; }