Stats
            
                Public Functions
                5
            
            
                Event Types
                3
            
            
                Code Size
                3,348 bytes
            
         
     
 
         
            
                
    
        Events (3)
        keyboard_arrow_up
    
    
        
            
                
                    
                        
                            Transfer
                                Event
                            
                            
                                Parameters
            
                        
                            help
                            
                                                        Event parameters list the data that an event contains.
            
                            
                        
                                    
                            
                                
                                    
                                        | from | 
                                        
                        
                            address  help
                            
                                The type of this value is address, which means it stores an Ethereum address, such as a wallet address.
                            
                         | 
                                    
                                    
                                        | to | 
                                        
                        
                            address  help
                            
                                The type of this value is address, which means it stores an Ethereum address, such as a wallet address.
                            
                         | 
                                    
                                    
                                        | tokenId | 
                                        
                        
                            uint256  help
                            
                                The type of this value is uint, which stands for unsigned integer. Integer means it's a whole number (such as 1, 12, 52) without fractions or decimals. Unsigned means it can't have a negative or positive sign, so it's always a positive number.
                            
                         | 
                                    
                                
                            
                         
                     
                 
                
                    
                        
                            UpdateGovernance
                                Event
                            
                            
                                Parameters
            
                        
                            help
                            
                                                        Event parameters list the data that an event contains.
            
                            
                        
                                    
                            
                                
                                    
                                        | lexDAO | 
                                        
                        
                            address  help
                            
                                The type of this value is address, which means it stores an Ethereum address, such as a wallet address.
                            
                         | 
                                    
                                    
                                        | details | 
                                        
                        
                            string  help
                            
                                The type of this value is string, which is basically just plain text. It's called a string because it is a 'string' of letters.
                            
                         | 
                                    
                                
                            
                         
                     
                 
                
                    
                        
                            UpdateTokenURI
                                Event
                            
                            
                                Parameters
            
                        
                            help
                            
                                                        Event parameters list the data that an event contains.
            
                            
                        
                                    
                            
                                
                                    
                                        | tokenId | 
                                        
                        
                            uint256  help
                            
                                The type of this value is uint, which stands for unsigned integer. Integer means it's a whole number (such as 1, 12, 52) without fractions or decimals. Unsigned means it can't have a negative or positive sign, so it's always a positive number.
                            
                         | 
                                    
                                    
                                        | tokenURI | 
                                        
                        
                            string  help
                            
                                The type of this value is string, which is basically just plain text. It's called a string because it is a 'string' of letters.
                            
                         | 
                                    
                                
                            
                         
                     
                 
         
     
 
             
            
                
    
        State Variables (9)
        keyboard_arrow_up
    
    
        
            
                
                    
                        
                            lexDAO
                                Variable
                            
                            
                                
                        
                            address 
help
                            
                                The type of this value is address, which means it stores an Ethereum address, such as a wallet address.
                            
                         
                             
                            
                         
                     
                 
                
                    
                        
                            totalSupply
                                Variable
                            
                            
                                
                        
                            uint256 
help
                            
                                The type of this value is uint, which stands for unsigned integer. Integer means it's a whole number (such as 1, 12, 52) without fractions or decimals. Unsigned means it can't have a negative or positive sign, so it's always a positive number.
                            
                         
                             
                            
                         
                     
                 
                
                    
                        
                            details
                                Variable
                            
                            
                                
                        
                            string 
help
                            
                                The type of this value is string, which is basically just plain text. It's called a string because it is a 'string' of letters.
                            
                         
                             
                            
                         
                     
                 
                
                    
                        
                            name
                                Variable
                            
                            
                                
                        
                            string 
help
                            
                                The type of this value is string, which is basically just plain text. It's called a string because it is a 'string' of letters.
                            
                         
                             
                            
                         
                     
                 
                
                    
                        
                            symbol
                                Variable
                            
                            
                                
                        
                            string 
help
                            
                                The type of this value is string, which is basically just plain text. It's called a string because it is a 'string' of letters.
                            
                         
                             
                            
                         
                     
                 
                
                    
                        
                            balanceOf
                                Variable
                            
                            
                                
                        
                            mapping(address => uint256) 
help
                            
                                The type of this value is other.
                            
                         
                             
                            
                            
                         
                     
                 
                
                    
                        
                            ownerOf
                                Variable
                            
                            
                                
                        
                            mapping(uint256 => address) 
help
                            
                                The type of this value is other.
                            
                         
                             
                            
                            
                         
                     
                 
                
                    
                        
                            tokenURI
                                Variable
                            
                            
                                
                        
                            mapping(uint256 => string) 
