Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
256 GENF
Holders
161
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 GENFLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GenFrens
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./AnonymiceLibrary.sol"; import "./ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract GenFrens is ERC721A, Ownable { using AnonymiceLibrary for uint8; struct Trait { string traitName; string traitType; } //Mappings mapping(uint256 => Trait[]) public traitTypes; mapping(string => bool) hashToMinted; mapping(uint256 => string) internal tokenIdToHash; mapping(address => bool) addressMinted; //uint256s uint256 MAX_SUPPLY = 444; uint256 SEED_NONCE = 0; uint256 MINT_COST = 0.01 ether; //minting flag bool public MINTING_LIVE = false; //uint arrays uint16[][6] TIERS; //p5js url string p5jsUrl; string p5jsIntegrity; string imageUrl; string externalUrl; constructor() ERC721A("GenFrens", "GENF", 2) { //Declare all the rarity tiers //pCol TIERS[0] = [1400, 1400, 1800, 700, 700, 1800, 1100, 1100]; //sCol TIERS[1] = [1500, 1800, 900, 900, 1200, 1800, 1500, 400]; //noise Max TIERS[2] = [4000, 3000, 2000, 1000]; //eyeSize TIERS[3] = [2500, 5000, 2500]; //Thickness TIERS[4] = [6000, 2500, 1500]; //eyeLevel TIERS[5] = [6000, 4000]; } /* __ __ _ _ _ ___ _ _ | \/ (_)_ _| |_(_)_ _ __ _ | __| _ _ _ __| |_(_)___ _ _ ___ | |\/| | | ' \ _| | ' \/ _` | | _| || | ' \/ _| _| / _ \ ' \(_-< |_| |_|_|_||_\__|_|_||_\__, | |_| \_,_|_||_\__|\__|_\___/_||_/__/ |___/ */ /** * @dev Converts a digit from 0 - 10000 into its corresponding rarity based on the given rarity tier. * @param _randinput The input from 0 - 10000 to use for rarity gen. * @param _rarityTier The tier to use. */ function rarityGen(uint256 _randinput, uint8 _rarityTier) internal view returns (uint8) { uint16 currentLowerBound = 0; for (uint8 i = 0; i < TIERS[_rarityTier].length; i++) { uint16 thisPercentage = TIERS[_rarityTier][i]; if ( _randinput >= currentLowerBound && _randinput < currentLowerBound + thisPercentage ) return i; currentLowerBound = currentLowerBound + thisPercentage; } revert(); } /** * @dev Generates a 11 digit hash from a tokenId, address, and random number. * @param _t The token id to be used within the hash. * @param _a The address to be used within the hash. * @param _c The custom nonce to be used within the hash. */ function hash( uint256 _t, address _a, uint256 _c ) internal returns (string memory) { require(_c < 11); // This will generate a 11 character string. // The first 2 digits are the palette. string memory currentHash = ""; for (uint8 i = 0; i < 6; i++) { SEED_NONCE++; uint16 _randinput = uint16( uint256( keccak256( abi.encodePacked( block.timestamp, block.difficulty, _t, _a, _c, SEED_NONCE ) ) ) % 10000 ); currentHash = string( abi.encodePacked( currentHash, rarityGen(_randinput, i).toString() ) ); } if (hashToMinted[currentHash]) return hash(_t, _a, _c + 1); return currentHash; } /** * @dev Mint internal, this is to avoid code duplication. */ function mintInternal(uint8 mintAmount) internal { require( MINTING_LIVE == true || msg.sender == owner(), "Minting not live" ); uint256 _totalSupply = totalSupply(); require(_totalSupply < MAX_SUPPLY); require(!AnonymiceLibrary.isContract(msg.sender)); require(addressMinted[msg.sender] != true, "Address already minted"); require(msg.value >= MINT_COST * mintAmount, "Insufficient ETH sent"); for (uint8 i = 0; i < mintAmount; i++) { uint256 thisTokenId = _totalSupply + i; tokenIdToHash[thisTokenId] = hash(thisTokenId, msg.sender, 0); hashToMinted[tokenIdToHash[thisTokenId]] = true; } addressMinted[msg.sender] = true; _safeMint(msg.sender, mintAmount); } /** * @dev Mints new tokens. */ function mintFren(uint8 mintAmount) public payable { return mintInternal(mintAmount); } /* ____ ___ ____ ___ _____ __ __ ____ __ ______ ____ ___ ____ _____ | \ / _] / || \ | || | || \ / ] || |/ \ | \ / ___/ | D ) / [_ | o || \ | __|| | || _ | / /| | | || || _ ( \_ | / | _]| || D | | |_ | | || | |/ / |_| |_| | || O || | |\__ | | \ | [_ | _ || | | _] | : || | / \_ | | | || || | |/ \ | | . \| || | || | | | | || | \ | | | | || || | |\ | |__|\_||_____||__|__||_____| |__| \__,_||__|__|\____| |__| |____|\___/ |__|__| \___| */ /** * @dev Hash to HTML function */ function hashToHTML(string memory _hash, uint256 _tokenId) public view returns (string memory) { string memory htmlString = string( abi.encodePacked( "data:text/html,%3Chtml%3E%3Chead%3E%3Cscript%20src%3D%22", p5jsUrl, "%22%20integrity%3D%22", p5jsIntegrity, "%22%20crossorigin%3D%22anonymous%22%3E%3C%2Fscript%3E%3C%2Fhead%3E%3Cbody%3E%3Cscript%3Evar%20tokenId%3D", AnonymiceLibrary.toString(_tokenId), "%3Bvar%20hash%3D%22", _hash, "%22%3B" ) ); htmlString = string( abi.encodePacked( htmlString, "xo%3D1%2Csd%3D21%2AtokenId%2CpCs%3D%5B0%2C30%2C80%2C120%2C180%2C225%2C270%2C300%5D%2CsCs%3D%5B0%2C30%2C120%2C180%2C225%2C270%2C300%2C330%5D%2CnMV%3D%5B.5%2C1%2C2%2C3%5D%2CeSs%3D%5B.26%2C.33%2C.4%5D%2CtV%3D%5B10%2C25%2C70%5D%2CeLs%3D%5B0%2C15%5D%3Bfunction%20setup%28%29%7BcreateCanvas%28500%2C500%29%2CcolorMode%28HSB%2C360%2C100%2C100%29%2CstrokeCap%28ROUND%29%2CnoiseSeed%28sd%29%2CrandomSeed%28sd%29%2CpC%3DparseInt%28hash.substring%280%2C1%29%29%2CsC%3DparseInt%28hash.substring%281%2C2%29%29%2CnM%3DparseInt%28hash.substring%282%2C3%29%29%2CeS%3DparseInt%28hash.substring%283%2C4%29%29%2Ct%3DparseInt%28hash.substring%284%2C5%29%29%2CeL%3DparseInt%28hash.substring%285%2C6%29%29%2C330%3D%3DsCs%5BsC%5D%3Fk%3DpCs%5BpC%5D%3Ak%3DsCs%5BsC%5D%2CwP%3Drandom%285%2C10%29%2ChP%3Drandom%285%2C10%29%7Dfunction%20draw%28%29%7Bbackground%28255%29%3Bfor%28let%20s%3D25%3Bs%3C500%3Bs%2B%3D50%29for%28let%20e%3D25%3Be%3C500%3Be%2B%3D50%29noStroke%28%29%2Cf%3DsCs%5BsC%5D%2C330%3D%3Df%3FrC%3Drandom%28360%29%3ArC%3Dk%2Cfill%28rC%2Crandom%2825%29%2C100%29%2Cc%3Dnew%20C1%2Cpush%28%29%2Ctranslate%28s%2Ce%29%2Cscale%28.14%2C.14%29%2Cc.s%28%29%2Cpop%28%29%3Bc1%3Dnew%20C2%28pCs%5BpC%5D%2C40%2C100%2C0%29%2Cpush%28%29%2Ctranslate%28250%2C500%29%2Crotate%283.14%29%2Cscale%28.55%2C1.25%29%2Cc1.s%28%29%2Cpop%28%29%2Cpush%28%29%2Ctranslate%28250%2C250%29%2Cc1.s%28%29%2Cpop%28%29%2CnoStroke%28%29%2Ce1%3Dnew%20C2%280%2C0%2C100%2C1%29%2Cpush%28%29%2Ctranslate%28200%2C200%29%2Cscale%28.33%29%2Ce1.s%28%29%2Cpop%28%29%2Ce2%3Dnew%20C2%280%2C0%2C100%2C1%29%2Cpush%28%29%2Cpush%28%29%2Ctranslate%28300%2C200%29%2Cscale%28eSs%5BeS%5D%29%2Crotate%28PI%29%2Ce2.s%28%29%2Cpop%28%29%2Cp1%3Dnew%20C2%28k%2C100%2C100%2C1%29%2Cpush%28%29%2Ctranslate%28200%2C200%2BeLs%5BeL%5D%29%2Cscale%28.1%29%2Cp1.s%28%29%2Cpop%28%29%2Cp2%3Dnew%20C2%28k%2C100%2C100%2C1%29%2Cpush%28%29%2Ctranslate%28300%2C200-eLs%5BeL%5D%29%2Cscale%28.1%29%2Crotate%28PI%29%2Cp2.s%28%29%2Cpop%28%29%3Bfor%28let%20s%3D200%3Bs%3C%3D300%3Bs%2B%2B%29sats%3Dmap%28noise%28xo%29%2C0%2C1%2C30%2C100%29%2Cfill%28k%2Csats%2C95%29%2Cr%3Dmap%28noise%28xo%29%2C0%2C1%2C.53%2C.77%29%2Cellipse%28s%2C500%2Ar%2C28%29%2Cxo%2B%3D.015%3BnoLoop%28%29%7Dclass%20C1%7Bs%28%29%7BbeginShape%28%29%3Bfor%28let%20s%3D0%3Bs%3CTWO_PI%3Bs%2B%3D.16%29%7Blet%20e%3Dmap%28cos%28s%29%2C-1%2C1%2C0%2CnMV%5BnM%5D%29%2Ct%3Dmap%28sin%28s%29%2C-1%2C1%2C0%2CnMV%5BnM%5D%29%2Cn%3Dmap%28noise%28e%2Ct%29%2C0%2C1%2C100%2C200%29%2Ca%3Dn%2Acos%28s%29%2Cp%3Dn%2Asin%28s%29%3Bvertex%28a%2Cp%29%2Ce%2B%3D.004%7DendShape%28%29%7D%7Dclass%20C2%7Bconstructor%28s%2Ce%2Ct%2Cn%29%7Bthis.h%3Ds%2Cthis.z%3De%2Cthis.l%3Dt%2Cthis.b%3Dn%7Ds%28%29%7BbeginShape%28%29%2CnoFill%28%29%3Bfor%28let%20s%3D0%3Bs%3CTWO_PI%3Bs%2B%3D.045%29%7Blet%20e%3Dmap%28sin%28s%29%2C-1%2C1%2C0%2CnMV%5BnM%5D%29%2Cn%3Dmap%28cos%28s%29%2C-1%2C1%2C0%2CnMV%5BnM%5D%29%2Ca%3Dmap%28noise%28n%2Ce%29%2C0%2C1%2C100%2C200%29%2Cp%3Da%2Acos%28s%29%2Co%3Da%2Asin%28s%29%3B0%3D%3Dthis.b%26%26%28stroke%28this.h%2Cthis.z%2Cthis.l-25%29%2CstrokeWeight%28tV%5Bt%5D%29%29%2Cvertex%28p%2Co%29%2CendShape%28%29%2Cpush%28%29%2Cstroke%28this.h%2Cthis.z%2Cthis.l%29%2CstrokeWeight%286%29%2Cline%28p%2B7.5%2Co%2B10%2C500%2FwP%2C500%2FhP%29%2Cpop%28%29%2Cn%2B%3D.04%2Ce%2B%3D.001%7DendShape%28%29%7D%7D%3C%2Fscript%3E%3C%2Fbody%3E%3C%2Fhtml%3E" ) ); return htmlString; } /** * @dev Hash to metadata function */ function hashToMetadata(string memory _hash) public view returns (string memory) { string memory metadataString; for (uint8 i = 0; i < 6; i++) { uint8 thisTraitIndex = AnonymiceLibrary.parseInt( AnonymiceLibrary.substring(_hash, i, i + 1) ); metadataString = string( abi.encodePacked( metadataString, '{"trait_type":"', traitTypes[i][thisTraitIndex].traitType, '","value":"', traitTypes[i][thisTraitIndex].traitName, '"}' ) ); if (i != 5) metadataString = string(abi.encodePacked(metadataString, ",")); } return string(abi.encodePacked("[", metadataString, "]")); } /** * @dev Returns the SVG and metadata for a token Id * @param _tokenId The tokenId to return the SVG and metadata for. */ function tokenURI(uint256 _tokenId) public view override returns (string memory) { require(_exists(_tokenId)); string memory tokenHash = _tokenIdToHash(_tokenId); string memory description = '", "description": "444 GenFrens to keep you company. Metadata & images mirrored on chain permanently. Your GenFren will never leave you <3",'; string memory encodedTokenId = AnonymiceLibrary.encode( bytes(string(abi.encodePacked(AnonymiceLibrary.toString(_tokenId)))) ); string memory encodedHash = AnonymiceLibrary.encode( bytes(string(abi.encodePacked(tokenHash))) ); return string( abi.encodePacked( "data:application/json;base64,", AnonymiceLibrary.encode( bytes( string( abi.encodePacked( '{"name": "GenFrens #', AnonymiceLibrary.toString(_tokenId), description, '"external_url":"', externalUrl, encodedTokenId, "&t=", encodedHash, '","image":"', imageUrl, AnonymiceLibrary.toString(_tokenId), "&t=", tokenHash, '","attributes":', hashToMetadata(tokenHash), "}" ) ) ) ) ) ); } /** * @dev Returns a hash for a given tokenId * @param _tokenId The tokenId to return the hash for. */ function _tokenIdToHash(uint256 _tokenId) public view returns (string memory) { string memory tokenHash = tokenIdToHash[_tokenId]; return tokenHash; } /* ___ __ __ ____ ___ ____ _____ __ __ ____ __ ______ ____ ___ ____ _____ / \ | |__| || \ / _]| \ | || | || \ / ] || |/ \ | \ / ___/ | || | | || _ | / [_ | D ) | __|| | || _ | / /| | | || || _ ( \_ | O || | | || | || _]| / | |_ | | || | |/ / |_| |_| | || O || | |\__ | | || ` ' || | || [_ | \ | _] | : || | / \_ | | | || || | |/ \ | | | \ / | | || || . \ | | | || | \ | | | | || || | |\ | \___/ \_/\_/ |__|__||_____||__|\_| |__| \__,_||__|__|\____| |__| |____|\___/ |__|__| \___| /** * @dev Add a trait type * @param _traitTypeIndex The trait type index * @param traits Array of traits to add */ function addTraitType(uint256 _traitTypeIndex, Trait[] memory traits) public onlyOwner { for (uint256 i = 0; i < traits.length; i++) { traitTypes[_traitTypeIndex].push( Trait(traits[i].traitName, traits[i].traitType) ); } return; } function flipMintingSwitch() public onlyOwner { MINTING_LIVE = !MINTING_LIVE; } /** * @dev Sets the p5js url * @param _p5jsUrl The address of the p5js file hosted on CDN */ function setJsAddress(string memory _p5jsUrl) public onlyOwner { p5jsUrl = _p5jsUrl; } /** * @dev Sets the p5js resource integrity * @param _p5jsIntegrity The hash of the p5js file (to protect w subresource integrity) */ function setJsIntegrity(string memory _p5jsIntegrity) public onlyOwner { p5jsIntegrity = _p5jsIntegrity; } /** * @dev Sets the base image url * @param _imageUrl The base url for image field */ function setImageUrl(string memory _imageUrl) public onlyOwner { imageUrl = _imageUrl; } function setExternalUrl(string memory _externalUrl) public onlyOwner { externalUrl = _externalUrl; } function withdraw() public payable onlyOwner { (bool success, ) = payable(msg.sender).call{ value: address(this).balance }(""); require(success); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// 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 v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.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 v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.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/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); }
pragma solidity ^0.8.0; library AnonymiceLibrary { string internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ""; // load the table into memory string memory table = TABLE; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((data.length + 2) / 3); // add some extra buffer at the end required for the writing string memory result = new string(encodedLen + 32); assembly { // set the actual output length mstore(result, encodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 3 bytes at a time for { } lt(dataPtr, endPtr) { } { dataPtr := add(dataPtr, 3) // read 3 bytes let input := mload(dataPtr) // write 4 characters mstore( resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F)))) ) resultPtr := add(resultPtr, 1) mstore( resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F)))) ) resultPtr := add(resultPtr, 1) mstore( resultPtr, shl(248, mload(add(tablePtr, and(shr(6, input), 0x3F)))) ) resultPtr := add(resultPtr, 1) mstore( resultPtr, shl(248, mload(add(tablePtr, and(input, 0x3F)))) ) resultPtr := add(resultPtr, 1) } // padding with '=' switch mod(mload(data), 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } } return result; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } function parseInt(string memory _a) internal pure returns (uint8 _parsedInt) { bytes memory bresult = bytes(_a); uint8 mint = 0; for (uint8 i = 0; i < bresult.length; i++) { if ( (uint8(uint8(bresult[i])) >= 48) && (uint8(uint8(bresult[i])) <= 57) ) { mint *= 10; mint += uint8(bresult[i]) - 48; } } return mint; } function substring( string memory str, uint256 startIndex, uint256 endIndex ) internal pure returns (string memory) { bytes memory strBytes = bytes(str); bytes memory result = new bytes(endIndex - startIndex); for (uint256 i = startIndex; i < endIndex; i++) { result[i - startIndex] = strBytes[i]; } return string(result); } function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } }
// SPDX-License-Identifier: MIT // Creators: locationtba.eth, 2pmflow.eth pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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 * `maxBatchSize` refers to how much a minter can mint at a time. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @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 || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require( owner != address(0), "ERC721A: balance query for the zero address" ); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require( _exists(tokenId), "ERC721A: approved query for nonexistent token" ); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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 override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > currentIndex - 1) { endIndex = currentIndex - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership( ownership.addr, ownership.startTimestamp ); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert( "ERC721A: transfer to non ERC721Receiver implementer" ); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
{ "evmVersion": "istanbul", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "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":[],"name":"MINTING_LIVE","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"_tokenIdToHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_traitTypeIndex","type":"uint256"},{"components":[{"internalType":"string","name":"traitName","type":"string"},{"internalType":"string","name":"traitType","type":"string"}],"internalType":"struct GenFrens.Trait[]","name":"traits","type":"tuple[]"}],"name":"addTraitType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipMintingSwitch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_hash","type":"string"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"hashToHTML","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_hash","type":"string"}],"name":"hashToMetadata","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":"uint8","name":"mintAmount","type":"uint8"}],"name":"mintFren","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_externalUrl","type":"string"}],"name":"setExternalUrl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_imageUrl","type":"string"}],"name":"setImageUrl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_p5jsUrl","type":"string"}],"name":"setJsAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_p5jsIntegrity","type":"string"}],"name":"setJsIntegrity","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"traitTypes","outputs":[{"internalType":"string","name":"traitName","type":"string"},{"internalType":"string","name":"traitType","type":"string"}],"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":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60a0604052600080805560078190556101bc600d55600e55662386f26fc10000600f556010805460ff191690553480156200003957600080fd5b506040518060400160405280600881526020016747656e4672656e7360c01b8152506040518060400160405280600481526020016323a2a72360e11b815250600260008111620000df5760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b606482015260840160405180910390fd5b8251620000f4906001906020860190620002eb565b5081516200010a906002906020850190620002eb565b50608052506200011c90503362000299565b604080516101008101825261057880825260208201526107089181018290526102bc60608201819052608082015260a081019190915261044c60c0820181905260e0820152620001719060119060086200037a565b5060408051610100810182526105dc8082526107086020830181905261038493830184905260608301939093526104b0608083015260a082019290925260c081019190915261019060e0820152620001ce9060129060086200037a565b5060408051608081018252610fa08152610bb860208201526107d0918101919091526103e86060820152620002089060139060046200037a565b50604080516060810182526109c4808252611388602083015291810191909152620002389060149060036200037a565b506040805160608101825261177081526109c460208201526105dc918101919091526200026a9060159060036200037a565b50604080518082019091526117708152610fa06020820152620002929060169060026200037a565b5062000474565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002f99062000437565b90600052602060002090601f0160209004810192826200031d576000855562000368565b82601f106200033857805160ff191683800117855562000368565b8280016001018555821562000368579182015b82811115620003685782518255916020019190600101906200034b565b506200037692915062000420565b5090565b82805482825590600052602060002090600f01601090048101928215620003685791602002820160005b83821115620003e657835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302620003a4565b8015620004165782816101000a81549061ffff0219169055600201602081600101049283019260010302620003e6565b5050620003769291505b5b8082111562000376576000815560010162000421565b600181811c908216806200044c57607f821691505b602082108114156200046e57634e487b7160e01b600052602260045260246000fd5b50919050565b6080516145696200049e60003960008181611c3a01528181611c64015261252e01526145696000f3fe6080604052600436106101ed5760003560e01c806342842e0e1161010d57806395d89b41116100a0578063d7224ba01161006f578063d7224ba014610571578063d9d2628314610587578063e985e9c5146105a7578063f2fde38b146105f0578063f3c81d2a1461061057600080fd5b806395d89b41146104fc578063a22cb46514610511578063b88d4fde14610531578063c87b56dd1461055157600080fd5b806370a08231116100dc57806370a082311461048f578063715018a6146104af57806372f90ac1146104c45780638da5cb5b146104de57600080fd5b806342842e0e1461040f5780634f6ccce71461042f5780636352211e1461044f57806366e338701461046f57600080fd5b806318160ddd116101855780632f745c59116101545780632f745c59146103995780632fb098d2146103b9578063349d2748146103e75780633ccfd60b1461040757600080fd5b806318160ddd1461031a57806323b872dd1461033957806326d58ad3146103595780632abff1f21461037957600080fd5b8063081812fc116101c1578063081812fc14610282578063095ea7b3146102ba5780630a3d4cc4146102da57806313fb44bf146102fa57600080fd5b80625ea307146101f257806301ffc9a71461022857806302c3fb411461025857806306fdde031461026d575b600080fd5b3480156101fe57600080fd5b5061021261020d366004612b03565b610625565b60405161021f919061410f565b60405180910390f35b34801561023457600080fd5b50610248610243366004612a57565b6106c9565b604051901515815260200161021f565b61026b610266366004612c09565b610736565b005b34801561027957600080fd5b50610212610742565b34801561028e57600080fd5b506102a261029d366004612b03565b6107d4565b6040516001600160a01b03909116815260200161021f565b3480156102c657600080fd5b5061026b6102d5366004612a2e565b610864565b3480156102e657600080fd5b506102126102f5366004612ac1565b61097c565b34801561030657600080fd5b5061026b610315366004612a8f565b6109db565b34801561032657600080fd5b506000545b60405190815260200161021f565b34801561034557600080fd5b5061026b610354366004612941565b610a1c565b34801561036557600080fd5b5061026b610374366004612a8f565b610a27565b34801561038557600080fd5b5061026b610394366004612a8f565b610a64565b3480156103a557600080fd5b5061032b6103b4366004612a2e565b610aa1565b3480156103c557600080fd5b506103d96103d4366004612be8565b610c0e565b60405161021f929190614122565b3480156103f357600080fd5b5061026b610402366004612b1b565b610d5f565b61026b610e70565b34801561041b57600080fd5b5061026b61042a366004612941565b610eef565b34801561043b57600080fd5b5061032b61044a366004612b03565b610f0a565b34801561045b57600080fd5b506102a261046a366004612b03565b610f6c565b34801561047b57600080fd5b5061021261048a366004612a8f565b610f7e565b34801561049b57600080fd5b5061032b6104aa3660046128f5565b6110d7565b3480156104bb57600080fd5b5061026b611168565b3480156104d057600080fd5b506010546102489060ff1681565b3480156104ea57600080fd5b506008546001600160a01b03166102a2565b34801561050857600080fd5b5061021261119e565b34801561051d57600080fd5b5061026b61052c3660046129f4565b6111ad565b34801561053d57600080fd5b5061026b61054c36600461297c565b611272565b34801561055d57600080fd5b5061021261056c366004612b03565b6112ab565b34801561057d57600080fd5b5061032b60075481565b34801561059357600080fd5b5061026b6105a2366004612a8f565b61139f565b3480156105b357600080fd5b506102486105c236600461290f565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156105fc57600080fd5b5061026b61060b3660046128f5565b6113dc565b34801561061c57600080fd5b5061026b611474565b6000818152600b602052604081208054606092919061064390614385565b80601f016020809104026020016040519081016040528092919081815260200182805461066f90614385565b80156106bc5780601f10610691576101008083540402835291602001916106bc565b820191906000526020600020905b81548152906001019060200180831161069f57829003601f168201915b5093979650505050505050565b60006001600160e01b031982166380ac58cd60e01b14806106fa57506001600160e01b03198216635b5e139f60e01b145b8061071557506001600160e01b0319821663780e9d6360e01b145b8061073057506301ffc9a760e01b6001600160e01b03198316145b92915050565b61073f816114b2565b50565b60606001805461075190614385565b80601f016020809104026020016040519081016040528092919081815260200182805461077d90614385565b80156107ca5780601f1061079f576101008083540402835291602001916107ca565b820191906000526020600020905b8154815290600101906020018083116107ad57829003601f168201915b5050505050905090565b60006107e1826000541190565b6108485760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061086f82610f6c565b9050806001600160a01b0316836001600160a01b031614156108de5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b606482015260840161083f565b336001600160a01b03821614806108fa57506108fa81336105c2565b61096c5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000606482015260840161083f565b6109778383836116b5565b505050565b606060006017601861098d85611711565b866040516020016109a19493929190613dae565b6040516020818303038152906040529050806040516020016109c39190612de7565b60408051808303601f19018152919052949350505050565b6008546001600160a01b03163314610a055760405162461bcd60e51b815260040161083f90614150565b8051610a1890601890602084019061274b565b5050565b610977838383611832565b6008546001600160a01b03163314610a515760405162461bcd60e51b815260040161083f90614150565b8051610a1890601a90602084019061274b565b6008546001600160a01b03163314610a8e5760405162461bcd60e51b815260040161083f90614150565b8051610a1890601990602084019061274b565b6000610aac836110d7565b8210610b055760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b606482015260840161083f565b600080549080805b83811015610bae576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215610b5f57805192505b876001600160a01b0316836001600160a01b03161415610b9b5786841415610b8d5750935061073092505050565b83610b97816143c0565b9450505b5080610ba6816143c0565b915050610b0d565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b606482015260840161083f565b60096020528160005260406000208181548110610c2a57600080fd5b906000526020600020906002020160009150915050806000018054610c4e90614385565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7a90614385565b8015610cc75780601f10610c9c57610100808354040283529160200191610cc7565b820191906000526020600020905b815481529060010190602001808311610caa57829003601f168201915b505050505090806001018054610cdc90614385565b80601f0160208091040260200160405190810160405280929190818152602001828054610d0890614385565b8015610d555780601f10610d2a57610100808354040283529160200191610d55565b820191906000526020600020905b815481529060010190602001808311610d3857829003601f168201915b5050505050905082565b6008546001600160a01b03163314610d895760405162461bcd60e51b815260040161083f90614150565b60005b815181101561097757600960008481526020019081526020016000206040518060400160405280848481518110610dd357634e487b7160e01b600052603260045260246000fd5b6020026020010151600001518152602001848481518110610e0457634e487b7160e01b600052603260045260246000fd5b602090810291909101810151810151909152825460018101845560009384529281902082518051939460020290910192610e41928492019061274b565b506020828101518051610e5a926001850192019061274b565b5050508080610e68906143c0565b915050610d8c565b6008546001600160a01b03163314610e9a5760405162461bcd60e51b815260040161083f90614150565b604051600090339047908381818185875af1925050503d8060008114610edc576040519150601f19603f3d011682016040523d82523d6000602084013e610ee1565b606091505b505090508061073f57600080fd5b61097783838360405180602001604052806000815250611272565b600080548210610f685760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b606482015260840161083f565b5090565b6000610f7782611bb8565b5192915050565b60608060005b60068160ff1610156110ae576000610fb5610fb08660ff8516610fa886600161425f565b60ff16611d61565b611e59565b905082600960008460ff1681526020019081526020016000208260ff1681548110610ff057634e487b7160e01b600052603260045260246000fd5b9060005260206000209060020201600101600960008560ff1681526020019081526020016000208360ff168154811061103957634e487b7160e01b600052603260045260246000fd5b906000526020600020906002020160000160405160200161105c93929190612d7a565b60405160208183030381529060405292508160ff1660051461109b57826040516020016110899190612d55565b60405160208183030381529060405292505b50806110a6816143db565b915050610f84565b50806040516020016110c09190613f18565b604051602081830303815290604052915050919050565b60006001600160a01b0382166111435760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b606482015260840161083f565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6008546001600160a01b031633146111925760405162461bcd60e51b815260040161083f90614150565b61119c6000611f41565b565b60606002805461075190614385565b6001600160a01b0382163314156112065760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c6572000000000000604482015260640161083f565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61127d848484611832565b61128984848484611f93565b6112a55760405162461bcd60e51b815260040161083f90614185565b50505050565b60606112b8826000541190565b6112c157600080fd5b60006112cc83610625565b905060006040518060c00160405280608c81526020016144a8608c91399050600061131d6112f986611711565b6040516020016113099190612d0a565b6040516020818303038152906040526120a0565b90506000611335846040516020016113099190612d0a565b905061137561134387611711565b84601a858560196113538d611711565b8b61135d8d610f7e565b60405160200161130999989796959493929190613f91565b6040516020016113859190613f4c565b604051602081830303815290604052945050505050919050565b6008546001600160a01b031633146113c95760405162461bcd60e51b815260040161083f90614150565b8051610a1890601790602084019061274b565b6008546001600160a01b031633146114065760405162461bcd60e51b815260040161083f90614150565b6001600160a01b03811661146b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161083f565b61073f81611f41565b6008546001600160a01b0316331461149e5760405162461bcd60e51b815260040161083f90614150565b6010805460ff19811660ff90911615179055565b60105460ff161515600114806114d257506008546001600160a01b031633145b6115115760405162461bcd60e51b815260206004820152601060248201526f4d696e74696e67206e6f74206c69766560801b604482015260640161083f565b600054600d54811061152257600080fd5b333b1561152e57600080fd5b336000908152600c602052604090205460ff1615156001141561158c5760405162461bcd60e51b81526020600482015260166024820152751059191c995cdcc8185b1c9958591e481b5a5b9d195960521b604482015260640161083f565b8160ff16600f5461159d9190614298565b3410156115e45760405162461bcd60e51b8152602060048201526015602482015274125b9cdd59999a58da595b9d08115512081cd95b9d605a1b604482015260640161083f565b60005b8260ff168160ff16101561168d57600061160460ff831684614247565b905061161281336000612215565b6000828152600b602090815260409091208251611635939192919091019061274b565b506001600a600b600084815260200190815260200160002060405161165a9190613da2565b908152604051908190036020019020805491151560ff199092169190911790555080611685816143db565b9150506115e7565b50336000818152600c60205260409020805460ff19166001179055610a189060ff841661235e565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6060816117355750506040805180820190915260018152600360fc1b602082015290565b8160005b811561175f5780611749816143c0565b91506117589050600a83614284565b9150611739565b6000816001600160401b0381111561178757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156117b1576020820181803683370190505b5090505b841561182a576117c6600183614308565b91506117d3600a866143fb565b6117de906030614247565b60f81b81838151811061180157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611823600a86614284565b94506117b5565b949350505050565b600061183d82611bb8565b80519091506000906001600160a01b0316336001600160a01b03161480611874575033611869846107d4565b6001600160a01b0316145b806118865750815161188690336105c2565b9050806118f05760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161083f565b846001600160a01b031682600001516001600160a01b0316146119645760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b606482015260840161083f565b6001600160a01b0384166119c85760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161083f565b6119d860008484600001516116b5565b6001600160a01b0385166000908152600460205260408120805460019290611a0a9084906001600160801b03166142e0565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092611a5691859116614208565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055611add846001614247565b6000818152600360205260409020549091506001600160a01b0316611b6e57611b07816000541190565b15611b6e5760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6040805180820190915260008082526020820152611bd7826000541190565b611c365760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b606482015260840161083f565b60007f00000000000000000000000000000000000000000000000000000000000000008310611c9757611c897f000000000000000000000000000000000000000000000000000000000000000084614308565b611c94906001614247565b90505b825b818110611d00576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215611ced57949350505050565b5080611cf88161436e565b915050611c99565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b606482015260840161083f565b6060836000611d708585614308565b6001600160401b03811115611d9557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611dbf576020820181803683370190505b509050845b84811015611e4d57828181518110611dec57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191682611e068884614308565b81518110611e2457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535080611e45816143c0565b915050611dc4565b509150505b9392505050565b60008181805b82518160ff161015611f39576030838260ff1681518110611e9057634e487b7160e01b600052603260045260246000fd5b016020015160f81c10801590611ed157506039838260ff1681518110611ec657634e487b7160e01b600052603260045260246000fd5b016020015160f81c11155b15611f2757611ee1600a836142b7565b91506030838260ff1681518110611f0857634e487b7160e01b600052603260045260246000fd5b0160200151611f1a919060f81c61431f565b611f24908361425f565b91505b80611f31816143db565b915050611e5f565b509392505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b1561209557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611fd79033908990889088906004016140d2565b602060405180830381600087803b158015611ff157600080fd5b505af1925050508015612021575060408051601f3d908101601f1916820190925261201e91810190612a73565b60015b61207b573d80801561204f576040519150601f19603f3d011682016040523d82523d6000602084013e612054565b606091505b5080516120735760405162461bcd60e51b815260040161083f90614185565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061182a565b506001949350505050565b60608151600014156120c057505060408051602081019091526000815290565b600060405180606001604052806040815260200161446860409139905060006003845160026120ef9190614247565b6120f99190614284565b612104906004614298565b90506000612113826020614247565b6001600160401b0381111561213857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612162576020820181803683370190505b509050818152600183018586518101602084015b818310156121d05760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b93820193909352600401612176565b6003895106600181146121ea57600281146121fb57612207565b613d3d60f01b600119830152612207565b603d60f81b6000198301525b509398975050505050505050565b6060600b821061222457600080fd5b604080516020810190915260008082525b60068160ff16101561231857600e8054906000612251836143c0565b9091555050600e54604080514260208201524491810191909152606080820189905287901b6bffffffffffffffffffffffff191660808201526094810186905260b48101919091526000906127109060d4016040516020818303038152906040528051906020012060001c6122c691906143fb565b9050826122e26122da8361ffff1685612378565b60ff16611711565b6040516020016122f3929190612d26565b6040516020818303038152906040529250508080612310906143db565b915050612235565b50600a816040516123299190612d0a565b9081526040519081900360200190205460ff161561182a576123568585612351866001614247565b612215565b915050611e52565b610a18828260405180602001604052806000815250612471565b600080805b60118460ff16600681106123a157634e487b7160e01b600052603260045260246000fd5b015460ff8216101561246b57600060118560ff16600681106123d357634e487b7160e01b600052603260045260246000fd5b018260ff16815481106123f657634e487b7160e01b600052603260045260246000fd5b90600052602060002090601091828204019190066002029054906101000a900461ffff1690508261ffff16861015801561243c5750612435818461422a565b61ffff1686105b1561244b575091506107309050565b612455818461422a565b9250508080612463906143db565b91505061237d565b50600080fd5b6000546001600160a01b0384166124d45760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161083f565b6124df816000541190565b1561252c5760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e746564000000604482015260640161083f565b7f00000000000000000000000000000000000000000000000000000000000000008311156125a75760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b606482015260840161083f565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190612603908790614208565b6001600160801b031681526020018583602001516126219190614208565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b029790961696909617909455845180860186529182526001600160401b034281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b858110156127405760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46127046000888488611f93565b6127205760405162461bcd60e51b815260040161083f90614185565b8161272a816143c0565b9250508080612738906143c0565b9150506126b7565b506000819055611bb0565b82805461275790614385565b90600052602060002090601f01602090048101928261277957600085556127bf565b82601f1061279257805160ff19168380011785556127bf565b828001600101855582156127bf579182015b828111156127bf5782518255916020019190600101906127a4565b50610f689291505b80821115610f6857600081556001016127c7565b60006001600160401b038311156127f4576127f461443b565b612807601f8401601f19166020016141d8565b905082815283838301111561281b57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461284957600080fd5b919050565b600082601f83011261285e578081fd5b611e52838335602085016127db565b60006040828403121561287e578081fd5b604051604081016001600160401b0382821081831117156128a1576128a161443b565b8160405282935084359150808211156128b957600080fd5b6128c58683870161284e565b835260208501359150808211156128db57600080fd5b506128e88582860161284e565b6020830152505092915050565b600060208284031215612906578081fd5b611e5282612832565b60008060408385031215612921578081fd5b61292a83612832565b915061293860208401612832565b90509250929050565b600080600060608486031215612955578081fd5b61295e84612832565b925061296c60208501612832565b9150604084013590509250925092565b60008060008060808587031215612991578081fd5b61299a85612832565b93506129a860208601612832565b92506040850135915060608501356001600160401b038111156129c9578182fd5b8501601f810187136129d9578182fd5b6129e8878235602084016127db565b91505092959194509250565b60008060408385031215612a06578182fd5b612a0f83612832565b915060208301358015158114612a23578182fd5b809150509250929050565b60008060408385031215612a40578182fd5b612a4983612832565b946020939093013593505050565b600060208284031215612a68578081fd5b8135611e5281614451565b600060208284031215612a84578081fd5b8151611e5281614451565b600060208284031215612aa0578081fd5b81356001600160401b03811115612ab5578182fd5b61182a8482850161284e565b60008060408385031215612ad3578182fd5b82356001600160401b03811115612ae8578283fd5b612af48582860161284e565b95602094909401359450505050565b600060208284031215612b14578081fd5b5035919050565b60008060408385031215612b2d578182fd5b823591506020808401356001600160401b0380821115612b4b578384fd5b818601915086601f830112612b5e578384fd5b813581811115612b7057612b7061443b565b8060051b612b7f8582016141d8565b8281528581019085870183870188018c1015612b99578889fd5b8893505b84841015612bd657803586811115612bb357898afd5b612bc18d8a838b010161286d565b84525060019390930192918701918701612b9d565b50809750505050505050509250929050565b60008060408385031215612bfa578182fd5b50508035926020909101359150565b600060208284031215612c1a578081fd5b813560ff81168114611e52578182fd5b60008151808452612c42816020860160208601614342565b601f01601f19169290920160200192915050565b60008151612c68818560208601614342565b9290920192915050565b8054600090600181811c9080831680612c8c57607f831692505b6020808410821415612cac57634e487b7160e01b86526022600452602486fd5b818015612cc05760018114612cd157612cfe565b60ff19861689528489019650612cfe565b60008881526020902060005b86811015612cf65781548b820152908501908301612cdd565b505084890196505b50505050505092915050565b60008251612d1c818460208701614342565b9190910192915050565b60008351612d38818460208801614342565b835190830190612d4c818360208801614342565b01949350505050565b60008251612d67818460208701614342565b600b60fa1b920191825250600101919050565b60008451612d8c818460208901614342565b6e3d913a3930b4ba2fba3cb832911d1160891b908301908152612db2600f820186612c72565b6a1116113b30b63ab2911d1160a91b81529050612dd2600b820185612c72565b61227d60f01b81526002019695505050505050565b60008251612df9818460208701614342565b7f786f2533443125324373642533443231253241746f6b656e49642532437043739201918252507f253344253542302532433330253243383025324331323025324331383025324360208201527f323235253243323730253243333030253544253243734373253344253542302560408201527f324333302532433132302532433138302532433232352532433237302532433360608201527f30302532433333302535442532436e4d562533442535422e352532433125324360808201527f32253243332535442532436553732533442535422e32362532432e333325324360a08201527f2e3425354425324374562533442535423130253243323525324337302535442560c08201527f3243654c7325334425354230253243313525354425334266756e6374696f6e2560e08201527f3230736574757025323825323925374263726561746543616e766173253238356101008201527f3030253243353030253239253243636f6c6f724d6f64652532384853422532436101208201527f3336302532433130302532433130302532392532437374726f6b6543617025326101408201527f38524f554e442532392532436e6f6973655365656425323873642532392532436101608201527f72616e646f6d53656564253238736425323925324370432533447061727365496101808201527f6e74253238686173682e737562737472696e67253238302532433125323925326101a08201527f3925324373432533447061727365496e74253238686173682e737562737472696101c08201527f6e6725323831253243322532392532392532436e4d2533447061727365496e746101e08201527f253238686173682e737562737472696e672532383225324333253239253239256102008201527f324365532533447061727365496e74253238686173682e737562737472696e676102208201527f2532383325324334253239253239253243742533447061727365496e742532386102408201527f686173682e737562737472696e672532383425324335253239253239253243656102608201527f4c2533447061727365496e74253238686173682e737562737472696e672532386102808201527f35253243362532392532392532433333302533442533447343732535427343256102a08201527f35442533466b25334470437325354270432535442533416b25334473437325356102c08201527f427343253544253243775025334472616e646f6d2532383525324331302532396102e08201527f253243685025334472616e646f6d25323835253243313025323925374466756e6103008201527f6374696f6e253230647261772532382532392537426261636b67726f756e64256103208201527f3238323535253239253342666f722532386c65742532307325334432352533426103408201527f73253343353030253342732532422533443530253239666f722532386c6574256103608201527f32306525334432352533426525334335303025334265253242253344353025326103808201527f396e6f5374726f6b6525323825323925324366253344734373253542734325356103a08201527f4425324333333025334425334466253346724325334472616e646f6d253238336103c08201527f363025323925334172432533446b25324366696c6c253238724325324372616e6103e08201527f646f6d2532383235253239253243313030253239253243632533446e657725326104008201527f304331253243707573682532382532392532437472616e736c617465253238736104208201527f253243652532392532437363616c652532382e31342532432e313425323925326104408201527f43632e73253238253239253243706f7025323825323925334263312533446e656104608201527f77253230433225323870437325354270432535442532433430253243313030256104808201527f324330253239253243707573682532382532392532437472616e736c617465256104a08201527f3238323530253243353030253239253243726f74617465253238332e313425326104c08201527f392532437363616c652532382e3535253243312e323525323925324363312e736104e08201527f253238253239253243706f7025323825323925324370757368253238253239256105008201527f32437472616e736c61746525323832353025324332353025323925324363312e6105208201527f73253238253239253243706f702532382532392532436e6f5374726f6b6525326105408201527f3825323925324365312533446e657725323043322532383025324330253243316105608201527f303025324331253239253243707573682532382532392532437472616e736c616105808201527f74652532383230302532433230302532392532437363616c652532382e3333256105a08201527f323925324365312e73253238253239253243706f7025323825323925324365326105c08201527f2533446e657725323043322532383025324330253243313030253243312532396105e08201527f25324370757368253238253239253243707573682532382532392532437472616106008201527f6e736c6174652532383330302532433230302532392532437363616c652532386106208201527f6553732535426553253544253239253243726f746174652532385049253239256106408201527f324365322e73253238253239253243706f7025323825323925324370312533446106608201527f6e657725323043322532386b25324331303025324331303025324331253239256106808201527f3243707573682532382532392532437472616e736c61746525323832303025326106a08201527f43323030253242654c73253542654c2535442532392532437363616c652532386106c08201527f2e3125323925324370312e73253238253239253243706f7025323825323925326106e08201527f4370322533446e657725323043322532386b25324331303025324331303025326107008201527f4331253239253243707573682532382532392532437472616e736c61746525326107208201527f383330302532433230302d654c73253542654c2535442532392532437363616c6107408201527f652532382e31253239253243726f74617465253238504925323925324370322e6107608201527f73253238253239253243706f70253238253239253342666f722532386c6574256107808201527f32307325334432303025334273253343253344333030253342732532422532426107a08201527f253239736174732533446d61702532386e6f697365253238786f2532392532436107c08201527f3025324331253243333025324331303025323925324366696c6c2532386b25326107e08201527f43736174732532433935253239253243722533446d61702532386e6f697365256108008201527f3238786f25323925324330253243312532432e35332532432e373725323925326108208201527f43656c6c697073652532387325324335303025324172253243323825323925326108408201527f43786f2532422533442e3031352533426e6f4c6f6f70253238253239253744636108608201527f6c617373253230433125374273253238253239253742626567696e53686170656108808201527f253238253239253342666f722532386c657425323073253344302533427325336108a08201527f4354574f5f5049253342732532422533442e31362532392537426c65742532306108c08201527f652533446d6170253238636f73253238732532392532432d31253243312532436108e08201527f302532436e4d562535426e4d253544253239253243742533446d6170253238736109008201527f696e253238732532392532432d3125324331253243302532436e4d562535426e6109208201527f4d2535442532392532436e2533446d61702532386e6f697365253238652532436109408201527f74253239253243302532433125324331303025324332303025323925324361256109608201527f33446e253241636f7325323873253239253243702533446e25324173696e25326109808201527f38732532392533427665727465782532386125324370253239253243652532426109a08201527f2533442e303034253744656e645368617065253238253239253744253744636c6109c08201527f6173732532304332253742636f6e7374727563746f72253238732532436525326109e08201527f43742532436e253239253742746869732e6825334473253243746869732e7a25610a008201527f334465253243746869732e6c25334474253243746869732e622533446e253744610a208201527f73253238253239253742626567696e53686170652532382532392532436e6f46610a408201527f696c6c253238253239253342666f722532386c65742532307325334430253342610a608201527f7325334354574f5f5049253342732532422533442e3034352532392537426c65610a808201527f74253230652533446d617025323873696e253238732532392532432d31253243610aa08201527f31253243302532436e4d562535426e4d2535442532392532436e2533446d6170610ac08201527f253238636f73253238732532392532432d3125324331253243302532436e4d56610ae08201527f2535426e4d253544253239253243612533446d61702532386e6f697365253238610b008201527f6e25324365253239253243302532433125324331303025324332303025323925610b208201527f32437025334461253241636f73253238732532392532436f2533446125324173610b408201527f696e2532387325323925334230253344253344746869732e6225323625323625610b608201527f32387374726f6b65253238746869732e68253243746869732e7a253243746869610b808201527f732e6c2d32352532392532437374726f6b655765696768742532387456253542610ba08201527f74253544253239253239253243766572746578253238702532436f2532392532610bc08201527f43656e6453686170652532382532392532437075736825323825323925324373610be08201527f74726f6b65253238746869732e68253243746869732e7a253243746869732e6c610c008201527f2532392532437374726f6b65576569676874253238362532392532436c696e65610c208201527f25323870253242372e352532436f253242313025324335303025324677502532610c408201527f433530302532466850253239253243706f702532382532392532436e25324225610c608201527f33442e3034253243652532422533442e303031253744656e6453686170652532610c808201527f3825323925374425374425334325324673637269707425334525334325324662610ca0820152726f647925334525334325324668746d6c25334560681b610cc0820152610cd301919050565b6000611e528284612c72565b7f646174613a746578742f68746d6c2c25334368746d6c2533452533436865616481527f253345253343736372697074253230737263253344253232000000000000000060208201526000613e066038830187612c72565b7412991912991834b73a32b3b934ba3c9299a212991960591b8152613e2e6015820187612c72565b90507f25323225323063726f73736f726967696e253344253232616e6f6e796d6f757381527f253232253345253343253246736372697074253345253343253246686561642560208201527f3345253343626f6479253345253343736372697074253345766172253230746f6040820152671ad95b9259094cd160c21b60608201528451613ec3816068840160208901614342565b721299a13b30b91299183430b9b41299a212991960691b606892909101918201528351613ef781607b840160208801614342565b651299191299a160d11b607b92909101918201526081019695505050505050565b605b60f81b815260008251613f34816001850160208701614342565b605d60f81b6001939091019283015250600201919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613f8481601d850160208701614342565b91909101601d0192915050565b737b226e616d65223a202247656e4672656e73202360601b81528951600090613fc1816014850160208f01614342565b8a5190830190613fd8816014840160208f01614342565b6f1132bc3a32b93730b62fbab936111d1160811b60149290910191820152614003602482018b612c72565b90508851614015818360208d01614342565b6226743d60e81b91019081528751614034816003840160208c01614342565b6a11161134b6b0b3b2911d1160a91b6003929091019182015261405a600e820188612c72565b9050855161406c818360208a01614342565b6140c16140b46140ae61409361408d8587016226743d60e81b815260030190565b8a612c56565b6e11161130ba3a3934b13aba32b9911d60891b8152600f0190565b87612c56565b607d60f81b815260010190565b9d9c50505050505050505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061410590830184612c2a565b9695505050505050565b602081526000611e526020830184612c2a565b6040815260006141356040830185612c2a565b82810360208401526141478185612c2a565b95945050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b604051601f8201601f191681016001600160401b03811182821017156142005761420061443b565b604052919050565b60006001600160801b03808316818516808303821115612d4c57612d4c61440f565b600061ffff808316818516808303821115612d4c57612d4c61440f565b6000821982111561425a5761425a61440f565b500190565b600060ff821660ff84168060ff0382111561427c5761427c61440f565b019392505050565b60008261429357614293614425565b500490565b60008160001904831182151516156142b2576142b261440f565b500290565b600060ff821660ff84168160ff04811182151516156142d8576142d861440f565b029392505050565b60006001600160801b03838116908316818110156143005761430061440f565b039392505050565b60008282101561431a5761431a61440f565b500390565b600060ff821660ff8416808210156143395761433961440f565b90039392505050565b60005b8381101561435d578181015183820152602001614345565b838111156112a55750506000910152565b60008161437d5761437d61440f565b506000190190565b600181811c9082168061439957607f821691505b602082108114156143ba57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156143d4576143d461440f565b5060010190565b600060ff821660ff8114156143f2576143f261440f565b60010192915050565b60008261440a5761440a614425565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461073f57600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f222c20226465736372697074696f6e223a20223434342047656e4672656e7320746f206b65657020796f7520636f6d70616e792e204d65746164617461202620696d61676573206d6972726f726564206f6e20636861696e207065726d616e656e746c792e20596f75722047656e4672656e2077696c6c206e65766572206c6561766520796f75203c33222ca2646970667358221220769a32c603566304b5e3341177b9d5fbe12fb1a168d52b6592dcb78cecdcd5d064736f6c63430008040033
Deployed Bytecode
0x6080604052600436106101ed5760003560e01c806342842e0e1161010d57806395d89b41116100a0578063d7224ba01161006f578063d7224ba014610571578063d9d2628314610587578063e985e9c5146105a7578063f2fde38b146105f0578063f3c81d2a1461061057600080fd5b806395d89b41146104fc578063a22cb46514610511578063b88d4fde14610531578063c87b56dd1461055157600080fd5b806370a08231116100dc57806370a082311461048f578063715018a6146104af57806372f90ac1146104c45780638da5cb5b146104de57600080fd5b806342842e0e1461040f5780634f6ccce71461042f5780636352211e1461044f57806366e338701461046f57600080fd5b806318160ddd116101855780632f745c59116101545780632f745c59146103995780632fb098d2146103b9578063349d2748146103e75780633ccfd60b1461040757600080fd5b806318160ddd1461031a57806323b872dd1461033957806326d58ad3146103595780632abff1f21461037957600080fd5b8063081812fc116101c1578063081812fc14610282578063095ea7b3146102ba5780630a3d4cc4146102da57806313fb44bf146102fa57600080fd5b80625ea307146101f257806301ffc9a71461022857806302c3fb411461025857806306fdde031461026d575b600080fd5b3480156101fe57600080fd5b5061021261020d366004612b03565b610625565b60405161021f919061410f565b60405180910390f35b34801561023457600080fd5b50610248610243366004612a57565b6106c9565b604051901515815260200161021f565b61026b610266366004612c09565b610736565b005b34801561027957600080fd5b50610212610742565b34801561028e57600080fd5b506102a261029d366004612b03565b6107d4565b6040516001600160a01b03909116815260200161021f565b3480156102c657600080fd5b5061026b6102d5366004612a2e565b610864565b3480156102e657600080fd5b506102126102f5366004612ac1565b61097c565b34801561030657600080fd5b5061026b610315366004612a8f565b6109db565b34801561032657600080fd5b506000545b60405190815260200161021f565b34801561034557600080fd5b5061026b610354366004612941565b610a1c565b34801561036557600080fd5b5061026b610374366004612a8f565b610a27565b34801561038557600080fd5b5061026b610394366004612a8f565b610a64565b3480156103a557600080fd5b5061032b6103b4366004612a2e565b610aa1565b3480156103c557600080fd5b506103d96103d4366004612be8565b610c0e565b60405161021f929190614122565b3480156103f357600080fd5b5061026b610402366004612b1b565b610d5f565b61026b610e70565b34801561041b57600080fd5b5061026b61042a366004612941565b610eef565b34801561043b57600080fd5b5061032b61044a366004612b03565b610f0a565b34801561045b57600080fd5b506102a261046a366004612b03565b610f6c565b34801561047b57600080fd5b5061021261048a366004612a8f565b610f7e565b34801561049b57600080fd5b5061032b6104aa3660046128f5565b6110d7565b3480156104bb57600080fd5b5061026b611168565b3480156104d057600080fd5b506010546102489060ff1681565b3480156104ea57600080fd5b506008546001600160a01b03166102a2565b34801561050857600080fd5b5061021261119e565b34801561051d57600080fd5b5061026b61052c3660046129f4565b6111ad565b34801561053d57600080fd5b5061026b61054c36600461297c565b611272565b34801561055d57600080fd5b5061021261056c366004612b03565b6112ab565b34801561057d57600080fd5b5061032b60075481565b34801561059357600080fd5b5061026b6105a2366004612a8f565b61139f565b3480156105b357600080fd5b506102486105c236600461290f565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156105fc57600080fd5b5061026b61060b3660046128f5565b6113dc565b34801561061c57600080fd5b5061026b611474565b6000818152600b602052604081208054606092919061064390614385565b80601f016020809104026020016040519081016040528092919081815260200182805461066f90614385565b80156106bc5780601f10610691576101008083540402835291602001916106bc565b820191906000526020600020905b81548152906001019060200180831161069f57829003601f168201915b5093979650505050505050565b60006001600160e01b031982166380ac58cd60e01b14806106fa57506001600160e01b03198216635b5e139f60e01b145b8061071557506001600160e01b0319821663780e9d6360e01b145b8061073057506301ffc9a760e01b6001600160e01b03198316145b92915050565b61073f816114b2565b50565b60606001805461075190614385565b80601f016020809104026020016040519081016040528092919081815260200182805461077d90614385565b80156107ca5780601f1061079f576101008083540402835291602001916107ca565b820191906000526020600020905b8154815290600101906020018083116107ad57829003601f168201915b5050505050905090565b60006107e1826000541190565b6108485760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061086f82610f6c565b9050806001600160a01b0316836001600160a01b031614156108de5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b606482015260840161083f565b336001600160a01b03821614806108fa57506108fa81336105c2565b61096c5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000606482015260840161083f565b6109778383836116b5565b505050565b606060006017601861098d85611711565b866040516020016109a19493929190613dae565b6040516020818303038152906040529050806040516020016109c39190612de7565b60408051808303601f19018152919052949350505050565b6008546001600160a01b03163314610a055760405162461bcd60e51b815260040161083f90614150565b8051610a1890601890602084019061274b565b5050565b610977838383611832565b6008546001600160a01b03163314610a515760405162461bcd60e51b815260040161083f90614150565b8051610a1890601a90602084019061274b565b6008546001600160a01b03163314610a8e5760405162461bcd60e51b815260040161083f90614150565b8051610a1890601990602084019061274b565b6000610aac836110d7565b8210610b055760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b606482015260840161083f565b600080549080805b83811015610bae576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215610b5f57805192505b876001600160a01b0316836001600160a01b03161415610b9b5786841415610b8d5750935061073092505050565b83610b97816143c0565b9450505b5080610ba6816143c0565b915050610b0d565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b606482015260840161083f565b60096020528160005260406000208181548110610c2a57600080fd5b906000526020600020906002020160009150915050806000018054610c4e90614385565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7a90614385565b8015610cc75780601f10610c9c57610100808354040283529160200191610cc7565b820191906000526020600020905b815481529060010190602001808311610caa57829003601f168201915b505050505090806001018054610cdc90614385565b80601f0160208091040260200160405190810160405280929190818152602001828054610d0890614385565b8015610d555780601f10610d2a57610100808354040283529160200191610d55565b820191906000526020600020905b815481529060010190602001808311610d3857829003601f168201915b5050505050905082565b6008546001600160a01b03163314610d895760405162461bcd60e51b815260040161083f90614150565b60005b815181101561097757600960008481526020019081526020016000206040518060400160405280848481518110610dd357634e487b7160e01b600052603260045260246000fd5b6020026020010151600001518152602001848481518110610e0457634e487b7160e01b600052603260045260246000fd5b602090810291909101810151810151909152825460018101845560009384529281902082518051939460020290910192610e41928492019061274b565b506020828101518051610e5a926001850192019061274b565b5050508080610e68906143c0565b915050610d8c565b6008546001600160a01b03163314610e9a5760405162461bcd60e51b815260040161083f90614150565b604051600090339047908381818185875af1925050503d8060008114610edc576040519150601f19603f3d011682016040523d82523d6000602084013e610ee1565b606091505b505090508061073f57600080fd5b61097783838360405180602001604052806000815250611272565b600080548210610f685760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b606482015260840161083f565b5090565b6000610f7782611bb8565b5192915050565b60608060005b60068160ff1610156110ae576000610fb5610fb08660ff8516610fa886600161425f565b60ff16611d61565b611e59565b905082600960008460ff1681526020019081526020016000208260ff1681548110610ff057634e487b7160e01b600052603260045260246000fd5b9060005260206000209060020201600101600960008560ff1681526020019081526020016000208360ff168154811061103957634e487b7160e01b600052603260045260246000fd5b906000526020600020906002020160000160405160200161105c93929190612d7a565b60405160208183030381529060405292508160ff1660051461109b57826040516020016110899190612d55565b60405160208183030381529060405292505b50806110a6816143db565b915050610f84565b50806040516020016110c09190613f18565b604051602081830303815290604052915050919050565b60006001600160a01b0382166111435760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b606482015260840161083f565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6008546001600160a01b031633146111925760405162461bcd60e51b815260040161083f90614150565b61119c6000611f41565b565b60606002805461075190614385565b6001600160a01b0382163314156112065760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c6572000000000000604482015260640161083f565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61127d848484611832565b61128984848484611f93565b6112a55760405162461bcd60e51b815260040161083f90614185565b50505050565b60606112b8826000541190565b6112c157600080fd5b60006112cc83610625565b905060006040518060c00160405280608c81526020016144a8608c91399050600061131d6112f986611711565b6040516020016113099190612d0a565b6040516020818303038152906040526120a0565b90506000611335846040516020016113099190612d0a565b905061137561134387611711565b84601a858560196113538d611711565b8b61135d8d610f7e565b60405160200161130999989796959493929190613f91565b6040516020016113859190613f4c565b604051602081830303815290604052945050505050919050565b6008546001600160a01b031633146113c95760405162461bcd60e51b815260040161083f90614150565b8051610a1890601790602084019061274b565b6008546001600160a01b031633146114065760405162461bcd60e51b815260040161083f90614150565b6001600160a01b03811661146b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161083f565b61073f81611f41565b6008546001600160a01b0316331461149e5760405162461bcd60e51b815260040161083f90614150565b6010805460ff19811660ff90911615179055565b60105460ff161515600114806114d257506008546001600160a01b031633145b6115115760405162461bcd60e51b815260206004820152601060248201526f4d696e74696e67206e6f74206c69766560801b604482015260640161083f565b600054600d54811061152257600080fd5b333b1561152e57600080fd5b336000908152600c602052604090205460ff1615156001141561158c5760405162461bcd60e51b81526020600482015260166024820152751059191c995cdcc8185b1c9958591e481b5a5b9d195960521b604482015260640161083f565b8160ff16600f5461159d9190614298565b3410156115e45760405162461bcd60e51b8152602060048201526015602482015274125b9cdd59999a58da595b9d08115512081cd95b9d605a1b604482015260640161083f565b60005b8260ff168160ff16101561168d57600061160460ff831684614247565b905061161281336000612215565b6000828152600b602090815260409091208251611635939192919091019061274b565b506001600a600b600084815260200190815260200160002060405161165a9190613da2565b908152604051908190036020019020805491151560ff199092169190911790555080611685816143db565b9150506115e7565b50336000818152600c60205260409020805460ff19166001179055610a189060ff841661235e565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6060816117355750506040805180820190915260018152600360fc1b602082015290565b8160005b811561175f5780611749816143c0565b91506117589050600a83614284565b9150611739565b6000816001600160401b0381111561178757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156117b1576020820181803683370190505b5090505b841561182a576117c6600183614308565b91506117d3600a866143fb565b6117de906030614247565b60f81b81838151811061180157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611823600a86614284565b94506117b5565b949350505050565b600061183d82611bb8565b80519091506000906001600160a01b0316336001600160a01b03161480611874575033611869846107d4565b6001600160a01b0316145b806118865750815161188690336105c2565b9050806118f05760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161083f565b846001600160a01b031682600001516001600160a01b0316146119645760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b606482015260840161083f565b6001600160a01b0384166119c85760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161083f565b6119d860008484600001516116b5565b6001600160a01b0385166000908152600460205260408120805460019290611a0a9084906001600160801b03166142e0565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092611a5691859116614208565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055611add846001614247565b6000818152600360205260409020549091506001600160a01b0316611b6e57611b07816000541190565b15611b6e5760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6040805180820190915260008082526020820152611bd7826000541190565b611c365760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b606482015260840161083f565b60007f00000000000000000000000000000000000000000000000000000000000000028310611c9757611c897f000000000000000000000000000000000000000000000000000000000000000284614308565b611c94906001614247565b90505b825b818110611d00576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215611ced57949350505050565b5080611cf88161436e565b915050611c99565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b606482015260840161083f565b6060836000611d708585614308565b6001600160401b03811115611d9557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611dbf576020820181803683370190505b509050845b84811015611e4d57828181518110611dec57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191682611e068884614308565b81518110611e2457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535080611e45816143c0565b915050611dc4565b509150505b9392505050565b60008181805b82518160ff161015611f39576030838260ff1681518110611e9057634e487b7160e01b600052603260045260246000fd5b016020015160f81c10801590611ed157506039838260ff1681518110611ec657634e487b7160e01b600052603260045260246000fd5b016020015160f81c11155b15611f2757611ee1600a836142b7565b91506030838260ff1681518110611f0857634e487b7160e01b600052603260045260246000fd5b0160200151611f1a919060f81c61431f565b611f24908361425f565b91505b80611f31816143db565b915050611e5f565b509392505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b1561209557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611fd79033908990889088906004016140d2565b602060405180830381600087803b158015611ff157600080fd5b505af1925050508015612021575060408051601f3d908101601f1916820190925261201e91810190612a73565b60015b61207b573d80801561204f576040519150601f19603f3d011682016040523d82523d6000602084013e612054565b606091505b5080516120735760405162461bcd60e51b815260040161083f90614185565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061182a565b506001949350505050565b60608151600014156120c057505060408051602081019091526000815290565b600060405180606001604052806040815260200161446860409139905060006003845160026120ef9190614247565b6120f99190614284565b612104906004614298565b90506000612113826020614247565b6001600160401b0381111561213857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612162576020820181803683370190505b509050818152600183018586518101602084015b818310156121d05760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b93820193909352600401612176565b6003895106600181146121ea57600281146121fb57612207565b613d3d60f01b600119830152612207565b603d60f81b6000198301525b509398975050505050505050565b6060600b821061222457600080fd5b604080516020810190915260008082525b60068160ff16101561231857600e8054906000612251836143c0565b9091555050600e54604080514260208201524491810191909152606080820189905287901b6bffffffffffffffffffffffff191660808201526094810186905260b48101919091526000906127109060d4016040516020818303038152906040528051906020012060001c6122c691906143fb565b9050826122e26122da8361ffff1685612378565b60ff16611711565b6040516020016122f3929190612d26565b6040516020818303038152906040529250508080612310906143db565b915050612235565b50600a816040516123299190612d0a565b9081526040519081900360200190205460ff161561182a576123568585612351866001614247565b612215565b915050611e52565b610a18828260405180602001604052806000815250612471565b600080805b60118460ff16600681106123a157634e487b7160e01b600052603260045260246000fd5b015460ff8216101561246b57600060118560ff16600681106123d357634e487b7160e01b600052603260045260246000fd5b018260ff16815481106123f657634e487b7160e01b600052603260045260246000fd5b90600052602060002090601091828204019190066002029054906101000a900461ffff1690508261ffff16861015801561243c5750612435818461422a565b61ffff1686105b1561244b575091506107309050565b612455818461422a565b9250508080612463906143db565b91505061237d565b50600080fd5b6000546001600160a01b0384166124d45760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161083f565b6124df816000541190565b1561252c5760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e746564000000604482015260640161083f565b7f00000000000000000000000000000000000000000000000000000000000000028311156125a75760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b606482015260840161083f565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190612603908790614208565b6001600160801b031681526020018583602001516126219190614208565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b029790961696909617909455845180860186529182526001600160401b034281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b858110156127405760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46127046000888488611f93565b6127205760405162461bcd60e51b815260040161083f90614185565b8161272a816143c0565b9250508080612738906143c0565b9150506126b7565b506000819055611bb0565b82805461275790614385565b90600052602060002090601f01602090048101928261277957600085556127bf565b82601f1061279257805160ff19168380011785556127bf565b828001600101855582156127bf579182015b828111156127bf5782518255916020019190600101906127a4565b50610f689291505b80821115610f6857600081556001016127c7565b60006001600160401b038311156127f4576127f461443b565b612807601f8401601f19166020016141d8565b905082815283838301111561281b57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461284957600080fd5b919050565b600082601f83011261285e578081fd5b611e52838335602085016127db565b60006040828403121561287e578081fd5b604051604081016001600160401b0382821081831117156128a1576128a161443b565b8160405282935084359150808211156128b957600080fd5b6128c58683870161284e565b835260208501359150808211156128db57600080fd5b506128e88582860161284e565b6020830152505092915050565b600060208284031215612906578081fd5b611e5282612832565b60008060408385031215612921578081fd5b61292a83612832565b915061293860208401612832565b90509250929050565b600080600060608486031215612955578081fd5b61295e84612832565b925061296c60208501612832565b9150604084013590509250925092565b60008060008060808587031215612991578081fd5b61299a85612832565b93506129a860208601612832565b92506040850135915060608501356001600160401b038111156129c9578182fd5b8501601f810187136129d9578182fd5b6129e8878235602084016127db565b91505092959194509250565b60008060408385031215612a06578182fd5b612a0f83612832565b915060208301358015158114612a23578182fd5b809150509250929050565b60008060408385031215612a40578182fd5b612a4983612832565b946020939093013593505050565b600060208284031215612a68578081fd5b8135611e5281614451565b600060208284031215612a84578081fd5b8151611e5281614451565b600060208284031215612aa0578081fd5b81356001600160401b03811115612ab5578182fd5b61182a8482850161284e565b60008060408385031215612ad3578182fd5b82356001600160401b03811115612ae8578283fd5b612af48582860161284e565b95602094909401359450505050565b600060208284031215612b14578081fd5b5035919050565b60008060408385031215612b2d578182fd5b823591506020808401356001600160401b0380821115612b4b578384fd5b818601915086601f830112612b5e578384fd5b813581811115612b7057612b7061443b565b8060051b612b7f8582016141d8565b8281528581019085870183870188018c1015612b99578889fd5b8893505b84841015612bd657803586811115612bb357898afd5b612bc18d8a838b010161286d565b84525060019390930192918701918701612b9d565b50809750505050505050509250929050565b60008060408385031215612bfa578182fd5b50508035926020909101359150565b600060208284031215612c1a578081fd5b813560ff81168114611e52578182fd5b60008151808452612c42816020860160208601614342565b601f01601f19169290920160200192915050565b60008151612c68818560208601614342565b9290920192915050565b8054600090600181811c9080831680612c8c57607f831692505b6020808410821415612cac57634e487b7160e01b86526022600452602486fd5b818015612cc05760018114612cd157612cfe565b60ff19861689528489019650612cfe565b60008881526020902060005b86811015612cf65781548b820152908501908301612cdd565b505084890196505b50505050505092915050565b60008251612d1c818460208701614342565b9190910192915050565b60008351612d38818460208801614342565b835190830190612d4c818360208801614342565b01949350505050565b60008251612d67818460208701614342565b600b60fa1b920191825250600101919050565b60008451612d8c818460208901614342565b6e3d913a3930b4ba2fba3cb832911d1160891b908301908152612db2600f820186612c72565b6a1116113b30b63ab2911d1160a91b81529050612dd2600b820185612c72565b61227d60f01b81526002019695505050505050565b60008251612df9818460208701614342565b7f786f2533443125324373642533443231253241746f6b656e49642532437043739201918252507f253344253542302532433330253243383025324331323025324331383025324360208201527f323235253243323730253243333030253544253243734373253344253542302560408201527f324333302532433132302532433138302532433232352532433237302532433360608201527f30302532433333302535442532436e4d562533442535422e352532433125324360808201527f32253243332535442532436553732533442535422e32362532432e333325324360a08201527f2e3425354425324374562533442535423130253243323525324337302535442560c08201527f3243654c7325334425354230253243313525354425334266756e6374696f6e2560e08201527f3230736574757025323825323925374263726561746543616e766173253238356101008201527f3030253243353030253239253243636f6c6f724d6f64652532384853422532436101208201527f3336302532433130302532433130302532392532437374726f6b6543617025326101408201527f38524f554e442532392532436e6f6973655365656425323873642532392532436101608201527f72616e646f6d53656564253238736425323925324370432533447061727365496101808201527f6e74253238686173682e737562737472696e67253238302532433125323925326101a08201527f3925324373432533447061727365496e74253238686173682e737562737472696101c08201527f6e6725323831253243322532392532392532436e4d2533447061727365496e746101e08201527f253238686173682e737562737472696e672532383225324333253239253239256102008201527f324365532533447061727365496e74253238686173682e737562737472696e676102208201527f2532383325324334253239253239253243742533447061727365496e742532386102408201527f686173682e737562737472696e672532383425324335253239253239253243656102608201527f4c2533447061727365496e74253238686173682e737562737472696e672532386102808201527f35253243362532392532392532433333302533442533447343732535427343256102a08201527f35442533466b25334470437325354270432535442533416b25334473437325356102c08201527f427343253544253243775025334472616e646f6d2532383525324331302532396102e08201527f253243685025334472616e646f6d25323835253243313025323925374466756e6103008201527f6374696f6e253230647261772532382532392537426261636b67726f756e64256103208201527f3238323535253239253342666f722532386c65742532307325334432352533426103408201527f73253343353030253342732532422533443530253239666f722532386c6574256103608201527f32306525334432352533426525334335303025334265253242253344353025326103808201527f396e6f5374726f6b6525323825323925324366253344734373253542734325356103a08201527f4425324333333025334425334466253346724325334472616e646f6d253238336103c08201527f363025323925334172432533446b25324366696c6c253238724325324372616e6103e08201527f646f6d2532383235253239253243313030253239253243632533446e657725326104008201527f304331253243707573682532382532392532437472616e736c617465253238736104208201527f253243652532392532437363616c652532382e31342532432e313425323925326104408201527f43632e73253238253239253243706f7025323825323925334263312533446e656104608201527f77253230433225323870437325354270432535442532433430253243313030256104808201527f324330253239253243707573682532382532392532437472616e736c617465256104a08201527f3238323530253243353030253239253243726f74617465253238332e313425326104c08201527f392532437363616c652532382e3535253243312e323525323925324363312e736104e08201527f253238253239253243706f7025323825323925324370757368253238253239256105008201527f32437472616e736c61746525323832353025324332353025323925324363312e6105208201527f73253238253239253243706f702532382532392532436e6f5374726f6b6525326105408201527f3825323925324365312533446e657725323043322532383025324330253243316105608201527f303025324331253239253243707573682532382532392532437472616e736c616105808201527f74652532383230302532433230302532392532437363616c652532382e3333256105a08201527f323925324365312e73253238253239253243706f7025323825323925324365326105c08201527f2533446e657725323043322532383025324330253243313030253243312532396105e08201527f25324370757368253238253239253243707573682532382532392532437472616106008201527f6e736c6174652532383330302532433230302532392532437363616c652532386106208201527f6553732535426553253544253239253243726f746174652532385049253239256106408201527f324365322e73253238253239253243706f7025323825323925324370312533446106608201527f6e657725323043322532386b25324331303025324331303025324331253239256106808201527f3243707573682532382532392532437472616e736c61746525323832303025326106a08201527f43323030253242654c73253542654c2535442532392532437363616c652532386106c08201527f2e3125323925324370312e73253238253239253243706f7025323825323925326106e08201527f4370322533446e657725323043322532386b25324331303025324331303025326107008201527f4331253239253243707573682532382532392532437472616e736c61746525326107208201527f383330302532433230302d654c73253542654c2535442532392532437363616c6107408201527f652532382e31253239253243726f74617465253238504925323925324370322e6107608201527f73253238253239253243706f70253238253239253342666f722532386c6574256107808201527f32307325334432303025334273253343253344333030253342732532422532426107a08201527f253239736174732533446d61702532386e6f697365253238786f2532392532436107c08201527f3025324331253243333025324331303025323925324366696c6c2532386b25326107e08201527f43736174732532433935253239253243722533446d61702532386e6f697365256108008201527f3238786f25323925324330253243312532432e35332532432e373725323925326108208201527f43656c6c697073652532387325324335303025324172253243323825323925326108408201527f43786f2532422533442e3031352533426e6f4c6f6f70253238253239253744636108608201527f6c617373253230433125374273253238253239253742626567696e53686170656108808201527f253238253239253342666f722532386c657425323073253344302533427325336108a08201527f4354574f5f5049253342732532422533442e31362532392537426c65742532306108c08201527f652533446d6170253238636f73253238732532392532432d31253243312532436108e08201527f302532436e4d562535426e4d253544253239253243742533446d6170253238736109008201527f696e253238732532392532432d3125324331253243302532436e4d562535426e6109208201527f4d2535442532392532436e2533446d61702532386e6f697365253238652532436109408201527f74253239253243302532433125324331303025324332303025323925324361256109608201527f33446e253241636f7325323873253239253243702533446e25324173696e25326109808201527f38732532392533427665727465782532386125324370253239253243652532426109a08201527f2533442e303034253744656e645368617065253238253239253744253744636c6109c08201527f6173732532304332253742636f6e7374727563746f72253238732532436525326109e08201527f43742532436e253239253742746869732e6825334473253243746869732e7a25610a008201527f334465253243746869732e6c25334474253243746869732e622533446e253744610a208201527f73253238253239253742626567696e53686170652532382532392532436e6f46610a408201527f696c6c253238253239253342666f722532386c65742532307325334430253342610a608201527f7325334354574f5f5049253342732532422533442e3034352532392537426c65610a808201527f74253230652533446d617025323873696e253238732532392532432d31253243610aa08201527f31253243302532436e4d562535426e4d2535442532392532436e2533446d6170610ac08201527f253238636f73253238732532392532432d3125324331253243302532436e4d56610ae08201527f2535426e4d253544253239253243612533446d61702532386e6f697365253238610b008201527f6e25324365253239253243302532433125324331303025324332303025323925610b208201527f32437025334461253241636f73253238732532392532436f2533446125324173610b408201527f696e2532387325323925334230253344253344746869732e6225323625323625610b608201527f32387374726f6b65253238746869732e68253243746869732e7a253243746869610b808201527f732e6c2d32352532392532437374726f6b655765696768742532387456253542610ba08201527f74253544253239253239253243766572746578253238702532436f2532392532610bc08201527f43656e6453686170652532382532392532437075736825323825323925324373610be08201527f74726f6b65253238746869732e68253243746869732e7a253243746869732e6c610c008201527f2532392532437374726f6b65576569676874253238362532392532436c696e65610c208201527f25323870253242372e352532436f253242313025324335303025324677502532610c408201527f433530302532466850253239253243706f702532382532392532436e25324225610c608201527f33442e3034253243652532422533442e303031253744656e6453686170652532610c808201527f3825323925374425374425334325324673637269707425334525334325324662610ca0820152726f647925334525334325324668746d6c25334560681b610cc0820152610cd301919050565b6000611e528284612c72565b7f646174613a746578742f68746d6c2c25334368746d6c2533452533436865616481527f253345253343736372697074253230737263253344253232000000000000000060208201526000613e066038830187612c72565b7412991912991834b73a32b3b934ba3c9299a212991960591b8152613e2e6015820187612c72565b90507f25323225323063726f73736f726967696e253344253232616e6f6e796d6f757381527f253232253345253343253246736372697074253345253343253246686561642560208201527f3345253343626f6479253345253343736372697074253345766172253230746f6040820152671ad95b9259094cd160c21b60608201528451613ec3816068840160208901614342565b721299a13b30b91299183430b9b41299a212991960691b606892909101918201528351613ef781607b840160208801614342565b651299191299a160d11b607b92909101918201526081019695505050505050565b605b60f81b815260008251613f34816001850160208701614342565b605d60f81b6001939091019283015250600201919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613f8481601d850160208701614342565b91909101601d0192915050565b737b226e616d65223a202247656e4672656e73202360601b81528951600090613fc1816014850160208f01614342565b8a5190830190613fd8816014840160208f01614342565b6f1132bc3a32b93730b62fbab936111d1160811b60149290910191820152614003602482018b612c72565b90508851614015818360208d01614342565b6226743d60e81b91019081528751614034816003840160208c01614342565b6a11161134b6b0b3b2911d1160a91b6003929091019182015261405a600e820188612c72565b9050855161406c818360208a01614342565b6140c16140b46140ae61409361408d8587016226743d60e81b815260030190565b8a612c56565b6e11161130ba3a3934b13aba32b9911d60891b8152600f0190565b87612c56565b607d60f81b815260010190565b9d9c50505050505050505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061410590830184612c2a565b9695505050505050565b602081526000611e526020830184612c2a565b6040815260006141356040830185612c2a565b82810360208401526141478185612c2a565b95945050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b604051601f8201601f191681016001600160401b03811182821017156142005761420061443b565b604052919050565b60006001600160801b03808316818516808303821115612d4c57612d4c61440f565b600061ffff808316818516808303821115612d4c57612d4c61440f565b6000821982111561425a5761425a61440f565b500190565b600060ff821660ff84168060ff0382111561427c5761427c61440f565b019392505050565b60008261429357614293614425565b500490565b60008160001904831182151516156142b2576142b261440f565b500290565b600060ff821660ff84168160ff04811182151516156142d8576142d861440f565b029392505050565b60006001600160801b03838116908316818110156143005761430061440f565b039392505050565b60008282101561431a5761431a61440f565b500390565b600060ff821660ff8416808210156143395761433961440f565b90039392505050565b60005b8381101561435d578181015183820152602001614345565b838111156112a55750506000910152565b60008161437d5761437d61440f565b506000190190565b600181811c9082168061439957607f821691505b602082108114156143ba57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156143d4576143d461440f565b5060010190565b600060ff821660ff8114156143f2576143f261440f565b60010192915050565b60008261440a5761440a614425565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461073f57600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f222c20226465736372697074696f6e223a20223434342047656e4672656e7320746f206b65657020796f7520636f6d70616e792e204d65746164617461202620696d61676573206d6972726f726564206f6e20636861696e207065726d616e656e746c792e20596f75722047656e4672656e2077696c6c206e65766572206c6561766520796f75203c33222ca2646970667358221220769a32c603566304b5e3341177b9d5fbe12fb1a168d52b6592dcb78cecdcd5d064736f6c63430008040033
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.