Skip to main content

RegistryFactory.sol

Git Source

Author: yearn.finance

Factory for anyone to easily deploy their own Registry.

State Variables

releaseRegistry

address public immutable releaseRegistry;

Functions

constructor

constructor(address _releaseRegistry);

name

function name() external pure virtual returns (string memory);

createNewRegistry

Deploy a new Registry.

Default to msg.sender for governance.

function createNewRegistry(string memory _name) external virtual returns (address);

Parameters

NameTypeDescription
_namestringThe name of the new registry.

Returns

NameTypeDescription
<none>addressAddress of the new Registry.

createNewRegistry

Deploy a new Registry.

function createNewRegistry(string memory _name, address _governance) public virtual returns (address);

Parameters

NameTypeDescription
_namestringThe name of the new registry.
_governanceaddressAddress to set as governance.

Returns

NameTypeDescription
<none>addressAddress of the new Registry.

Events

NewRegistry

event NewRegistry(address indexed newRegistry, address indexed governance, string name);