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 | |
delete_role | 671d | 1 | |
delete_permission | 671e | 1 | |
delete_group | 671f | 1 |
Name | Lookup | Attributes | |
---|---|---|---|
RoleAdded | 6700 | ["AccountId","EntityId","BoundedVec<u8, BoundedDataLen>"] | |
RoleUpdated | 6701 | ["AccountId","EntityId","BoundedVec<u8, BoundedDataLen>"] | |
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","BoundedVec<u8, BoundedDataLen>"] | |
PermissionUpdated | 670f | ["AccountId","EntityId","BoundedVec<u8, BoundedDataLen>"] | |
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","BoundedVec<u8, BoundedDataLen>"] | |
GroupUpdated | 6719 | ["AccountId","EntityId","BoundedVec<u8, BoundedDataLen>"] | |
GroupDisabled | 671a | ["AccountId","EntityId"] | |
UserAssignedToGroup | 671b | ["AccountId","EntityId","EntityId"] | |
UserUnAssignedToGroup | 671c | ["AccountId","EntityId","EntityId"] | |
EntityDeleted | 671d | ["AccountId","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":536}} | |
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":537}} | |
PermissionStore | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"Vec<peaq_pallet_rbac:structs:Entity>","keys_id":0,"value_id":536}} | |
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":538}} | |
GroupStore | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"Vec<peaq_pallet_rbac:structs:Entity>","keys_id":0,"value_id":536}} | |
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":539}} | |
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":540}} | |
KeysLookUpStore | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["[U8; 32]"],"value":"peaq_pallet_rbac:structs:Entity","keys_id":1,"value_id":177}} |
Name | Type | Value | |
---|---|---|---|
BoundedDataLen | U32 | 00000400 | |
StorageDepositBase | U128 | 0000c16ff28623000000000000000000 | |
StorageDepositPerByte | U128 | 0080c6a47e8d03000000000000000000 | |
ReserveIdentifier | [U8; 8] | 7065617172626163 |
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 |
StorageExceedsMaxBounds | Exceeds BoundedLen bounds |
EntityDeleted | Enity Deleted |