mint(uint256,address) :
This function mints a specified amount of tokens to a specified recipient. It first checks to make sure that the whitelist is active and that both the sender and recipient are whitelisted. It then checks to make sure that the sale is active and that the total supply of tokens does not exceed the maximum supply. It also checks to make sure that the amount of tokens being minted does not exceed the wallet limit. Finally, it checks to make sure that the amount of tokens being minted is equal to the value of the message. If all of these conditions are met, the function will loop through and mint the specified amount of tokens to the recipient. (autogenerated documentation)
reserve(uint256) :
This function allows the owner of the contract to reserve a certain amount of tokens (n) and mint them to a specified address (msg.sender). It first checks to make sure that the total supply of tokens after the minting does not exceed the maximum supply of tokens. If it does, the function will fail. If not, it will loop through the amount of tokens to be minted and call the _safeMint() function to mint the tokens to the specified address. (autogenerated documentation)
setPayout(uint256[]) :
This function allows the owner of the contract to set the payout addresses and percentages for the contract. It takes two arrays as parameters, one containing the addresses and the other containing the percentages. It then checks that the length of the two arrays are equal and that the total percentage is equal to 100. If these conditions are met, it sets the payoutAddress and payoutPercent variables to the values provided in the parameters. (autogenerated documentation)
withdraw() :
This function allows the owner of the contract to withdraw the balance of the contract. It does this by looping through an array of payout addresses and transferring a percentage of the balance to each address based on the corresponding percentage in the payoutPercent array. (autogenerated documentation)
setBaseURI(string) :
This function allows the owner of the contract to set the baseURIextended variable. The baseURIextended variable is a string that stores the base URI of the contract. This function is called externally and can only be called by the owner of the contract. (autogenerated documentation)
setSaleIsActive(bool) :
This function allows the owner of the contract to set the saleIsActive boolean variable to either true or false. This variable is used to determine whether or not the sale is active and can be used to control access to certain functions within the contract. (autogenerated documentation)
setCurrentPrice(uint256) :
This function allows the owner of the contract to set the current price of an asset. It takes in a uint256 parameter, which is the new price, and sets the currentPrice variable to this new value. (autogenerated documentation)
setWalletLimit(uint256) :
This function allows the owner of the contract to set a limit on the amount of funds that can be stored in the wallet. The limit is set by passing in a uint256 value as an argument. The function then sets the walletLimit variable to the value passed in. (autogenerated documentation)
setWhitelistActive(bool) :
This function allows the owner of the contract to set the whitelistIsActive boolean to either true or false. This boolean is used to determine whether or not the whitelist is active. If the whitelist is active, only users on the whitelist will be able to interact with the contract. (autogenerated documentation)
addToWhitelist(address) :
This function adds an address to a whitelist. It is an external function, meaning it can be called from outside the contract, and can only be called by the contract owner. The function takes an address as an argument and sets the value of the address in the whitelist mapping to true. This allows the contract to keep track of which addresses are whitelisted. (autogenerated documentation)
addManyToWhitelist() :
This function adds multiple addresses to a whitelist. It takes an array of addresses as an argument and loops through the array, adding each address to the whitelist. The function is only accessible by the contract owner. (autogenerated documentation)
removeFromWhitelist(address) :
This function removes an address from the whitelist of an Ethereum smart contract. It can only be called by the owner of the contract, and it takes the address of the wallet to be removed as an argument. The function deletes the wallet address from the whitelist, thereby revoking its access to the contract. (autogenerated documentation)
_baseURI() :
This function returns the base URI of the contract. It works by overriding the internal view virtual function and returning the _baseURIextended string. (autogenerated documentation)
_beforeTokenTransfer(address,address,uint256) :
This function is an internal override of the _beforeTokenTransfer function from the ERC721 and ERC721Enumerable contracts. It is used to perform any necessary checks or operations before a token transfer is executed. This includes verifying that the tokenId is valid, that the from and to addresses are valid, and that the from address has the tokenId in their balance. It also performs any other operations that may be necessary before the token transfer is executed. (autogenerated documentation)
supportsInterface(bytes4) :
This function is used to check if a contract supports a given interface. It takes in a bytes4 interfaceId as an argument and returns a boolean value indicating whether the contract supports the interface or not. The function uses the super keyword to call the supportsInterface() function from the parent contract, which checks if the interfaceId matches any of the supported interfaces. If it does, the function returns true, otherwise it returns false. (autogenerated documentation)