peaq
subscan
Runtime Modules / PeaqRbac
Spec Version:
Events
Name
Lookup
Attributes
RoleAdded6700["AccountId","EntityId","BoundedVec<u8, BoundedDataLen>"]
RoleUpdated6701["AccountId","EntityId","BoundedVec<u8, BoundedDataLen>"]
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","BoundedVec<u8, BoundedDataLen>"]
PermissionUpdated670f["AccountId","EntityId","BoundedVec<u8, BoundedDataLen>"]
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","BoundedVec<u8, BoundedDataLen>"]
GroupUpdated6719["AccountId","EntityId","BoundedVec<u8, BoundedDataLen>"]
GroupDisabled671a["AccountId","EntityId"]
UserAssignedToGroup671b["AccountId","EntityId","EntityId"]
UserUnAssignedToGroup671c["AccountId","EntityId","EntityId"]
EntityDeleted671d["AccountId","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":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}}
Constants
Name
Type
Value
BoundedDataLenU3200000400
StorageDepositBaseU1280000c16ff28623000000000000000000
StorageDepositPerByteU1280080c6a47e8d03000000000000000000
ReserveIdentifier[U8; 8]7065617172626163
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
StorageExceedsMaxBoundsExceeds BoundedLen bounds
EntityDeletedEnity Deleted