Deployer

Git Source

Inherits: Auth

State Variables

isDeployer

mapping(address => bool) public isDeployer;

Functions

constructor

constructor(address _owner, Authority _auth) Auth(_owner, _auth);

deployContract

Deploy some contract to a deterministic address.

Should be of form: "ContractName Version 0.0" Where the numbers after version are VERSION . SUBVERSION

function deployContract(
    string calldata name,
    bytes memory creationCode,
    bytes calldata constructorArgs,
    uint256 value
)
    external
    requiresAuth
    returns (address);

Parameters

getAddress

function getAddress(string calldata name) external view returns (address);

convertNameToBytes32

function convertNameToBytes32(string calldata name) public pure returns (bytes32);

Events

ContractDeployed

Emitted on deployContract calls.

event ContractDeployed(string name, address contractAddress, bytes32 creationCodeHash);

Parameters

Errors

Deployer__NotADeployer

error Deployer__NotADeployer();