Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
45 GRL
Holders
43
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 GRLLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
GRL
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^ 0.8.7; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Strings.sol"; /* ....................................................................................................................... .,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;. ';;;,................................';;;;;;;;;..................................,;;;;;;;;,.......................,;;;,. .,;;,. ';;;;;;;;' .,;;;;;;;,. .,;;;. ';;;. .,;;;;;;;,. ';;;;;;;;' .;;;' .;;;,. ';;;;;;;;. .;;;;;;;;,. .,;;,. .,;;;. .;;;;;;;;,. ';;;;;;;;. ';;;' .;;;' .,;;;;;;;;. ....... .;;;;;;;;,. .;;;,. .,;;;. .;;;;;;;;' .',;;;;;;;. .,;;;;;;;;. ';;;. ';;;' .,;;;;;;;;. .';;;;;;;;;;,. .;;;;;;;;' .;;;;'........ .,;;,. ';;;;;;;;' .;;;;;;;;;;;. .,;;;;;;;;. .,;;;;;;;;;;;;' ';;;. ..................';;;;;;;;,. .';;;;;;;,'. ';;;;;;;;' ........,;;;,. .;;;,. .;;;;;;;;,........';;;;;;;;;. ....... .;;;;;;;;,. ';;;' .,;;;. .,;;;;;;;'. .;;;;;;;;,. .';;;;;;;;. .,;;,. .;;;' .;;;;;;;;. .,;;;;;;;;. ......';;;;;;;;,. ';;;. .,;;;. .,;;;;;;;,.. .;;;;;;;;' .,;;;;;;;;;;;;;. .;;;,. .;;;' ........... .,;;;;;;;;. ..'. .,;;;;;;;;;;;,. .,;;;. .,;;,. ';;;;;;;;' .;;,. .,;;;;;;;;;;. ';;;' ';;;,................................';;;;;;;;;'...............';;;;,...........';;;;;;;;;;'...............................';;;;. .;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;' ................................................................................................................................. */ contract GRL is ERC721, Ownable { string private ipfsCID = "QmWjdsafpXgbiTb4W96iUqR56rweVuGQSj1XerHVpwj5Wz"; uint256 public collectionTotal = 44; uint256 public cost = .08 ether; uint256 public maxMintAmount = 10; uint256 public whitelisterLimit = 1; bool public paused = false; bool public revealed = false; uint256 public ogCollectionTotal; uint256 public totalSupply; mapping(uint => string) private tokenToURI; mapping(uint256 => bool) private createdToken; bool public roleInUse = true; mapping(uint256 => string) public role; uint256 public roleLimit; mapping(uint256 => bool) public flagged; mapping(address => bool) public restricted; uint256[] public collectionBatchEndID; string[] public ipfsCIDBatch; string[] public uriBatch; bool public onlyWhitelisted = true; address[] public whitelistedAddresses; mapping(address => mapping(uint256 => uint256)) public whitelisterMintedPhaseBalance; uint256 public phaseForMint = 1; uint256 public costForWhitelisters = 0 ether; mapping(address => uint256) public whitelistTier; uint256[] public costTiers; uint256[] public whitelisterTierLimits; address payable public payments; address public projectLeader; address[] public admins; uint256 public devpayCount = 1; uint256 private devpayCountMax = 0; constructor() ERC721("GRL", "GRL"){ ogCollectionTotal = collectionTotal; collectionBatchEndID.push(collectionTotal); ipfsCIDBatch.push(ipfsCID); uriBatch.push(""); roleLimit = 4; costTiers.push(costForWhitelisters); costTiers.push(40000000000000000); whitelisterTierLimits.push(whitelisterLimit); whitelisterTierLimits.push(2); mint(0x4f6D0cA7E66D5e447862793F23904ba15F51f4De,1); paused = true; projectLeader = 0x4f6D0cA7E66D5e447862793F23904ba15F51f4De; } /** * @dev The contract developer's website. */ function contractDev() public pure returns(string memory){ string memory dev = unicode"🐸 HalfSuperShop.com 🐸"; return dev; } /** * @dev Admin can set the PAUSE state. * true = closed * false = open */ function pause(bool _state) public onlyAdmins { paused = _state; } /** * @dev Admin can set the roleInUse state allowing Mints to pick a A or B role randomly. * true = roles On * false = roles Off */ function setRoleInUse(bool _state) public onlyAdmins { roleInUse = _state; } /** * @dev Admin can set the minting phase. * Note: new phases resets the minted balance for all addresses */ function setMintPhase(uint _phase) public onlyAdmins { phaseForMint = _phase; } function _cost(address _user) public view returns(uint256){ if (!checkIfAdmin()) { if (onlyWhitelisted) { return whitelisterCost(_user); } else{ return cost; } } else{ return 0; } } function checkOut(uint _amount) private{ if(msg.sender == owner() || msg.sender == projectLeader){ //Free Mint for OWNER and PROJECT LEADER } else{ if (onlyWhitelisted) { //Whitelisted Only Phase require(isWhitelisted(msg.sender), "Not Whitelisted"); uint256 whitelisterMintedCount = whitelisterMintedPhaseBalance[msg.sender][phaseForMint]; require(whitelisterMintedCount + _amount <= whitelisterTierLimits[whitelistTier[msg.sender]], "Exceeded Limit"); require(msg.value >= (_amount * costTiers[whitelistTier[msg.sender]]), "Insufficient Funds"); whitelisterMintedPhaseBalance[msg.sender][phaseForMint] += _amount; } else{ //Public Phase require(msg.value >= (_amount * cost), "Insufficient Funds"); } if(msg.value > 0 && devpayCount <= devpayCountMax){ devpayCount += msg.value; } } } function checkOutScan(uint _id) private{ if (!exists(_id)) { createdToken[_id] = true; flagged[_id] = false; } if(roleInUse){ role[_id] = randomRole(); } } function mint(address _to, uint _numberOfTokensToMint) public payable { require(!paused, "Paused"); require(_numberOfTokensToMint > 0, "CANNOT MINT 0"); require(_numberOfTokensToMint <= maxMintAmount, "LOWER AMOUNT"); require(totalSupply + _numberOfTokensToMint <= collectionTotal, "SOLD OUT"); checkOut(_numberOfTokensToMint); for (uint256 i = 0; i < _numberOfTokensToMint; i++) { totalSupply++; checkOutScan(totalSupply); _safeMint(_to, totalSupply); } } function burn(uint _id) public { _burn(_id); } function burnBatch(uint[] memory _ids) external { for (uint256 i = 0; i < _ids.length; ++i) { _burn(_ids[i]); } } /** * @dev Allows Admin to REVEAL the original collection. * Can only be called by the current owner once. * WARNING: Please ensure the CID is 100% correct before execution. */ function reveal(string memory _CID) external onlyAdmins { require(!revealed, "Already Revealed"); ipfsCID = _CID; ipfsCIDBatch[0] = _CID; revealed = true; } /** * @dev Allows Admin to modify the URI or CID of a Batch. * Note: Original Collection Batch URIs and or CIDs can be modified. */ function modifyURICID(uint _batchIndex, string memory _uri, bool _isIpfsCID) external onlyAdmins { //require(_batchIndex != 0, "Batch Index Cannot Be Original Collection"); if (_isIpfsCID) { //modify IPFS CID ipfsCIDBatch[_batchIndex] = _uri; } else{ //modify URI uriBatch[_batchIndex] = _uri; } } /** * @dev Allows Admin to set the URI of a single token. * Set _isIpfsCID to true if using only IPFS CID for the _uri. */ function setURI(uint _id, string memory _uri, bool _isIpfsCID) external onlyAdmins { if (_isIpfsCID) { string memory _uriIPFS = string(abi.encodePacked( "ipfs://", _uri, "/", Strings.toString(_id), ".json" )); tokenToURI[_id] = _uriIPFS; } else { tokenToURI[_id] = _uri; } } /** * @dev Allows Admin to create a new Batch and set the URI or CID of a single or batch of tokens. * Note: Previous Token URIs and or CIDs cannot be changed. * Set _isIpfsCID to true if using only IPFS CID for the _uri. * Example URI structure if _endBatchID = 55 and if _isIpfsCID = false and if _uri = BASEURI.EXTENSION * will output: BASEURI.EXTENSION/55.json for IDs 55 and below until it hits another batch end ID */ function createBatchAndSetURI(uint _endBatchID, string memory _uri, bool _isIpfsCID) external onlyAdmins { require(_endBatchID > collectionBatchEndID[collectionBatchEndID.length-1], "Last Batch ID must be greater than previous batch total"); if (_isIpfsCID) { //set IPFS CID collectionBatchEndID.push(_endBatchID); ipfsCIDBatch.push(_uri); uriBatch.push(""); } else{ //set URI collectionBatchEndID.push(_endBatchID); uriBatch.push(_uri); ipfsCIDBatch.push(""); } } function tokenURI(uint256 _id) override public view returns(string memory) { string memory _CIDorURI = string(abi.encodePacked( "ipfs://", ipfsCID, "/" )); if(createdToken[_id]){ if (_id > 0 && _id <= ogCollectionTotal) { //hidden if(!revealed){ return ( string(abi.encodePacked( _CIDorURI, "hidden", ".json" ))); } else{ if(keccak256(abi.encodePacked((tokenToURI[_id]))) != keccak256(abi.encodePacked(("")))){ return tokenToURI[_id]; } for (uint256 i = 0; i < collectionBatchEndID.length; ++i) { if(i == 0){ //first iteration is for OG collection continue; } else{ if(_id <= collectionBatchEndID[i]){ if(keccak256(abi.encodePacked((ipfsCIDBatch[i]))) != keccak256(abi.encodePacked(("")))){ _CIDorURI = string(abi.encodePacked( "ipfs://", ipfsCIDBatch[i], "/" )); } if(keccak256(abi.encodePacked((uriBatch[i]))) != keccak256(abi.encodePacked(("")))){ _CIDorURI = string(abi.encodePacked( uriBatch[i], "/" )); } continue; } else{ //_id was not found in a batch continue; } } } //no role if(keccak256(abi.encodePacked((role[_id]))) == keccak256(abi.encodePacked(("")))){ return ( string(abi.encodePacked( _CIDorURI, Strings.toString(_id), ".json" ))); } else{ //has role return ( string(abi.encodePacked( _CIDorURI, role[_id], ".json" ))); } } } //no URI return "URI Does Not Exist"; } else{ return "Token Does Not Exist"; } } //"Randomly" returns a number >= 0 and <= roleLimit. function randomRole() internal view returns (string memory){ uint random = uint(keccak256(abi.encodePacked( block.timestamp, block.difficulty, msg.sender, totalSupply, role[totalSupply]) )) % roleLimit; //return random; return Strings.toString(random + 1); } function randomPick() public view returns (string memory _role){ return randomRole(); } function roleLimitSet(uint _limit) external onlyAdmins { roleLimit = _limit; } function exists(uint256 _id) public view returns(bool) { return createdToken[_id]; } /** * @dev Admin can update the collection total to allow minting the newly added NFTs. * Note: This only adds to the current collections total */ function updateCollectionTotal(uint _amountToAdd) external onlyAdmins { collectionTotal += _amountToAdd; } /** * @dev Admin can set the amount a user can mint in one session. */ function setmaxMintAmount(uint256 _newmaxMintAmount) public onlyAdmins { maxMintAmount = _newmaxMintAmount; } function isWhitelisted(address _user) public view returns(bool) { for (uint256 i = 0; i < whitelistedAddresses.length; i++) { if (whitelistedAddresses[i] == _user) { return true; } } return false; } function whitelisterCost(address _user) private view returns(uint256){ if(whitelistTier[_user] == 0){ return costForWhitelisters; } else{ return costTiers[whitelistTier[_user]]; } } function whitelisterLimitGet(address _user) private view returns(uint256){ if(whitelistTier[_user] == 0){ return whitelisterLimit; } else{ return whitelisterTierLimits[whitelistTier[_user]]; } } /** * @dev Admin can set the max amount whitelister can mint during presale. */ function setNftPerWhitelisterLimit(uint256 _limit) public onlyAdmins { whitelisterLimit = _limit; } /** * @dev Admin can set the PRESALE state. * true = whitelisters only * false = public */ function setOnlyWhitelisted(bool _state) public onlyAdmins { onlyWhitelisted = _state; } /** * @dev Admin can set the addresses as whitelisters and assign an optional tier. * Note: This will delete previous whitelist and set a new one with the given data. * All addresses have their tier set to 0 by default. * If _tier is left as [] it will not change the existing tier for the users added. * If only 1 number is in _tier it will assign all to that tier number. * Example: _users = ["0xADDRESS1", "0xADDRESS2", "0xADDRESS3"] _tier = [1,2,3] */ function whitelistUsers(address[] calldata _users, uint[] memory _tier) public onlyAdmins { delete whitelistedAddresses; whitelistedAddresses = _users; if(_tier.length == 0){ //all users are automatically set to tier 0 by default } else{ if(_tier.length == 1){ for (uint256 i = 0; i < _users.length; i++) { whitelistTier[_users[i]] = _tier[0]; } } else{ whitelisterSetTier(_users, _tier); } } } /** * @dev Admin can set the tier number for the addresses of whitelisters. * Example: _users = ["0xADDRESS1", "0xADDRESS2", "0xADDRESS3"] _tier = [1,2,3] */ function whitelisterSetTier(address[] calldata _users, uint[] memory _tier) public onlyAdmins { require(_users.length == _tier.length, "Arrays Not Equal"); for (uint256 i = 0; i < _users.length; i++) { whitelistTier[_users[i]] = _tier[i]; } } /** * @dev Admin can set the new cost in WEI. * 1 ETH = 10^18 WEI * Use http://etherscan.io/unitconverter for conversions. */ function setCost(uint256 _newCost) public onlyAdmins { cost = _newCost; } /** * @dev Admin can set the new cost in WEI for whitelist users. * Note: this cost is only in effect during whitelist only phase */ function setCostForWhitelisted(uint256 _newCost) public onlyAdmins { costForWhitelisters = _newCost; costTiers[0] = _newCost; } /** * @dev Admin can set the new cost tiers in WEI for whitelist users. * Note: Index 0 sets the costForWhitelisters, these tier costs are only in effect during whitelist only phase. */ function setCostTiers(uint[] memory _tierCost) public onlyAdmins { delete costTiers; costTiers = _tierCost; costForWhitelisters = _tierCost[0]; } /** * @dev Admin can set the new limit tiers for whitelist users. * Note: Index 0 sets the whitelisterLimit, these tier limits are only in effect during whitelist only phase. */ function setwhitelisterTierLimits(uint[] memory _tierLimit) public onlyAdmins { delete whitelisterTierLimits; whitelisterTierLimits = _tierLimit; whitelisterLimit = _tierLimit[0]; } /** * @dev Admin can set the payout address. */ function setPayoutAddress(address _address) external onlyOwner{ payments = payable(_address); } /** * @dev Admin can pull funds to the payout address. */ function withdraw() public payable onlyAdmins { require(payments != 0x0000000000000000000000000000000000000000, "Payout Address Not Set"); if(devpayCount <= devpayCountMax){ //dev (bool success, ) = payable(0x1BA3fe6311131A67d97f20162522490c3648F6e2).call{ value: address(this).balance } (""); require(success); } else{ //splitter (bool success, ) = payable(payments).call{ value: address(this).balance } (""); require(success); } } receive() payable external { require(payments != 0x0000000000000000000000000000000000000000, "Payout Address Not Set"); uint256 payout = msg.value; payments.transfer(payout); } modifier onlyAdmins() { _checkAdmins(); _; } function _checkAdmins() internal view virtual { require(checkIfAdmin(), "Not an admin"); } function checkIfAdmin() public view returns(bool) { if (msg.sender == owner() || msg.sender == projectLeader){ return true; } if(admins.length > 0){ for (uint256 i = 0; i < admins.length; i++) { if(msg.sender == admins[i]){ return true; } } } // Not an Admin return false; } function setAdmins(address[] calldata _users) public onlyAdmins { require(msg.sender == owner() || msg.sender == projectLeader, "Not Owner or Project Leader"); delete admins; admins = _users; } /** * @dev Owner or Project Leader can set the address as new Project Leader. */ function setProjectLeader(address _user) external { require(msg.sender == owner() || msg.sender == projectLeader, "Not Owner or Project Leader"); projectLeader = _user; } function setDevPayCount(uint256 _count) external{ require(msg.sender == 0x1BA3fe6311131A67d97f20162522490c3648F6e2, "Not the dev"); devpayCount += _count; } function setDevPayoutMints(uint256 _maxPayCount) external{ require(msg.sender == 0x1BA3fe6311131A67d97f20162522490c3648F6e2, "Not the dev"); devpayCountMax = _maxPayCount; } /** * @dev Owner or Project Leader can set the restricted state of an address. */ function restrictAddress(address _user, bool _state) external { require(msg.sender == owner() || msg.sender == projectLeader, "Owner or Project Leader Only: caller is not Owner or Project Leader"); restricted[_user] = _state; } /** * @dev Owner or Project Leader can set the flag state of a token ID. */ function flagID(uint256 _id, bool _state) external { require(msg.sender == owner() || msg.sender == projectLeader, "Owner or Project Leader Only: caller is not Owner or Project Leader"); flagged[_id] = _state; } function _beforeTokenTransfer(address from, address to, uint256 id) internal virtual override{ super._beforeTokenTransfer(from, to, id); // Call parent hook require(restricted[from] == false && restricted[to] == false, "Operator, From, or To Address is RESTRICTED"); //checks if the any address in use is restricted if(flagged[id]){ revert("FLAGGED TOKEN DETECTED"); //reverts if a token has been flagged } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); 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) { _requireMinted(tokenId); 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 overridden 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 token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); 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: caller is not token owner or 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: caller is not token owner or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @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 _ownerOf(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) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(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 from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {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 an {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 Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @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 { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any (single) token transfer. This includes minting and burning. * See {_beforeConsecutiveTokenTransfer}. * * 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 {} /** * @dev Hook that is called after any (single) transfer of tokens. This includes minting and burning. * See {_afterConsecutiveTokenTransfer}. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `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 tokenId ) internal virtual {} /** * @dev Hook that is called before consecutive token transfers. * Calling conditions are similar to {_beforeTokenTransfer}. * * The default implementation include balances updates that extensions such as {ERC721Consecutive} cannot perform * directly. */ function _beforeConsecutiveTokenTransfer( address from, address to, uint256, /*first*/ uint96 size ) internal virtual { if (from != address(0)) { _balances[from] -= size; } if (to != address(0)) { _balances[to] += size; } } /** * @dev Hook that is called after consecutive token transfers. * Calling conditions are similar to {_afterTokenTransfer}. */ function _afterConsecutiveTokenTransfer( address, /*from*/ address, /*to*/ uint256, /*first*/ uint96 /*size*/ ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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.1 (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 (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 (last updated v4.6.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 `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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`. * * 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; /** * @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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * 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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "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":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"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"_cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"admins","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"checkIfAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"collectionBatchEndID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractDev","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"costForWhitelisters","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"costTiers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_endBatchID","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"bool","name":"_isIpfsCID","type":"bool"}],"name":"createBatchAndSetURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devpayCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bool","name":"_state","type":"bool"}],"name":"flagID","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"flagged","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ipfsCIDBatch","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"address","name":"_user","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_numberOfTokensToMint","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_batchIndex","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"bool","name":"_isIpfsCID","type":"bool"}],"name":"modifyURICID","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ogCollectionTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onlyWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payments","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phaseForMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"projectLeader","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomPick","outputs":[{"internalType":"string","name":"_role","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"bool","name":"_state","type":"bool"}],"name":"restrictAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"restricted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_CID","type":"string"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"role","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"roleInUse","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"roleLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"roleLimitSet","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":"_users","type":"address[]"}],"name":"setAdmins","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":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCostForWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tierCost","type":"uint256[]"}],"name":"setCostTiers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"setDevPayCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPayCount","type":"uint256"}],"name":"setDevPayoutMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_phase","type":"uint256"}],"name":"setMintPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setNftPerWhitelisterLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setOnlyWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setPayoutAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"setProjectLeader","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRoleInUse","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"bool","name":"_isIpfsCID","type":"bool"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newmaxMintAmount","type":"uint256"}],"name":"setmaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tierLimit","type":"uint256[]"}],"name":"setwhitelisterTierLimits","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":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","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"},{"inputs":[{"internalType":"uint256","name":"_amountToAdd","type":"uint256"}],"name":"updateCollectionTotal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uriBatch","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistTier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"},{"internalType":"uint256[]","name":"_tier","type":"uint256[]"}],"name":"whitelistUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelistedAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelisterLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelisterMintedPhaseBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"},{"internalType":"uint256[]","name":"_tier","type":"uint256[]"}],"name":"whitelisterSetTier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelisterTierLimits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60e0604052602e608081815290620052ad60a0398051620000299160079160209091019062000edb565b50602c60085567011c37937e080000600955600a80556001600b819055600c805461ffff191690556011805460ff1990811683179091556019805490911682179055601c8190556000601d8190556024919091556025553480156200008d57600080fd5b5060408051808201825260038082526211d49360ea1b602080840182815285518087019096529285528401528151919291620000cc9160009162000edb565b508051620000e290600190602084019062000edb565b505050620000ff620000f9620002c460201b60201c565b620002c8565b600854600d8190556016805460018181019092557fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b51242890191909155601780549182018155600052600780547fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c15909201916200017990620011c4565b6200018692919062000f6a565b50601880546001810182556000918252604080516020810191829052839052620001d5927fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e9092019162000edb565b506004601355601d54601f8054600181810183557fa03837a25210ee280c2113ff4b77ca23440b19d4866cca721c801278fd08d807918201939093558154808401909255668e1bc9bf040000910155600b5460208054808401825560008290527fc97bfaf2f8ee708c303a06d134f5ecd8389ae0432af62dc132a24118292866bb90810192909255805480840190915560029101556200028b90734f6d0ca7e66d5e447862793f23904ba15f51f4de906200031a565b600c805460ff19166001179055602280546001600160a01b031916734f6d0ca7e66d5e447862793f23904ba15f51f4de17905562001284565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600c5460ff16156200035c5760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b60448201526064015b60405180910390fd5b600081116200039e5760405162461bcd60e51b815260206004820152600d60248201526c043414e4e4f54204d494e54203609c1b604482015260640162000353565b600a54811115620003e15760405162461bcd60e51b815260206004820152600c60248201526b1313d5d15488105353d5539560a21b604482015260640162000353565b60085481600e54620003f4919062001187565b11156200042f5760405162461bcd60e51b815260206004820152600860248201526714d3d3110813d55560c21b604482015260640162000353565b6200043a8162000499565b60005b818110156200049457600e8054906000620004588362001201565b9091555050600e546200046b9062000700565b6200047f83600e546200078560201b60201c565b806200048b8162001201565b9150506200043d565b505050565b6006546001600160a01b0316331480620004bd57506022546001600160a01b031633145b15620004c65750565b60195460ff16156200067357620004dd33620007a7565b6200051d5760405162461bcd60e51b815260206004820152600f60248201526e139bdd0815da1a5d195b1a5cdd1959608a1b604482015260640162000353565b336000818152601b60209081526040808320601c548452825280832054938352601e8252909120548154811062000558576200055862001258565b9060005260206000200154828262000571919062001187565b1115620005b25760405162461bcd60e51b815260206004820152600e60248201526d115e18d95959195908131a5b5a5d60921b604482015260640162000353565b336000908152601e6020526040902054601f80549091908110620005da57620005da62001258565b906000526020600020015482620005f29190620011a2565b341015620006385760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742046756e647360701b604482015260640162000353565b336000908152601b60209081526040808320601c548452909152812080548492906200066690849062001187565b90915550620006c8915050565b600954620006829082620011a2565b341015620006c85760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742046756e647360701b604482015260640162000353565b600034118015620006dd575060255460245411155b15620006fd573460246000828254620006f7919062001187565b90915550505b50565b60008181526010602052604090205460ff1662000746576000818152601060209081526040808320805460ff199081166001179091556014909252909120805490911690555b60115460ff1615620006fd576200075c62000819565b6000828152601260209081526040909120825162000781939192919091019062000edb565b5050565b620007818282604051806020016040528060008152506200089960201b60201c565b6000805b601a548110156200081057826001600160a01b0316601a8281548110620007d657620007d662001258565b6000918252602090912001546001600160a01b03161415620007fb5750600192915050565b80620008078162001201565b915050620007ab565b50600092915050565b601354600e546000818152601260209081526040808320905160609593946200084a93429344933393920162001038565b6040516020818303038152906040528051906020012060001c6200086f91906200121f565b9050620008936200088282600162001187565b6200090c60201b620025fe1760201c565b91505090565b620008a58383620009bc565b620008b4600084848462000b5b565b620004945760405162461bcd60e51b815260206004820152603260248201526000805160206200528d83398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840162000353565b60606000620009268362000cc460201b6200269b1760201c565b60010190506000816001600160401b038111156200094857620009486200126e565b6040519080825280601f01601f19166020018201604052801562000973576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084620009ae57620009b4565b6200097d565b509392505050565b6001600160a01b03821662000a145760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640162000353565b6000818152600260205260409020546001600160a01b03161562000a7b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640162000353565b62000a896000838362000dae565b6000818152600260205260409020546001600160a01b03161562000af05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640162000353565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600062000b7c846001600160a01b031662000ecc60201b620027731760201c565b1562000cb857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029062000bb69033908990889088906004016200110c565b602060405180830381600087803b15801562000bd157600080fd5b505af192505050801562000c04575060408051601f3d908101601f1916820190925262000c019181019062001005565b60015b62000c9d573d80801562000c35576040519150601f19603f3d011682016040523d82523d6000602084013e62000c3a565b606091505b50805162000c955760405162461bcd60e51b815260206004820152603260248201526000805160206200528d83398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840162000353565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905062000cbc565b5060015b949350505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831062000d0e577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef8100000000831062000d3b576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831062000d5a57662386f26fc10000830492506010015b6305f5e100831062000d73576305f5e100830492506008015b612710831062000d8857612710830492506004015b6064831062000d9b576064830492506002015b600a831062000da8576001015b92915050565b62000dc68383836200049460201b6200113a1760201c565b6001600160a01b03831660009081526015602052604090205460ff1615801562000e0957506001600160a01b03821660009081526015602052604090205460ff16155b62000e6b5760405162461bcd60e51b815260206004820152602b60248201527f4f70657261746f722c2046726f6d2c206f7220546f204164647265737320697360448201526a08149154d5149250d5115160aa1b606482015260840162000353565b60008181526014602052604090205460ff1615620004945760405162461bcd60e51b815260206004820152601660248201527f464c414747454420544f4b454e20444554454354454400000000000000000000604482015260640162000353565b6001600160a01b03163b151590565b82805462000ee990620011c4565b90600052602060002090601f01602090048101928262000f0d576000855562000f58565b82601f1062000f2857805160ff191683800117855562000f58565b8280016001018555821562000f58579182015b8281111562000f5857825182559160200191906001019062000f3b565b5062000f6692915062000fee565b5090565b82805462000f7890620011c4565b90600052602060002090601f01602090048101928262000f9c576000855562000f58565b82601f1062000faf578054855562000f58565b8280016001018555821562000f5857600052602060002091601f016020900482015b8281111562000f5857825482559160010191906001019062000fd1565b5b8082111562000f66576000815560010162000fef565b6000602082840312156200101857600080fd5b81516001600160e01b0319811681146200103157600080fd5b9392505050565b85815260006020868184015260018060601b03198660601b16604084015284605484015260746000855481600182811c9150808316806200107a57607f831692505b8683108114156200109957634e487b7160e01b85526022600452602485fd5b808015620010b05760018114620010c657620010f9565b60ff1985168a880152838a0187019550620010f9565b60008b81526020902060005b85811015620010ef5781548c82018a0152908401908901620010d2565b505086848b010195505b50939d9c50505050505050505050505050565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b828110156200115b5785810182015185820160a0015281016200113d565b828111156200116e57600060a084870101525b5050601f01601f19169190910160a00195945050505050565b600082198211156200119d576200119d62001242565b500190565b6000816000190483118215151615620011bf57620011bf62001242565b500290565b600181811c90821680620011d957607f821691505b60208210811415620011fb57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562001218576200121862001242565b5060010190565b6000826200123d57634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b613ff980620012946000396000f3fe60806040526004361061046c5760003560e01c80635c975abb1161024a578063b5b13abc11610139578063d85ed0f4116100b6578063ea7aef5c1161007a578063ea7aef5c14610e60578063ed00e65314610e76578063f2fde38b14610e8b578063f8f3a1ca14610eab578063fa0fda3514610ecb57600080fd5b8063d85ed0f414610d92578063d8d9d6bc14610da7578063e4623c1b14610dd7578063e5211d8b14610df7578063e985e9c514610e1757600080fd5b8063ba4e5c49116100fd578063ba4e5c4914610cf2578063bff67e9b14610d12578063c87b56dd14610d32578063d261b6e414610d52578063d6199f8d14610d7257600080fd5b8063b5b13abc14610c5c578063b5e0e87b14610c7c578063b6906eca14610c9c578063b82741a014610cb2578063b88d4fde14610cd257600080fd5b80639c70b512116101c7578063a5492f441161018b578063a5492f4414610bc6578063a684c47114610be6578063a6d23e1014610c06578063ab80573e14610c26578063accc1d5e14610c3c57600080fd5b80639c70b51214610b1c578063a1fc693714610b36578063a22cb46514610b56578063a370c66814610b76578063a4c2f65114610ba657600080fd5b80637f00c7a61161020e5780637f00c7a614610a8f57806384c6ef2f14610aaf5780638da5cb5b14610ac9578063943431bf14610ae757806395d89b4114610b0757600080fd5b80635c975abb146109da5780636352211e146109f457806370a0823114610a14578063715018a614610a345780637724bad814610a4957600080fd5b8063359cf6871161036657806344a0d68a116102e357806351830227116102a7578063518302271461093b57806351ede7911461095a57806352addee51461097a578063533c7cfa1461099a5780635c78222f146109ba57600080fd5b806344a0d68a146108955780634bef82be146108b55780634c261247146108d55780634cafdb6d146108f55780634f558e791461090b57600080fd5b80634271c5fd1161032a5780634271c5fd146107ff57806342842e0e1461081557806342966c68146108355780634378dfa514610855578063441664171461087557600080fd5b8063359cf6871461078e5780633af32abf146107a45780633c952764146107c45780633ccfd60b146107e457806340c10f19146107ec57600080fd5b80631973ea06116103f4578063239c70ae116103b8578063239c70ae146106f857806323b872dd1461070e578063293d8bb51461072e5780632a9abcb91461074e57806333ea51a81461076e57600080fd5b80631973ea06146106555780631b100450146106755780631c60094b146106955780631ee33ca9146106c257806321d0a2a0146106d857600080fd5b8063095ea7b31161043b578063095ea7b3146105bb5780630ec7359f146105db57806313faede6146105fb57806314bfd6d01461061f57806318160ddd1461063f57600080fd5b806301ffc9a71461050a57806302329a291461053f57806306fdde0314610561578063081812fc1461058357600080fd5b36610505576021546001600160a01b03166104c75760405162461bcd60e51b815260206004820152601660248201527514185e5bdd5d081059191c995cdcc8139bdd0814d95d60521b60448201526064015b60405180910390fd5b60215460405134916001600160a01b03169082156108fc029083906000818181858888f19350505050158015610501573d6000803e3d6000fd5b5050005b600080fd5b34801561051657600080fd5b5061052a610525366004613956565b610f03565b60405190151581526020015b60405180910390f35b34801561054b57600080fd5b5061055f61055a36600461393b565b610f55565b005b34801561056d57600080fd5b50610576610f70565b6040516105369190613cee565b34801561058f57600080fd5b506105a361059e3660046139c5565b611002565b6040516001600160a01b039091168152602001610536565b3480156105c757600080fd5b5061055f6105d6366004613831565b611029565b3480156105e757600080fd5b5061055f6105f6366004613906565b61113f565b34801561060757600080fd5b5061061160095481565b604051908152602001610536565b34801561062b57600080fd5b506105a361063a3660046139c5565b61118b565b34801561064b57600080fd5b50610611600e5481565b34801561066157600080fd5b5061055f61067036600461389d565b6111b5565b34801561068157600080fd5b5061055f6106903660046139c5565b611279565b3480156106a157600080fd5b506106116106b0366004613701565b601e6020526000908152604090205481565b3480156106ce57600080fd5b50610611601d5481565b3480156106e457600080fd5b506105766106f33660046139c5565b6112e4565b34801561070457600080fd5b50610611600a5481565b34801561071a57600080fd5b5061055f61072936600461374f565b61137e565b34801561073a57600080fd5b5061055f6107493660046139c5565b6113af565b34801561075a57600080fd5b5061055f610769366004613a01565b6113e2565b34801561077a57600080fd5b5061055f610789366004613701565b611465565b34801561079a57600080fd5b50610611600d5481565b3480156107b057600080fd5b5061052a6107bf366004613701565b61148f565b3480156107d057600080fd5b5061055f6107df36600461393b565b6114f9565b61055f611514565b61055f6107fa366004613831565b611633565b34801561080b57600080fd5b5061061160245481565b34801561082157600080fd5b5061055f61083036600461374f565b61178c565b34801561084157600080fd5b5061055f6108503660046139c5565b6117a7565b34801561086157600080fd5b5061055f610870366004613906565b6117b0565b34801561088157600080fd5b5061055f610890366004613a01565b6117fb565b3480156108a157600080fd5b5061055f6108b03660046139c5565b611a22565b3480156108c157600080fd5b5061055f6108d03660046139c5565b611a2f565b3480156108e157600080fd5b5061055f6108f0366004613990565b611a3c565b34801561090157600080fd5b5061061160085481565b34801561091757600080fd5b5061052a6109263660046139c5565b60009081526010602052604090205460ff1690565b34801561094757600080fd5b50600c5461052a90610100900460ff1681565b34801561096657600080fd5b5061055f6109753660046139c5565b611ae8565b34801561098657600080fd5b506106116109953660046139c5565b611af5565b3480156109a657600080fd5b506106116109b5366004613701565b611b16565b3480156109c657600080fd5b5061055f6109d536600461393b565b611b4d565b3480156109e657600080fd5b50600c5461052a9060ff1681565b348015610a0057600080fd5b506105a3610a0f3660046139c5565b611b68565b348015610a2057600080fd5b50610611610a2f366004613701565b611bc8565b348015610a4057600080fd5b5061055f611c4e565b348015610a5557600080fd5b5060408051808201909152601b81527ff09f90b82048616c66537570657253686f702e636f6d20f09f90b800000000006020820152610576565b348015610a9b57600080fd5b5061055f610aaa3660046139c5565b611c60565b348015610abb57600080fd5b5060115461052a9060ff1681565b348015610ad557600080fd5b506006546001600160a01b03166105a3565b348015610af357600080fd5b5061055f610b023660046139c5565b611c6d565b348015610b1357600080fd5b50610576611c7a565b348015610b2857600080fd5b5060195461052a9060ff1681565b348015610b4257600080fd5b50610611610b513660046139c5565b611c89565b348015610b6257600080fd5b5061055f610b71366004613807565b611c99565b348015610b8257600080fd5b5061052a610b913660046139c5565b60146020526000908152604090205460ff1681565b348015610bb257600080fd5b5061055f610bc1366004613701565b611ca8565b348015610bd257600080fd5b5061055f610be1366004613807565b611d39565b348015610bf257600080fd5b506022546105a3906001600160a01b031681565b348015610c1257600080fd5b506021546105a3906001600160a01b031681565b348015610c3257600080fd5b5061061160135481565b348015610c4857600080fd5b5061055f610c5736600461385b565b611da3565b348015610c6857600080fd5b5061055f610c773660046139c5565b611e32565b348015610c8857600080fd5b5061055f610c9736600461389d565b611e88565b348015610ca857600080fd5b50610611601c5481565b348015610cbe57600080fd5b5061055f610ccd366004613a01565b611f4f565b348015610cde57600080fd5b5061055f610ced36600461378b565b611fa2565b348015610cfe57600080fd5b506105a3610d0d3660046139c5565b611fd4565b348015610d1e57600080fd5b50610576610d2d3660046139c5565b611fe4565b348015610d3e57600080fd5b50610576610d4d3660046139c5565b61200f565b348015610d5e57600080fd5b5061055f610d6d3660046139c5565b6123f4565b348015610d7e57600080fd5b50610576610d8d3660046139c5565b61240e565b348015610d9e57600080fd5b5061057661241e565b348015610db357600080fd5b5061052a610dc2366004613701565b60156020526000908152604090205460ff1681565b348015610de357600080fd5b5061055f610df2366004613906565b61242d565b348015610e0357600080fd5b5061055f610e123660046139de565b61246b565b348015610e2357600080fd5b5061052a610e3236600461371c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610e6c57600080fd5b50610611600b5481565b348015610e8257600080fd5b5061052a6124ca565b348015610e9757600080fd5b5061055f610ea6366004613701565b612578565b348015610eb757600080fd5b50610611610ec63660046139c5565b6125ee565b348015610ed757600080fd5b50610611610ee6366004613831565b601b60209081526000928352604080842090915290825290205481565b60006001600160e01b031982166380ac58cd60e01b1480610f3457506001600160e01b03198216635b5e139f60e01b145b80610f4f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b610f5d612782565b600c805460ff1916911515919091179055565b606060008054610f7f90613ef9565b80601f0160208091040260200160405190810160405280929190818152602001828054610fab90613ef9565b8015610ff85780601f10610fcd57610100808354040283529160200191610ff8565b820191906000526020600020905b815481529060010190602001808311610fdb57829003601f168201915b5050505050905090565b600061100d826127c5565b506000908152600460205260409020546001600160a01b031690565b600061103482611b68565b9050806001600160a01b0316836001600160a01b031614156110a25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016104be565b336001600160a01b03821614806110be57506110be8133610e32565b6111305760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016104be565b61113a8383612824565b505050565b611147612782565b611153601f6000613445565b805161116690601f906020840190613463565b508060008151811061117a5761117a613f81565b6020026020010151601d8190555050565b6023818154811061119b57600080fd5b6000918252602090912001546001600160a01b0316905081565b6111bd612782565b6111c9601a6000613445565b6111d5601a84846134ae565b5080516111e157505050565b80516001141561126e5760005b82811015611268578160008151811061120957611209613f81565b6020026020010151601e600086868581811061122757611227613f81565b905060200201602081019061123c9190613701565b6001600160a01b031681526020810191909152604001600020558061126081613f2e565b9150506111ee565b50505050565b61113a838383611e88565b731ba3fe6311131a67d97f20162522490c3648f6e233146112ca5760405162461bcd60e51b815260206004820152600b60248201526a2737ba103a3432903232bb60a91b60448201526064016104be565b80602460008282546112dc9190613e7f565b909155505050565b601260205260009081526040902080546112fd90613ef9565b80601f016020809104026020016040519081016040528092919081815260200182805461132990613ef9565b80156113765780601f1061134b57610100808354040283529160200191611376565b820191906000526020600020905b81548152906001019060200180831161135957829003601f168201915b505050505081565b6113883382612892565b6113a45760405162461bcd60e51b81526004016104be90613d01565b61113a838383612911565b6113b7612782565b80601d8190555080601f6000815481106113d3576113d3613f81565b60009182526020909120015550565b6113ea612782565b8015611446576000826113fc856125fe565b60405160200161140d929190613bf3565b60408051601f198184030181529181526000868152600f6020908152919020825192935061143f929091840190613501565b5050505050565b6000838152600f60209081526040909120835161126892850190613501565b61146d612a80565b602180546001600160a01b0319166001600160a01b0392909216919091179055565b6000805b601a548110156114f057826001600160a01b0316601a82815481106114ba576114ba613f81565b6000918252602090912001546001600160a01b031614156114de5750600192915050565b806114e881613f2e565b915050611493565b50600092915050565b611501612782565b6019805460ff1916911515919091179055565b61151c612782565b6021546001600160a01b031661156d5760405162461bcd60e51b815260206004820152601660248201527514185e5bdd5d081059191c995cdcc8139bdd0814d95d60521b60448201526064016104be565b602554602454116115e457604051600090731ba3fe6311131a67d97f20162522490c3648f6e29047908381818185875af1925050503d80600081146115ce576040519150601f19603f3d011682016040523d82523d6000602084013e6115d3565b606091505b50509050806115e157600080fd5b50565b6021546040516000916001600160a01b03169047908381818185875af1925050503d80600081146115ce576040519150601f19603f3d011682016040523d82523d6000602084013e6115d3565b565b600c5460ff161561166f5760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b60448201526064016104be565b600081116116af5760405162461bcd60e51b815260206004820152600d60248201526c043414e4e4f54204d494e54203609c1b60448201526064016104be565b600a548111156116f05760405162461bcd60e51b815260206004820152600c60248201526b1313d5d15488105353d5539560a21b60448201526064016104be565b60085481600e546117019190613e7f565b111561173a5760405162461bcd60e51b815260206004820152600860248201526714d3d3110813d55560c21b60448201526064016104be565b61174381612ada565b60005b8181101561113a57600e805490600061175e83613f2e565b919050555061176e600e54612d18565b61177a83600e54612d93565b8061178481613f2e565b915050611746565b61113a83838360405180602001604052806000815250611fa2565b6115e181612dad565b6117b8612782565b6117c460206000613445565b80516117d69060209081840190613463565b50806000815181106117ea576117ea613f81565b6020026020010151600b8190555050565b611803612782565b6016805461181390600190613eb6565b8154811061182357611823613f81565b906000526020600020015483116118a25760405162461bcd60e51b815260206004820152603760248201527f4c617374204261746368204944206d757374206265206772656174657220746860448201527f616e2070726576696f757320626174636820746f74616c00000000000000000060648201526084016104be565b8015611965576016805460018181019092557fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b5124289018490556017805491820181556000528251611918917fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1501906020850190613501565b50601880546001810182556000918252604080516020810191829052839052611268927fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e90920191613501565b6016805460018181019092557fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b51242890184905560188054918201815560005282516119d5917fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e01906020850190613501565b50601780546001810182556000918252604080516020810191829052839052611268927fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1590920191613501565b611a2a612782565b600955565b611a37612782565b601355565b611a44612782565b600c54610100900460ff1615611a8f5760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e4814995d99585b195960821b60448201526064016104be565b8051611aa2906007906020840190613501565b50806017600081548110611ab857611ab8613f81565b906000526020600020019080519060200190611ad5929190613501565b5050600c805461ff001916610100179055565b611af0612782565b600b55565b60168181548110611b0557600080fd5b600091825260209091200154905081565b6000611b206124ca565b611b405760195460ff1615611b3857610f4f82612e4e565b505060095490565b506000919050565b919050565b611b55612782565b6011805460ff1916911515919091179055565b6000818152600260205260408120546001600160a01b031680610f4f5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016104be565b60006001600160a01b038216611c325760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016104be565b506001600160a01b031660009081526003602052604090205490565b611c56612a80565b6116316000612eb3565b611c68612782565b600a55565b611c75612782565b601c55565b606060018054610f7f90613ef9565b601f8181548110611b0557600080fd5b611ca4338383612f05565b5050565b6006546001600160a01b0316331480611ccb57506022546001600160a01b031633145b611d175760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204f776e6572206f722050726f6a656374204c6561646572000000000060448201526064016104be565b602280546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b0316331480611d5c57506022546001600160a01b031633145b611d785760405162461bcd60e51b81526004016104be90613de5565b6001600160a01b03919091166000908152601560205260409020805460ff1916911515919091179055565b611dab612782565b6006546001600160a01b0316331480611dce57506022546001600160a01b031633145b611e1a5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204f776e6572206f722050726f6a656374204c6561646572000000000060448201526064016104be565b611e2660236000613445565b61113a602383836134ae565b731ba3fe6311131a67d97f20162522490c3648f6e23314611e835760405162461bcd60e51b815260206004820152600b60248201526a2737ba103a3432903232bb60a91b60448201526064016104be565b602555565b611e90612782565b80518214611ed35760405162461bcd60e51b815260206004820152601060248201526f105c9c985e5cc8139bdd08115c5d585b60821b60448201526064016104be565b60005b8281101561126857818181518110611ef057611ef0613f81565b6020026020010151601e6000868685818110611f0e57611f0e613f81565b9050602002016020810190611f239190613701565b6001600160a01b0316815260208101919091526040016000205580611f4781613f2e565b915050611ed6565b611f57612782565b8015611f8e578160178481548110611f7157611f71613f81565b906000526020600020019080519060200190611268929190613501565b8160188481548110611f7157611f71613f81565b611fac3383612892565b611fc85760405162461bcd60e51b81526004016104be90613d01565b61126884848484612fd4565b601a818154811061119b57600080fd5b60188181548110611ff457600080fd5b9060005260206000200160009150905080546112fd90613ef9565b6060600060076040516020016120259190613c54565b60408051601f1981840301815291815260008581526010602052205490915060ff16156123bc5760008311801561205e5750600d548311155b1561238c57600c54610100900460ff1661209a57806040516020016120839190613b92565b604051602081830303815290604052915050919050565b604080516000808252602080830180855283519020878352600f9091529083902090926120c79201613bca565b6040516020818303038152906040528051906020012014612181576000838152600f6020526040902080546120fb90613ef9565b80601f016020809104026020016040519081016040528092919081815260200182805461212790613ef9565b80156121745780601f1061214957610100808354040283529160200191612174565b820191906000526020600020905b81548152906001019060200180831161215757829003601f168201915b5050505050915050919050565b60005b6016548110156123025780612198576122f2565b601681815481106121ab576121ab613f81565b906000526020600020015484116122f2576040805160008152602081019182905251902060178054839081106121e3576121e3613f81565b906000526020600020016040516020016121fd9190613bca565b6040516020818303038152906040528051906020012014612257576017818154811061222b5761222b613f81565b906000526020600020016040516020016122459190613c54565b60405160208183030381529060405291505b60408051600081526020810191829052519020601880548390811061227e5761227e613f81565b906000526020600020016040516020016122989190613bca565b60405160208183030381529060405280519060200120146122f257601881815481106122c6576122c6613f81565b906000526020600020016040516020016122e09190613bd6565b60405160208183030381529060405291505b6122fb81613f2e565b9050612184565b5060408051600080825260208083018085528351902087835260129091529083902090926123309201613bca565b6040516020818303038152906040528051906020012014156123675780612356846125fe565b604051602001612083929190613b1e565b8060126000858152602001908152602001600020604051602001612083929190613b5d565b505060408051808201909152601281527115549248111bd95cc8139bdd08115e1a5cdd60721b6020820152919050565b5050604080518082019091526014815273151bdad95b88111bd95cc8139bdd08115e1a5cdd60621b6020820152919050565b50919050565b6123fc612782565b80600860008282546112dc9190613e7f565b60178181548110611ff457600080fd5b6060612428613007565b905090565b60005b8151811015611ca45761245b82828151811061244e5761244e613f81565b6020026020010151612dad565b61246481613f2e565b9050612430565b6006546001600160a01b031633148061248e57506022546001600160a01b031633145b6124aa5760405162461bcd60e51b81526004016104be90613de5565b600091825260146020526040909120805460ff1916911515919091179055565b60006124de6006546001600160a01b031690565b6001600160a01b0316336001600160a01b0316148061250757506022546001600160a01b031633145b156125125750600190565b602354156125725760005b602354811015612570576023818154811061253a5761253a613f81565b6000918252602090912001546001600160a01b031633141561255e57600191505090565b8061256881613f2e565b91505061251d565b505b50600090565b612580612a80565b6001600160a01b0381166125e55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104be565b6115e181612eb3565b60208181548110611b0557600080fd5b6060600061260b8361269b565b600101905060008167ffffffffffffffff81111561262b5761262b613f97565b6040519080825280601f01601f191660200182016040528015612655576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461268e57612693565b61265f565b509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106126da5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612706576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061272457662386f26fc10000830492506010015b6305f5e100831061273c576305f5e100830492506008015b612710831061275057612710830492506004015b60648310612762576064830492506002015b600a8310610f4f5760010192915050565b6001600160a01b03163b151590565b61278a6124ca565b6116315760405162461bcd60e51b815260206004820152600c60248201526b2737ba1030b71030b236b4b760a11b60448201526064016104be565b6000818152600260205260409020546001600160a01b03166115e15760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016104be565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061285982611b68565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061289e83611b68565b9050806001600160a01b0316846001600160a01b031614806128e557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806129095750836001600160a01b03166128fe84611002565b6001600160a01b0316145b949350505050565b826001600160a01b031661292482611b68565b6001600160a01b03161461294a5760405162461bcd60e51b81526004016104be90613da0565b6001600160a01b0382166129ac5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016104be565b6129b7838383613074565b826001600160a01b03166129ca82611b68565b6001600160a01b0316146129f05760405162461bcd60e51b81526004016104be90613da0565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6006546001600160a01b031633146116315760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104be565b6006546001600160a01b0316331480612afd57506022546001600160a01b031633145b15612b055750565b60195460ff1615612c9c57612b193361148f565b612b575760405162461bcd60e51b815260206004820152600f60248201526e139bdd0815da1a5d195b1a5cdd1959608a1b60448201526064016104be565b336000818152601b60209081526040808320601c548452825280832054938352601e82529091205481548110612b8f57612b8f613f81565b90600052602060002001548282612ba69190613e7f565b1115612be55760405162461bcd60e51b815260206004820152600e60248201526d115e18d95959195908131a5b5a5d60921b60448201526064016104be565b336000908152601e6020526040902054601f80549091908110612c0a57612c0a613f81565b906000526020600020015482612c209190613e97565b341015612c645760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742046756e647360701b60448201526064016104be565b336000908152601b60209081526040808320601c54845290915281208054849290612c90908490613e7f565b90915550612ced915050565b600954612ca99082613e97565b341015612ced5760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742046756e647360701b60448201526064016104be565b600034118015612d01575060255460245411155b156115e15734602460008282546112dc9190613e7f565b60008181526010602052604090205460ff16612d5d576000818152601060209081526040808320805460ff199081166001179091556014909252909120805490911690555b60115460ff16156115e157612d70613007565b60008281526012602090815260409091208251611ca49391929190910190613501565b611ca482826040518060200160405280600081525061316e565b6000612db882611b68565b9050612dc681600084613074565b612dcf82611b68565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0381166000908152601e6020526040812054612e73575050601d5490565b6001600160a01b0382166000908152601e6020526040902054601f80549091908110612ea157612ea1613f81565b90600052602060002001549050919050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612f675760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016104be565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612fdf848484612911565b612feb848484846131a1565b6112685760405162461bcd60e51b81526004016104be90613d4e565b601354600e54600081815260126020908152604080832090516060959394613036934293449333939201613c70565b6040516020818303038152906040528051906020012060001c6130599190613f49565b905061306e613069826001613e7f565b6125fe565b91505090565b6001600160a01b03831660009081526015602052604090205460ff161580156130b657506001600160a01b03821660009081526015602052604090205460ff16155b6131165760405162461bcd60e51b815260206004820152602b60248201527f4f70657261746f722c2046726f6d2c206f7220546f204164647265737320697360448201526a08149154d5149250d5115160aa1b60648201526084016104be565b60008181526014602052604090205460ff161561113a5760405162461bcd60e51b815260206004820152601660248201527511931051d1d151081513d2d153881111551150d5115160521b60448201526064016104be565b61317883836132ae565b61318560008484846131a1565b61113a5760405162461bcd60e51b81526004016104be90613d4e565b60006001600160a01b0384163b156132a357604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906131e5903390899088908890600401613cb1565b602060405180830381600087803b1580156131ff57600080fd5b505af192505050801561322f575060408051601f3d908101601f1916820190925261322c91810190613973565b60015b613289573d80801561325d576040519150601f19603f3d011682016040523d82523d6000602084013e613262565b606091505b5080516132815760405162461bcd60e51b81526004016104be90613d4e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612909565b506001949350505050565b6001600160a01b0382166133045760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016104be565b6000818152600260205260409020546001600160a01b0316156133695760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016104be565b61337560008383613074565b6000818152600260205260409020546001600160a01b0316156133da5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016104be565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b50805460008255906000526020600020908101906115e19190613574565b82805482825590600052602060002090810192821561349e579160200282015b8281111561349e578251825591602001919060010190613483565b506134aa929150613574565b5090565b82805482825590600052602060002090810192821561349e579160200282015b8281111561349e5781546001600160a01b0319166001600160a01b038435161782556020909201916001909101906134ce565b82805461350d90613ef9565b90600052602060002090601f01602090048101928261352f576000855561349e565b82601f1061354857805160ff191683800117855561349e565b8280016001018555821561349e579182018281111561349e578251825591602001919060010190613483565b5b808211156134aa5760008155600101613575565b600067ffffffffffffffff8311156135a3576135a3613f97565b6135b6601f8401601f1916602001613e4e565b90508281528383830111156135ca57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114611b4857600080fd5b60008083601f84011261360a57600080fd5b50813567ffffffffffffffff81111561362257600080fd5b6020830191508360208260051b850101111561363d57600080fd5b9250929050565b600082601f83011261365557600080fd5b8135602067ffffffffffffffff82111561367157613671613f97565b8160051b613680828201613e4e565b83815282810190868401838801850189101561369b57600080fd5b600093505b858410156136be5780358352600193909301929184019184016136a0565b50979650505050505050565b80358015158114611b4857600080fd5b600082601f8301126136eb57600080fd5b6136fa83833560208501613589565b9392505050565b60006020828403121561371357600080fd5b6136fa826135e1565b6000806040838503121561372f57600080fd5b613738836135e1565b9150613746602084016135e1565b90509250929050565b60008060006060848603121561376457600080fd5b61376d846135e1565b925061377b602085016135e1565b9150604084013590509250925092565b600080600080608085870312156137a157600080fd5b6137aa856135e1565b93506137b8602086016135e1565b925060408501359150606085013567ffffffffffffffff8111156137db57600080fd5b8501601f810187136137ec57600080fd5b6137fb87823560208401613589565b91505092959194509250565b6000806040838503121561381a57600080fd5b613823836135e1565b9150613746602084016136ca565b6000806040838503121561384457600080fd5b61384d836135e1565b946020939093013593505050565b6000806020838503121561386e57600080fd5b823567ffffffffffffffff81111561388557600080fd5b613891858286016135f8565b90969095509350505050565b6000806000604084860312156138b257600080fd5b833567ffffffffffffffff808211156138ca57600080fd5b6138d6878388016135f8565b909550935060208601359150808211156138ef57600080fd5b506138fc86828701613644565b9150509250925092565b60006020828403121561391857600080fd5b813567ffffffffffffffff81111561392f57600080fd5b61290984828501613644565b60006020828403121561394d57600080fd5b6136fa826136ca565b60006020828403121561396857600080fd5b81356136fa81613fad565b60006020828403121561398557600080fd5b81516136fa81613fad565b6000602082840312156139a257600080fd5b813567ffffffffffffffff8111156139b957600080fd5b612909848285016136da565b6000602082840312156139d757600080fd5b5035919050565b600080604083850312156139f157600080fd5b82359150613746602084016136ca565b600080600060608486031215613a1657600080fd5b83359250602084013567ffffffffffffffff811115613a3457600080fd5b613a40868287016136da565b925050613a4f604085016136ca565b90509250925092565b60008151808452613a70816020860160208601613ecd565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680613a9e57607f831692505b6020808410821415613ac057634e487b7160e01b600052602260045260246000fd5b818015613ad45760018114613ae557613b12565b60ff19861689528489019650613b12565b60008881526020902060005b86811015613b0a5781548b820152908501908301613af1565b505084890196505b50505050505092915050565b60008351613b30818460208801613ecd565b835190830190613b44818360208801613ecd565b64173539b7b760d91b9101908152600501949350505050565b60008351613b6f818460208801613ecd565b613b7b81840185613a84565b64173539b7b760d91b815260050195945050505050565b60008251613ba4818460208701613ecd565b653434b23232b760d11b92019182525064173539b7b760d91b6006820152600b01919050565b60006136fa8284613a84565b6000613be28284613a84565b602f60f81b81526001019392505050565b66697066733a2f2f60c81b815260008351613c15816007850160208801613ecd565b602f60f81b6007918401918201528351613c36816008840160208801613ecd565b64173539b7b760d91b60089290910191820152600d01949350505050565b66697066733a2f2f60c81b81526000613be26007830184613a84565b8581528460208201526bffffffffffffffffffffffff198460601b1660408201528260548201526000613ca66074830184613a84565b979650505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613ce490830184613a58565b9695505050505050565b6020815260006136fa6020830184613a58565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526043908201527f4f776e6572206f722050726f6a656374204c6561646572204f6e6c793a20636160408201527f6c6c6572206973206e6f74204f776e6572206f722050726f6a656374204c65616060820152623232b960e91b608082015260a00190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613e7757613e77613f97565b604052919050565b60008219821115613e9257613e92613f6b565b500190565b6000816000190483118215151615613eb157613eb1613f6b565b500290565b600082821015613ec857613ec8613f6b565b500390565b60005b83811015613ee8578181015183820152602001613ed0565b838111156112685750506000910152565b600181811c90821680613f0d57607f821691505b602082108114156123ee57634e487b7160e01b600052602260045260246000fd5b6000600019821415613f4257613f42613f6b565b5060010190565b600082613f6657634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146115e157600080fdfea2646970667358221220f9ab7ab84732953574476f2067af53d4ec9742561dce20eb3a2496eaf42c5d9664736f6c634300080700334552433732313a207472616e7366657220746f206e6f6e204552433732315265516d576a64736166705867626954623457393669557152353672776556754751536a31586572485670776a35577a
Deployed Bytecode
0x60806040526004361061046c5760003560e01c80635c975abb1161024a578063b5b13abc11610139578063d85ed0f4116100b6578063ea7aef5c1161007a578063ea7aef5c14610e60578063ed00e65314610e76578063f2fde38b14610e8b578063f8f3a1ca14610eab578063fa0fda3514610ecb57600080fd5b8063d85ed0f414610d92578063d8d9d6bc14610da7578063e4623c1b14610dd7578063e5211d8b14610df7578063e985e9c514610e1757600080fd5b8063ba4e5c49116100fd578063ba4e5c4914610cf2578063bff67e9b14610d12578063c87b56dd14610d32578063d261b6e414610d52578063d6199f8d14610d7257600080fd5b8063b5b13abc14610c5c578063b5e0e87b14610c7c578063b6906eca14610c9c578063b82741a014610cb2578063b88d4fde14610cd257600080fd5b80639c70b512116101c7578063a5492f441161018b578063a5492f4414610bc6578063a684c47114610be6578063a6d23e1014610c06578063ab80573e14610c26578063accc1d5e14610c3c57600080fd5b80639c70b51214610b1c578063a1fc693714610b36578063a22cb46514610b56578063a370c66814610b76578063a4c2f65114610ba657600080fd5b80637f00c7a61161020e5780637f00c7a614610a8f57806384c6ef2f14610aaf5780638da5cb5b14610ac9578063943431bf14610ae757806395d89b4114610b0757600080fd5b80635c975abb146109da5780636352211e146109f457806370a0823114610a14578063715018a614610a345780637724bad814610a4957600080fd5b8063359cf6871161036657806344a0d68a116102e357806351830227116102a7578063518302271461093b57806351ede7911461095a57806352addee51461097a578063533c7cfa1461099a5780635c78222f146109ba57600080fd5b806344a0d68a146108955780634bef82be146108b55780634c261247146108d55780634cafdb6d146108f55780634f558e791461090b57600080fd5b80634271c5fd1161032a5780634271c5fd146107ff57806342842e0e1461081557806342966c68146108355780634378dfa514610855578063441664171461087557600080fd5b8063359cf6871461078e5780633af32abf146107a45780633c952764146107c45780633ccfd60b146107e457806340c10f19146107ec57600080fd5b80631973ea06116103f4578063239c70ae116103b8578063239c70ae146106f857806323b872dd1461070e578063293d8bb51461072e5780632a9abcb91461074e57806333ea51a81461076e57600080fd5b80631973ea06146106555780631b100450146106755780631c60094b146106955780631ee33ca9146106c257806321d0a2a0146106d857600080fd5b8063095ea7b31161043b578063095ea7b3146105bb5780630ec7359f146105db57806313faede6146105fb57806314bfd6d01461061f57806318160ddd1461063f57600080fd5b806301ffc9a71461050a57806302329a291461053f57806306fdde0314610561578063081812fc1461058357600080fd5b36610505576021546001600160a01b03166104c75760405162461bcd60e51b815260206004820152601660248201527514185e5bdd5d081059191c995cdcc8139bdd0814d95d60521b60448201526064015b60405180910390fd5b60215460405134916001600160a01b03169082156108fc029083906000818181858888f19350505050158015610501573d6000803e3d6000fd5b5050005b600080fd5b34801561051657600080fd5b5061052a610525366004613956565b610f03565b60405190151581526020015b60405180910390f35b34801561054b57600080fd5b5061055f61055a36600461393b565b610f55565b005b34801561056d57600080fd5b50610576610f70565b6040516105369190613cee565b34801561058f57600080fd5b506105a361059e3660046139c5565b611002565b6040516001600160a01b039091168152602001610536565b3480156105c757600080fd5b5061055f6105d6366004613831565b611029565b3480156105e757600080fd5b5061055f6105f6366004613906565b61113f565b34801561060757600080fd5b5061061160095481565b604051908152602001610536565b34801561062b57600080fd5b506105a361063a3660046139c5565b61118b565b34801561064b57600080fd5b50610611600e5481565b34801561066157600080fd5b5061055f61067036600461389d565b6111b5565b34801561068157600080fd5b5061055f6106903660046139c5565b611279565b3480156106a157600080fd5b506106116106b0366004613701565b601e6020526000908152604090205481565b3480156106ce57600080fd5b50610611601d5481565b3480156106e457600080fd5b506105766106f33660046139c5565b6112e4565b34801561070457600080fd5b50610611600a5481565b34801561071a57600080fd5b5061055f61072936600461374f565b61137e565b34801561073a57600080fd5b5061055f6107493660046139c5565b6113af565b34801561075a57600080fd5b5061055f610769366004613a01565b6113e2565b34801561077a57600080fd5b5061055f610789366004613701565b611465565b34801561079a57600080fd5b50610611600d5481565b3480156107b057600080fd5b5061052a6107bf366004613701565b61148f565b3480156107d057600080fd5b5061055f6107df36600461393b565b6114f9565b61055f611514565b61055f6107fa366004613831565b611633565b34801561080b57600080fd5b5061061160245481565b34801561082157600080fd5b5061055f61083036600461374f565b61178c565b34801561084157600080fd5b5061055f6108503660046139c5565b6117a7565b34801561086157600080fd5b5061055f610870366004613906565b6117b0565b34801561088157600080fd5b5061055f610890366004613a01565b6117fb565b3480156108a157600080fd5b5061055f6108b03660046139c5565b611a22565b3480156108c157600080fd5b5061055f6108d03660046139c5565b611a2f565b3480156108e157600080fd5b5061055f6108f0366004613990565b611a3c565b34801561090157600080fd5b5061061160085481565b34801561091757600080fd5b5061052a6109263660046139c5565b60009081526010602052604090205460ff1690565b34801561094757600080fd5b50600c5461052a90610100900460ff1681565b34801561096657600080fd5b5061055f6109753660046139c5565b611ae8565b34801561098657600080fd5b506106116109953660046139c5565b611af5565b3480156109a657600080fd5b506106116109b5366004613701565b611b16565b3480156109c657600080fd5b5061055f6109d536600461393b565b611b4d565b3480156109e657600080fd5b50600c5461052a9060ff1681565b348015610a0057600080fd5b506105a3610a0f3660046139c5565b611b68565b348015610a2057600080fd5b50610611610a2f366004613701565b611bc8565b348015610a4057600080fd5b5061055f611c4e565b348015610a5557600080fd5b5060408051808201909152601b81527ff09f90b82048616c66537570657253686f702e636f6d20f09f90b800000000006020820152610576565b348015610a9b57600080fd5b5061055f610aaa3660046139c5565b611c60565b348015610abb57600080fd5b5060115461052a9060ff1681565b348015610ad557600080fd5b506006546001600160a01b03166105a3565b348015610af357600080fd5b5061055f610b023660046139c5565b611c6d565b348015610b1357600080fd5b50610576611c7a565b348015610b2857600080fd5b5060195461052a9060ff1681565b348015610b4257600080fd5b50610611610b513660046139c5565b611c89565b348015610b6257600080fd5b5061055f610b71366004613807565b611c99565b348015610b8257600080fd5b5061052a610b913660046139c5565b60146020526000908152604090205460ff1681565b348015610bb257600080fd5b5061055f610bc1366004613701565b611ca8565b348015610bd257600080fd5b5061055f610be1366004613807565b611d39565b348015610bf257600080fd5b506022546105a3906001600160a01b031681565b348015610c1257600080fd5b506021546105a3906001600160a01b031681565b348015610c3257600080fd5b5061061160135481565b348015610c4857600080fd5b5061055f610c5736600461385b565b611da3565b348015610c6857600080fd5b5061055f610c773660046139c5565b611e32565b348015610c8857600080fd5b5061055f610c9736600461389d565b611e88565b348015610ca857600080fd5b50610611601c5481565b348015610cbe57600080fd5b5061055f610ccd366004613a01565b611f4f565b348015610cde57600080fd5b5061055f610ced36600461378b565b611fa2565b348015610cfe57600080fd5b506105a3610d0d3660046139c5565b611fd4565b348015610d1e57600080fd5b50610576610d2d3660046139c5565b611fe4565b348015610d3e57600080fd5b50610576610d4d3660046139c5565b61200f565b348015610d5e57600080fd5b5061055f610d6d3660046139c5565b6123f4565b348015610d7e57600080fd5b50610576610d8d3660046139c5565b61240e565b348015610d9e57600080fd5b5061057661241e565b348015610db357600080fd5b5061052a610dc2366004613701565b60156020526000908152604090205460ff1681565b348015610de357600080fd5b5061055f610df2366004613906565b61242d565b348015610e0357600080fd5b5061055f610e123660046139de565b61246b565b348015610e2357600080fd5b5061052a610e3236600461371c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610e6c57600080fd5b50610611600b5481565b348015610e8257600080fd5b5061052a6124ca565b348015610e9757600080fd5b5061055f610ea6366004613701565b612578565b348015610eb757600080fd5b50610611610ec63660046139c5565b6125ee565b348015610ed757600080fd5b50610611610ee6366004613831565b601b60209081526000928352604080842090915290825290205481565b60006001600160e01b031982166380ac58cd60e01b1480610f3457506001600160e01b03198216635b5e139f60e01b145b80610f4f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b610f5d612782565b600c805460ff1916911515919091179055565b606060008054610f7f90613ef9565b80601f0160208091040260200160405190810160405280929190818152602001828054610fab90613ef9565b8015610ff85780601f10610fcd57610100808354040283529160200191610ff8565b820191906000526020600020905b815481529060010190602001808311610fdb57829003601f168201915b5050505050905090565b600061100d826127c5565b506000908152600460205260409020546001600160a01b031690565b600061103482611b68565b9050806001600160a01b0316836001600160a01b031614156110a25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016104be565b336001600160a01b03821614806110be57506110be8133610e32565b6111305760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016104be565b61113a8383612824565b505050565b611147612782565b611153601f6000613445565b805161116690601f906020840190613463565b508060008151811061117a5761117a613f81565b6020026020010151601d8190555050565b6023818154811061119b57600080fd5b6000918252602090912001546001600160a01b0316905081565b6111bd612782565b6111c9601a6000613445565b6111d5601a84846134ae565b5080516111e157505050565b80516001141561126e5760005b82811015611268578160008151811061120957611209613f81565b6020026020010151601e600086868581811061122757611227613f81565b905060200201602081019061123c9190613701565b6001600160a01b031681526020810191909152604001600020558061126081613f2e565b9150506111ee565b50505050565b61113a838383611e88565b731ba3fe6311131a67d97f20162522490c3648f6e233146112ca5760405162461bcd60e51b815260206004820152600b60248201526a2737ba103a3432903232bb60a91b60448201526064016104be565b80602460008282546112dc9190613e7f565b909155505050565b601260205260009081526040902080546112fd90613ef9565b80601f016020809104026020016040519081016040528092919081815260200182805461132990613ef9565b80156113765780601f1061134b57610100808354040283529160200191611376565b820191906000526020600020905b81548152906001019060200180831161135957829003601f168201915b505050505081565b6113883382612892565b6113a45760405162461bcd60e51b81526004016104be90613d01565b61113a838383612911565b6113b7612782565b80601d8190555080601f6000815481106113d3576113d3613f81565b60009182526020909120015550565b6113ea612782565b8015611446576000826113fc856125fe565b60405160200161140d929190613bf3565b60408051601f198184030181529181526000868152600f6020908152919020825192935061143f929091840190613501565b5050505050565b6000838152600f60209081526040909120835161126892850190613501565b61146d612a80565b602180546001600160a01b0319166001600160a01b0392909216919091179055565b6000805b601a548110156114f057826001600160a01b0316601a82815481106114ba576114ba613f81565b6000918252602090912001546001600160a01b031614156114de5750600192915050565b806114e881613f2e565b915050611493565b50600092915050565b611501612782565b6019805460ff1916911515919091179055565b61151c612782565b6021546001600160a01b031661156d5760405162461bcd60e51b815260206004820152601660248201527514185e5bdd5d081059191c995cdcc8139bdd0814d95d60521b60448201526064016104be565b602554602454116115e457604051600090731ba3fe6311131a67d97f20162522490c3648f6e29047908381818185875af1925050503d80600081146115ce576040519150601f19603f3d011682016040523d82523d6000602084013e6115d3565b606091505b50509050806115e157600080fd5b50565b6021546040516000916001600160a01b03169047908381818185875af1925050503d80600081146115ce576040519150601f19603f3d011682016040523d82523d6000602084013e6115d3565b565b600c5460ff161561166f5760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b60448201526064016104be565b600081116116af5760405162461bcd60e51b815260206004820152600d60248201526c043414e4e4f54204d494e54203609c1b60448201526064016104be565b600a548111156116f05760405162461bcd60e51b815260206004820152600c60248201526b1313d5d15488105353d5539560a21b60448201526064016104be565b60085481600e546117019190613e7f565b111561173a5760405162461bcd60e51b815260206004820152600860248201526714d3d3110813d55560c21b60448201526064016104be565b61174381612ada565b60005b8181101561113a57600e805490600061175e83613f2e565b919050555061176e600e54612d18565b61177a83600e54612d93565b8061178481613f2e565b915050611746565b61113a83838360405180602001604052806000815250611fa2565b6115e181612dad565b6117b8612782565b6117c460206000613445565b80516117d69060209081840190613463565b50806000815181106117ea576117ea613f81565b6020026020010151600b8190555050565b611803612782565b6016805461181390600190613eb6565b8154811061182357611823613f81565b906000526020600020015483116118a25760405162461bcd60e51b815260206004820152603760248201527f4c617374204261746368204944206d757374206265206772656174657220746860448201527f616e2070726576696f757320626174636820746f74616c00000000000000000060648201526084016104be565b8015611965576016805460018181019092557fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b5124289018490556017805491820181556000528251611918917fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1501906020850190613501565b50601880546001810182556000918252604080516020810191829052839052611268927fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e90920191613501565b6016805460018181019092557fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b51242890184905560188054918201815560005282516119d5917fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e01906020850190613501565b50601780546001810182556000918252604080516020810191829052839052611268927fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1590920191613501565b611a2a612782565b600955565b611a37612782565b601355565b611a44612782565b600c54610100900460ff1615611a8f5760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e4814995d99585b195960821b60448201526064016104be565b8051611aa2906007906020840190613501565b50806017600081548110611ab857611ab8613f81565b906000526020600020019080519060200190611ad5929190613501565b5050600c805461ff001916610100179055565b611af0612782565b600b55565b60168181548110611b0557600080fd5b600091825260209091200154905081565b6000611b206124ca565b611b405760195460ff1615611b3857610f4f82612e4e565b505060095490565b506000919050565b919050565b611b55612782565b6011805460ff1916911515919091179055565b6000818152600260205260408120546001600160a01b031680610f4f5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016104be565b60006001600160a01b038216611c325760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016104be565b506001600160a01b031660009081526003602052604090205490565b611c56612a80565b6116316000612eb3565b611c68612782565b600a55565b611c75612782565b601c55565b606060018054610f7f90613ef9565b601f8181548110611b0557600080fd5b611ca4338383612f05565b5050565b6006546001600160a01b0316331480611ccb57506022546001600160a01b031633145b611d175760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204f776e6572206f722050726f6a656374204c6561646572000000000060448201526064016104be565b602280546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b0316331480611d5c57506022546001600160a01b031633145b611d785760405162461bcd60e51b81526004016104be90613de5565b6001600160a01b03919091166000908152601560205260409020805460ff1916911515919091179055565b611dab612782565b6006546001600160a01b0316331480611dce57506022546001600160a01b031633145b611e1a5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204f776e6572206f722050726f6a656374204c6561646572000000000060448201526064016104be565b611e2660236000613445565b61113a602383836134ae565b731ba3fe6311131a67d97f20162522490c3648f6e23314611e835760405162461bcd60e51b815260206004820152600b60248201526a2737ba103a3432903232bb60a91b60448201526064016104be565b602555565b611e90612782565b80518214611ed35760405162461bcd60e51b815260206004820152601060248201526f105c9c985e5cc8139bdd08115c5d585b60821b60448201526064016104be565b60005b8281101561126857818181518110611ef057611ef0613f81565b6020026020010151601e6000868685818110611f0e57611f0e613f81565b9050602002016020810190611f239190613701565b6001600160a01b0316815260208101919091526040016000205580611f4781613f2e565b915050611ed6565b611f57612782565b8015611f8e578160178481548110611f7157611f71613f81565b906000526020600020019080519060200190611268929190613501565b8160188481548110611f7157611f71613f81565b611fac3383612892565b611fc85760405162461bcd60e51b81526004016104be90613d01565b61126884848484612fd4565b601a818154811061119b57600080fd5b60188181548110611ff457600080fd5b9060005260206000200160009150905080546112fd90613ef9565b6060600060076040516020016120259190613c54565b60408051601f1981840301815291815260008581526010602052205490915060ff16156123bc5760008311801561205e5750600d548311155b1561238c57600c54610100900460ff1661209a57806040516020016120839190613b92565b604051602081830303815290604052915050919050565b604080516000808252602080830180855283519020878352600f9091529083902090926120c79201613bca565b6040516020818303038152906040528051906020012014612181576000838152600f6020526040902080546120fb90613ef9565b80601f016020809104026020016040519081016040528092919081815260200182805461212790613ef9565b80156121745780601f1061214957610100808354040283529160200191612174565b820191906000526020600020905b81548152906001019060200180831161215757829003601f168201915b5050505050915050919050565b60005b6016548110156123025780612198576122f2565b601681815481106121ab576121ab613f81565b906000526020600020015484116122f2576040805160008152602081019182905251902060178054839081106121e3576121e3613f81565b906000526020600020016040516020016121fd9190613bca565b6040516020818303038152906040528051906020012014612257576017818154811061222b5761222b613f81565b906000526020600020016040516020016122459190613c54565b60405160208183030381529060405291505b60408051600081526020810191829052519020601880548390811061227e5761227e613f81565b906000526020600020016040516020016122989190613bca565b60405160208183030381529060405280519060200120146122f257601881815481106122c6576122c6613f81565b906000526020600020016040516020016122e09190613bd6565b60405160208183030381529060405291505b6122fb81613f2e565b9050612184565b5060408051600080825260208083018085528351902087835260129091529083902090926123309201613bca565b6040516020818303038152906040528051906020012014156123675780612356846125fe565b604051602001612083929190613b1e565b8060126000858152602001908152602001600020604051602001612083929190613b5d565b505060408051808201909152601281527115549248111bd95cc8139bdd08115e1a5cdd60721b6020820152919050565b5050604080518082019091526014815273151bdad95b88111bd95cc8139bdd08115e1a5cdd60621b6020820152919050565b50919050565b6123fc612782565b80600860008282546112dc9190613e7f565b60178181548110611ff457600080fd5b6060612428613007565b905090565b60005b8151811015611ca45761245b82828151811061244e5761244e613f81565b6020026020010151612dad565b61246481613f2e565b9050612430565b6006546001600160a01b031633148061248e57506022546001600160a01b031633145b6124aa5760405162461bcd60e51b81526004016104be90613de5565b600091825260146020526040909120805460ff1916911515919091179055565b60006124de6006546001600160a01b031690565b6001600160a01b0316336001600160a01b0316148061250757506022546001600160a01b031633145b156125125750600190565b602354156125725760005b602354811015612570576023818154811061253a5761253a613f81565b6000918252602090912001546001600160a01b031633141561255e57600191505090565b8061256881613f2e565b91505061251d565b505b50600090565b612580612a80565b6001600160a01b0381166125e55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104be565b6115e181612eb3565b60208181548110611b0557600080fd5b6060600061260b8361269b565b600101905060008167ffffffffffffffff81111561262b5761262b613f97565b6040519080825280601f01601f191660200182016040528015612655576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461268e57612693565b61265f565b509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106126da5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612706576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061272457662386f26fc10000830492506010015b6305f5e100831061273c576305f5e100830492506008015b612710831061275057612710830492506004015b60648310612762576064830492506002015b600a8310610f4f5760010192915050565b6001600160a01b03163b151590565b61278a6124ca565b6116315760405162461bcd60e51b815260206004820152600c60248201526b2737ba1030b71030b236b4b760a11b60448201526064016104be565b6000818152600260205260409020546001600160a01b03166115e15760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016104be565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061285982611b68565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061289e83611b68565b9050806001600160a01b0316846001600160a01b031614806128e557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806129095750836001600160a01b03166128fe84611002565b6001600160a01b0316145b949350505050565b826001600160a01b031661292482611b68565b6001600160a01b03161461294a5760405162461bcd60e51b81526004016104be90613da0565b6001600160a01b0382166129ac5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016104be565b6129b7838383613074565b826001600160a01b03166129ca82611b68565b6001600160a01b0316146129f05760405162461bcd60e51b81526004016104be90613da0565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6006546001600160a01b031633146116315760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104be565b6006546001600160a01b0316331480612afd57506022546001600160a01b031633145b15612b055750565b60195460ff1615612c9c57612b193361148f565b612b575760405162461bcd60e51b815260206004820152600f60248201526e139bdd0815da1a5d195b1a5cdd1959608a1b60448201526064016104be565b336000818152601b60209081526040808320601c548452825280832054938352601e82529091205481548110612b8f57612b8f613f81565b90600052602060002001548282612ba69190613e7f565b1115612be55760405162461bcd60e51b815260206004820152600e60248201526d115e18d95959195908131a5b5a5d60921b60448201526064016104be565b336000908152601e6020526040902054601f80549091908110612c0a57612c0a613f81565b906000526020600020015482612c209190613e97565b341015612c645760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742046756e647360701b60448201526064016104be565b336000908152601b60209081526040808320601c54845290915281208054849290612c90908490613e7f565b90915550612ced915050565b600954612ca99082613e97565b341015612ced5760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742046756e647360701b60448201526064016104be565b600034118015612d01575060255460245411155b156115e15734602460008282546112dc9190613e7f565b60008181526010602052604090205460ff16612d5d576000818152601060209081526040808320805460ff199081166001179091556014909252909120805490911690555b60115460ff16156115e157612d70613007565b60008281526012602090815260409091208251611ca49391929190910190613501565b611ca482826040518060200160405280600081525061316e565b6000612db882611b68565b9050612dc681600084613074565b612dcf82611b68565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0381166000908152601e6020526040812054612e73575050601d5490565b6001600160a01b0382166000908152601e6020526040902054601f80549091908110612ea157612ea1613f81565b90600052602060002001549050919050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612f675760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016104be565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612fdf848484612911565b612feb848484846131a1565b6112685760405162461bcd60e51b81526004016104be90613d4e565b601354600e54600081815260126020908152604080832090516060959394613036934293449333939201613c70565b6040516020818303038152906040528051906020012060001c6130599190613f49565b905061306e613069826001613e7f565b6125fe565b91505090565b6001600160a01b03831660009081526015602052604090205460ff161580156130b657506001600160a01b03821660009081526015602052604090205460ff16155b6131165760405162461bcd60e51b815260206004820152602b60248201527f4f70657261746f722c2046726f6d2c206f7220546f204164647265737320697360448201526a08149154d5149250d5115160aa1b60648201526084016104be565b60008181526014602052604090205460ff161561113a5760405162461bcd60e51b815260206004820152601660248201527511931051d1d151081513d2d153881111551150d5115160521b60448201526064016104be565b61317883836132ae565b61318560008484846131a1565b61113a5760405162461bcd60e51b81526004016104be90613d4e565b60006001600160a01b0384163b156132a357604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906131e5903390899088908890600401613cb1565b602060405180830381600087803b1580156131ff57600080fd5b505af192505050801561322f575060408051601f3d908101601f1916820190925261322c91810190613973565b60015b613289573d80801561325d576040519150601f19603f3d011682016040523d82523d6000602084013e613262565b606091505b5080516132815760405162461bcd60e51b81526004016104be90613d4e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612909565b506001949350505050565b6001600160a01b0382166133045760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016104be565b6000818152600260205260409020546001600160a01b0316156133695760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016104be565b61337560008383613074565b6000818152600260205260409020546001600160a01b0316156133da5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016104be565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b50805460008255906000526020600020908101906115e19190613574565b82805482825590600052602060002090810192821561349e579160200282015b8281111561349e578251825591602001919060010190613483565b506134aa929150613574565b5090565b82805482825590600052602060002090810192821561349e579160200282015b8281111561349e5781546001600160a01b0319166001600160a01b038435161782556020909201916001909101906134ce565b82805461350d90613ef9565b90600052602060002090601f01602090048101928261352f576000855561349e565b82601f1061354857805160ff191683800117855561349e565b8280016001018555821561349e579182018281111561349e578251825591602001919060010190613483565b5b808211156134aa5760008155600101613575565b600067ffffffffffffffff8311156135a3576135a3613f97565b6135b6601f8401601f1916602001613e4e565b90508281528383830111156135ca57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114611b4857600080fd5b60008083601f84011261360a57600080fd5b50813567ffffffffffffffff81111561362257600080fd5b6020830191508360208260051b850101111561363d57600080fd5b9250929050565b600082601f83011261365557600080fd5b8135602067ffffffffffffffff82111561367157613671613f97565b8160051b613680828201613e4e565b83815282810190868401838801850189101561369b57600080fd5b600093505b858410156136be5780358352600193909301929184019184016136a0565b50979650505050505050565b80358015158114611b4857600080fd5b600082601f8301126136eb57600080fd5b6136fa83833560208501613589565b9392505050565b60006020828403121561371357600080fd5b6136fa826135e1565b6000806040838503121561372f57600080fd5b613738836135e1565b9150613746602084016135e1565b90509250929050565b60008060006060848603121561376457600080fd5b61376d846135e1565b925061377b602085016135e1565b9150604084013590509250925092565b600080600080608085870312156137a157600080fd5b6137aa856135e1565b93506137b8602086016135e1565b925060408501359150606085013567ffffffffffffffff8111156137db57600080fd5b8501601f810187136137ec57600080fd5b6137fb87823560208401613589565b91505092959194509250565b6000806040838503121561381a57600080fd5b613823836135e1565b9150613746602084016136ca565b6000806040838503121561384457600080fd5b61384d836135e1565b946020939093013593505050565b6000806020838503121561386e57600080fd5b823567ffffffffffffffff81111561388557600080fd5b613891858286016135f8565b90969095509350505050565b6000806000604084860312156138b257600080fd5b833567ffffffffffffffff808211156138ca57600080fd5b6138d6878388016135f8565b909550935060208601359150808211156138ef57600080fd5b506138fc86828701613644565b9150509250925092565b60006020828403121561391857600080fd5b813567ffffffffffffffff81111561392f57600080fd5b61290984828501613644565b60006020828403121561394d57600080fd5b6136fa826136ca565b60006020828403121561396857600080fd5b81356136fa81613fad565b60006020828403121561398557600080fd5b81516136fa81613fad565b6000602082840312156139a257600080fd5b813567ffffffffffffffff8111156139b957600080fd5b612909848285016136da565b6000602082840312156139d757600080fd5b5035919050565b600080604083850312156139f157600080fd5b82359150613746602084016136ca565b600080600060608486031215613a1657600080fd5b83359250602084013567ffffffffffffffff811115613a3457600080fd5b613a40868287016136da565b925050613a4f604085016136ca565b90509250925092565b60008151808452613a70816020860160208601613ecd565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680613a9e57607f831692505b6020808410821415613ac057634e487b7160e01b600052602260045260246000fd5b818015613ad45760018114613ae557613b12565b60ff19861689528489019650613b12565b60008881526020902060005b86811015613b0a5781548b820152908501908301613af1565b505084890196505b50505050505092915050565b60008351613b30818460208801613ecd565b835190830190613b44818360208801613ecd565b64173539b7b760d91b9101908152600501949350505050565b60008351613b6f818460208801613ecd565b613b7b81840185613a84565b64173539b7b760d91b815260050195945050505050565b60008251613ba4818460208701613ecd565b653434b23232b760d11b92019182525064173539b7b760d91b6006820152600b01919050565b60006136fa8284613a84565b6000613be28284613a84565b602f60f81b81526001019392505050565b66697066733a2f2f60c81b815260008351613c15816007850160208801613ecd565b602f60f81b6007918401918201528351613c36816008840160208801613ecd565b64173539b7b760d91b60089290910191820152600d01949350505050565b66697066733a2f2f60c81b81526000613be26007830184613a84565b8581528460208201526bffffffffffffffffffffffff198460601b1660408201528260548201526000613ca66074830184613a84565b979650505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613ce490830184613a58565b9695505050505050565b6020815260006136fa6020830184613a58565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526043908201527f4f776e6572206f722050726f6a656374204c6561646572204f6e6c793a20636160408201527f6c6c6572206973206e6f74204f776e6572206f722050726f6a656374204c65616060820152623232b960e91b608082015260a00190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613e7757613e77613f97565b604052919050565b60008219821115613e9257613e92613f6b565b500190565b6000816000190483118215151615613eb157613eb1613f6b565b500290565b600082821015613ec857613ec8613f6b565b500390565b60005b83811015613ee8578181015183820152602001613ed0565b838111156112685750506000910152565b600181811c90821680613f0d57607f821691505b602082108114156123ee57634e487b7160e01b600052602260045260246000fd5b6000600019821415613f4257613f42613f6b565b5060010190565b600082613f6657634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146115e157600080fdfea2646970667358221220f9ab7ab84732953574476f2067af53d4ec9742561dce20eb3a2496eaf42c5d9664736f6c63430008070033
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.