ROJIContractRegistryFacet

ROJIContractRegistryFacet

contractRegistryGetRegisteredContract

function contractRegistryGetRegisteredContract(uint256 idx) public view returns (struct ROJIContractRegistryInfo)

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

function contractRegistryGetRegisteredContractsLength() public view returns (uint256)

returns the total length of the registry array

contractRegistryRegisterContract

function contractRegistryRegisterContract(address proxyOrContract, address baseContract, address creator, uint256 data) external

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?