Blockwell

LexList

About

Stats

Public Functions 5
Event Types 3
Code Size 3,348 bytes

Transfer Event

Parameters help
from
address help
to
address help
tokenId
uint256 help

UpdateGovernance Event

Parameters help
lexDAO
address help
details
string help

UpdateTokenURI Event

Parameters help
tokenId
uint256 help
tokenURI
string help

Functions Expand All Collapse All

mint keyboard_arrow_up

Parameters help

Name Type
to
address help
_tokenURI
string help

Properties

Visibility help public
Mutability help transaction
Source Code
    function mint(address to, string calldata _tokenURI) external onlyLexDAO { 
        _mint(to, _tokenURI);
    }

mintBatch keyboard_arrow_up

Parameters help

Name Type
to
address[] help
_tokenURI
string[] help

Properties

Visibility help public
Mutability help transaction
Source Code
    function mintBatch(address[] calldata to, string[] calldata _tokenURI) external onlyLexDAO {
        require(to.length == _tokenURI.length, "!to/tokenURI");
        for (uint256 i = 0; i < to.length; i++) {
            _mint(to[i], _tokenURI[i]); 
        }
    }

transfer keyboard_arrow_up

Parameters help

Name Type
from
address help
to
address help
tokenId
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
    function transfer(address from, address to, uint256 tokenId) external onlyLexDAO {
        balanceOf[from]--; 
        balanceOf[to]++; 
        ownerOf[tokenId] = to;
        emit Transfer(from, to, tokenId); 
    }

updateGovernance keyboard_arrow_up

Parameters help

Name Type
_lexDAO
address help
_details
string help

Properties

Visibility help public
Mutability help transaction
Source Code
    function updateGovernance(address _lexDAO, string calldata _details) external onlyLexDAO {
        lexDAO = _lexDAO;
        details = _details;
        emit UpdateGovernance(_lexDAO, _details);
    }

updateTokenURI keyboard_arrow_up

Parameters help

Name Type
tokenId
uint256 help
_tokenURI
string help

Properties

Visibility help public
Mutability help transaction
Source Code
    function updateTokenURI(uint256 tokenId, string calldata _tokenURI) external onlyLexDAO {
        tokenURI[tokenId] = _tokenURI;
        emit UpdateTokenURI(tokenId, _tokenURI);
    }