subscan
Runtime Modules / PeaqRbac
Spec Version:
Events
Name
Lookup
Attributes
RoleAdded6700["AccountId","EntityId","Bytes"]
RoleUpdated6701["AccountId","EntityId","Bytes"]
RoleRemoved6702["AccountId","EntityId"]
RoleFetched6703["Entity<EntityId>"]
AllRolesFetched6704["Vec<Entity<EntityId>>"]
RoleAssignedToUser6705["AccountId","EntityId","EntityId"]
RoleUnassignedToUser6706["AccountId","EntityId","EntityId"]
RoleAssignedToGroup6707["AccountId","EntityId","EntityId"]
RoleUnassignedToGroup6708["AccountId","EntityId","EntityId"]
FetchedGroupRoles6709["Vec<Role2Group<EntityId>>"]
FetchedUserRoles670a["Vec<Role2User<EntityId>>"]
FetchedUserGroups670b["Vec<User2Group<EntityId>>"]
FetchedUserPermissions670c["Vec<Entity<EntityId>>"]
FetchedGroupPermissions670d["Vec<Entity<EntityId>>"]
PermissionAdded670e["AccountId","EntityId","Bytes"]
PermissionUpdated670f["AccountId","EntityId","Bytes"]
PermissionDisabled6710["AccountId","EntityId"]
PermissionAssigned6711["AccountId","EntityId","EntityId"]
PermissionUnassignedToRole6712["AccountId","EntityId","EntityId"]
FetchedRolePermissions6713["Vec<Permission2Role<EntityId>>"]
PermissionFetched6714["Entity<EntityId>"]
AllPermissionsFetched6715["Vec<Entity<EntityId>>"]
GroupFetched6716["Entity<EntityId>"]
AllGroupsFetched6717["Vec<Entity<EntityId>>"]
GroupAdded6718["AccountId","EntityId","Bytes"]
GroupUpdated6719["AccountId","EntityId","Bytes"]
GroupDisabled671a["AccountId","EntityId"]
UserAssignedToGroup671b["AccountId","EntityId","EntityId"]
UserUnAssignedToGroup671c["AccountId","EntityId","EntityId"]
Storage Functions
Name
Type
RoleStore{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"Vec<peaq_pallet_rbac:structs:Entity>","keys_id":0,"value_id":151}}
Role2UserStore{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["[U8; 32]"],"value":"Vec<peaq_pallet_rbac:structs:Role2User>","keys_id":1,"value_id":154}}
PermissionStore{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"Vec<peaq_pallet_rbac:structs:Entity>","keys_id":0,"value_id":151}}
Permission2RoleStore{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["[U8; 32]"],"value":"Vec<peaq_pallet_rbac:structs:Permission2Role>","keys_id":1,"value_id":158}}
GroupStore{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"Vec<peaq_pallet_rbac:structs:Entity>","keys_id":0,"value_id":151}}
Role2GroupStore{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["[U8; 32]"],"value":"Vec<peaq_pallet_rbac:structs:Role2Group>","keys_id":1,"value_id":152}}
User2GroupStore{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["[U8; 32]"],"value":"Vec<peaq_pallet_rbac:structs:User2Group>","keys_id":1,"value_id":156}}
KeysLookUpStore{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["[U8; 32]"],"value":"peaq_pallet_rbac:structs:Entity","keys_id":1,"value_id":150}}
Error Types
Name
Docs
EntityNameExceedMax64Name exceeds 64
EntityAlreadyExistReturned if the Role already exists
EntityDoesNotExistReturned if the Role does not exists
EntityDisabledReturned if the Entity is not enabled
EntityAuthorizationFailedFailed to verify entity ownership
AssignmentAlreadyExistFailed to assign entity to entity (e.g. user to group, role to user)
AssignmentDoesNotExistReturned if assignment does not exist