Skip to main content

MultiOwnableContractsRegistry

Overview​

License: MIT​

contract MultiOwnableContractsRegistry is AContractsRegistry, AMultiOwnable

The MultiOwnable preset of ContractsRegistry

Functions info​

__MultiOwnableContractsRegistry_init (0x62fe8259)​

function __MultiOwnableContractsRegistry_init() public initializer

The initialization function

injectDependencies (0x1adad8cf)​

function injectDependencies(string calldata name_) external onlyOwner

The function to inject dependencies to the specified contract

Parameters:

NameTypeDescription
name_stringthe name of the contract to inject dependencies to

injectDependenciesWithData (0xbe96dc3e)​

function injectDependenciesWithData(
string calldata name_,
bytes calldata data_
) external onlyOwner

The function to inject dependencies with data to the specified contract

Parameters:

NameTypeDescription
name_stringthe name of the contract to inject dependencies to
data_bytesthe data to be passed to setDependencies() function

upgradeContract (0x1271bd53)​

function upgradeContract(
string calldata name_,
address newImplementation_
) external onlyOwner

The function to upgrade the specified proxy contract

Parameters:

NameTypeDescription
name_stringthe name of the proxy contract to upgrade
newImplementation_addressthe new implementation

upgradeContractAndCall (0x6bbe8694)​

function upgradeContractAndCall(
string calldata name_,
address newImplementation_,
bytes calldata data_
) external onlyOwner

The function to upgrade the specified proxy contract with data

Parameters:

NameTypeDescription
name_stringthe name of the proxy contract to upgrade
newImplementation_addressthe new implementation
data_bytesthe data the proxy contract will be called after the upgrade

addContract (0xbf5b6016)​

function addContract(
string calldata name_,
address contractAddress_
) external onlyOwner

The function to add the regular contract to the registry

Parameters:

NameTypeDescription
name_stringthe associative name of the contract
contractAddress_addressthe address of the contract to add

addProxyContract (0xe0e084f8)​

function addProxyContract(
string calldata name_,
address contractAddress_
) external onlyOwner

The function to add the proxy contract to the registry (deploys AdminableProxy on top)

Parameters:

NameTypeDescription
name_stringthe associative name of the contract
contractAddress_addressthe address of the implementation contract to add

addProxyContractAndCall (0x423c072b)​

function addProxyContractAndCall(
string calldata name_,
address contractAddress_,
bytes calldata data_
) external onlyOwner

The function to add the proxy contract to the registry with immediate call (deploys AdminableProxy on top)

Parameters:

NameTypeDescription
name_stringthe associative name of the contract
contractAddress_addressthe address of the implementation contract to add
data_bytesthe data the proxy contract will be called after the addition

justAddProxyContract (0x51dad82c)​

function justAddProxyContract(
string calldata name_,
address contractAddress_
) external onlyOwner

The function to add proxy contract to the registry as is

Parameters:

NameTypeDescription
name_stringthe associative name of the contract
contractAddress_addressthe address of the proxy contract to add

removeContract (0x97623b58)​

function removeContract(string calldata name_) external onlyOwner

The function to remove the contract from the registry

Parameters:

NameTypeDescription
name_stringthe the associative name of the contract to remove