Blockwell

NftDeployer

About

Stats

Public Functions 7
Event Types 3
Code Size 28,363 bytes

AdminAdded Event

Parameters help
account
address help

AdminRemoved Event

Parameters help
account
address help

TokenDeployed Event

Parameters help
contractAddress
address help
owner
address help
name
string help
symbol
string help

Functions Expand All Collapse All

isAdmin keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help view
Source Code
    function isAdmin(address account) public view returns (bool) {
        return admins.has(account);
    }

addAdmin keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null
Source Code
    function addAdmin(address account) public onlyAdmin {
        _addAdmin(account);
    }

removeAdmin keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null
Source Code
    function removeAdmin(address account) public onlyAdmin {
        _removeAdmin(account);
    }

setPrice keyboard_arrow_up

Parameters help

Name Type
newPrice
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null
Source Code
    function setPrice(uint256 newPrice) public onlyAdmin {
        price = newPrice;
    }

setTokenAdmin keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null
Source Code
    function setTokenAdmin(address account) public onlyAdmin {
        tokenAdmin = account;
    }

deployToken keyboard_arrow_up

Parameters help

Name Type
name
string help
symbol
string help
burnable
bool help
enumerable
bool help

Properties

Visibility help public
Mutability help payable

Requirements help

Source Code
    function deployToken(string name, string symbol, bool burnable, bool enumerable) payable public returns (address) {
        require(msg.value == price, "Must send price in ether to create a token");

        NfToken token = new NfToken(name, symbol, burnable, enumerable, msg.sender, tokenAdmin);
        emit TokenDeployed(token, msg.sender, name, symbol);
        return token;
    }

withdraw keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null
Source Code
    function withdraw() public onlyAdmin {
        msg.sender.transfer(address(this).balance);
    }