IROJIContractRegistryFacet
IROJIContractRegistryFacet
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.
NotAContract
Error emitted when an address passed as a parameter is not a contract.
ContractRegistryContractRegistered
Emitted when a new contract has been created and added to the registry
Parameters
proxyOrContract
address
Address of the added proxy or contract.
baseContract
address
If proxyOrContract
is a proxy, this is the address of the base contract. Otherwise, it must be identical to proxyOrContract
.
creator
address
Address of the creator of the proxy.
data
uint256
Data identifying the contract. This is for future use.
contractRegistryRegisterContract
Registers a contract. This is called by the proxy factories or manually on the platform for contracts that are non proxies.
Parameters
proxyOrContract
address
Address of the added proxy or contract.
baseContract
address
If proxyOrContract
is a proxy, this is the address of the base contract. Otherwise, it must be identical to proxyOrContract
.
creator
address
Address of the creator of the proxy.
data
uint256
Data identifying the contract. This is for future use.
contractRegistryGetRegisteredContractsLength
returns the total length of the registry array
contractRegistryGetRegisteredContract
returns the contract info at the given index'
Parameters
idx
uint256
The index of the contract to return. use contractRegistryGetRegisteredContractsLength
to get the total length of the array
Was this helpful?