IROJIAccessManagerRegistryFacet

IROJIAccessManagerRegistryFacet

This is a facet that is added to the ROJIVerseDiamond contract. The events are emitted by the diamond. The purpose of this facet is to provide a registry for contracts that are created on the ROJI platform, either as proxies or as diamonds directly.

AccessManagerAlreadyRegistered

error AccessManagerAlreadyRegistered(bytes32 organization)

Thrown when an organization with the same id is already registered.

Parameters

Name
Type
Description

organization

bytes32

The id of the organization.

OrganizationCannotBeNull

error OrganizationCannotBeNull()

Thrown when a 0 organization is attempted to be registered.

AccessManagerRegistered

event AccessManagerRegistered(bytes32 organization, address accessManager, address[] admins, uint256 data)

Emitted when a new contract has been created and added to the registry

Parameters

Name
Type
Description

organization

bytes32

The id of the organization.

accessManager

address

The address of the access manager created.

admins

address[]

Access of the admins of the proxy.

data

uint256

Data identifying the contract. This is for future use.

accessManagerGetForOrganization

function accessManagerGetForOrganization(bytes32 organization) external view returns (address accessManager)

Retrieves the access manager for an organization, if it exists

Parameters

Name
Type
Description

organization

bytes32

The id of the organization.

Return Values

Name
Type
Description

accessManager

address

The address of the access manager.

accessManagerCreate

function accessManagerCreate(bytes32 organization, address[] admins) external returns (address accessManager)

Creates a new access manager for an organization.

Parameters

Name
Type
Description

organization

bytes32

The id of the organization.

admins

address[]

The initial admins for the access manager.

Return Values

Name
Type
Description

accessManager

address

The address of the access manager.

Was this helpful?