#
SystemFacet
Inherits: Modifiers, ReentrancyGuard
Use it to perform system level operations
Use it to perform system level operations
#
Functions
#
createEntity
Create an entity
An entity can be created with a zero max capacity! This is in the event where an entity cannot write any policies.
function createEntity(bytes32 _entityId, bytes32 _entityAdmin, Entity calldata _entityData, bytes32 _dataHash)
external
assertPrivilege(LibAdmin._getSystemId(), LC.GROUP_SYSTEM_MANAGERS);
Parameters
#
stringToBytes32
Convert a string type to a bytes32 type
function stringToBytes32(string memory _strIn) external pure returns (bytes32 result);
Parameters
Returns
#
isObject
Get whether given id is an object in the system.
function isObject(bytes32 _id) external view returns (bool);
Parameters
Returns
#
getObjectMeta
Get meta of given object.
function getObjectMeta(bytes32 _id)
external
view
returns (bytes32 parent, bytes32 dataHash, string memory tokenSymbol, string memory tokenName, address tokenWrapper);
Parameters
Returns
#
wrapToken
Wrap an object token as ERC20
function wrapToken(bytes32 _objectId)
external
nonReentrant
assertPrivilege(LibAdmin._getSystemId(), LC.GROUP_SYSTEM_ADMINS);
Parameters
#
getObjectType
Returns the object's type
An object's type is the most significant 12 bytes of its bytes32 ID
function getObjectType(bytes32 _objectId) external pure returns (bytes12);
Parameters
#
isObjectType
Check to see if an object is of a given type
function isObjectType(bytes32 _objectId, bytes12 _objectType) external pure returns (bool);
Parameters
Returns