LAU Factory
Last updated
Last updated
0xbA6CcD38992839aEE20D5bF9125b1d94190b091C
[
{
"inputs": [
{
"internalType": "address",
"name": "VOIDAddress",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "string",
"name": "symbol",
"type": "string"
}
],
"name": "New",
"outputs": [
{
"internalType": "contract LAU",
"name": "Mu",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "Void",
"outputs": [
{
"internalType": "contract VOID",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
]
// SPDX-License-Identifier: Sharia
pragma solidity ^0.8.21;
import "./11_lau.sol";
contract LAUFactory {
VOID public Void;
constructor(address VOIDAddress) {
Void = VOID(VOIDAddress);
Void.addOwner(address(this));
}
function New(string memory name, string memory symbol) public returns(LAU Mu) {
Mu = new LAU(name, symbol, address(Void));
Mu.addOwner(msg.sender);
Mu.addOwner(tx.origin);
Mu.renounceOwnership(address(this));
}
}
View the source code in Solidity .