Name | Lookup | Parameters | |
|---|---|---|---|
| fetch_role | 6700 | 2 | |
| fetch_roles | 6701 | 1 | |
| add_role | 6702 | 2 | |
| update_role | 6703 | 2 | |
| disable_role | 6704 | 1 | |
| fetch_user_roles | 6705 | 2 | |
| assign_role_to_user | 6706 | 2 | |
| unassign_role_to_user | 6707 | 2 | |
| fetch_permission | 6708 | 2 | |
| fetch_permissions | 6709 | 1 | |
| add_permission | 670a | 2 | |
| update_permission | 670b | 2 | |
| disable_permission | 670c | 1 | |
| fetch_role_permissions | 670d | 2 | |
| assign_permission_to_role | 670e | 2 | |
| unassign_permission_to_role | 670f | 2 | |
| fetch_group | 6710 | 2 | |
| fetch_groups | 6711 | 1 | |
| add_group | 6712 | 2 | |
| update_group | 6713 | 2 | |
| disable_group | 6714 | 1 | |
| assign_role_to_group | 6715 | 2 | |
| unassign_role_to_group | 6716 | 2 | |
| fetch_group_roles | 6717 | 2 | |
| assign_user_to_group | 6718 | 2 | |
| unassign_user_to_group | 6719 | 2 | |
| fetch_user_groups | 671a | 2 | |
| fetch_user_permissions | 671b | 2 | |
| fetch_group_permissions | 671c | 2 |
Name | Lookup | Attributes | |
|---|---|---|---|
| RoleAdded | 6700 | ["AccountId","EntityId","Bytes"] | |
| RoleUpdated | 6701 | ["AccountId","EntityId","Bytes"] | |
| RoleRemoved | 6702 | ["AccountId","EntityId"] | |
| RoleFetched | 6703 | ["Entity<EntityId>"] | |
| AllRolesFetched | 6704 | ["Vec<Entity<EntityId>>"] | |
| RoleAssignedToUser | 6705 | ["AccountId","EntityId","EntityId"] | |
| RoleUnassignedToUser | 6706 | ["AccountId","EntityId","EntityId"] | |
| RoleAssignedToGroup | 6707 | ["AccountId","EntityId","EntityId"] | |
| RoleUnassignedToGroup | 6708 | ["AccountId","EntityId","EntityId"] | |
| FetchedGroupRoles | 6709 | ["Vec<Role2Group<EntityId>>"] | |
| FetchedUserRoles | 670a | ["Vec<Role2User<EntityId>>"] | |
| FetchedUserGroups | 670b | ["Vec<User2Group<EntityId>>"] | |
| FetchedUserPermissions | 670c | ["Vec<Entity<EntityId>>"] | |
| FetchedGroupPermissions | 670d | ["Vec<Entity<EntityId>>"] | |
| PermissionAdded | 670e | ["AccountId","EntityId","Bytes"] | |
| PermissionUpdated | 670f | ["AccountId","EntityId","Bytes"] | |
| PermissionDisabled | 6710 | ["AccountId","EntityId"] | |
| PermissionAssigned | 6711 | ["AccountId","EntityId","EntityId"] | |
| PermissionUnassignedToRole | 6712 | ["AccountId","EntityId","EntityId"] | |
| FetchedRolePermissions | 6713 | ["Vec<Permission2Role<EntityId>>"] | |
| PermissionFetched | 6714 | ["Entity<EntityId>"] | |
| AllPermissionsFetched | 6715 | ["Vec<Entity<EntityId>>"] | |
| GroupFetched | 6716 | ["Entity<EntityId>"] | |
| AllGroupsFetched | 6717 | ["Vec<Entity<EntityId>>"] | |
| GroupAdded | 6718 | ["AccountId","EntityId","Bytes"] | |
| GroupUpdated | 6719 | ["AccountId","EntityId","Bytes"] | |
| GroupDisabled | 671a | ["AccountId","EntityId"] | |
| UserAssignedToGroup | 671b | ["AccountId","EntityId","EntityId"] | |
| UserUnAssignedToGroup | 671c | ["AccountId","EntityId","EntityId"] |
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}} |
Name | Docs |
|---|---|
| EntityNameExceedMax64 | Name exceeds 64 |
| EntityAlreadyExist | Returned if the Role already exists |
| EntityDoesNotExist | Returned if the Role does not exists |
| EntityDisabled | Returned if the Entity is not enabled |
| EntityAuthorizationFailed | Failed to verify entity ownership |
| AssignmentAlreadyExist | Failed to assign entity to entity (e.g. user to group, role to user) |
| AssignmentDoesNotExist | Returned if assignment does not exist |