ROJIContractRegistryFacet
ROJIContractRegistryFacet
contractRegistryGetRegisteredContract
returns the contract info at the given index'
Parameters
Name
Type
Description
idx
uint256
The index of the contract to return. use contractRegistryGetRegisteredContractsLength
to get the total length of the array
contractRegistryGetRegisteredContractsLength
returns the total length of the registry array
contractRegistryRegisterContract
Registers a contract. This is called by the proxy factories or manually on the platform for contracts that are non proxies.
Parameters
Name
Type
Description
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.
Was this helpful?