From e2470e8ff653af20d115e12d8a3bd81cf5cdb34c Mon Sep 17 00:00:00 2001 From: Pavel Koch Date: Fri, 17 Apr 2026 15:19:08 +0200 Subject: [PATCH 1/2] feat: leader status templates --- sdk/src/idents/workflow.rs | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) 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"), }; } From 7612554d7d707cb14e23064e5d6e075bed8c69b3 Mon Sep 17 00:00:00 2001 From: Pavel Koch Date: Fri, 17 Apr 2026 15:21:12 +0200 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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`