help
                            
                                The type of this value is other.
                            
                         
                             
                            
                            
                         
                     
                 
                
                    
                        
                            supportsInterface
                                Variable
                            
                            
                                
                        
                            mapping(bytes4 => bool) 
help
                            
                                The type of this value is other.
                            
                         
                             
                            
                            
                         
                     
                 
         
     
 
             
        
        
                
    
        mint
        
        keyboard_arrow_up
    
    
        
            
                
                    Parameters
            
                help
                
                                            Function parameters list what input the function expects from the user. Each
                        parameter must be given a value.
                
            
                        
                
                        
                            
                            
                                | Name | 
                                Type | 
                            
                            
                            
                                
                                    | to | 
                                    
            
                address  help
                
                    The type of this value is address, which means it stores an Ethereum address, such as a wallet address.
                
             | 
                                
                                
                                    | _tokenURI | 
                                    
            
                string  help
                
                    The type of this value is string, which is basically just plain text. It's called a string because it is a 'string' of letters.
                
             | 
                                
                            
                        
                 
             
            
                Properties
                
                    
                        
                            Visibility
            
                help
                
                                                    Visibility determines if the function is visible to users and other contracts.
                                Only functions that are public can be used.
                
            
                                
                        public
                     
                    
                        
                            Mutability
            
                help
                
                                                    Mutability tells you if a function can make changes on the blockchain.
                                View means the function can be called by anyone without
                                a wallet and without submitting a transaction.
                
            
                                
                        
                            transaction
                     
                 
             
                
                    
                        Modifiers
            
                help
                
                                                Modifiers are additions to a function that typically make various checks before
                            the function is run.
                
            
                            
                    
                            
                                onlyLexDAO
                                    checks for the following:
                                
                                
                             
                     
                 
                Source Code
                
                    function mint(address to, string calldata _tokenURI) external onlyLexDAO {
  _mint(to, _tokenURI);
}
                 
         
     
 
                
    
        mintBatch
        
        keyboard_arrow_up
    
    
        
            
                
                    Parameters
            
                help
                
                                            Function parameters list what input the function expects from the user. Each
                        parameter must be given a value.
                
            
                        
                
                        
                            
                            
                                | Name | 
                                Type | 
                            
                            
                            
                                
                                    | to | 
                                    
            
                address[]  help
                
                    The type of this value is address, which means it stores an Ethereum address, such as a wallet address. Because the type ends with '[]', that means it is an array. An array is just a list of values, rather than a single value.
                
             | 
                                
                                
                                    | _tokenURI | 
                                    
            
                string[]  help
                
                    The type of this value is string, which is basically just plain text. It's called a string because it is a 'string' of letters. Because the type ends with '[]', that means it is an array. An array is just a list of values, rather than a single value.
                
             | 
                                
                            
                        
                 
             
            
                Properties
                
                    
                        
                            Visibility
            
                help
                
                                                    Visibility determines if the function is visible to users and other contracts.
                                Only functions that are public can be used.
                
            
                                
                        public
                     
                    
                        
                            Mutability
            
                help
                
                                                    Mutability tells you if a function can make changes on the blockchain.
                                View means the function can be called by anyone without
                                a wallet and without submitting a transaction.
                
            
                                
                        
                            transaction
                     
                 
             
                
                    
                        Modifiers
            
                help
                
                                                Modifiers are additions to a function that typically make various checks before
                            the function is run.
                
            
                            
                    
                            
                                onlyLexDAO
                                    checks for the following:
                                
                                
                             
                     
                 
                
                    
                        Requirements
            
                help
                
                                                Requirements are checks that the function makes when it runs, and give you
                            insight on what conditions are required for the function to succeed.
                
            
                            
                    
                 
                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
                
                                            Function parameters list what input the function expects from the user. Each
                        parameter must be given a value.
                
            
                        
                
                        
                            
                            
                                | Name | 
                                Type | 
                            
                            
                            
                                
                                    | from | 
                                    
            
                address  help
                
                    The type of this value is address, which means it stores an Ethereum address, such as a wallet address.
                
             | 
                                
                                
                                    | to | 
                                    
            
                address  help
                
                    The type of this value is address, which means it stores an Ethereum address, such as a wallet address.
                
             | 
                                
                                
                                    | tokenId | 
                                    
            
                uint256  help
                
                    The type of this value is uint, which stands for unsigned integer. Integer means it's a whole number (such as 1, 12, 52) without fractions or decimals. Unsigned means it can't have a negative or positive sign, so it's always a positive number.
                
             | 
                                
                            
                        
                 
             
            
                Properties
                
                    
                        
                            Visibility
            
                help
                
                                                    Visibility determines if the function is visible to users and other contracts.
                                Only functions that are public can be used.
                
            
                                
                        public
                     
                    
                        
                            Mutability
            
                help
                
                                                    Mutability tells you if a function can make changes on the blockchain.
                                View means the function can be called by anyone without
                                a wallet and without submitting a transaction.
                
            
                                
                        
                            transaction
                     
                 
             
                
                    
                        Modifiers
            
                help
                
                                                Modifiers are additions to a function that typically make various checks before
                            the function is run.
                
            
                            
                    
                            
                                onlyLexDAO
                                    checks for the following:
                                
                                
                             
                     
                 
                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
                
                                            Function parameters list what input the function expects from the user. Each
                        parameter must be given a value.
                
            
                        
                
                        
                            
                            
                                | Name | 
                                Type | 
                            
                            
                            
                                
                                    | _lexDAO | 
                                    
            
                address  help
                
                    The type of this value is address, which means it stores an Ethereum address, such as a wallet address.
                
             | 
                                
                                
                                    | _details | 
                                    
            
                string  help
                
                    The type of this value is string, which is basically just plain text. It's called a string because it is a 'string' of letters.
                
             | 
                                
                            
                        
                 
             
            
                Properties
                
                    
                        
                            Visibility
            
                help
                
                                                    Visibility determines if the function is visible to users and other contracts.
                                Only functions that are public can be used.
                
            
                                
                        public
                     
                    
                        
                            Mutability
            
                help
                
                                                    Mutability tells you if a function can make changes on the blockchain.
                                View means the function can be called by anyone without
                                a wallet and without submitting a transaction.
                
            
                                
                        
                            transaction
                     
                 
             
                
                    
                        Modifiers
            
                help
                
                                                Modifiers are additions to a function that typically make various checks before
                            the function is run.
                
            
                            
                    
                            
                                onlyLexDAO
                                    checks for the following:
                                
                                
                             
                     
                 
                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
                
                                            Function parameters list what input the function expects from the user. Each
                        parameter must be given a value.
                
            
                        
                
                        
                            
                            
                                | Name | 
                                Type | 
                            
                            
                            
                                
                                    | tokenId | 
                                    
            
                uint256  help
                
                    The type of this value is uint, which stands for unsigned integer. Integer means it's a whole number (such as 1, 12, 52) without fractions or decimals. Unsigned means it can't have a negative or positive sign, so it's always a positive number.
                
             | 
                                
                                
                                    | _tokenURI | 
                                    
            
                string  help
                
                    The type of this value is string, which is basically just plain text. It's called a string because it is a 'string' of letters.
                
             | 
                                
                            
                        
                 
             
            
                Properties
                
                    
                        
                            Visibility
            
                help
                
                                                    Visibility determines if the function is visible to users and other contracts.
                                Only functions that are public can be used.
                
            
                                
                        public
                     
                    
                        
                            Mutability
            
                help
                
                                                    Mutability tells you if a function can make changes on the blockchain.
                                View means the function can be called by anyone without
                                a wallet and without submitting a transaction.
                
            
                                
                        
                            transaction
                     
                 
             
                
                    
                        Modifiers
            
                help
                
                                                Modifiers are additions to a function that typically make various checks before
                            the function is run.
                
            
                            
                    
                            
                                onlyLexDAO
                                    checks for the following:
                                
                                
                             
                     
                 
                Source Code
                
                    function updateTokenURI(uint256 tokenId, string calldata _tokenURI)
  external
  onlyLexDAO
{
  tokenURI[tokenId] = _tokenURI;
  emit UpdateTokenURI(tokenId, _tokenURI);
}
                 
         
     
 
         
        
        
            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
                
                                            Function parameters list what input the function expects from the user. Each
                        parameter must be given a value.
                
            
                        
                
                        
                            
                            
                                | Name | 
                                Type | 
                            
                            
                            
                                
                                    | to | 
                                    
            
                address  help
                
                    The type of this value is address, which means it stores an Ethereum address, such as a wallet address.
                
             | 
                                
                                
                                    | _tokenURI | 
                                    
            
                string  help
                
                    The type of this value is string, which is basically just plain text. It's called a string because it is a 'string' of letters.
                
             | 
                                
                            
                        
                 
             
            
                Properties
                
                    
                        
                            Visibility
            
                help
                
                                                    Visibility determines if the function is visible to users and other contracts.
                                Only functions that are public can be used.
                
            
                                
                        internal
                     
                    
                        
                            Mutability
            
                help
                
                                                    Mutability tells you if a function can make changes on the blockchain.
                                View means the function can be called by anyone without
                                a wallet and without submitting a transaction.
                
            
                                
                        
                            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);
}