Skip to content

Commit

Permalink
Sync native RoleManagement node roles with the Neo core (neo-project#977
Browse files Browse the repository at this point in the history
)

* Keep native RoleManagement roles in sync with Neo core
  Add missing NeoFSAlphabetNode role. We should keep this list in sync
  with Core so that users are able to use these roles.

* Add documentation to native RoleManagement roles
   It's nice when user-facing things are well-documented.

Signed-off-by: Anna Shaleva <[email protected]>
  • Loading branch information
AnnaShaleva authored and cschuchardt88 committed Mar 21, 2024
1 parent 7e6b960 commit d647958
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/Neo.SmartContract.Framework/Native/Role.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,24 @@

namespace Neo.SmartContract.Framework.Native
{
/// <summary>
/// Represents the roles in the NEO system.
/// </summary>
public enum Role : byte
{
/// <summary>
/// The validators of state. Used to generate and sign the state root.
/// </summary>
StateValidator = 4,
Oracle = 8

/// <summary>
/// The nodes used to process Oracle requests.
/// </summary>
Oracle = 8,

/// <summary>
/// NeoFS Alphabet nodes.
/// </summary>
NeoFSAlphabetNode = 16
}
}

0 comments on commit d647958

Please sign in to comment.