ERC-721
Overview
Max Total Supply
134 SNFT
Holders
73
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 SNFTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
StellarInuNFTs
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 100 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/*** * Written by MaxFlowO2, Senior Developer and Partner of G&M² Labs * Follow me on https://github.com/MaxflowO2 or Twitter @MaxFlowO2 * email: [email protected] * * Purpose: Chain ID #1-5 OpenSea compliant contract */ // SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.9.0; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "./interface/IMAX721.sol"; import "./modules/ContractURI.sol"; contract StellarInuNFTs is ERC721, ERC721URIStorage, ContractURI, IMAX721, ReentrancyGuard, Ownable { using Counters for Counters.Counter; using Strings for uint256; Counters.Counter private _tokenIdCounter; Counters.Counter private _teamMintCounter; uint private mintFees; uint private constant mintSize = 3500; uint private teamMintSize; uint private constant totalChoices = 5; uint private thresholdAmount; string private base; ERC20 private ERC20Address; address private constant DEAD_ADDRESS = 0x000000000000000000000000000000000000dEaD; bool private enableMinter; mapping(address => bool) public hasClaimed; // @notice all events within contract, will be explained in functions event UpdatedBaseURI(string _old, string _new); event UpdatedMintFees(uint _old, uint _new); event UpdatedThresholdAmount(uint _old, uint _new); event UpdatedMintSize(uint _old, uint _new); event UpdatedMintStatus(bool _old, bool _new); event UpdatedTeamMintSize(uint _old, uint _new); event UpdatedERC20Address(ERC20 _old, ERC20 _new); event UpdatedTotalChoices(uint _old, uint _new); constructor() ERC721("Stellar Inu Elemental NFTs", "SNFT") {} /*** * ███╗ ███╗██╗███╗ ██╗████████╗ * ████╗ ████║██║████╗ ██║╚══██╔══╝ * ██╔████╔██║██║██╔██╗ ██║ ██║ * ██║╚██╔╝██║██║██║╚██╗██║ ██║ * ██║ ╚═╝ ██║██║██║ ╚████║ ██║ * ╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝ ╚═╝ */ // @notice this is the mint function, mint Fees in ERC20, // that locks tokens to contract, inable to withdrawl, public // nonReentrant() function. Must have IERC20 approval prior // to minting! Call it within the application. // @param uint amount - number of tokens minted // ERC165 datum publicMint(uint256,uint256) => 0x98ae99a8 function publicMint(uint amount) public nonReentrant() { // @notice using Checks-Effects-Interactions // @notice Checks Phase require(enableMinter, "Minter not active"); require(_tokenIdCounter.current() + amount <= mintSize, "Can not mint that many"); // @notice Effects Phase // @notice this transfers ERC20 token to 0xdEaD (ERC20.sol), contract // must be approved prior to minting, use approve methods in web app uint tokenAmount = amount * mintFees; ERC20Address.transferFrom(_msgSender(), DEAD_ADDRESS, tokenAmount); // @notice Interactions Phase for (uint i = 0; i < amount; i++) { // @notice mintID() will use a psuedo-random number and plug it // into a string with the return automatically, then Counter.count // will auto increment the TokenID numbers _safeMint(_msgSender(), _tokenIdCounter.current()); _setTokenURI(_tokenIdCounter.current(), mintID()); _tokenIdCounter.increment(); } } // @notice this is the free mint if you hold a balance above a threshold // stated above. Threshold is set by onlyOwner! function claimNFT() public nonReentrant() { // @notice using Checks-Effects-Interactions // @notice Checks Phase require(enableMinter, "Minter not active"); require(ERC20Address.balanceOf(_msgSender()) >= thresholdAmount, "Do not hold enough ERC20 tokens to claim."); require(_tokenIdCounter.current() < mintSize, "Can not mint that many"); require(!hasClaimed[_msgSender()], "Can not claim a second time"); // @notice Effects Phase hasClaimed[_msgSender()] = true; // @notice Interactions Phase // @notice mintID() will use a psuedo-random number and plug it // into a string with the return automatically, then Counter.count // will auto increment the TokenID numbers _safeMint(_msgSender(), _tokenIdCounter.current()); _setTokenURI(_tokenIdCounter.current(), mintID()); _tokenIdCounter.increment(); } // @notice this is the team mint function, no mint Fees in ERC20, // public onlyOwner function. More comments within code // @param address _address - address to "airdropped" or team mint token // ERC165 datum teamMint(address) => 0xb6a1dba1 function teamMint(address _address) public onlyOwner { // @notice using Checks-Effects-Interactions require(enableMinter, "Minter not active"); require(teamMintSize != 0, "Team minting not enabled"); require(_tokenIdCounter.current() < mintSize, "Can not mint that many"); require(_teamMintCounter.current() < teamMintSize, "Can not team mint anymore"); // @notice mintID() will use a psuedo-random number and plug it // into a string with the return automatically, then Counter.count // will auto increment the TokenID numbers _safeMint(_address, _tokenIdCounter.current()); _setTokenURI(_tokenIdCounter.current(), mintID()); _tokenIdCounter.increment(); _teamMintCounter.increment(); } // @notice this takes current information and creates a Psuedo-Random number // for the x-types of NFT's you can get. Consider _tokenIdCounter.current() // as a nonce, using block.timestamp, block.difficulty, and _msgSender() then // modulo division by total number of NFT's function mintID() internal view returns (string memory) { uint value = uint(keccak256(abi.encodePacked(block.difficulty, block.timestamp, _msgSender(), address(this), _tokenIdCounter.current()))) % totalChoices; return value.toString(); } // @notice Function to receive ether, msg.data must be empty receive() external payable { } // @notice Function to receive ether, msg.data is not empty fallback() external payable { } // @notice this is a public getter for ETH blance on contract // ERC165 datum getBalance() => 0x12065fe0 function getBalance() external view returns (uint) { return address(this).balance; } /*** * ██████╗ ██╗ ██╗███╗ ██╗███████╗██████╗ * ██╔═══██╗██║ ██║████╗ ██║██╔════╝██╔══██╗ * ██║ ██║██║ █╗ ██║██╔██╗ ██║█████╗ ██████╔╝ * ██║ ██║██║███╗██║██║╚██╗██║██╔══╝ ██╔══██╗ * ╚██████╔╝╚███╔███╔╝██║ ╚████║███████╗██║ ██║ * ╚═════╝ ╚══╝╚══╝ ╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ * This section will have all the internals set to onlyOwner */ // @notice this will set the fees required to mint using // publicMint(), must enter in whole tokens. // @param uint _newFee - fee you set, in whole ERC20 tokens // as you see below, ERC20.decimals() is called in calculation. // ERC165 datum setMintFees(uint256) => 0x06b6f7e9 function setMintFees(uint _newFee) public onlyOwner { require(address(ERC20Address) != address(0), "ERC20 token address not set."); uint oldFee = mintFees; mintFees = _newFee * 10**ERC20Address.decimals(); emit UpdatedMintFees(oldFee, mintFees); } // @notice this will set the threshold required to mint using // claimNFT(), must enter in whole tokens. // @param uint _newFee - fee you set, in whole ERC20 tokens // as you see below, ERC20.decimals() is called in calculation. // ERC165 datum setFreeThreshold(uint256) => 0x06b6f7e9 function setFreeThreshold(uint _threshold) public onlyOwner { require(address(ERC20Address) != address(0), "ERC20 token address not set."); uint old = thresholdAmount; thresholdAmount = _threshold * 10**ERC20Address.decimals(); emit UpdatedThresholdAmount(old, thresholdAmount); } // @notice this will enable publicMint() // ERC165 datum enableMinting() => 0xe797ec1b function enableMinting() public onlyOwner { require(address(ERC20Address) != address(0), "ERC20 token address not set."); require(mintFees != 0, "ERC20 token mintFee not set."); require(totalChoices != 0, "mintID() will fail without totalChoices set"); require(thresholdAmount != 0, "ERC20 token threshold not set for claimNFT()."); bool old = enableMinter; enableMinter = true; emit UpdatedMintStatus(old, enableMinter); } // @notice this will disable publicMint() // ERC165 datum disableMinting() => 0x7e5cd5c1 function disableMinting() public onlyOwner { bool old = enableMinter; enableMinter = false; emit UpdatedMintStatus(old, enableMinter); } // @notice will set the ERC20 value of token, and emit an event // @param address _token - address of the token to change // ERC165 datum setERC20Address(address) = > 0x26a4e8d2 function setERC20Address(address _ERC20Address) public onlyOwner { ERC20 old = ERC20Address; ERC20Address = ERC20(_ERC20Address); emit UpdatedERC20Address(old, ERC20Address); } // @notice this will set the base URI for tokenURI() later on // @param string memory _base - new IPFS string base of tokenURI // remember must trail with a "/" // ERC165 datum setBaseURI(string) => 0x55f804b3 function setBaseURI(string memory _base) public onlyOwner { string memory old = base; base = _base; emit UpdatedBaseURI(old, base); } // @notice will set the ContractURI for OpenSea // @param string memory _contractURI - IPFS URI for contract // ERC165 datum setContractURI(string) => 0x938e3d7b function setContractURI(string memory _contractURI) public onlyOwner { _setContractURI(_contractURI); } // @notice will set "team minting" by onlyOwner role // @param uint _amount - set number to mint // ERC165 datum setTeamMinting(uint256) => 0xb1362ba1 function setTeamMinting(uint _amount) public onlyOwner { uint old = teamMintSize; teamMintSize = _amount; emit UpdatedTeamMintSize(old, teamMintSize); } // @notice function useful for accidental ETH transfers to contract (to user address) // wraps _user in payable to fix address -> address payable // @param address _user - user address to input // @param uint _amount - amount of ETH to transfer // ERC165 datum sweepETHToAddress(address,uint256) => 0xccf8f511 function sweepETHToAddress(address _user, uint _amount) public onlyOwner { payable(_user).transfer(_amount); } // @notice function useful for accidental ERC20 token transfers to contract // (to user address) // @param address _user - user address to input // @param uint _amount - amount of token to transfer // @param address _token - token contract address // ERC165 datum sweepERCToAddress(address,uint256,address) => 0xe08b1b63 function sweepERCToAddress(address _user, uint _amount, address _token) public onlyOwner { IERC20(_token).transferFrom(address(this), _user, _amount); } /// /// @dev these are all the Interface Overrides/Getters /// // @notice this is a getter for ERC20 token set for this minter function ERC20TokenAddress() public view returns (address) { return address(ERC20Address); } // @notice this is a getter for ERC20 token set for this minter function ERC20TokenName() public view returns (string memory) { return ERC20Address.name(); } // @notice this is a getter for threshold amount function ERC20TokenThresholdAmountForClaimNFT() public view returns (uint) { return thresholdAmount; } // @notice solidity override for _baseURI(), used in conjunction with // tokenURI() as abi.encodePacked(base, tokenID) or in this case of // using ERC721URIStorage, whatever is set. function _baseURI() internal view override returns (string memory) { return base; } // @notice solidity required override for supportsInterface(bytes4) function supportsInterface(bytes4 interfaceId) public view override(IERC165, ERC721) returns (bool) { return ( interfaceId == type(ERC721URIStorage).interfaceId || interfaceId == type(ContractURI).interfaceId || interfaceId == type(IMAX721).interfaceId || interfaceId == type(ReentrancyGuard).interfaceId || interfaceId == type(Ownable).interfaceId || super.supportsInterface(interfaceId) ); } // @notice will return status of Minter function minterStatus() external view override(IMAX721) returns (bool) { return enableMinter; } // @notice will return minting fees function minterFees() external view override(IMAX721) returns (uint) { return mintFees; } // @notice will return maximum mint capacity function minterMaximumCapacity() external view override(IMAX721) returns (uint) { return mintSize; } // @notice will return maximum "team minting" capacity function minterMaximumTeamMints() external view override(IMAX721) returns (uint) { return teamMintSize; } // @notice will return "team mints" left function minterTeamMintsRemaining() external view override(IMAX721) returns (uint) { return teamMintSize - _teamMintCounter.current(); } // @notice will return "team mints" count function minterTeamMintsCount() external view override(IMAX721) returns (uint) { return _teamMintCounter.current(); } // @notice will return current token count function totalSupply() external view override(IMAX721) returns (uint) { return _tokenIdCounter.current(); } // @notice _burn override function _burn(uint tokenId) internal override(ERC721, ERC721URIStorage) { super._burn(tokenId); } // @notice tokenURI override function tokenURI(uint tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { return super.tokenURI(tokenId); } }
/*** * ██████╗ ██████╗ ███╗ ██╗████████╗██████╗ █████╗ ██████╗████████╗ ██╗ ██╗██████╗ ██╗ * ██╔════╝██╔═══██╗████╗ ██║╚══██╔══╝██╔══██╗██╔══██╗██╔════╝╚══██╔══╝ ██║ ██║██╔══██╗██║ * ██║ ██║ ██║██╔██╗ ██║ ██║ ██████╔╝███████║██║ ██║ ██║ ██║██████╔╝██║ * ██║ ██║ ██║██║╚██╗██║ ██║ ██╔══██╗██╔══██║██║ ██║ ██║ ██║██╔══██╗██║ * ╚██████╗╚██████╔╝██║ ╚████║ ██║ ██║ ██║██║ ██║╚██████╗ ██║ ╚██████╔╝██║ ██║██║ * ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ * Written by MaxFlowO2, Senior Developer and Partner of G&M² Labs * Follow me on https://github.com/MaxflowO2 or Twitter @MaxFlowO2 * email: [email protected] * * Purpose: OpenSea compliance on chain ID #1-5 */ // SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.9.0; import "../interface/IContractURI.sol"; /// /// @dev Implementation of IContractURI.sol /// abstract contract ContractURI is IContractURI { // ERC165 // contractURI() => 0xe8a3d485 // IContractURI => 0xe8a3d485 event ContractURIChange(string _old, string _new); string private thisContractURI; // @notice this sets the contractURI, set to internal // @param newURI - string to URI of Contract Metadata // used for OpenSea and OpenSea-esque Secondary Marketplaces function _setContractURI(string memory newURI) internal { string memory old = thisContractURI; thisContractURI = newURI; emit ContractURIChange(old, thisContractURI); } // @notice contractURI() called for retreval of // OpenSea style collections pages // @return - string thisContractURI // ERC165 datum contractURI() => 0xe8a3d485 function contractURI() external view override(IContractURI) returns (string memory) { return thisContractURI; } }
/*** * ██╗███╗ ██╗████████╗███████╗██████╗ ███████╗ █████╗ ██████╗███████╗ * ██║████╗ ██║╚══██╔══╝██╔════╝██╔══██╗██╔════╝██╔══██╗██╔════╝██╔════╝ * ██║██╔██╗ ██║ ██║ █████╗ ██████╔╝█████╗ ███████║██║ █████╗ * ██║██║╚██╗██║ ██║ ██╔══╝ ██╔══██╗██╔══╝ ██╔══██║██║ ██╔══╝ * ██║██║ ╚████║ ██║ ███████╗██║ ██║██║ ██║ ██║╚██████╗███████╗ * ╚═╝╚═╝ ╚═══╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ * * ███╗ ███╗ █████╗ ██╗ ██╗ ███████╗██████╗ ██╗ * ████╗ ████║██╔══██╗╚██╗██╔╝ ╚════██║╚════██╗███║ * ██╔████╔██║███████║ ╚███╔╝█████╗ ██╔╝ █████╔╝╚██║ * ██║╚██╔╝██║██╔══██║ ██╔██╗╚════╝██╔╝ ██╔═══╝ ██║ * ██║ ╚═╝ ██║██║ ██║██╔╝ ██╗ ██║ ███████╗ ██║ * ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚══════╝ ╚═╝ * Written by MaxFlowO2, Senior Developer and Partner of G&M² Labs * Follow me on https://github.com/MaxflowO2 or Twitter @MaxFlowO2 * email: [email protected] */ // SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.9.0; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /// /// @dev Interface for @MaxFlowO2's Contracts /// must include or add totalSupply() to main /// interface IMAX721 is IERC165 { // ERC165 data // minterStatus() => 0x2ecd28ab // minterFees() => 0xd95ae162 // minterMaximumCapacity() => 0x78c5939b // minterMaximumTeamMints() => 0x049157bb // minterTeamMintsRemaining() => 0x5c17e370 // minterTeamMintsCount() => 0xe68b7961 // totalSupply() => 0x18160ddd // IMAX721 => 0x29499a25 // @notice will return status of Minter // @return - bool of active or not // ERC165 datum minterStatus() => 0x2ecd28ab function minterStatus() external view returns (bool); // @notice will return minting fees // @return - uint of mint costs in wei // ERC165 datum minterFees() => 0xd95ae162 function minterFees() external view returns (uint); // @notice will return maximum mint capacity // @return - uint of maximum mints allowed // ERC165 datum minterMaximumCapacity() => 0x78c5939b function minterMaximumCapacity() external view returns (uint); // @notice will return maximum "team minting" capacity // @return - uint of maximum airdrops or team mints allowed // ERC165 datum minterMaximumTeamMints() => 0x049157bb function minterMaximumTeamMints() external view returns (uint); // @notice will return "team mints" left // @return - uint of remaing airdrops or team mints // ERC165 datum minterTeamMintsRemaining() => 0x5c17e370 function minterTeamMintsRemaining() external view returns (uint); // @notice will return "team mints" count // @return - uint of airdrops or team mints done // ERC165 datum minterTeamMintsCount() => 0xe68b7961 function minterTeamMintsCount() external view returns (uint); // @notice will return current token count // @return - uint of how many NFT's minted on contract // ERC165 datum totalSupply() => 0x18160ddd function totalSupply() external view returns (uint); }
/*** * ██╗ ██████╗ ██████╗ ███╗ ██╗████████╗██████╗ █████╗ ██████╗████████╗ ██╗ ██╗██████╗ ██╗ * ██║██╔════╝██╔═══██╗████╗ ██║╚══██╔══╝██╔══██╗██╔══██╗██╔════╝╚══██╔══╝ ██║ ██║██╔══██╗██║ * ██║██║ ██║ ██║██╔██╗ ██║ ██║ ██████╔╝███████║██║ ██║ ██║ ██║██████╔╝██║ * ██║██║ ██║ ██║██║╚██╗██║ ██║ ██╔══██╗██╔══██║██║ ██║ ██║ ██║██╔══██╗██║ * ██║╚██████╗╚██████╔╝██║ ╚████║ ██║ ██║ ██║██║ ██║╚██████╗ ██║ ╚██████╔╝██║ ██║██║ * ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ * Written by MaxFlowO2, Senior Developer and Partner of G&M² Labs * Follow me on https://github.com/MaxflowO2 or Twitter @MaxFlowO2 * email: [email protected] * * Purpose: OpenSea compliance on chain ID #1-5 */ // SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.9.0; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /// /// @dev Interface for the OpenSea Standard /// interface IContractURI is IERC165{ // ERC165 // contractURI() => 0xe8a3d485 // IContractURI => 0xe8a3d485 // @notice contractURI() called for retreval of // OpenSea style collections pages // @return - the string URI of the contract, usually IPFS // ERC165 datum contractURI() => 0xe8a3d485 function contractURI() external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721URIStorage.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 100 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_old","type":"string"},{"indexed":false,"internalType":"string","name":"_new","type":"string"}],"name":"ContractURIChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_old","type":"string"},{"indexed":false,"internalType":"string","name":"_new","type":"string"}],"name":"UpdatedBaseURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract ERC20","name":"_old","type":"address"},{"indexed":false,"internalType":"contract ERC20","name":"_new","type":"address"}],"name":"UpdatedERC20Address","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_old","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_new","type":"uint256"}],"name":"UpdatedMintFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_old","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_new","type":"uint256"}],"name":"UpdatedMintSize","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_old","type":"bool"},{"indexed":false,"internalType":"bool","name":"_new","type":"bool"}],"name":"UpdatedMintStatus","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_old","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_new","type":"uint256"}],"name":"UpdatedTeamMintSize","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_old","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_new","type":"uint256"}],"name":"UpdatedThresholdAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_old","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_new","type":"uint256"}],"name":"UpdatedTotalChoices","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"ERC20TokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERC20TokenName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERC20TokenThresholdAmountForClaimNFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minterFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minterMaximumCapacity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minterMaximumTeamMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minterStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minterTeamMintsCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minterTeamMintsRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_base","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_ERC20Address","type":"address"}],"name":"setERC20Address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"setFreeThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newFee","type":"uint256"}],"name":"setMintFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setTeamMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_token","type":"address"}],"name":"sweepERCToAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"sweepETHToAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604080518082018252601a81527f5374656c6c617220496e7520456c656d656e74616c204e46547300000000000060208083019182528351808501909452600484526314d3919560e21b9084015281519192916200007391600091620000f4565b50805162000089906001906020840190620000f4565b50506001600855506200009c33620000a2565b620001d7565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000102906200019a565b90600052602060002090601f01602090048101928262000126576000855562000171565b82601f106200014157805160ff191683800117855562000171565b8280016001018555821562000171579182015b828111156200017157825182559160200191906001019062000154565b506200017f92915062000183565b5090565b5b808211156200017f576000815560010162000184565b600181811c90821680620001af57607f821691505b60208210811415620001d157634e487b7160e01b600052602260045260246000fd5b50919050565b612fcc80620001e76000396000f3fe60806040526004361061023d5760003560e01c806373b2e80e1161012d578063b6a1dba1116100b0578063e08b1b6311610077578063e08b1b631461067b578063e68b79611461069b578063e797ec1b146106b0578063e8a3d485146106c5578063e985e9c5146106da578063f2fde38b146106fa57005b8063b6a1dba1146105e6578063b88d4fde14610606578063c87b56dd14610626578063ccf8f51114610646578063d95ae1621461066657005b80638da5cb5b116100f45780638da5cb5b1461055c578063938e3d7b1461057157806395d89b4114610591578063a22cb465146105a6578063b1362ba1146105c657005b806373b2e80e146104cd57806375bbab3a146104fd57806378c5939b1461051d5780637e5cd5c114610532578063808812581461054757005b80632db11544116101c057806355f804b31161018757806355f804b31461042e5780635c17e3701461044e5780636352211e14610463578063672756ad1461048357806370a0823114610498578063715018a6146104b857005b80632db115441461039a5780632ecd28ab146103ba5780633849b2ae146103d957806341bec0d2146103ee57806342842e0e1461040e57005b8063095ea7b311610204578063095ea7b31461031457806312065fe01461033457806318160ddd146103475780631aef99b71461035c57806323b872dd1461037a57005b806301ffc9a714610246578063049157bb1461027b57806306b6f7e91461029a57806306fdde03146102ba578063081812fc146102dc57005b3661024457005b005b34801561025257600080fd5b50610266610261366004612655565b61071a565b60405190151581526020015b60405180910390f35b34801561028757600080fd5b50600d545b604051908152602001610272565b3480156102a657600080fd5b506102446102b5366004612672565b6107a9565b3480156102c657600080fd5b506102cf6108d3565b60405161027291906126e3565b3480156102e857600080fd5b506102fc6102f7366004612672565b610965565b6040516001600160a01b039091168152602001610272565b34801561032057600080fd5b5061024461032f366004612712565b6109ed565b34801561034057600080fd5b504761028c565b34801561035357600080fd5b5061028c610afe565b34801561036857600080fd5b506010546001600160a01b03166102fc565b34801561038657600080fd5b5061024461039536600461273c565b610b0e565b3480156103a657600080fd5b506102446103b5366004612672565b610b3f565b3480156103c657600080fd5b50601054600160a01b900460ff16610266565b3480156103e557600080fd5b50600e5461028c565b3480156103fa57600080fd5b50610244610409366004612778565b610cb0565b34801561041a57600080fd5b5061024461042936600461273c565b610d39565b34801561043a57600080fd5b50610244610449366004612840565b610d54565b34801561045a57600080fd5b5061028c610e5a565b34801561046f57600080fd5b506102fc61047e366004612672565b610e72565b34801561048f57600080fd5b50610244610ee9565b3480156104a457600080fd5b5061028c6104b3366004612778565b6110d6565b3480156104c457600080fd5b5061024461115d565b3480156104d957600080fd5b506102666104e8366004612778565b60116020526000908152604090205460ff1681565b34801561050957600080fd5b50610244610518366004612672565b611198565b34801561052957600080fd5b50610dac61028c565b34801561053e57600080fd5b506102446112b1565b34801561055357600080fd5b506102cf611345565b34801561056857600080fd5b506102fc6113b7565b34801561057d57600080fd5b5061024461058c366004612840565b6113c6565b34801561059d57600080fd5b506102cf611401565b3480156105b257600080fd5b506102446105c1366004612897565b611410565b3480156105d257600080fd5b506102446105e1366004612672565b61141f565b3480156105f257600080fd5b50610244610601366004612778565b61148c565b34801561061257600080fd5b506102446106213660046128ce565b6115db565b34801561063257600080fd5b506102cf610641366004612672565b611613565b34801561065257600080fd5b50610244610661366004612712565b61161e565b34801561067257600080fd5b50600c5461028c565b34801561068757600080fd5b5061024461069636600461294a565b611683565b3480156106a757600080fd5b5061028c611725565b3480156106bc57600080fd5b50610244611730565b3480156106d157600080fd5b506102cf61189b565b3480156106e657600080fd5b506102666106f5366004612986565b6118aa565b34801561070657600080fd5b50610244610715366004612778565b6118d8565b60006001600160e01b0319821663c87b56dd60e01b148061074b57506001600160e01b0319821663e8a3d48560e01b145b8061076657506001600160e01b031982166329499a2560e01b145b8061077957506001600160e01b03198216155b8061079457506001600160e01b03198216630704183b60e11b145b806107a357506107a382611975565b92915050565b336107b26113b7565b6001600160a01b0316146107e15760405162461bcd60e51b81526004016107d8906129b9565b60405180910390fd5b6010546001600160a01b03166108095760405162461bcd60e51b81526004016107d8906129ee565b600c546010546040805163313ce56760e01b815290516001600160a01b039092169163313ce567916004808201926020929091908290030181865afa158015610856573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087a9190612a25565b61088590600a612b42565b61088f9083612b51565b600c8190556040805183815260208101929092527fae0eb5ccf175dada51db9cc076ff0598c8facdee74dac2bc56f64f8984a83eea91015b60405180910390a15050565b6060600080546108e290612b70565b80601f016020809104026020016040519081016040528092919081815260200182805461090e90612b70565b801561095b5780601f106109305761010080835404028352916020019161095b565b820191906000526020600020905b81548152906001019060200180831161093e57829003601f168201915b5050505050905090565b6000610970826119c5565b6109d15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107d8565b506000908152600460205260409020546001600160a01b031690565b60006109f882610e72565b9050806001600160a01b0316836001600160a01b03161415610a665760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107d8565b336001600160a01b0382161480610a825750610a8281336118aa565b610aef5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b60648201526084016107d8565b610af983836119e2565b505050565b6000610b09600a5490565b905090565b610b183382611a50565b610b345760405162461bcd60e51b81526004016107d890612bab565b610af9838383611b1a565b60026008541415610b625760405162461bcd60e51b81526004016107d890612bfc565b6002600855601054600160a01b900460ff16610b905760405162461bcd60e51b81526004016107d890612c33565b610dac81610b9d600a5490565b610ba79190612c5e565b1115610bc55760405162461bcd60e51b81526004016107d890612c76565b6000600c5482610bd59190612b51565b6010546040516323b872dd60e01b81529192506001600160a01b0316906323b872dd90610c0c90339061dead908690600401612ca6565b6020604051808303816000875af1158015610c2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4f9190612cca565b5060005b82811015610ca657610c6d335b600a54611cba565b611cba565b610c86610c79600a5490565b610c81611cd4565b611d56565b610c94600a80546001019055565b80610c9e81612ce7565b915050610c53565b5050600160085550565b33610cb96113b7565b6001600160a01b031614610cdf5760405162461bcd60e51b81526004016107d8906129b9565b601080546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f44367a5c6ae2a6bb910aa9b7b99121cd7cdc9dcbeb0ab7608be1597b80ba118c91016108c7565b610af9838383604051806020016040528060008152506115db565b33610d5d6113b7565b6001600160a01b031614610d835760405162461bcd60e51b81526004016107d8906129b9565b6000600f8054610d9290612b70565b80601f0160208091040260200160405190810160405280929190818152602001828054610dbe90612b70565b8015610e0b5780601f10610de057610100808354040283529160200191610e0b565b820191906000526020600020905b815481529060010190602001808311610dee57829003601f168201915b50508551939450610e2793600f935060208701925090506125a6565b507fd2877107a884510f506ed0bd833e6601f4344691e32a0ce4bcdedb1d9d9d28e181600f6040516108c7929190612d02565b6000610e65600b5490565b600d54610b099190612dc0565b6000818152600260205260408120546001600160a01b0316806107a35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107d8565b60026008541415610f0c5760405162461bcd60e51b81526004016107d890612bfc565b6002600855601054600160a01b900460ff16610f3a5760405162461bcd60e51b81526004016107d890612c33565b600e546010546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610f85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa99190612dd7565b10156110095760405162461bcd60e51b815260206004820152602960248201527f446f206e6f7420686f6c6420656e6f75676820455243323020746f6b656e73206044820152683a379031b630b4b69760b91b60648201526084016107d8565b610dac611015600a5490565b106110325760405162461bcd60e51b81526004016107d890612c76565b3360009081526011602052604090205460ff16156110925760405162461bcd60e51b815260206004820152601b60248201527f43616e206e6f7420636c61696d2061207365636f6e642074696d65000000000060448201526064016107d8565b336000818152601160205260409020805460ff191660011790556110b590610c60565b6110c1610c79600a5490565b6110cf600a80546001019055565b6001600855565b60006001600160a01b0382166111415760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107d8565b506001600160a01b031660009081526003602052604090205490565b336111666113b7565b6001600160a01b03161461118c5760405162461bcd60e51b81526004016107d8906129b9565b6111966000611de1565b565b336111a16113b7565b6001600160a01b0316146111c75760405162461bcd60e51b81526004016107d8906129b9565b6010546001600160a01b03166111ef5760405162461bcd60e51b81526004016107d8906129ee565b600e546010546040805163313ce56760e01b815290516001600160a01b039092169163313ce567916004808201926020929091908290030181865afa15801561123c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112609190612a25565b61126b90600a612b42565b6112759083612b51565b600e8190556040805183815260208101929092527ff9ab617bbdfcb94140b64da4145a5c2199fb815760122d44931186a1148a42ca91016108c7565b336112ba6113b7565b6001600160a01b0316146112e05760405162461bcd60e51b81526004016107d8906129b9565b6010805460ff60a01b198116918290556040805160ff600160a01b9384900481168015158352939094049093161515602084015290917f1ab1d89be1fd19dcd21c73f1d6e927e3f148097e8691bbba925bd85e34e1f0e391015b60405180910390a150565b601054604080516306fdde0360e01b815290516060926001600160a01b0316916306fdde039160048083019260009291908290030181865afa15801561138f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b099190810190612df0565b6009546001600160a01b031690565b336113cf6113b7565b6001600160a01b0316146113f55760405162461bcd60e51b81526004016107d8906129b9565b6113fe81611e33565b50565b6060600180546108e290612b70565b61141b338383611f0a565b5050565b336114286113b7565b6001600160a01b03161461144e5760405162461bcd60e51b81526004016107d8906129b9565b600d80549082905560408051828152602081018490527ff4bc3d37ffa08e7dbc3d7b982669323cf71f90c293c7601f79532217f72fcefe91016108c7565b336114956113b7565b6001600160a01b0316146114bb5760405162461bcd60e51b81526004016107d8906129b9565b601054600160a01b900460ff166114e45760405162461bcd60e51b81526004016107d890612c33565b600d5461152e5760405162461bcd60e51b81526020600482015260186024820152771519585b481b5a5b9d1a5b99c81b9bdd08195b98589b195960421b60448201526064016107d8565b610dac61153a600a5490565b106115575760405162461bcd60e51b81526004016107d890612c76565b600d54600b54106115a65760405162461bcd60e51b815260206004820152601960248201527843616e206e6f74207465616d206d696e7420616e796d6f726560381b60448201526064016107d8565b6115b381610c68600a5490565b6115bf610c79600a5490565b6115cd600a80546001019055565b6113fe600b80546001019055565b6115e53383611a50565b6116015760405162461bcd60e51b81526004016107d890612bab565b61160d84848484611fd5565b50505050565b60606107a382612008565b336116276113b7565b6001600160a01b03161461164d5760405162461bcd60e51b81526004016107d8906129b9565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610af9573d6000803e3d6000fd5b3361168c6113b7565b6001600160a01b0316146116b25760405162461bcd60e51b81526004016107d8906129b9565b6040516323b872dd60e01b81526001600160a01b038216906323b872dd906116e290309087908790600401612ca6565b6020604051808303816000875af1158015611701573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061160d9190612cca565b6000610b09600b5490565b336117396113b7565b6001600160a01b03161461175f5760405162461bcd60e51b81526004016107d8906129b9565b6010546001600160a01b03166117875760405162461bcd60e51b81526004016107d8906129ee565b600c546117d65760405162461bcd60e51b815260206004820152601c60248201527f455243323020746f6b656e206d696e74466565206e6f74207365742e0000000060448201526064016107d8565b600e5461183b5760405162461bcd60e51b815260206004820152602d60248201527f455243323020746f6b656e207468726573686f6c64206e6f742073657420666f60448201526c391031b630b4b6a7232a14149760991b60648201526084016107d8565b60108054600160a01b60ff60a01b198216811792839055604080519282900460ff90811680151585529290940490931615156020830152917f1ab1d89be1fd19dcd21c73f1d6e927e3f148097e8691bbba925bd85e34e1f0e3910161133a565b6060600780546108e290612b70565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b336118e16113b7565b6001600160a01b0316146119075760405162461bcd60e51b81526004016107d8906129b9565b6001600160a01b03811661196c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107d8565b6113fe81611de1565b60006001600160e01b031982166380ac58cd60e01b14806119a657506001600160e01b03198216635b5e139f60e01b145b806107a357506301ffc9a760e01b6001600160e01b03198316146107a3565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611a1782610e72565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611a5b826119c5565b611abc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107d8565b6000611ac783610e72565b9050806001600160a01b0316846001600160a01b03161480611b025750836001600160a01b0316611af784610965565b6001600160a01b0316145b80611b125750611b1281856118aa565b949350505050565b826001600160a01b0316611b2d82610e72565b6001600160a01b031614611b955760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107d8565b6001600160a01b038216611bf75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107d8565b611c026000826119e2565b6001600160a01b0383166000908152600360205260408120805460019290611c2b908490612dc0565b90915550506001600160a01b0382166000908152600360205260408120805460019290611c59908490612c5e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61141b82826040518060200160405280600081525061216a565b60606000600544423330611ce7600a5490565b6040805160208101969096528501939093526bffffffffffffffffffffffff19606092831b811683860152911b166074830152608882015260a8016040516020818303038152906040528051906020012060001c611d459190612e7d565b9050611d508161219d565b91505090565b611d5f826119c5565b611dc25760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b60648201526084016107d8565b60008281526006602090815260409091208251610af9928401906125a6565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060078054611e4290612b70565b80601f0160208091040260200160405190810160405280929190818152602001828054611e6e90612b70565b8015611ebb5780601f10611e9057610100808354040283529160200191611ebb565b820191906000526020600020905b815481529060010190602001808311611e9e57829003601f168201915b50508551939450611ed7936007935060208701925090506125a6565b507f17f75bb1e35b058872a221a8c16d8b3e39eacbda214fd7da20f192b9291ecc3b8160076040516108c7929190612d02565b816001600160a01b0316836001600160a01b03161415611f685760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b60448201526064016107d8565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611fe0848484611b1a565b611fec8484848461229b565b61160d5760405162461bcd60e51b81526004016107d890612e91565b6060612013826119c5565b6120795760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b60648201526084016107d8565b6000828152600660205260408120805461209290612b70565b80601f01602080910402602001604051908101604052809291908181526020018280546120be90612b70565b801561210b5780601f106120e05761010080835404028352916020019161210b565b820191906000526020600020905b8154815290600101906020018083116120ee57829003601f168201915b50505050509050600061211c612399565b905080516000141561212f575092915050565b815115612161578082604051602001612149929190612ee3565b60405160208183030381529060405292505050919050565b611b12846123a8565b6121748383612473565b612181600084848461229b565b610af95760405162461bcd60e51b81526004016107d890612e91565b6060816121c15750506040805180820190915260018152600360fc1b602082015290565b8160005b81156121eb57806121d581612ce7565b91506121e49050600a83612f12565b91506121c5565b60008167ffffffffffffffff81111561220657612206612793565b6040519080825280601f01601f191660200182016040528015612230576020820181803683370190505b5090505b8415611b1257612245600183612dc0565b9150612252600a86612e7d565b61225d906030612c5e565b60f81b81838151811061227257612272612f26565b60200101906001600160f81b031916908160001a905350612294600a86612f12565b9450612234565b60006001600160a01b0384163b1561238e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906122df903390899088908890600401612f3c565b6020604051808303816000875af192505050801561231a575060408051601f3d908101601f1916820190925261231791810190612f79565b60015b612374573d808015612348576040519150601f19603f3d011682016040523d82523d6000602084013e61234d565b606091505b50805161236c5760405162461bcd60e51b81526004016107d890612e91565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611b12565b506001949350505050565b6060600f80546108e290612b70565b60606123b3826119c5565b6124175760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107d8565b6000612421612399565b90506000815111612441576040518060200160405280600081525061246c565b8061244b8461219d565b60405160200161245c929190612ee3565b6040516020818303038152906040525b9392505050565b6001600160a01b0382166124c95760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107d8565b6124d2816119c5565b1561251f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107d8565b6001600160a01b0382166000908152600360205260408120805460019290612548908490612c5e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546125b290612b70565b90600052602060002090601f0160209004810192826125d4576000855561261a565b82601f106125ed57805160ff191683800117855561261a565b8280016001018555821561261a579182015b8281111561261a5782518255916020019190600101906125ff565b5061262692915061262a565b5090565b5b80821115612626576000815560010161262b565b6001600160e01b0319811681146113fe57600080fd5b60006020828403121561266757600080fd5b813561246c8161263f565b60006020828403121561268457600080fd5b5035919050565b60005b838110156126a657818101518382015260200161268e565b8381111561160d5750506000910152565b600081518084526126cf81602086016020860161268b565b601f01601f19169290920160200192915050565b60208152600061246c60208301846126b7565b80356001600160a01b038116811461270d57600080fd5b919050565b6000806040838503121561272557600080fd5b61272e836126f6565b946020939093013593505050565b60008060006060848603121561275157600080fd5b61275a846126f6565b9250612768602085016126f6565b9150604084013590509250925092565b60006020828403121561278a57600080fd5b61246c826126f6565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156127d2576127d2612793565b604052919050565b600067ffffffffffffffff8211156127f4576127f4612793565b50601f01601f191660200190565b6000612815612810846127da565b6127a9565b905082815283838301111561282957600080fd5b828260208301376000602084830101529392505050565b60006020828403121561285257600080fd5b813567ffffffffffffffff81111561286957600080fd5b8201601f8101841361287a57600080fd5b611b1284823560208401612802565b80151581146113fe57600080fd5b600080604083850312156128aa57600080fd5b6128b3836126f6565b915060208301356128c381612889565b809150509250929050565b600080600080608085870312156128e457600080fd5b6128ed856126f6565b93506128fb602086016126f6565b925060408501359150606085013567ffffffffffffffff81111561291e57600080fd5b8501601f8101871361292f57600080fd5b61293e87823560208401612802565b91505092959194509250565b60008060006060848603121561295f57600080fd5b612968846126f6565b92506020840135915061297d604085016126f6565b90509250925092565b6000806040838503121561299957600080fd5b6129a2836126f6565b91506129b0602084016126f6565b90509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601c908201527f455243323020746f6b656e2061646472657373206e6f74207365742e00000000604082015260600190565b600060208284031215612a3757600080fd5b815160ff8116811461246c57600080fd5b634e487b7160e01b600052601160045260246000fd5b600181815b80851115612a99578160001904821115612a7f57612a7f612a48565b80851615612a8c57918102915b93841c9390800290612a63565b509250929050565b600082612ab0575060016107a3565b81612abd575060006107a3565b8160018114612ad35760028114612add57612af9565b60019150506107a3565b60ff841115612aee57612aee612a48565b50506001821b6107a3565b5060208310610133831016604e8410600b8410161715612b1c575081810a6107a3565b612b268383612a5e565b8060001904821115612b3a57612b3a612a48565b029392505050565b600061246c60ff841683612aa1565b6000816000190483118215151615612b6b57612b6b612a48565b500290565b600181811c90821680612b8457607f821691505b60208210811415612ba557634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601190820152704d696e746572206e6f742061637469766560781b604082015260600190565b60008219821115612c7157612c71612a48565b500190565b60208082526016908201527543616e206e6f74206d696e742074686174206d616e7960501b604082015260600190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b600060208284031215612cdc57600080fd5b815161246c81612889565b6000600019821415612cfb57612cfb612a48565b5060010190565b604081526000612d1560408301856126b7565b6020838203818501526000855481600182811c915080831680612d3957607f831692505b858310811415612d5757634e487b7160e01b85526022600452602485fd5b828752602087019650808015612d745760018114612d8557612db0565b60ff19851688528688019550612db0565b60008b81526020902060005b85811015612daa5781548a820152908401908801612d91565b89019650505b50939a9950505050505050505050565b600082821015612dd257612dd2612a48565b500390565b600060208284031215612de957600080fd5b5051919050565b600060208284031215612e0257600080fd5b815167ffffffffffffffff811115612e1957600080fd5b8201601f81018413612e2a57600080fd5b8051612e38612810826127da565b818152856020838501011115612e4d57600080fd5b612e5e82602083016020860161268b565b95945050505050565b634e487b7160e01b600052601260045260246000fd5b600082612e8c57612e8c612e67565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008351612ef581846020880161268b565b835190830190612f0981836020880161268b565b01949350505050565b600082612f2157612f21612e67565b500490565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612f6f908301846126b7565b9695505050505050565b600060208284031215612f8b57600080fd5b815161246c8161263f56fea26469706673582212204424a0ef2df693d66c9bbd351332d77ca0054fedc03dc11e272ade287d5e723164736f6c634300080b0033
Deployed Bytecode
0x60806040526004361061023d5760003560e01c806373b2e80e1161012d578063b6a1dba1116100b0578063e08b1b6311610077578063e08b1b631461067b578063e68b79611461069b578063e797ec1b146106b0578063e8a3d485146106c5578063e985e9c5146106da578063f2fde38b146106fa57005b8063b6a1dba1146105e6578063b88d4fde14610606578063c87b56dd14610626578063ccf8f51114610646578063d95ae1621461066657005b80638da5cb5b116100f45780638da5cb5b1461055c578063938e3d7b1461057157806395d89b4114610591578063a22cb465146105a6578063b1362ba1146105c657005b806373b2e80e146104cd57806375bbab3a146104fd57806378c5939b1461051d5780637e5cd5c114610532578063808812581461054757005b80632db11544116101c057806355f804b31161018757806355f804b31461042e5780635c17e3701461044e5780636352211e14610463578063672756ad1461048357806370a0823114610498578063715018a6146104b857005b80632db115441461039a5780632ecd28ab146103ba5780633849b2ae146103d957806341bec0d2146103ee57806342842e0e1461040e57005b8063095ea7b311610204578063095ea7b31461031457806312065fe01461033457806318160ddd146103475780631aef99b71461035c57806323b872dd1461037a57005b806301ffc9a714610246578063049157bb1461027b57806306b6f7e91461029a57806306fdde03146102ba578063081812fc146102dc57005b3661024457005b005b34801561025257600080fd5b50610266610261366004612655565b61071a565b60405190151581526020015b60405180910390f35b34801561028757600080fd5b50600d545b604051908152602001610272565b3480156102a657600080fd5b506102446102b5366004612672565b6107a9565b3480156102c657600080fd5b506102cf6108d3565b60405161027291906126e3565b3480156102e857600080fd5b506102fc6102f7366004612672565b610965565b6040516001600160a01b039091168152602001610272565b34801561032057600080fd5b5061024461032f366004612712565b6109ed565b34801561034057600080fd5b504761028c565b34801561035357600080fd5b5061028c610afe565b34801561036857600080fd5b506010546001600160a01b03166102fc565b34801561038657600080fd5b5061024461039536600461273c565b610b0e565b3480156103a657600080fd5b506102446103b5366004612672565b610b3f565b3480156103c657600080fd5b50601054600160a01b900460ff16610266565b3480156103e557600080fd5b50600e5461028c565b3480156103fa57600080fd5b50610244610409366004612778565b610cb0565b34801561041a57600080fd5b5061024461042936600461273c565b610d39565b34801561043a57600080fd5b50610244610449366004612840565b610d54565b34801561045a57600080fd5b5061028c610e5a565b34801561046f57600080fd5b506102fc61047e366004612672565b610e72565b34801561048f57600080fd5b50610244610ee9565b3480156104a457600080fd5b5061028c6104b3366004612778565b6110d6565b3480156104c457600080fd5b5061024461115d565b3480156104d957600080fd5b506102666104e8366004612778565b60116020526000908152604090205460ff1681565b34801561050957600080fd5b50610244610518366004612672565b611198565b34801561052957600080fd5b50610dac61028c565b34801561053e57600080fd5b506102446112b1565b34801561055357600080fd5b506102cf611345565b34801561056857600080fd5b506102fc6113b7565b34801561057d57600080fd5b5061024461058c366004612840565b6113c6565b34801561059d57600080fd5b506102cf611401565b3480156105b257600080fd5b506102446105c1366004612897565b611410565b3480156105d257600080fd5b506102446105e1366004612672565b61141f565b3480156105f257600080fd5b50610244610601366004612778565b61148c565b34801561061257600080fd5b506102446106213660046128ce565b6115db565b34801561063257600080fd5b506102cf610641366004612672565b611613565b34801561065257600080fd5b50610244610661366004612712565b61161e565b34801561067257600080fd5b50600c5461028c565b34801561068757600080fd5b5061024461069636600461294a565b611683565b3480156106a757600080fd5b5061028c611725565b3480156106bc57600080fd5b50610244611730565b3480156106d157600080fd5b506102cf61189b565b3480156106e657600080fd5b506102666106f5366004612986565b6118aa565b34801561070657600080fd5b50610244610715366004612778565b6118d8565b60006001600160e01b0319821663c87b56dd60e01b148061074b57506001600160e01b0319821663e8a3d48560e01b145b8061076657506001600160e01b031982166329499a2560e01b145b8061077957506001600160e01b03198216155b8061079457506001600160e01b03198216630704183b60e11b145b806107a357506107a382611975565b92915050565b336107b26113b7565b6001600160a01b0316146107e15760405162461bcd60e51b81526004016107d8906129b9565b60405180910390fd5b6010546001600160a01b03166108095760405162461bcd60e51b81526004016107d8906129ee565b600c546010546040805163313ce56760e01b815290516001600160a01b039092169163313ce567916004808201926020929091908290030181865afa158015610856573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087a9190612a25565b61088590600a612b42565b61088f9083612b51565b600c8190556040805183815260208101929092527fae0eb5ccf175dada51db9cc076ff0598c8facdee74dac2bc56f64f8984a83eea91015b60405180910390a15050565b6060600080546108e290612b70565b80601f016020809104026020016040519081016040528092919081815260200182805461090e90612b70565b801561095b5780601f106109305761010080835404028352916020019161095b565b820191906000526020600020905b81548152906001019060200180831161093e57829003601f168201915b5050505050905090565b6000610970826119c5565b6109d15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107d8565b506000908152600460205260409020546001600160a01b031690565b60006109f882610e72565b9050806001600160a01b0316836001600160a01b03161415610a665760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107d8565b336001600160a01b0382161480610a825750610a8281336118aa565b610aef5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b60648201526084016107d8565b610af983836119e2565b505050565b6000610b09600a5490565b905090565b610b183382611a50565b610b345760405162461bcd60e51b81526004016107d890612bab565b610af9838383611b1a565b60026008541415610b625760405162461bcd60e51b81526004016107d890612bfc565b6002600855601054600160a01b900460ff16610b905760405162461bcd60e51b81526004016107d890612c33565b610dac81610b9d600a5490565b610ba79190612c5e565b1115610bc55760405162461bcd60e51b81526004016107d890612c76565b6000600c5482610bd59190612b51565b6010546040516323b872dd60e01b81529192506001600160a01b0316906323b872dd90610c0c90339061dead908690600401612ca6565b6020604051808303816000875af1158015610c2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4f9190612cca565b5060005b82811015610ca657610c6d335b600a54611cba565b611cba565b610c86610c79600a5490565b610c81611cd4565b611d56565b610c94600a80546001019055565b80610c9e81612ce7565b915050610c53565b5050600160085550565b33610cb96113b7565b6001600160a01b031614610cdf5760405162461bcd60e51b81526004016107d8906129b9565b601080546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f44367a5c6ae2a6bb910aa9b7b99121cd7cdc9dcbeb0ab7608be1597b80ba118c91016108c7565b610af9838383604051806020016040528060008152506115db565b33610d5d6113b7565b6001600160a01b031614610d835760405162461bcd60e51b81526004016107d8906129b9565b6000600f8054610d9290612b70565b80601f0160208091040260200160405190810160405280929190818152602001828054610dbe90612b70565b8015610e0b5780601f10610de057610100808354040283529160200191610e0b565b820191906000526020600020905b815481529060010190602001808311610dee57829003601f168201915b50508551939450610e2793600f935060208701925090506125a6565b507fd2877107a884510f506ed0bd833e6601f4344691e32a0ce4bcdedb1d9d9d28e181600f6040516108c7929190612d02565b6000610e65600b5490565b600d54610b099190612dc0565b6000818152600260205260408120546001600160a01b0316806107a35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107d8565b60026008541415610f0c5760405162461bcd60e51b81526004016107d890612bfc565b6002600855601054600160a01b900460ff16610f3a5760405162461bcd60e51b81526004016107d890612c33565b600e546010546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610f85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa99190612dd7565b10156110095760405162461bcd60e51b815260206004820152602960248201527f446f206e6f7420686f6c6420656e6f75676820455243323020746f6b656e73206044820152683a379031b630b4b69760b91b60648201526084016107d8565b610dac611015600a5490565b106110325760405162461bcd60e51b81526004016107d890612c76565b3360009081526011602052604090205460ff16156110925760405162461bcd60e51b815260206004820152601b60248201527f43616e206e6f7420636c61696d2061207365636f6e642074696d65000000000060448201526064016107d8565b336000818152601160205260409020805460ff191660011790556110b590610c60565b6110c1610c79600a5490565b6110cf600a80546001019055565b6001600855565b60006001600160a01b0382166111415760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107d8565b506001600160a01b031660009081526003602052604090205490565b336111666113b7565b6001600160a01b03161461118c5760405162461bcd60e51b81526004016107d8906129b9565b6111966000611de1565b565b336111a16113b7565b6001600160a01b0316146111c75760405162461bcd60e51b81526004016107d8906129b9565b6010546001600160a01b03166111ef5760405162461bcd60e51b81526004016107d8906129ee565b600e546010546040805163313ce56760e01b815290516001600160a01b039092169163313ce567916004808201926020929091908290030181865afa15801561123c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112609190612a25565b61126b90600a612b42565b6112759083612b51565b600e8190556040805183815260208101929092527ff9ab617bbdfcb94140b64da4145a5c2199fb815760122d44931186a1148a42ca91016108c7565b336112ba6113b7565b6001600160a01b0316146112e05760405162461bcd60e51b81526004016107d8906129b9565b6010805460ff60a01b198116918290556040805160ff600160a01b9384900481168015158352939094049093161515602084015290917f1ab1d89be1fd19dcd21c73f1d6e927e3f148097e8691bbba925bd85e34e1f0e391015b60405180910390a150565b601054604080516306fdde0360e01b815290516060926001600160a01b0316916306fdde039160048083019260009291908290030181865afa15801561138f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b099190810190612df0565b6009546001600160a01b031690565b336113cf6113b7565b6001600160a01b0316146113f55760405162461bcd60e51b81526004016107d8906129b9565b6113fe81611e33565b50565b6060600180546108e290612b70565b61141b338383611f0a565b5050565b336114286113b7565b6001600160a01b03161461144e5760405162461bcd60e51b81526004016107d8906129b9565b600d80549082905560408051828152602081018490527ff4bc3d37ffa08e7dbc3d7b982669323cf71f90c293c7601f79532217f72fcefe91016108c7565b336114956113b7565b6001600160a01b0316146114bb5760405162461bcd60e51b81526004016107d8906129b9565b601054600160a01b900460ff166114e45760405162461bcd60e51b81526004016107d890612c33565b600d5461152e5760405162461bcd60e51b81526020600482015260186024820152771519585b481b5a5b9d1a5b99c81b9bdd08195b98589b195960421b60448201526064016107d8565b610dac61153a600a5490565b106115575760405162461bcd60e51b81526004016107d890612c76565b600d54600b54106115a65760405162461bcd60e51b815260206004820152601960248201527843616e206e6f74207465616d206d696e7420616e796d6f726560381b60448201526064016107d8565b6115b381610c68600a5490565b6115bf610c79600a5490565b6115cd600a80546001019055565b6113fe600b80546001019055565b6115e53383611a50565b6116015760405162461bcd60e51b81526004016107d890612bab565b61160d84848484611fd5565b50505050565b60606107a382612008565b336116276113b7565b6001600160a01b03161461164d5760405162461bcd60e51b81526004016107d8906129b9565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610af9573d6000803e3d6000fd5b3361168c6113b7565b6001600160a01b0316146116b25760405162461bcd60e51b81526004016107d8906129b9565b6040516323b872dd60e01b81526001600160a01b038216906323b872dd906116e290309087908790600401612ca6565b6020604051808303816000875af1158015611701573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061160d9190612cca565b6000610b09600b5490565b336117396113b7565b6001600160a01b03161461175f5760405162461bcd60e51b81526004016107d8906129b9565b6010546001600160a01b03166117875760405162461bcd60e51b81526004016107d8906129ee565b600c546117d65760405162461bcd60e51b815260206004820152601c60248201527f455243323020746f6b656e206d696e74466565206e6f74207365742e0000000060448201526064016107d8565b600e5461183b5760405162461bcd60e51b815260206004820152602d60248201527f455243323020746f6b656e207468726573686f6c64206e6f742073657420666f60448201526c391031b630b4b6a7232a14149760991b60648201526084016107d8565b60108054600160a01b60ff60a01b198216811792839055604080519282900460ff90811680151585529290940490931615156020830152917f1ab1d89be1fd19dcd21c73f1d6e927e3f148097e8691bbba925bd85e34e1f0e3910161133a565b6060600780546108e290612b70565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b336118e16113b7565b6001600160a01b0316146119075760405162461bcd60e51b81526004016107d8906129b9565b6001600160a01b03811661196c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107d8565b6113fe81611de1565b60006001600160e01b031982166380ac58cd60e01b14806119a657506001600160e01b03198216635b5e139f60e01b145b806107a357506301ffc9a760e01b6001600160e01b03198316146107a3565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611a1782610e72565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611a5b826119c5565b611abc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107d8565b6000611ac783610e72565b9050806001600160a01b0316846001600160a01b03161480611b025750836001600160a01b0316611af784610965565b6001600160a01b0316145b80611b125750611b1281856118aa565b949350505050565b826001600160a01b0316611b2d82610e72565b6001600160a01b031614611b955760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107d8565b6001600160a01b038216611bf75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107d8565b611c026000826119e2565b6001600160a01b0383166000908152600360205260408120805460019290611c2b908490612dc0565b90915550506001600160a01b0382166000908152600360205260408120805460019290611c59908490612c5e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61141b82826040518060200160405280600081525061216a565b60606000600544423330611ce7600a5490565b6040805160208101969096528501939093526bffffffffffffffffffffffff19606092831b811683860152911b166074830152608882015260a8016040516020818303038152906040528051906020012060001c611d459190612e7d565b9050611d508161219d565b91505090565b611d5f826119c5565b611dc25760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b60648201526084016107d8565b60008281526006602090815260409091208251610af9928401906125a6565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060078054611e4290612b70565b80601f0160208091040260200160405190810160405280929190818152602001828054611e6e90612b70565b8015611ebb5780601f10611e9057610100808354040283529160200191611ebb565b820191906000526020600020905b815481529060010190602001808311611e9e57829003601f168201915b50508551939450611ed7936007935060208701925090506125a6565b507f17f75bb1e35b058872a221a8c16d8b3e39eacbda214fd7da20f192b9291ecc3b8160076040516108c7929190612d02565b816001600160a01b0316836001600160a01b03161415611f685760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b60448201526064016107d8565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611fe0848484611b1a565b611fec8484848461229b565b61160d5760405162461bcd60e51b81526004016107d890612e91565b6060612013826119c5565b6120795760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b60648201526084016107d8565b6000828152600660205260408120805461209290612b70565b80601f01602080910402602001604051908101604052809291908181526020018280546120be90612b70565b801561210b5780601f106120e05761010080835404028352916020019161210b565b820191906000526020600020905b8154815290600101906020018083116120ee57829003601f168201915b50505050509050600061211c612399565b905080516000141561212f575092915050565b815115612161578082604051602001612149929190612ee3565b60405160208183030381529060405292505050919050565b611b12846123a8565b6121748383612473565b612181600084848461229b565b610af95760405162461bcd60e51b81526004016107d890612e91565b6060816121c15750506040805180820190915260018152600360fc1b602082015290565b8160005b81156121eb57806121d581612ce7565b91506121e49050600a83612f12565b91506121c5565b60008167ffffffffffffffff81111561220657612206612793565b6040519080825280601f01601f191660200182016040528015612230576020820181803683370190505b5090505b8415611b1257612245600183612dc0565b9150612252600a86612e7d565b61225d906030612c5e565b60f81b81838151811061227257612272612f26565b60200101906001600160f81b031916908160001a905350612294600a86612f12565b9450612234565b60006001600160a01b0384163b1561238e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906122df903390899088908890600401612f3c565b6020604051808303816000875af192505050801561231a575060408051601f3d908101601f1916820190925261231791810190612f79565b60015b612374573d808015612348576040519150601f19603f3d011682016040523d82523d6000602084013e61234d565b606091505b50805161236c5760405162461bcd60e51b81526004016107d890612e91565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611b12565b506001949350505050565b6060600f80546108e290612b70565b60606123b3826119c5565b6124175760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107d8565b6000612421612399565b90506000815111612441576040518060200160405280600081525061246c565b8061244b8461219d565b60405160200161245c929190612ee3565b6040516020818303038152906040525b9392505050565b6001600160a01b0382166124c95760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107d8565b6124d2816119c5565b1561251f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107d8565b6001600160a01b0382166000908152600360205260408120805460019290612548908490612c5e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546125b290612b70565b90600052602060002090601f0160209004810192826125d4576000855561261a565b82601f106125ed57805160ff191683800117855561261a565b8280016001018555821561261a579182015b8281111561261a5782518255916020019190600101906125ff565b5061262692915061262a565b5090565b5b80821115612626576000815560010161262b565b6001600160e01b0319811681146113fe57600080fd5b60006020828403121561266757600080fd5b813561246c8161263f565b60006020828403121561268457600080fd5b5035919050565b60005b838110156126a657818101518382015260200161268e565b8381111561160d5750506000910152565b600081518084526126cf81602086016020860161268b565b601f01601f19169290920160200192915050565b60208152600061246c60208301846126b7565b80356001600160a01b038116811461270d57600080fd5b919050565b6000806040838503121561272557600080fd5b61272e836126f6565b946020939093013593505050565b60008060006060848603121561275157600080fd5b61275a846126f6565b9250612768602085016126f6565b9150604084013590509250925092565b60006020828403121561278a57600080fd5b61246c826126f6565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156127d2576127d2612793565b604052919050565b600067ffffffffffffffff8211156127f4576127f4612793565b50601f01601f191660200190565b6000612815612810846127da565b6127a9565b905082815283838301111561282957600080fd5b828260208301376000602084830101529392505050565b60006020828403121561285257600080fd5b813567ffffffffffffffff81111561286957600080fd5b8201601f8101841361287a57600080fd5b611b1284823560208401612802565b80151581146113fe57600080fd5b600080604083850312156128aa57600080fd5b6128b3836126f6565b915060208301356128c381612889565b809150509250929050565b600080600080608085870312156128e457600080fd5b6128ed856126f6565b93506128fb602086016126f6565b925060408501359150606085013567ffffffffffffffff81111561291e57600080fd5b8501601f8101871361292f57600080fd5b61293e87823560208401612802565b91505092959194509250565b60008060006060848603121561295f57600080fd5b612968846126f6565b92506020840135915061297d604085016126f6565b90509250925092565b6000806040838503121561299957600080fd5b6129a2836126f6565b91506129b0602084016126f6565b90509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601c908201527f455243323020746f6b656e2061646472657373206e6f74207365742e00000000604082015260600190565b600060208284031215612a3757600080fd5b815160ff8116811461246c57600080fd5b634e487b7160e01b600052601160045260246000fd5b600181815b80851115612a99578160001904821115612a7f57612a7f612a48565b80851615612a8c57918102915b93841c9390800290612a63565b509250929050565b600082612ab0575060016107a3565b81612abd575060006107a3565b8160018114612ad35760028114612add57612af9565b60019150506107a3565b60ff841115612aee57612aee612a48565b50506001821b6107a3565b5060208310610133831016604e8410600b8410161715612b1c575081810a6107a3565b612b268383612a5e565b8060001904821115612b3a57612b3a612a48565b029392505050565b600061246c60ff841683612aa1565b6000816000190483118215151615612b6b57612b6b612a48565b500290565b600181811c90821680612b8457607f821691505b60208210811415612ba557634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601190820152704d696e746572206e6f742061637469766560781b604082015260600190565b60008219821115612c7157612c71612a48565b500190565b60208082526016908201527543616e206e6f74206d696e742074686174206d616e7960501b604082015260600190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b600060208284031215612cdc57600080fd5b815161246c81612889565b6000600019821415612cfb57612cfb612a48565b5060010190565b604081526000612d1560408301856126b7565b6020838203818501526000855481600182811c915080831680612d3957607f831692505b858310811415612d5757634e487b7160e01b85526022600452602485fd5b828752602087019650808015612d745760018114612d8557612db0565b60ff19851688528688019550612db0565b60008b81526020902060005b85811015612daa5781548a820152908401908801612d91565b89019650505b50939a9950505050505050505050565b600082821015612dd257612dd2612a48565b500390565b600060208284031215612de957600080fd5b5051919050565b600060208284031215612e0257600080fd5b815167ffffffffffffffff811115612e1957600080fd5b8201601f81018413612e2a57600080fd5b8051612e38612810826127da565b818152856020838501011115612e4d57600080fd5b612e5e82602083016020860161268b565b95945050505050565b634e487b7160e01b600052601260045260246000fd5b600082612e8c57612e8c612e67565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008351612ef581846020880161268b565b835190830190612f0981836020880161268b565b01949350505050565b600082612f2157612f21612e67565b500490565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612f6f908301846126b7565b9695505050505050565b600060208284031215612f8b57600080fd5b815161246c8161263f56fea26469706673582212204424a0ef2df693d66c9bbd351332d77ca0054fedc03dc11e272ade287d5e723164736f6c634300080b0033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.