neo-devpack-dotnet icon indicating copy to clipboard operation
neo-devpack-dotnet copied to clipboard

Expose policy governance APIs

Open Jim8y opened this issue 4 months ago • 3 comments

Summary

  • expose missing Policy governance setters/getters and role designation helpers to smart contracts
  • add managed transaction attribute wrappers so contracts can inspect native attributes
  • update testing harness artifacts and unit tests to cover the new governance APIs

Testing

  • dotnet test tests/Neo.SmartContract.Framework.UnitTests/Neo.SmartContract.Framework.UnitTests.csproj --filter NativeTest

Jim8y avatar Oct 23 '25 14:10 Jim8y

Rebased on the latest dev, resolved conflicts, and trimmed the branch so it now only exposes the policy/role governance APIs. Added native Policy setters/getters, RoleManagement.DesignateAsRole, TransactionAttribute wrappers, and refreshed the unit tests. NativeTest suite passes (dotnet test ... --filter NativeTest).

Jim8y avatar Oct 24 '25 03:10 Jim8y

Why?

erikzhang avatar Oct 24 '25 03:10 erikzhang

I don't see any point in integrating these APIs into the SDK. No contract will need to call these APIs.

erikzhang avatar Dec 11 '25 02:12 erikzhang