What problem does it solve?
Dojo-world permission management centralizes and simplifies granting, revoking, and auditing access to namespaces and resources so teams can safely run on-chain game systems and contracts without accidental privilege escalation or unauthorized writes.
Core Features & Use Cases
- Namespace and resource configuration: Define namespace-level and resource-specific owners and writers during deployment and runtime.
- Granting and revoking roles: Use CLI commands or runtime Cairo calls to grant_writer, grant_owner, revoke_writer, and revoke_owner for precise access control.
- Permission hierarchy and auditing: Support world owner, namespace owner, resource owner, and writer roles, emit permission-change events for monitoring, and include troubleshooting guidance for authorization errors.
- Use case: Add a new movement system by granting writer permission to the my_game-Position resource and transfer namespace ownership when handing control to a multisig admin.
Quick Start
Grant writer permission to the movement system in the my_game namespace using the Sozo CLI or the world.grant_writer runtime call.