ERC-721
NFT
Overview
Max Total Supply
3,561 MEGA
Holders
595
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MegaShapeShifterz
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "../utils/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; // /$$ /$$ // | $$$ /$$$ // | $$$$ /$$$$ /$$$$$$ /$$$$$$ /$$$$$$ // | $$ $$/$$ $$ /$$__ $$ /$$__ $$ |____ $$ // | $$ $$$| $$| $$$$$$$$| $$ \ $$ /$$$$$$$ // | $$\ $ | $$| $$_____/| $$ | $$ /$$__ $$ // | $$ \/ | $$| $$$$$$$| $$$$$$$| $$$$$$$ // |__/ |__/ \_______/ \____ $$ \_______/ // /$$ \ $$ // | $$$$$$/ // \______/ // /$$$$$$ /$$ // /$$__ $$| $$ // | $$ \__/| $$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$ // | $$$$$$ | $$__ $$ |____ $$ /$$__ $$ /$$__ $$ // \____ $$| $$ \ $$ /$$$$$$$| $$ \ $$| $$$$$$$$ // /$$ \ $$| $$ | $$ /$$__ $$| $$ | $$| $$_____/ // | $$$$$$/| $$ | $$| $$$$$$$| $$$$$$$/| $$$$$$$ // \______/ |__/ |__/ \_______/| $$____/ \_______/ // | $$ // | $$ // |__/ // /$$$$$$ /$$ /$$ /$$$$$$ /$$ // /$$__ $$| $$ |__/ /$$__ $$ | $$ // | $$ \__/| $$$$$$$ /$$| $$ \__//$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$$ // | $$$$$$ | $$__ $$| $$| $$$$ |_ $$_/ /$$__ $$ /$$__ $$ /$$_____/ // \____ $$| $$ \ $$| $$| $$_/ | $$ | $$$$$$$$| $$ \__/| $$$$$$ // /$$ \ $$| $$ | $$| $$| $$ | $$ /$$| $$_____/| $$ \____ $$ // | $$$$$$/| $$ | $$| $$| $$ | $$$$/| $$$$$$$| $$ /$$$$$$$/ // \______/ |__/ |__/|__/|__/ \___/ \_______/|__/ |_______/ interface ILoomi { function claimLoomiTax(address user, uint256 amount) external; } interface IStaking { function ownerOf(address contractAddress, uint256 tokenId) external view returns (address); } interface IShapes { function validateAndBurn(uint256[] memory tokenIds, address owner) external; } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract MegaShapeShifterz is Context, ERC721Enumerable, Ownable, ReentrancyGuard { using SafeMath for uint256; using Strings for uint256; address public signer; bool public saleIsActive; bool public isPaused; bool public metadataFinalised; bool public creepzRestriction; string public _megaBaseURI; // Royalty info address public royaltyAddress; uint256 public ROYALTY_SIZE = 750; uint256 public ROYALTY_DENOMINATOR = 10000; mapping(uint256 => address) private _royaltyReceivers; // Loomi contract ILoomi public Loomi; IStaking public Staking; IShapes public Shapes; IERC721 public Creepz; enum ShapeShifter { Donald, Cuban, Paris, Elon, Snoop, Gary, Banks } mapping (uint256 => ShapeShifter) public tokenTypes; mapping (uint256 => string) public tokenTypeToUri; mapping (address => uint256) public userToUsedNonce; event TokensMinted( address indexed mintedBy, uint256 indexed tokenId, uint256 tokenType ); event TaxClaimed( address indexed claimedBy, uint256 indexed amount, uint256 nonce ); constructor(address _royaltyAddress, address _loomi, address _staking, address _creepz, address _shapes, address _signer, string memory _baseUri) ERC721("MegaShapeShifterz", "MEGA") { royaltyAddress = _royaltyAddress; Loomi = ILoomi(_loomi); Staking = IStaking(_staking); Creepz = IERC721(_creepz); Shapes = IShapes(_shapes); signer = _signer; _megaBaseURI = _baseUri; isPaused = true; creepzRestriction = true; } modifier whenNotPaused { require(!isPaused, "Tax collection paused!"); _; } /* @dev Takes SS ids as an input and burns them into a single Mega */ function mutate(uint256[] memory shapeIds, uint256 shapeType, bytes calldata signature) public nonReentrant { require(shapeType <= 6, "Unknown shape type"); if (_msgSender() != owner()) require(saleIsActive, "The mint has not started yet"); require(_validateMutateSignature( signature, shapeIds, shapeType ), "Invalid data provided"); Shapes.validateAndBurn(shapeIds, _msgSender()); uint256 tokenId = totalSupply(); _safeMint(_msgSender(), tokenId); tokenTypes[tokenId] = ShapeShifter(shapeType); emit TokensMinted(_msgSender(), tokenId, shapeType); } /* @dev Allows SS owner to claim accumulated tax */ function claimTax(uint256 amount, uint256 nonce, uint256 creepzId, bytes calldata signature) public whenNotPaused nonReentrant { require(amount != 0, "Cannot claim 0 $loomi"); require(userToUsedNonce[_msgSender()] < nonce, "This nonce has been already used"); require(_validateCreepzOwner(creepzId, _msgSender()), "!Creepz owner"); require(_validateClaimSignature( signature, amount, nonce ), "Invalid data provided"); Loomi.claimLoomiTax(_msgSender(), amount); userToUsedNonce[_msgSender()] = nonce; emit TaxClaimed(_msgSender(), amount, nonce); } /* @dev Validates data passed into Mutate function */ function _validateMutateSignature( bytes calldata signature, uint256[] memory shapeIds, uint256 shapeType ) internal view returns (bool) { bytes32 dataHash = keccak256(abi.encodePacked(shapeIds, shapeType)); bytes32 message = ECDSA.toEthSignedMessageHash(dataHash); address receivedAddress = ECDSA.recover(message, signature); return (receivedAddress != address(0) && receivedAddress == signer); } /* @dev Validates data passed into Claim function */ function _validateClaimSignature( bytes calldata signature, uint256 amount, uint256 nonce ) internal view returns (bool) { bytes32 dataHash = keccak256(abi.encodePacked(amount, nonce, _msgSender())); bytes32 message = ECDSA.toEthSignedMessageHash(dataHash); address receivedAddress = ECDSA.recover(message, signature); return (receivedAddress != address(0) && receivedAddress == signer); } /* @dev Checks whether msg.sender ownes a Genesis Creepz or not */ function _validateCreepzOwner(uint256 tokenId, address user) internal view returns (bool) { if (!creepzRestriction) return true; if (Staking.ownerOf(address(Creepz), tokenId) == user) { return true; } return Creepz.ownerOf(tokenId) == user; } /* @dev Royalty info */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount) { uint256 amount = _salePrice.mul(ROYALTY_SIZE).div(ROYALTY_DENOMINATOR); address royaltyReceiver = _royaltyReceivers[_tokenId] != address(0) ? _royaltyReceivers[_tokenId] : royaltyAddress; return (royaltyReceiver, amount); } /* @dev Token URI, returns string based on token type */ function tokenURI(uint256 tokenId) external view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); return string(abi.encodePacked(_megaBaseURI, tokenId.toString())); } /* @dev ADMIN */ function updateCreepzRestriction(bool _restrict) public onlyOwner { creepzRestriction = _restrict; } function addRoyaltyReceiverForTokenId(address receiver, uint256 tokenId) public onlyOwner { _royaltyReceivers[tokenId] = receiver; } function updateSaleStatus(bool status) public onlyOwner { saleIsActive = status; } function setBaseURI(string memory newBaseURI) public onlyOwner { require(!metadataFinalised, "Metadata already finalised"); _megaBaseURI = newBaseURI; } function finalizeMetadata() public onlyOwner { require(!metadataFinalised, "Metadata already finalised"); metadataFinalised = true; } function unpdateSigner(address _signer) public onlyOwner { signer = _signer; } function pauseTaxClaim(bool _pause) public onlyOwner { isPaused = _pause; } function withdraw() external onlyOwner { uint256 balance = address(this).balance; payable(owner()).transfer(balance); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "./ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account but rips out the core of the gas-wasting processing that comes from OpenZeppelin. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _owners.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < _owners.length, "ERC721Enumerable: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256 tokenId) { require(index < balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); uint count; for(uint i; i < _owners.length; i++){ if(owner == _owners[i]){ if(count == index) return i; else count++; } } revert("ERC721Enumerable: owner index out of bounds"); } }
// 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 (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/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; 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/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; library Address { function isContract(address account) internal view returns (bool) { uint size; assembly { size := extcodesize(account) } return size > 0; } } abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; string private _name; string private _symbol; // Mapping from token ID to owner address address[] internal _owners; mapping(uint256 => address) private _tokenApprovals; mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint) { require(owner != address(0), "ERC721: balance query for the zero address"); uint count; for( uint i; i < _owners.length; ++i ){ if( owner == _owners[i] ) ++count; } return count; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require( owner != address(0), "ERC721: owner query for nonexistent token" ); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require( _exists(tokenId), "ERC721: approved query for nonexistent token" ); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: 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 virtual override { //solhint-disable-next-line max-line-length require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved" ); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved" ); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return tokenId < _owners.length && _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require( _exists(tokenId), "ERC721: operator query for nonexistent token" ); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _owners.push(to); emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _owners[tokenId] = address(0); emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require( ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own" ); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received( _msgSender(), from, tokenId, _data ) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert( "ERC721: transfer to non ERC721Receiver implementer" ); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.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/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/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/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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_royaltyAddress","type":"address"},{"internalType":"address","name":"_loomi","type":"address"},{"internalType":"address","name":"_staking","type":"address"},{"internalType":"address","name":"_creepz","type":"address"},{"internalType":"address","name":"_shapes","type":"address"},{"internalType":"address","name":"_signer","type":"address"},{"internalType":"string","name":"_baseUri","type":"string"}],"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":"claimedBy","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"TaxClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"mintedBy","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenType","type":"uint256"}],"name":"TokensMinted","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":"Creepz","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Loomi","outputs":[{"internalType":"contract ILoomi","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Shapes","outputs":[{"internalType":"contract IShapes","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Staking","outputs":[{"internalType":"contract IStaking","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_megaBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"addRoyaltyReceiverForTokenId","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":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"creepzId","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"claimTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"creepzRestriction","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalizeMetadata","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":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataFinalised","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"shapeIds","type":"uint256[]"},{"internalType":"uint256","name":"shapeType","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mutate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pauseTaxClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenTypeToUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenTypes","outputs":[{"internalType":"enum MegaShapeShifterz.ShapeShifter","name":"","type":"uint8"}],"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":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"unpdateSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_restrict","type":"bool"}],"name":"updateCreepzRestriction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"updateSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userToUsedNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526102ee600a55612710600b553480156200001d57600080fd5b50604051620032d3380380620032d3833981016040819052620000409162000283565b604080518082018252601181527026b2b3b0a9b430b832a9b434b33a32b93d60791b6020808301918252835180850190945260048452634d45474160e01b9084015281519192916200009591600091620001c0565b508051620000ab906001906020840190620001c0565b505050620000c8620000c26200016a60201b60201c565b6200016e565b6001600655600980546001600160a01b03199081166001600160a01b038a811691909117909255600d80548216898416179055600e80548216888416179055601080548216878416179055600f8054821686841617905560078054909116918416919091179055805162000144906008906020840190620001c0565b50506007805462ff00ff60a81b19166201000160a81b1790555062000425945050505050565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001ce90620003d2565b90600052602060002090601f016020900481019282620001f257600085556200023d565b82601f106200020d57805160ff19168380011785556200023d565b828001600101855582156200023d579182015b828111156200023d57825182559160200191906001019062000220565b506200024b9291506200024f565b5090565b5b808211156200024b576000815560010162000250565b80516001600160a01b03811681146200027e57600080fd5b919050565b600080600080600080600060e0888a0312156200029f57600080fd5b620002aa8862000266565b96506020620002bb818a0162000266565b9650620002cb60408a0162000266565b9550620002db60608a0162000266565b9450620002eb60808a0162000266565b9350620002fb60a08a0162000266565b60c08a01519093506001600160401b03808211156200031957600080fd5b818b0191508b601f8301126200032e57600080fd5b8151818111156200034357620003436200040f565b604051601f8201601f19908116603f011681019083821181831017156200036e576200036e6200040f565b816040528281528e868487010111156200038757600080fd5b600093505b82841015620003ab57848401860151818501870152928501926200038c565b82841115620003bd5760008684830101525b80965050505050505092959891949750929550565b600181811c90821680620003e757607f821691505b602082108114156200040957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612e9e80620004356000396000f3fe608060405234801561001057600080fd5b506004361061028a5760003560e01c806370a082311161015c578063b88d4fde116100ce578063df173dba11610087578063df173dba146105cf578063e985e9c5146105d8578063eb8d244414610614578063f2fde38b14610628578063f4a560a51461063b578063f57df22e1461064357600080fd5b8063b88d4fde14610550578063c87b56dd14610563578063cd6a3ea514610576578063cf68bfb114610589578063d299eaa1146105a9578063d5651ac3146105bc57600080fd5b80639881584c116101205780639881584c146104dd578063a22cb465146104f0578063aaa0c81814610503578063ad2f852a14610516578063ae6ffdd114610529578063b187bd261461053c57600080fd5b806370a0823114610495578063715018a6146104a85780637c86bcb8146104b05780638da5cb5b146104c457806395d89b41146104d557600080fd5b80632a55205a1161020057806342842e0e116101b957806342842e0e1461042e5780634f6ccce71461044157806351ff0d8a1461045457806355f804b31461045c5780635d92cb1b1461046f5780636352211e1461048257600080fd5b80632a55205a1461038b5780632f745c59146103bd5780633053ee64146103d057806331aae949146103e357806333f6832a146103f65780633ccfd60b1461042657600080fd5b80630a088949116102525780630a0889491461032357806318160ddd14610336578063238ac9331461033e57806323b872dd14610351578063242b1dba14610364578063256a1a6b1461037757600080fd5b806301ffc9a71461028f57806306fdde03146102b7578063081812fc146102cc578063095ea7b3146102f7578063099becfb1461030c575b600080fd5b6102a261029d36600461286f565b610656565b60405190151581526020015b60405180910390f35b6102bf610681565b6040516102ae9190612b70565b6102df6102da3660046128f2565b610713565b6040516001600160a01b0390911681526020016102ae565b61030a61030536600461274d565b6107a0565b005b610315600a5481565b6040519081526020016102ae565b61030a610331366004612854565b6108b6565b600254610315565b6007546102df906001600160a01b031681565b61030a61035f366004612657565b6108fe565b61030a61037236600461292d565b61092f565b6007546102a290600160b81b900460ff1681565b61039e61039936600461290b565b610bfb565b604080516001600160a01b0390931683526020830191909152016102ae565b6103156103cb36600461274d565b610c79565b61030a6103de3660046125e4565b610d2c565b6010546102df906001600160a01b031681565b6104196104043660046128f2565b60116020526000908152604090205460ff1681565b6040516102ae9190612b48565b61030a610d78565b61030a61043c366004612657565b610df1565b61031561044f3660046128f2565b610e0c565b6102bf610e79565b61030a61046a3660046128a9565b610f07565b61030a61047d366004612779565b610f9e565b6102df6104903660046128f2565b6111e3565b6103156104a33660046125e4565b61126f565b61030a61133d565b6007546102a290600160b01b900460ff1681565b6005546001600160a01b03166102df565b6102bf611373565b600f546102df906001600160a01b031681565b61030a6104fe366004612718565b611382565b600d546102df906001600160a01b031681565b6009546102df906001600160a01b031681565b61030a610537366004612854565b611447565b6007546102a290600160a81b900460ff1681565b61030a61055e366004612698565b61148f565b6102bf6105713660046128f2565b6114c7565b61030a61058436600461274d565b611568565b6103156105973660046125e4565b60136020526000908152604090205481565b61030a6105b7366004612854565b6115c0565b6102bf6105ca3660046128f2565b611608565b610315600b5481565b6102a26105e636600461261e565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b6007546102a290600160a01b900460ff1681565b61030a6106363660046125e4565b611621565b61030a6116bc565b600e546102df906001600160a01b031681565b60006001600160e01b0319821663780e9d6360e01b148061067b575061067b82611755565b92915050565b60606000805461069090612d65565b80601f01602080910402602001604051908101604052809291908181526020018280546106bc90612d65565b80156107095780601f106106de57610100808354040283529160200191610709565b820191906000526020600020905b8154815290600101906020018083116106ec57829003601f168201915b5050505050905090565b600061071e826117a5565b6107845760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b60006107ab826111e3565b9050806001600160a01b0316836001600160a01b031614156108195760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161077b565b336001600160a01b0382161480610835575061083581336105e6565b6108a75760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161077b565b6108b183836117ef565b505050565b6005546001600160a01b031633146108e05760405162461bcd60e51b815260040161077b90612c20565b60078054911515600160a01b0260ff60a01b19909216919091179055565b610908338261185d565b6109245760405162461bcd60e51b815260040161077b90612c55565b6108b1838383611947565b600754600160a81b900460ff16156109825760405162461bcd60e51b815260206004820152601660248201527554617820636f6c6c656374696f6e207061757365642160501b604482015260640161077b565b600260065414156109d55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161077b565b600260065584610a1f5760405162461bcd60e51b815260206004820152601560248201527443616e6e6f7420636c61696d203020246c6f6f6d6960581b604482015260640161077b565b336000908152601360205260409020548411610a7d5760405162461bcd60e51b815260206004820181905260248201527f54686973206e6f6e636520686173206265656e20616c72656164792075736564604482015260640161077b565b610a878333611a9d565b610ac35760405162461bcd60e51b815260206004820152600d60248201526c10a1b932b2b83d1037bbb732b960991b604482015260640161077b565b610acf82828787611beb565b610b135760405162461bcd60e51b8152602060048201526015602482015274125b9d985b1a590819185d18481c1c9bdd9a591959605a1b604482015260640161077b565b600d546001600160a01b0316638270b0a0336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101889052604401600060405180830381600087803b158015610b6d57600080fd5b505af1158015610b81573d6000803e3d6000fd5b505050508360136000610b913390565b6001600160a01b0316815260208101919091526040016000205584336001600160a01b03167ffd973a53881c836b42e3a5af7a57f0109c950f6d42e84a54e8b825b031f5025686604051610be791815260200190565b60405180910390a350506001600655505050565b6000806000610c21600b54610c1b600a5487611d0690919063ffffffff16565b90611d19565b6000868152600c6020526040812054919250906001600160a01b0316610c52576009546001600160a01b0316610c6b565b6000868152600c60205260409020546001600160a01b03165b9350909150505b9250929050565b6000610c848361126f565b8210610ca25760405162461bcd60e51b815260040161077b90612b83565b6000805b600254811015610d135760028181548110610cc357610cc3612e11565b6000918252602090912001546001600160a01b0386811691161415610d015783821415610cf357915061067b9050565b81610cfd81612da0565b9250505b80610d0b81612da0565b915050610ca6565b5060405162461bcd60e51b815260040161077b90612b83565b6005546001600160a01b03163314610d565760405162461bcd60e51b815260040161077b90612c20565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314610da25760405162461bcd60e51b815260040161077b90612c20565b47610db56005546001600160a01b031690565b6001600160a01b03166108fc829081150290604051600060405180830381858888f19350505050158015610ded573d6000803e3d6000fd5b5050565b6108b18383836040518060200160405280600081525061148f565b6002546000908210610e755760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161077b565b5090565b60088054610e8690612d65565b80601f0160208091040260200160405190810160405280929190818152602001828054610eb290612d65565b8015610eff5780601f10610ed457610100808354040283529160200191610eff565b820191906000526020600020905b815481529060010190602001808311610ee257829003601f168201915b505050505081565b6005546001600160a01b03163314610f315760405162461bcd60e51b815260040161077b90612c20565b600754600160b01b900460ff1615610f8b5760405162461bcd60e51b815260206004820152601a60248201527f4d6574616461746120616c72656164792066696e616c69736564000000000000604482015260640161077b565b8051610ded9060089060208401906124a5565b60026006541415610ff15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161077b565b6002600690815583111561103c5760405162461bcd60e51b8152602060048201526012602482015271556e6b6e6f776e207368617065207479706560701b604482015260640161077b565b6005546001600160a01b031633146110a757600754600160a01b900460ff166110a75760405162461bcd60e51b815260206004820152601c60248201527f546865206d696e7420686173206e6f7420737461727465642079657400000000604482015260640161077b565b6110b382828686611d25565b6110f75760405162461bcd60e51b8152602060048201526015602482015274125b9d985b1a590819185d18481c1c9bdd9a591959605a1b604482015260640161077b565b600f546001600160a01b031663ae0601d985336040518363ffffffff1660e01b8152600401611127929190612af4565b600060405180830381600087803b15801561114157600080fd5b505af1158015611155573d6000803e3d6000fd5b50505050600061116460025490565b90506111703382611d3b565b83600681111561118257611182612dfb565b6000828152601160205260409020805460ff191660018360068111156111aa576111aa612dfb565b0217905550604051848152819033907f2e8ac5177a616f2aec08c3048f5021e4e9743ece034e8d83ba5caf76688bb47590602001610be7565b600080600283815481106111f9576111f9612e11565b6000918252602090912001546001600160a01b031690508061067b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161077b565b60006001600160a01b0382166112da5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161077b565b6000805b60025481101561133657600281815481106112fb576112fb612e11565b6000918252602090912001546001600160a01b03858116911614156113265761132382612da0565b91505b61132f81612da0565b90506112de565b5092915050565b6005546001600160a01b031633146113675760405162461bcd60e51b815260040161077b90612c20565b6113716000611d55565b565b60606001805461069090612d65565b6001600160a01b0382163314156113db5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161077b565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6005546001600160a01b031633146114715760405162461bcd60e51b815260040161077b90612c20565b60078054911515600160a81b0260ff60a81b19909216919091179055565b611499338361185d565b6114b55760405162461bcd60e51b815260040161077b90612c55565b6114c184848484611da7565b50505050565b60606114d2826117a5565b6115365760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161077b565b600861154183611dda565b604051602001611552929190612a10565b6040516020818303038152906040529050919050565b6005546001600160a01b031633146115925760405162461bcd60e51b815260040161077b90612c20565b6000908152600c6020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146115ea5760405162461bcd60e51b815260040161077b90612c20565b60078054911515600160b81b0260ff60b81b19909216919091179055565b60126020526000908152604090208054610e8690612d65565b6005546001600160a01b0316331461164b5760405162461bcd60e51b815260040161077b90612c20565b6001600160a01b0381166116b05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161077b565b6116b981611d55565b50565b6005546001600160a01b031633146116e65760405162461bcd60e51b815260040161077b90612c20565b600754600160b01b900460ff16156117405760405162461bcd60e51b815260206004820152601a60248201527f4d6574616461746120616c72656164792066696e616c69736564000000000000604482015260640161077b565b6007805460ff60b01b1916600160b01b179055565b60006001600160e01b031982166380ac58cd60e01b148061178657506001600160e01b03198216635b5e139f60e01b145b8061067b57506301ffc9a760e01b6001600160e01b031983161461067b565b6002546000908210801561067b575060006001600160a01b0316600283815481106117d2576117d2612e11565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611824826111e3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611868826117a5565b6118c95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161077b565b60006118d4836111e3565b9050806001600160a01b0316846001600160a01b0316148061190f5750836001600160a01b031661190484610713565b6001600160a01b0316145b8061193f57506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661195a826111e3565b6001600160a01b0316146119c25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161077b565b6001600160a01b038216611a245760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161077b565b611a2f6000826117ef565b8160028281548110611a4357611a43612e11565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600754600090600160b81b900460ff16611ab95750600161067b565b600e546010546040516307ca74b760e21b81526001600160a01b03918216600482015260248101869052848216929190911690631f29d2dc9060440160206040518083038186803b158015611b0d57600080fd5b505afa158015611b21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b459190612601565b6001600160a01b03161415611b5c5750600161067b565b6010546040516331a9108f60e11b8152600481018590526001600160a01b03848116921690636352211e9060240160206040518083038186803b158015611ba257600080fd5b505afa158015611bb6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bda9190612601565b6001600160a01b0316149392505050565b604080516020810184905290810182905233606090811b6bffffffffffffffffffffffff19169082015260009081906074015b6040516020818303038152906040528051906020012090506000611c8f826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90506000611cd38289898080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611ed892505050565b90506001600160a01b03811615801590611cfa57506007546001600160a01b038281169116145b98975050505050505050565b6000611d128284612d03565b9392505050565b6000611d128284612cef565b6000808383604051602001611c1e9291906129d6565b610ded828260405180602001604052806000815250611efc565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611db2848484611947565b611dbe84848484611f2f565b6114c15760405162461bcd60e51b815260040161077b90612bce565b606081611dfe5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611e285780611e1281612da0565b9150611e219050600a83612cef565b9150611e02565b60008167ffffffffffffffff811115611e4357611e43612e27565b6040519080825280601f01601f191660200182016040528015611e6d576020820181803683370190505b5090505b841561193f57611e82600183612d22565b9150611e8f600a86612dbb565b611e9a906030612cd7565b60f81b818381518110611eaf57611eaf612e11565b60200101906001600160f81b031916908160001a905350611ed1600a86612cef565b9450611e71565b6000806000611ee78585612039565b91509150611ef4816120a6565b509392505050565b611f068383612261565b611f136000848484611f2f565b6108b15760405162461bcd60e51b815260040161077b90612bce565b60006001600160a01b0384163b1561203157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f73903390899088908890600401612ab7565b602060405180830381600087803b158015611f8d57600080fd5b505af1925050508015611fbd575060408051601f3d908101601f19168201909252611fba9181019061288c565b60015b612017573d808015611feb576040519150601f19603f3d011682016040523d82523d6000602084013e611ff0565b606091505b50805161200f5760405162461bcd60e51b815260040161077b90612bce565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061193f565b50600161193f565b6000808251604114156120705760208301516040840151606085015160001a61206487828585612389565b94509450505050610c72565b82516040141561209a576020830151604084015161208f868383612476565b935093505050610c72565b50600090506002610c72565b60008160048111156120ba576120ba612dfb565b14156120c35750565b60018160048111156120d7576120d7612dfb565b14156121255760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161077b565b600281600481111561213957612139612dfb565b14156121875760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161077b565b600381600481111561219b5761219b612dfb565b14156121f45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161077b565b600481600481111561220857612208612dfb565b14156116b95760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161077b565b6001600160a01b0382166122b75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161077b565b6122c0816117a5565b1561230d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161077b565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156123c0575060009050600361246d565b8460ff16601b141580156123d857508460ff16601c14155b156123e9575060009050600461246d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561243d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166124665760006001925092505061246d565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161249787828885612389565b935093505050935093915050565b8280546124b190612d65565b90600052602060002090601f0160209004810192826124d35760008555612519565b82601f106124ec57805160ff1916838001178555612519565b82800160010185558215612519579182015b828111156125195782518255916020019190600101906124fe565b50610e759291505b80821115610e755760008155600101612521565b600067ffffffffffffffff83111561254f5761254f612e27565b612562601f8401601f1916602001612ca6565b905082815283838301111561257657600080fd5b828260208301376000602084830101529392505050565b8035801515811461259d57600080fd5b919050565b60008083601f8401126125b457600080fd5b50813567ffffffffffffffff8111156125cc57600080fd5b602083019150836020828501011115610c7257600080fd5b6000602082840312156125f657600080fd5b8135611d1281612e3d565b60006020828403121561261357600080fd5b8151611d1281612e3d565b6000806040838503121561263157600080fd5b823561263c81612e3d565b9150602083013561264c81612e3d565b809150509250929050565b60008060006060848603121561266c57600080fd5b833561267781612e3d565b9250602084013561268781612e3d565b929592945050506040919091013590565b600080600080608085870312156126ae57600080fd5b84356126b981612e3d565b935060208501356126c981612e3d565b925060408501359150606085013567ffffffffffffffff8111156126ec57600080fd5b8501601f810187136126fd57600080fd5b61270c87823560208401612535565b91505092959194509250565b6000806040838503121561272b57600080fd5b823561273681612e3d565b91506127446020840161258d565b90509250929050565b6000806040838503121561276057600080fd5b823561276b81612e3d565b946020939093013593505050565b6000806000806060858703121561278f57600080fd5b843567ffffffffffffffff808211156127a757600080fd5b818701915087601f8301126127bb57600080fd5b81356020828211156127cf576127cf612e27565b8160051b6127de828201612ca6565b8381528281019086840183880185018e10156127f957600080fd5b600097505b8588101561281c5780358352600197909701969184019184016127fe565b5099505050880135955050604087013591508082111561283b57600080fd5b50612848878288016125a2565b95989497509550505050565b60006020828403121561286657600080fd5b611d128261258d565b60006020828403121561288157600080fd5b8135611d1281612e52565b60006020828403121561289e57600080fd5b8151611d1281612e52565b6000602082840312156128bb57600080fd5b813567ffffffffffffffff8111156128d257600080fd5b8201601f810184136128e357600080fd5b61193f84823560208401612535565b60006020828403121561290457600080fd5b5035919050565b6000806040838503121561291e57600080fd5b50508035926020909101359150565b60008060008060006080868803121561294557600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561297157600080fd5b61297d888289016125a2565b969995985093965092949392505050565b600081518084526129a6816020860160208601612d39565b601f01601f19169290920160200192915050565b600081516129cc818560208601612d39565b9290920192915050565b825160009082906020808701845b83811015612a00578151855293820193908201906001016129e4565b5050948252509092019392505050565b600080845481600182811c915080831680612a2c57607f831692505b6020808410821415612a4c57634e487b7160e01b86526022600452602486fd5b818015612a605760018114612a7157612a9e565b60ff19861689528489019650612a9e565b60008b81526020902060005b86811015612a965781548b820152908501908301612a7d565b505084890196505b505050505050612aae81856129ba565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612aea9083018461298e565b9695505050505050565b604080825283519082018190526000906020906060840190828701845b82811015612b2d57815184529284019290840190600101612b11565b5050506001600160a01b039490941692019190915250919050565b6020810160078310612b6a57634e487b7160e01b600052602160045260246000fd5b91905290565b602081526000611d12602083018461298e565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715612ccf57612ccf612e27565b604052919050565b60008219821115612cea57612cea612dcf565b500190565b600082612cfe57612cfe612de5565b500490565b6000816000190483118215151615612d1d57612d1d612dcf565b500290565b600082821015612d3457612d34612dcf565b500390565b60005b83811015612d54578181015183820152602001612d3c565b838111156114c15750506000910152565b600181811c90821680612d7957607f821691505b60208210811415612d9a57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612db457612db4612dcf565b5060010190565b600082612dca57612dca612de5565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146116b957600080fd5b6001600160e01b0319811681146116b957600080fdfea26469706673582212207681015c47ccc99e428e61f1ec8a18dfec9a2ce671fe5b907a8f8ea3f904889c64736f6c6343000807003300000000000000000000000050fd235bc3f24a89170ff410a56d5053f3359256000000000000000000000000eb57bf569ad976974c1f861a5923a59f40222451000000000000000000000000c3503192343eae4b435e4a1211c5d28bf6f6a696000000000000000000000000fe8c6d19365453d26af321d0e8c910428c23873f000000000000000000000000f1083e064f92db0561fd540f982cbf73a4e2f8f60000000000000000000000007744b770891cafe6d1d5fdb797fc0a4fd49cf36600000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000001d68747470733a2f2f6d6574612e63726565707a2e636f2f6d656761732f000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061028a5760003560e01c806370a082311161015c578063b88d4fde116100ce578063df173dba11610087578063df173dba146105cf578063e985e9c5146105d8578063eb8d244414610614578063f2fde38b14610628578063f4a560a51461063b578063f57df22e1461064357600080fd5b8063b88d4fde14610550578063c87b56dd14610563578063cd6a3ea514610576578063cf68bfb114610589578063d299eaa1146105a9578063d5651ac3146105bc57600080fd5b80639881584c116101205780639881584c146104dd578063a22cb465146104f0578063aaa0c81814610503578063ad2f852a14610516578063ae6ffdd114610529578063b187bd261461053c57600080fd5b806370a0823114610495578063715018a6146104a85780637c86bcb8146104b05780638da5cb5b146104c457806395d89b41146104d557600080fd5b80632a55205a1161020057806342842e0e116101b957806342842e0e1461042e5780634f6ccce71461044157806351ff0d8a1461045457806355f804b31461045c5780635d92cb1b1461046f5780636352211e1461048257600080fd5b80632a55205a1461038b5780632f745c59146103bd5780633053ee64146103d057806331aae949146103e357806333f6832a146103f65780633ccfd60b1461042657600080fd5b80630a088949116102525780630a0889491461032357806318160ddd14610336578063238ac9331461033e57806323b872dd14610351578063242b1dba14610364578063256a1a6b1461037757600080fd5b806301ffc9a71461028f57806306fdde03146102b7578063081812fc146102cc578063095ea7b3146102f7578063099becfb1461030c575b600080fd5b6102a261029d36600461286f565b610656565b60405190151581526020015b60405180910390f35b6102bf610681565b6040516102ae9190612b70565b6102df6102da3660046128f2565b610713565b6040516001600160a01b0390911681526020016102ae565b61030a61030536600461274d565b6107a0565b005b610315600a5481565b6040519081526020016102ae565b61030a610331366004612854565b6108b6565b600254610315565b6007546102df906001600160a01b031681565b61030a61035f366004612657565b6108fe565b61030a61037236600461292d565b61092f565b6007546102a290600160b81b900460ff1681565b61039e61039936600461290b565b610bfb565b604080516001600160a01b0390931683526020830191909152016102ae565b6103156103cb36600461274d565b610c79565b61030a6103de3660046125e4565b610d2c565b6010546102df906001600160a01b031681565b6104196104043660046128f2565b60116020526000908152604090205460ff1681565b6040516102ae9190612b48565b61030a610d78565b61030a61043c366004612657565b610df1565b61031561044f3660046128f2565b610e0c565b6102bf610e79565b61030a61046a3660046128a9565b610f07565b61030a61047d366004612779565b610f9e565b6102df6104903660046128f2565b6111e3565b6103156104a33660046125e4565b61126f565b61030a61133d565b6007546102a290600160b01b900460ff1681565b6005546001600160a01b03166102df565b6102bf611373565b600f546102df906001600160a01b031681565b61030a6104fe366004612718565b611382565b600d546102df906001600160a01b031681565b6009546102df906001600160a01b031681565b61030a610537366004612854565b611447565b6007546102a290600160a81b900460ff1681565b61030a61055e366004612698565b61148f565b6102bf6105713660046128f2565b6114c7565b61030a61058436600461274d565b611568565b6103156105973660046125e4565b60136020526000908152604090205481565b61030a6105b7366004612854565b6115c0565b6102bf6105ca3660046128f2565b611608565b610315600b5481565b6102a26105e636600461261e565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b6007546102a290600160a01b900460ff1681565b61030a6106363660046125e4565b611621565b61030a6116bc565b600e546102df906001600160a01b031681565b60006001600160e01b0319821663780e9d6360e01b148061067b575061067b82611755565b92915050565b60606000805461069090612d65565b80601f01602080910402602001604051908101604052809291908181526020018280546106bc90612d65565b80156107095780601f106106de57610100808354040283529160200191610709565b820191906000526020600020905b8154815290600101906020018083116106ec57829003601f168201915b5050505050905090565b600061071e826117a5565b6107845760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b60006107ab826111e3565b9050806001600160a01b0316836001600160a01b031614156108195760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161077b565b336001600160a01b0382161480610835575061083581336105e6565b6108a75760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161077b565b6108b183836117ef565b505050565b6005546001600160a01b031633146108e05760405162461bcd60e51b815260040161077b90612c20565b60078054911515600160a01b0260ff60a01b19909216919091179055565b610908338261185d565b6109245760405162461bcd60e51b815260040161077b90612c55565b6108b1838383611947565b600754600160a81b900460ff16156109825760405162461bcd60e51b815260206004820152601660248201527554617820636f6c6c656374696f6e207061757365642160501b604482015260640161077b565b600260065414156109d55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161077b565b600260065584610a1f5760405162461bcd60e51b815260206004820152601560248201527443616e6e6f7420636c61696d203020246c6f6f6d6960581b604482015260640161077b565b336000908152601360205260409020548411610a7d5760405162461bcd60e51b815260206004820181905260248201527f54686973206e6f6e636520686173206265656e20616c72656164792075736564604482015260640161077b565b610a878333611a9d565b610ac35760405162461bcd60e51b815260206004820152600d60248201526c10a1b932b2b83d1037bbb732b960991b604482015260640161077b565b610acf82828787611beb565b610b135760405162461bcd60e51b8152602060048201526015602482015274125b9d985b1a590819185d18481c1c9bdd9a591959605a1b604482015260640161077b565b600d546001600160a01b0316638270b0a0336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101889052604401600060405180830381600087803b158015610b6d57600080fd5b505af1158015610b81573d6000803e3d6000fd5b505050508360136000610b913390565b6001600160a01b0316815260208101919091526040016000205584336001600160a01b03167ffd973a53881c836b42e3a5af7a57f0109c950f6d42e84a54e8b825b031f5025686604051610be791815260200190565b60405180910390a350506001600655505050565b6000806000610c21600b54610c1b600a5487611d0690919063ffffffff16565b90611d19565b6000868152600c6020526040812054919250906001600160a01b0316610c52576009546001600160a01b0316610c6b565b6000868152600c60205260409020546001600160a01b03165b9350909150505b9250929050565b6000610c848361126f565b8210610ca25760405162461bcd60e51b815260040161077b90612b83565b6000805b600254811015610d135760028181548110610cc357610cc3612e11565b6000918252602090912001546001600160a01b0386811691161415610d015783821415610cf357915061067b9050565b81610cfd81612da0565b9250505b80610d0b81612da0565b915050610ca6565b5060405162461bcd60e51b815260040161077b90612b83565b6005546001600160a01b03163314610d565760405162461bcd60e51b815260040161077b90612c20565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314610da25760405162461bcd60e51b815260040161077b90612c20565b47610db56005546001600160a01b031690565b6001600160a01b03166108fc829081150290604051600060405180830381858888f19350505050158015610ded573d6000803e3d6000fd5b5050565b6108b18383836040518060200160405280600081525061148f565b6002546000908210610e755760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161077b565b5090565b60088054610e8690612d65565b80601f0160208091040260200160405190810160405280929190818152602001828054610eb290612d65565b8015610eff5780601f10610ed457610100808354040283529160200191610eff565b820191906000526020600020905b815481529060010190602001808311610ee257829003601f168201915b505050505081565b6005546001600160a01b03163314610f315760405162461bcd60e51b815260040161077b90612c20565b600754600160b01b900460ff1615610f8b5760405162461bcd60e51b815260206004820152601a60248201527f4d6574616461746120616c72656164792066696e616c69736564000000000000604482015260640161077b565b8051610ded9060089060208401906124a5565b60026006541415610ff15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161077b565b6002600690815583111561103c5760405162461bcd60e51b8152602060048201526012602482015271556e6b6e6f776e207368617065207479706560701b604482015260640161077b565b6005546001600160a01b031633146110a757600754600160a01b900460ff166110a75760405162461bcd60e51b815260206004820152601c60248201527f546865206d696e7420686173206e6f7420737461727465642079657400000000604482015260640161077b565b6110b382828686611d25565b6110f75760405162461bcd60e51b8152602060048201526015602482015274125b9d985b1a590819185d18481c1c9bdd9a591959605a1b604482015260640161077b565b600f546001600160a01b031663ae0601d985336040518363ffffffff1660e01b8152600401611127929190612af4565b600060405180830381600087803b15801561114157600080fd5b505af1158015611155573d6000803e3d6000fd5b50505050600061116460025490565b90506111703382611d3b565b83600681111561118257611182612dfb565b6000828152601160205260409020805460ff191660018360068111156111aa576111aa612dfb565b0217905550604051848152819033907f2e8ac5177a616f2aec08c3048f5021e4e9743ece034e8d83ba5caf76688bb47590602001610be7565b600080600283815481106111f9576111f9612e11565b6000918252602090912001546001600160a01b031690508061067b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161077b565b60006001600160a01b0382166112da5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161077b565b6000805b60025481101561133657600281815481106112fb576112fb612e11565b6000918252602090912001546001600160a01b03858116911614156113265761132382612da0565b91505b61132f81612da0565b90506112de565b5092915050565b6005546001600160a01b031633146113675760405162461bcd60e51b815260040161077b90612c20565b6113716000611d55565b565b60606001805461069090612d65565b6001600160a01b0382163314156113db5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161077b565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6005546001600160a01b031633146114715760405162461bcd60e51b815260040161077b90612c20565b60078054911515600160a81b0260ff60a81b19909216919091179055565b611499338361185d565b6114b55760405162461bcd60e51b815260040161077b90612c55565b6114c184848484611da7565b50505050565b60606114d2826117a5565b6115365760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161077b565b600861154183611dda565b604051602001611552929190612a10565b6040516020818303038152906040529050919050565b6005546001600160a01b031633146115925760405162461bcd60e51b815260040161077b90612c20565b6000908152600c6020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146115ea5760405162461bcd60e51b815260040161077b90612c20565b60078054911515600160b81b0260ff60b81b19909216919091179055565b60126020526000908152604090208054610e8690612d65565b6005546001600160a01b0316331461164b5760405162461bcd60e51b815260040161077b90612c20565b6001600160a01b0381166116b05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161077b565b6116b981611d55565b50565b6005546001600160a01b031633146116e65760405162461bcd60e51b815260040161077b90612c20565b600754600160b01b900460ff16156117405760405162461bcd60e51b815260206004820152601a60248201527f4d6574616461746120616c72656164792066696e616c69736564000000000000604482015260640161077b565b6007805460ff60b01b1916600160b01b179055565b60006001600160e01b031982166380ac58cd60e01b148061178657506001600160e01b03198216635b5e139f60e01b145b8061067b57506301ffc9a760e01b6001600160e01b031983161461067b565b6002546000908210801561067b575060006001600160a01b0316600283815481106117d2576117d2612e11565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611824826111e3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611868826117a5565b6118c95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161077b565b60006118d4836111e3565b9050806001600160a01b0316846001600160a01b0316148061190f5750836001600160a01b031661190484610713565b6001600160a01b0316145b8061193f57506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661195a826111e3565b6001600160a01b0316146119c25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161077b565b6001600160a01b038216611a245760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161077b565b611a2f6000826117ef565b8160028281548110611a4357611a43612e11565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600754600090600160b81b900460ff16611ab95750600161067b565b600e546010546040516307ca74b760e21b81526001600160a01b03918216600482015260248101869052848216929190911690631f29d2dc9060440160206040518083038186803b158015611b0d57600080fd5b505afa158015611b21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b459190612601565b6001600160a01b03161415611b5c5750600161067b565b6010546040516331a9108f60e11b8152600481018590526001600160a01b03848116921690636352211e9060240160206040518083038186803b158015611ba257600080fd5b505afa158015611bb6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bda9190612601565b6001600160a01b0316149392505050565b604080516020810184905290810182905233606090811b6bffffffffffffffffffffffff19169082015260009081906074015b6040516020818303038152906040528051906020012090506000611c8f826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90506000611cd38289898080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611ed892505050565b90506001600160a01b03811615801590611cfa57506007546001600160a01b038281169116145b98975050505050505050565b6000611d128284612d03565b9392505050565b6000611d128284612cef565b6000808383604051602001611c1e9291906129d6565b610ded828260405180602001604052806000815250611efc565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611db2848484611947565b611dbe84848484611f2f565b6114c15760405162461bcd60e51b815260040161077b90612bce565b606081611dfe5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611e285780611e1281612da0565b9150611e219050600a83612cef565b9150611e02565b60008167ffffffffffffffff811115611e4357611e43612e27565b6040519080825280601f01601f191660200182016040528015611e6d576020820181803683370190505b5090505b841561193f57611e82600183612d22565b9150611e8f600a86612dbb565b611e9a906030612cd7565b60f81b818381518110611eaf57611eaf612e11565b60200101906001600160f81b031916908160001a905350611ed1600a86612cef565b9450611e71565b6000806000611ee78585612039565b91509150611ef4816120a6565b509392505050565b611f068383612261565b611f136000848484611f2f565b6108b15760405162461bcd60e51b815260040161077b90612bce565b60006001600160a01b0384163b1561203157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f73903390899088908890600401612ab7565b602060405180830381600087803b158015611f8d57600080fd5b505af1925050508015611fbd575060408051601f3d908101601f19168201909252611fba9181019061288c565b60015b612017573d808015611feb576040519150601f19603f3d011682016040523d82523d6000602084013e611ff0565b606091505b50805161200f5760405162461bcd60e51b815260040161077b90612bce565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061193f565b50600161193f565b6000808251604114156120705760208301516040840151606085015160001a61206487828585612389565b94509450505050610c72565b82516040141561209a576020830151604084015161208f868383612476565b935093505050610c72565b50600090506002610c72565b60008160048111156120ba576120ba612dfb565b14156120c35750565b60018160048111156120d7576120d7612dfb565b14156121255760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161077b565b600281600481111561213957612139612dfb565b14156121875760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161077b565b600381600481111561219b5761219b612dfb565b14156121f45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161077b565b600481600481111561220857612208612dfb565b14156116b95760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161077b565b6001600160a01b0382166122b75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161077b565b6122c0816117a5565b1561230d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161077b565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156123c0575060009050600361246d565b8460ff16601b141580156123d857508460ff16601c14155b156123e9575060009050600461246d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561243d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166124665760006001925092505061246d565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161249787828885612389565b935093505050935093915050565b8280546124b190612d65565b90600052602060002090601f0160209004810192826124d35760008555612519565b82601f106124ec57805160ff1916838001178555612519565b82800160010185558215612519579182015b828111156125195782518255916020019190600101906124fe565b50610e759291505b80821115610e755760008155600101612521565b600067ffffffffffffffff83111561254f5761254f612e27565b612562601f8401601f1916602001612ca6565b905082815283838301111561257657600080fd5b828260208301376000602084830101529392505050565b8035801515811461259d57600080fd5b919050565b60008083601f8401126125b457600080fd5b50813567ffffffffffffffff8111156125cc57600080fd5b602083019150836020828501011115610c7257600080fd5b6000602082840312156125f657600080fd5b8135611d1281612e3d565b60006020828403121561261357600080fd5b8151611d1281612e3d565b6000806040838503121561263157600080fd5b823561263c81612e3d565b9150602083013561264c81612e3d565b809150509250929050565b60008060006060848603121561266c57600080fd5b833561267781612e3d565b9250602084013561268781612e3d565b929592945050506040919091013590565b600080600080608085870312156126ae57600080fd5b84356126b981612e3d565b935060208501356126c981612e3d565b925060408501359150606085013567ffffffffffffffff8111156126ec57600080fd5b8501601f810187136126fd57600080fd5b61270c87823560208401612535565b91505092959194509250565b6000806040838503121561272b57600080fd5b823561273681612e3d565b91506127446020840161258d565b90509250929050565b6000806040838503121561276057600080fd5b823561276b81612e3d565b946020939093013593505050565b6000806000806060858703121561278f57600080fd5b843567ffffffffffffffff808211156127a757600080fd5b818701915087601f8301126127bb57600080fd5b81356020828211156127cf576127cf612e27565b8160051b6127de828201612ca6565b8381528281019086840183880185018e10156127f957600080fd5b600097505b8588101561281c5780358352600197909701969184019184016127fe565b5099505050880135955050604087013591508082111561283b57600080fd5b50612848878288016125a2565b95989497509550505050565b60006020828403121561286657600080fd5b611d128261258d565b60006020828403121561288157600080fd5b8135611d1281612e52565b60006020828403121561289e57600080fd5b8151611d1281612e52565b6000602082840312156128bb57600080fd5b813567ffffffffffffffff8111156128d257600080fd5b8201601f810184136128e357600080fd5b61193f84823560208401612535565b60006020828403121561290457600080fd5b5035919050565b6000806040838503121561291e57600080fd5b50508035926020909101359150565b60008060008060006080868803121561294557600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561297157600080fd5b61297d888289016125a2565b969995985093965092949392505050565b600081518084526129a6816020860160208601612d39565b601f01601f19169290920160200192915050565b600081516129cc818560208601612d39565b9290920192915050565b825160009082906020808701845b83811015612a00578151855293820193908201906001016129e4565b5050948252509092019392505050565b600080845481600182811c915080831680612a2c57607f831692505b6020808410821415612a4c57634e487b7160e01b86526022600452602486fd5b818015612a605760018114612a7157612a9e565b60ff19861689528489019650612a9e565b60008b81526020902060005b86811015612a965781548b820152908501908301612a7d565b505084890196505b505050505050612aae81856129ba565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612aea9083018461298e565b9695505050505050565b604080825283519082018190526000906020906060840190828701845b82811015612b2d57815184529284019290840190600101612b11565b5050506001600160a01b039490941692019190915250919050565b6020810160078310612b6a57634e487b7160e01b600052602160045260246000fd5b91905290565b602081526000611d12602083018461298e565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715612ccf57612ccf612e27565b604052919050565b60008219821115612cea57612cea612dcf565b500190565b600082612cfe57612cfe612de5565b500490565b6000816000190483118215151615612d1d57612d1d612dcf565b500290565b600082821015612d3457612d34612dcf565b500390565b60005b83811015612d54578181015183820152602001612d3c565b838111156114c15750506000910152565b600181811c90821680612d7957607f821691505b60208210811415612d9a57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612db457612db4612dcf565b5060010190565b600082612dca57612dca612de5565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146116b957600080fd5b6001600160e01b0319811681146116b957600080fdfea26469706673582212207681015c47ccc99e428e61f1ec8a18dfec9a2ce671fe5b907a8f8ea3f904889c64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000050fd235bc3f24a89170ff410a56d5053f3359256000000000000000000000000eb57bf569ad976974c1f861a5923a59f40222451000000000000000000000000c3503192343eae4b435e4a1211c5d28bf6f6a696000000000000000000000000fe8c6d19365453d26af321d0e8c910428c23873f000000000000000000000000f1083e064f92db0561fd540f982cbf73a4e2f8f60000000000000000000000007744b770891cafe6d1d5fdb797fc0a4fd49cf36600000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000001d68747470733a2f2f6d6574612e63726565707a2e636f2f6d656761732f000000
-----Decoded View---------------
Arg [0] : _royaltyAddress (address): 0x50fD235bC3f24a89170FF410a56D5053F3359256
Arg [1] : _loomi (address): 0xEb57Bf569Ad976974C1F861a5923A59F40222451
Arg [2] : _staking (address): 0xC3503192343EAE4B435E4A1211C5d28BF6f6a696
Arg [3] : _creepz (address): 0xfE8C6d19365453D26af321D0e8c910428c23873F
Arg [4] : _shapes (address): 0xF1083e064F92db0561fd540F982Cbf73A4e2F8f6
Arg [5] : _signer (address): 0x7744B770891cAfE6d1D5FDB797Fc0A4FD49cf366
Arg [6] : _baseUri (string): https://meta.creepz.co/megas/
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000050fd235bc3f24a89170ff410a56d5053f3359256
Arg [1] : 000000000000000000000000eb57bf569ad976974c1f861a5923a59f40222451
Arg [2] : 000000000000000000000000c3503192343eae4b435e4a1211c5d28bf6f6a696
Arg [3] : 000000000000000000000000fe8c6d19365453d26af321d0e8c910428c23873f
Arg [4] : 000000000000000000000000f1083e064f92db0561fd540f982cbf73a4e2f8f6
Arg [5] : 0000000000000000000000007744b770891cafe6d1d5fdb797fc0a4fd49cf366
Arg [6] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [7] : 000000000000000000000000000000000000000000000000000000000000001d
Arg [8] : 68747470733a2f2f6d6574612e63726565707a2e636f2f6d656761732f000000
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.