Blockwell

LexList

About

Stats

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

Events (3) keyboard_arrow_up

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

lexDAO Variable

address help

totalSupply Variable

uint256 help

details Variable

string help

name Variable

string help

symbol Variable

string help

balanceOf Variable

mapping(address => uint256) help

ownerOf Variable

mapping(uint256 => address) help

tokenURI Variable

mapping(uint256 => string) help

supportsInterface Variable

mapping(bytes4 => bool) 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]);
  }
}

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);
}

Internal Functions Expand All Collapse All

Internal functions are parts of the contract that can't be used directly, but instead are used by the public functions listed above.

internal LexList._mint keyboard_arrow_up

Parameters help

Name Type
to
address help
_tokenURI
string help

Properties

Visibility help internal
Mutability help transaction
Source Code
function _mint(address to, string calldata _tokenURI) internal {
  totalSupply++;
  uint256 tokenId = totalSupply;
  balanceOf[to]++;
  ownerOf[tokenId] = to;
  tokenURI[tokenId] = _tokenURI;
  emit Transfer(address(0), to, tokenId);
}