mirror of
https://github.com/status-im/topic-democracy.git
synced 2025-02-25 08:35:14 +00:00
28 lines
729 B
Solidity
28 lines
729 B
Solidity
pragma solidity >=0.5.0 <0.6.0;
|
|
|
|
import "../deploy/InstanceFactory.sol";
|
|
import "../deploy/Instance.sol";
|
|
|
|
/**
|
|
* @title DelegationFactory
|
|
* @author Ricardo Guilherme Schmidt (Status Research & Development GmbH)
|
|
* @dev Upgradable delegation proxy factory
|
|
*/
|
|
contract DelegationFactory is InstanceFactory {
|
|
|
|
constructor(InstanceAbstract _base, InstanceAbstract _init, InstanceAbstract _emergency)
|
|
InstanceFactory(_base, _init, _emergency)
|
|
public
|
|
{ }
|
|
|
|
function createDelegation(
|
|
address
|
|
)
|
|
external
|
|
returns (InstanceAbstract instance)
|
|
{
|
|
instance = new Instance(base, prototypes[address(base)].init, msg.data);
|
|
emit InstanceCreated(instance);
|
|
}
|
|
|
|
} |