ERC-721
Overview
Max Total Supply
6,901 MGEX1
Holders
674
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 MGEX1Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ENTITIES_1
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// ,----, ,----, // ,--. ,/ .`| ,/ .`| // ,---,. ,--.'| ,` .' : ,---, ,` .' : ,---, ,---,. .--.--. // ,' .' | ,--,: : | ; ; /,`--.' | ; ; /,`--.' | ,' .' | / / '. // ,---.' |,`--.'`| ' :.'___,/ ,' | : :.'___,/ ,' | : :,---.' || : /`. / // | | .'| : : | || : | : | '| : | : | '| | .'; | |--` // : : |-,: | \ | :; |.'; ; | : |; |.'; ; | : |: : |-,| : ;_ // : | ;/|| : ' '; |`----' | | ' ' ;`----' | | ' ' ;: | ;/| \ \ `. // | : .'' ' ;. ; ' : ; | | | ' : ; | | || : .' `----. \ // | | |-,| | | \ | | | ' ' : ; | | ' ' : ;| | |-, __ \ \ | // ' : ;/|' : | ; .' ' : | | | ' ' : | | | '' : ;/| / /`--' / // | | \| | '`--' ; |.' ' : | ; |.' ' : || | \'--'. / // | : .'' : | '---' ; |.' '---' ; |.' | : .' `--'---' // | | ,' ; |.' '---' '---' | | ,' // `----' '---' `----' // MetaGeckos Activate // Artwork by Trent Kaniuga // Built on entities.wtf // SPDX-License-Identifier: MIT pragma solidity 0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "./Library.sol"; contract ENTITIES_1 is ERC721, ReentrancyGuard { using Library for uint8; using ECDSA for bytes32; using Counters for Counters.Counter; Counters.Counter private _tokenSupply; struct Claims { uint256 tokenId; bool claimed; } // Sale states bool public mintActive; bool public mintMintPassActive; bool public mintIncludeReserveActive; bool public mintWhiteListActive; bool public salePaused = true; //API for Generation string private baseTokenURI; //strings string public PROVENANCE = ""; // -- Opensea royalty URI string private baseContractURI; //Mappings mapping(uint256 => bool) private _tokenClaimed; mapping(uint256 => Claims) public mintpassclaimlist; mapping(address => uint256) public whitelistMintsPerWal; //uint256s uint256 public MAX_MINTPASS_SUPPLY; uint256 public MAX_PUBLIC_SUPPLY; uint256 public MAX_TEAM_MINT; uint256 public MAX_MINT; uint256 public totalMintPassSupply; uint256 public totalPublicSupply; uint256 public totalTeamMinted; uint256 public price; //whitelist bytes32 public ogMerkleRoot; //addresses address public owner; address private t1; address private t2; address private t3; //interfaces MintPassContract public mintPassContract; constructor( string memory COLLECTION_NAME, string memory COLLECTION_SYMBOL, uint256 _MAX_MINTPASS_SUPPLY, uint256 _MAX_PUBLIC_SUPPLY, uint256 _MAX_TEAM_MINT, uint256 _MAX_MINT, uint256 _price, address _mintPassToken, bytes32 _ogMerkleRoot, string memory _baseContractURI, string memory _baseTokenURI ) ERC721(COLLECTION_NAME, COLLECTION_SYMBOL) { owner = msg.sender; t1 = msg.sender; MAX_MINTPASS_SUPPLY = _MAX_MINTPASS_SUPPLY; MAX_PUBLIC_SUPPLY = _MAX_PUBLIC_SUPPLY; MAX_TEAM_MINT = _MAX_TEAM_MINT; MAX_MINT = _MAX_MINT; price = _price; mintPassContract = MintPassContract(_mintPassToken); ogMerkleRoot = _ogMerkleRoot; baseContractURI = _baseContractURI; baseTokenURI = _baseTokenURI; } /** * @dev Internal mint to keep things neat. */ function mintInternal() internal nonReentrant { uint256 mintIndex = _tokenSupply.current() + 1; _tokenSupply.increment(); _mint(msg.sender, mintIndex); } /** * @dev Mints new tokens */ function teamMint(uint256 amount) public onlyOwner { require( totalTeamMinted + amount < MAX_TEAM_MINT + 1, "Max dev tokens minted" ); for (uint256 i = 0; i < amount; i++) { if (totalTeamMinted < MAX_TEAM_MINT) { totalTeamMinted += 1; mintInternal(); } } } /** * @dev Public mint */ function mint(uint256 amount) public payable { require(mintActive, "Sale has not started yet."); require(amount < MAX_MINT + 1, "Can't claim this many tokens at once."); require( totalPublicSupply + amount < MAX_PUBLIC_SUPPLY + 1, "Over max public limit" ); require(msg.value >= price * amount, "ETH sent is not correct"); for (uint256 i = 0; i < amount; i++) { if (totalPublicSupply < MAX_PUBLIC_SUPPLY) { totalPublicSupply += 1; mintInternal(); } } } /** * @dev MintPass mint */ function mintpassMint(uint256[] memory tokenIds) public { require(mintMintPassActive, "Sale has not started yet."); require( tokenIds.length < MAX_MINT + 1, "Can't claim this many tokens at once." ); require(msg.sender == tx.origin, "Cannot use a contract for this"); require( totalMintPassSupply + (tokenIds.length) < MAX_MINTPASS_SUPPLY + 1, "Exceeds private supply" ); for (uint256 i = 0; i < tokenIds.length; i++) { require( mintPassContract.ownerOf(tokenIds[i]) == msg.sender, "You do not own this token." ); require( !isMintPassClaimed(tokenIds[i]), "MintPass has already been claimed for this token." ); mintpassclaimlist[tokenIds[i]].tokenId = tokenIds[i]; mintpassclaimlist[tokenIds[i]].claimed = true; totalMintPassSupply += 1; mintInternal(); } } /** * @dev Whitelist mint - API controlled */ function mintWhiteList(uint256 amount, bytes32[] calldata merkleProof) public payable { require(mintWhiteListActive, "Sale has not started yet."); require(msg.sender == tx.origin, "Cannot use a contract to mint"); require( amount < MAX_MINT + 1, "Can't claim this many tokens at once." ); require( totalPublicSupply + amount < MAX_PUBLIC_SUPPLY + 1, "Over max public limit" ); bytes32 node = keccak256(abi.encodePacked(msg.sender)); bool isOGVerified = MerkleProof.verify(merkleProof, ogMerkleRoot, node); require(isOGVerified, "You are not whitelisted, please wait for public mint"); require( whitelistMintsPerWal[msg.sender] + amount < MAX_MINT + 1, "Already claimed, please wait for public mint" ); require(msg.value >= price * amount, "ETH sent is not correct"); for (uint256 i; i < 1; i++) { if (totalPublicSupply < MAX_PUBLIC_SUPPLY) { totalPublicSupply += 1; whitelistMintsPerWal[msg.sender] += 1; mintInternal(); } } } function setBaseURI(string memory baseURI) public onlyOwner { baseTokenURI = baseURI; } function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } function tokenURI(uint256 _tokenId) override public view returns (string memory) { return string(abi.encodePacked(baseTokenURI, Strings.toString(_tokenId))); } function setContractURI(string memory _contractURI) public onlyOwner { baseContractURI = _contractURI; } function contractURI() public view returns (string memory) { return baseContractURI; } /** * @dev A check to see if a MintPass token has been used to mint */ function isMintPassClaimed(uint256 tokenId) public view returns (bool claimed) { return mintpassclaimlist[tokenId].tokenId == tokenId; } /** * @dev Sets a new mint pass address */ function setMintPassAddress(address _mintPassToken) external onlyOwner { mintPassContract = MintPassContract(_mintPassToken); } /** * @dev Sets a new mint price */ function setMintPrice(uint256 val) external onlyOwner { price = val; } /** * @dev Toggles the state of the public sale */ function toggleMintState() public onlyOwner { mintActive = !mintActive; } /** * @dev Begins the MintPass mint */ function enableMintMintPass() public onlyOwner { mintMintPassActive = !mintMintPassActive; } /** * @dev Toggles the state of the whitelist sale */ function toggleMintWhiteListState() public onlyOwner { mintWhiteListActive = !mintWhiteListActive; } function setProvenanceHash(string memory provenanceHash) public onlyOwner { PROVENANCE = provenanceHash; } function setOgMerkleRoot(bytes32 _ogMerkleRoot) external onlyOwner { ogMerkleRoot = _ogMerkleRoot; } function totalSupply() public view returns (uint256) { return _tokenSupply.current(); } /** * @dev Transfers ownership * @param _newOwner The new owner */ function transferOwnership(address _newOwner) public onlyOwner { owner = _newOwner; } /** * @dev Payouts */ function setT1Address(address t1Address) public onlyOwner { t1 = t1Address; } function setT2Address(address t2Address) public onlyOwner { t2 = t2Address; } function setT3Address(address t3Address) public onlyOwner { t3 = t3Address; } function maxSupply() public view returns (uint256) { return MAX_MINTPASS_SUPPLY + MAX_PUBLIC_SUPPLY + MAX_TEAM_MINT; } /** * @dev Withdraws the balance of ETH on the contract * @dev to all of the recipients at the same time */ function withdraw() public payable onlyOwner { uint256 sale1 = (address(this).balance * 100) / 1000; uint256 sale2 = (address(this).balance * 250) / 1000; uint256 sale3 = (address(this).balance * 650) / 1000; require(payable(t1).send(sale1)); require(payable(t2).send(sale2)); require(payable(t3).send(sale3)); } /** * @dev Modifier to only allow owner to call functions */ modifier onlyOwner() { require(owner == msg.sender); _; } } /** * @dev The interface that the MintPass mint requires */ interface MintPassContract { function balanceOf(address account, uint256 id) external view returns (uint256); function ownerOf(uint256 tokenId) external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library Library { string internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ""; // load the table into memory string memory table = TABLE; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((data.length + 2) / 3); // add some extra buffer at the end required for the writing string memory result = new string(encodedLen + 32); assembly { // set the actual output length mstore(result, encodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 3 bytes at a time for { } lt(dataPtr, endPtr) { } { dataPtr := add(dataPtr, 3) // read 3 bytes let input := mload(dataPtr) // write 4 characters mstore( resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F)))) ) resultPtr := add(resultPtr, 1) mstore( resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F)))) ) resultPtr := add(resultPtr, 1) mstore( resultPtr, shl(248, mload(add(tablePtr, and(shr(6, input), 0x3F)))) ) resultPtr := add(resultPtr, 1) mstore( resultPtr, shl(248, mload(add(tablePtr, and(input, 0x3F)))) ) resultPtr := add(resultPtr, 1) } // padding with '=' switch mod(mload(data), 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } } return result; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } function parseInt(string memory _a) internal pure returns (uint8 _parsedInt) { bytes memory bresult = bytes(_a); uint8 mint = 0; for (uint8 i = 0; i < bresult.length; i++) { if ( (uint8(uint8(bresult[i])) >= 48) && (uint8(uint8(bresult[i])) <= 57) ) { mint *= 10; mint += uint8(bresult[i]) - 48; } } return mint; } function substring( string memory str, uint256 startIndex, uint256 endIndex ) internal pure returns (string memory) { bytes memory strBytes = bytes(str); bytes memory result = new bytes(endIndex - startIndex); for (uint256 i = startIndex; i < endIndex; i++) { result[i - startIndex] = strBytes[i]; } return string(result); } function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } }
// SPDX-License-Identifier: MIT // 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 // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.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 (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.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/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/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 (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/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 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"COLLECTION_NAME","type":"string"},{"internalType":"string","name":"COLLECTION_SYMBOL","type":"string"},{"internalType":"uint256","name":"_MAX_MINTPASS_SUPPLY","type":"uint256"},{"internalType":"uint256","name":"_MAX_PUBLIC_SUPPLY","type":"uint256"},{"internalType":"uint256","name":"_MAX_TEAM_MINT","type":"uint256"},{"internalType":"uint256","name":"_MAX_MINT","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"address","name":"_mintPassToken","type":"address"},{"internalType":"bytes32","name":"_ogMerkleRoot","type":"bytes32"},{"internalType":"string","name":"_baseContractURI","type":"string"},{"internalType":"string","name":"_baseTokenURI","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":"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":"MAX_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINTPASS_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PUBLIC_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TEAM_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROVENANCE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableMintMintPass","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isMintPassClaimed","outputs":[{"internalType":"bool","name":"claimed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintIncludeReserveActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintMintPassActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPassContract","outputs":[{"internalType":"contract MintPassContract","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintWhiteList","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintWhiteListActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"mintpassMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintpassclaimlist","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"claimed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ogMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","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":"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":"salePaused","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":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_mintPassToken","type":"address"}],"name":"setMintPassAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"val","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_ogMerkleRoot","type":"bytes32"}],"name":"setOgMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"t1Address","type":"address"}],"name":"setT1Address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"t2Address","type":"address"}],"name":"setT2Address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"t3Address","type":"address"}],"name":"setT3Address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleMintWhiteListState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMintPassSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPublicSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTeamMinted","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":"","type":"address"}],"name":"whitelistMintsPerWal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
6008805460ff60201b191664010000000017905560a06040819052600060808190526200002f91600a9162000128565b503480156200003d57600080fd5b506040516200319a3803806200319a833981016040819052620000609162000296565b8a518b908b906200007990600090602085019062000128565b5080516200008f90600190602084019062000128565b505060016006555060188054336001600160a01b03199182168117909255601980548216909217909155600f8a90556010899055601188905560128790556016869055601c80549091166001600160a01b038616179055601783905581516200010090600b90602085019062000128565b5080516200011690600990602084019062000128565b50505050505050505050505062000402565b8280546200013690620003af565b90600052602060002090601f0160209004810192826200015a5760008555620001a5565b82601f106200017557805160ff1916838001178555620001a5565b82800160010185558215620001a5579182015b82811115620001a557825182559160200191906001019062000188565b50620001b3929150620001b7565b5090565b5b80821115620001b35760008155600101620001b8565b80516001600160a01b0381168114620001e657600080fd5b919050565b600082601f830112620001fc578081fd5b81516001600160401b0380821115620002195762000219620003ec565b6040516020601f8401601f1916820181018381118382101715620002415762000241620003ec565b604052838252858401810187101562000258578485fd5b8492505b838310156200027b57858301810151828401820152918201916200025c565b838311156200028c57848185840101525b5095945050505050565b60008060008060008060008060008060006101608c8e031215620002b8578687fd5b8b516001600160401b03811115620002ce578788fd5b620002dc8e828f01620001eb565b60208e0151909c5090506001600160401b03811115620002fa578788fd5b620003088e828f01620001eb565b9a505060408c0151985060608c0151975060808c0151965060a08c0151955060c08c015194506200033c60e08d01620001ce565b6101008d01516101208e015191955093506001600160401b0381111562000361578283fd5b6200036f8e828f01620001eb565b6101408e015190935090506001600160401b038111156200038e578182fd5b6200039c8e828f01620001eb565b9150509295989b509295989b9093969950565b600281046001821680620003c457607f821691505b60208210811415620003e657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612d8880620004126000396000f3fe6080604052600436106103355760003560e01c80638da5cb5b116101ab578063ce79d7a5116100f7578063f0292a0311610095578063f413a9ff1161006f578063f413a9ff1461088a578063f4a0a5281461089f578063f9d0afa8146108bf578063fabb652b146108ed57610335565b8063f0292a0314610835578063f2fde38b1461084a578063f31798911461086a57610335565b8063d8a7ab89116100d1578063d8a7ab89146107cb578063e6a5931e146107eb578063e8a3d48514610800578063e985e9c51461081557610335565b8063ce79d7a514610781578063d0b8512114610796578063d5abeb01146107b657610335565b8063a0712d6811610164578063b88d4fde1161013e578063b88d4fde14610701578063bc548db914610721578063c413fa9714610741578063c87b56dd1461076157610335565b8063a0712d68146106b9578063a22cb465146106cc578063a3db1b83146106ec57610335565b80638da5cb5b14610625578063919216ad1461063a578063938e3d7b1461064f57806395d89b411461066f5780639c882a3e14610684578063a035b1fe146106a457610335565b80632a47f79911610285578063510db75a116102235780636352211e116101fd5780636352211e146105bb5780636373a6b1146105db57806370a08231146105f05780638290becd1461061057610335565b8063510db75a1461057157806355f804b3146105865780635d08c1ae146105a657610335565b80633ccfd60b1161025f5780633ccfd60b1461051657806342842e0e1461051e578063448f9ca61461053e5780634d10b5461461055e57610335565b80632a47f799146104cc5780632fbba115146104e15780633a3543a41461050157610335565b806313a29bb2116102f25780631a2832e8116102cc5780631a2832e81461046d57806323b872dd1461048257806325fd90f3146104a257806328af7afc146104b757610335565b806313a29bb21461042357806318160ddd1461043857806318ff49c51461044d57610335565b806301ffc9a71461033a57806306fdde0314610370578063081812fc14610392578063095ea7b3146103bf5780630a302530146103e15780631096952314610403575b600080fd5b34801561034657600080fd5b5061035a610355366004612280565b610902565b60405161036791906124d3565b60405180910390f35b34801561037c57600080fd5b5061038561094a565b60405161036791906124e7565b34801561039e57600080fd5b506103b26103ad366004612268565b6109dc565b6040516103679190612482565b3480156103cb57600080fd5b506103df6103da366004612196565b610a28565b005b3480156103ed57600080fd5b506103f6610ac0565b60405161036791906124de565b34801561040f57600080fd5b506103df61041e3660046122b8565b610ac6565b34801561042f57600080fd5b506103f6610af4565b34801561044457600080fd5b506103f6610afa565b34801561045957600080fd5b5061035a610468366004612268565b610b0b565b34801561047957600080fd5b506103f6610b1e565b34801561048e57600080fd5b506103df61049d3660046120a8565b610b24565b3480156104ae57600080fd5b5061035a610b5c565b3480156104c357600080fd5b506103df610b65565b3480156104d857600080fd5b506103f6610b9d565b3480156104ed57600080fd5b506103df6104fc366004612268565b610ba3565b34801561050d57600080fd5b506103b2610c3d565b6103df610c4c565b34801561052a57600080fd5b506103df6105393660046120a8565b610d4d565b34801561054a57600080fd5b506103df6105593660046121c1565b610d68565b6103df61056c3660046122fe565b611031565b34801561057d57600080fd5b506103df611256565b34801561059257600080fd5b506103df6105a13660046122b8565b611281565b3480156105b257600080fd5b5061035a6112ab565b3480156105c757600080fd5b506103b26105d6366004612268565b6112bc565b3480156105e757600080fd5b506103856112f1565b3480156105fc57600080fd5b506103f661060b366004612031565b61137f565b34801561061c57600080fd5b5061035a6113c3565b34801561063157600080fd5b506103b26113d2565b34801561064657600080fd5b506103df6113e1565b34801561065b57600080fd5b506103df61066a3660046122b8565b611415565b34801561067b57600080fd5b5061038561143f565b34801561069057600080fd5b506103df61069f366004612031565b61144e565b3480156106b057600080fd5b506103f6611487565b6103df6106c7366004612268565b61148d565b3480156106d857600080fd5b506103df6106e7366004612165565b61158b565b3480156106f857600080fd5b506103f661159d565b34801561070d57600080fd5b506103df61071c3660046120e8565b6115a3565b34801561072d57600080fd5b506103df61073c366004612031565b6115e2565b34801561074d57600080fd5b506103f661075c366004612031565b61161b565b34801561076d57600080fd5b5061038561077c366004612268565b61162d565b34801561078d57600080fd5b5061035a611661565b3480156107a257600080fd5b506103df6107b1366004612031565b61166f565b3480156107c257600080fd5b506103f66116a8565b3480156107d757600080fd5b506103df6107e6366004612268565b6116c7565b3480156107f757600080fd5b506103f66116e3565b34801561080c57600080fd5b506103856116e9565b34801561082157600080fd5b5061035a610830366004612070565b6116f8565b34801561084157600080fd5b506103f6611726565b34801561085657600080fd5b506103df610865366004612031565b61172c565b34801561087657600080fd5b506103df610885366004612031565b611765565b34801561089657600080fd5b5061035a61179e565b3480156108ab57600080fd5b506103df6108ba366004612268565b6117ae565b3480156108cb57600080fd5b506108df6108da366004612268565b6117ca565b604051610367929190612ba4565b3480156108f957600080fd5b506103f66117e6565b60006001600160e01b031982166380ac58cd60e01b148061093357506001600160e01b03198216635b5e139f60e01b145b806109425750610942826117ec565b90505b919050565b60606000805461095990612c78565b80601f016020809104026020016040519081016040528092919081815260200182805461098590612c78565b80156109d25780601f106109a7576101008083540402835291602001916109d2565b820191906000526020600020905b8154815290600101906020018083116109b557829003601f168201915b5050505050905090565b60006109e782611805565b610a0c5760405162461bcd60e51b8152600401610a03906128df565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610a33826112bc565b9050806001600160a01b0316836001600160a01b03161415610a675760405162461bcd60e51b8152600401610a03906129e2565b806001600160a01b0316610a79611822565b6001600160a01b03161480610a955750610a9581610830611822565b610ab15760405162461bcd60e51b8152600401610a0390612716565b610abb8383611826565b505050565b60175481565b6018546001600160a01b03163314610add57600080fd5b8051610af090600a906020840190611f40565b5050565b60135481565b6000610b066007611894565b905090565b6000818152600d60205260409020541490565b60155481565b610b35610b2f611822565b82611898565b610b515760405162461bcd60e51b8152600401610a0390612a77565b610abb83838361191d565b60085460ff1681565b6018546001600160a01b03163314610b7c57600080fd5b6008805463ff00000019811663010000009182900460ff1615909102179055565b60105481565b6018546001600160a01b03163314610bba57600080fd5b601154610bc8906001612bea565b81601554610bd69190612bea565b10610bf35760405162461bcd60e51b8152600401610a03906128b0565b60005b81811015610af0576011546015541015610c2b57600160156000828254610c1d9190612bea565b90915550610c2b9050611a4a565b80610c3581612cb3565b915050610bf6565b601c546001600160a01b031681565b6018546001600160a01b03163314610c6357600080fd5b60006103e8610c73476064612c16565b610c7d9190612c02565b905060006103e8610c8f4760fa612c16565b610c999190612c02565b905060006103e8610cac4761028a612c16565b610cb69190612c02565b6019546040519192506001600160a01b03169084156108fc029085906000818181858888f19350505050610ce957600080fd5b601a546040516001600160a01b039091169083156108fc029084906000818181858888f19350505050610d1b57600080fd5b601b546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050610abb57600080fd5b610abb838383604051806020016040528060008152506115a3565b600854610100900460ff16610d8f5760405162461bcd60e51b8152600401610a03906129ab565b601254610d9d906001612bea565b815110610dbc5760405162461bcd60e51b8152600401610a0390612806565b333214610ddb5760405162461bcd60e51b8152600401610a0390612ac8565b600f54610de9906001612bea565b8151601354610df89190612bea565b10610e155760405162461bcd60e51b8152600401610a039061284b565b60005b8151811015610af057601c54825133916001600160a01b031690636352211e90859085908110610e5857634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401610e7c91906124de565b60206040518083038186803b158015610e9457600080fd5b505afa158015610ea8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ecc9190612054565b6001600160a01b031614610ef25760405162461bcd60e51b8152600401610a0390612974565b610f22828281518110610f1557634e487b7160e01b600052603260045260246000fd5b6020026020010151610b0b565b15610f3f5760405162461bcd60e51b8152600401610a03906125cf565b818181518110610f5f57634e487b7160e01b600052603260045260246000fd5b6020026020010151600d6000848481518110610f8b57634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600001819055506001600d6000848481518110610fce57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060010160006101000a81548160ff0219169083151502179055506001601360008282546110119190612bea565b9091555061101f9050611a4a565b8061102981612cb3565b915050610e18565b6008546301000000900460ff1661105a5760405162461bcd60e51b8152600401610a03906129ab565b3332146110795760405162461bcd60e51b8152600401610a0390612aff565b601254611087906001612bea565b83106110a55760405162461bcd60e51b8152600401610a0390612806565b6010546110b3906001612bea565b836014546110c19190612bea565b106110de5760405162461bcd60e51b8152600401610a039061269b565b6000336040516020016110f191906123bf565b604051602081830303815290604052805190602001209050600061114c848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506017549150859050611aa7565b90508061116b5760405162461bcd60e51b8152600401610a0390612a23565b601254611179906001612bea565b336000908152600e6020526040902054611194908790612bea565b106111b15760405162461bcd60e51b8152600401610a03906124fa565b846016546111bf9190612c16565b3410156111de5760405162461bcd60e51b8152600401610a0390612b6d565b60005b600181101561124e57601054601454101561123c576001601460008282546112099190612bea565b9091555050336000908152600e6020526040812080546001929061122e908490612bea565b9091555061123c9050611a4a565b8061124681612cb3565b9150506111e1565b505050505050565b6018546001600160a01b0316331461126d57600080fd5b6008805460ff19811660ff90911615179055565b6018546001600160a01b0316331461129857600080fd5b8051610af0906009906020840190611f40565b600854640100000000900460ff1681565b6000818152600260205260408120546001600160a01b0316806109425760405162461bcd60e51b8152600401610a03906127bd565b600a80546112fe90612c78565b80601f016020809104026020016040519081016040528092919081815260200182805461132a90612c78565b80156113775780601f1061134c57610100808354040283529160200191611377565b820191906000526020600020905b81548152906001019060200180831161135a57829003601f168201915b505050505081565b60006001600160a01b0382166113a75760405162461bcd60e51b8152600401610a0390612773565b506001600160a01b031660009081526003602052604090205490565b60085462010000900460ff1681565b6018546001600160a01b031681565b6018546001600160a01b031633146113f857600080fd5b6008805461ff001981166101009182900460ff1615909102179055565b6018546001600160a01b0316331461142c57600080fd5b8051610af090600b906020840190611f40565b60606001805461095990612c78565b6018546001600160a01b0316331461146557600080fd5b601a80546001600160a01b0319166001600160a01b0392909216919091179055565b60165481565b60085460ff166114af5760405162461bcd60e51b8152600401610a03906129ab565b6012546114bd906001612bea565b81106114db5760405162461bcd60e51b8152600401610a0390612806565b6010546114e9906001612bea565b816014546114f79190612bea565b106115145760405162461bcd60e51b8152600401610a039061269b565b806016546115229190612c16565b3410156115415760405162461bcd60e51b8152600401610a0390612b6d565b60005b81811015610af05760105460145410156115795760016014600082825461156b9190612bea565b909155506115799050611a4a565b8061158381612cb3565b915050611544565b610af0611596611822565b8383611abd565b60115481565b6115b46115ae611822565b83611898565b6115d05760405162461bcd60e51b8152600401610a0390612a77565b6115dc84848484611b60565b50505050565b6018546001600160a01b031633146115f957600080fd5b601980546001600160a01b0319166001600160a01b0392909216919091179055565b600e6020526000908152604090205481565b6060600961163a83611b93565b60405160200161164b9291906123dc565b6040516020818303038152906040529050919050565b600854610100900460ff1681565b6018546001600160a01b0316331461168657600080fd5b601b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000601154601054600f546116bd9190612bea565b610b069190612bea565b6018546001600160a01b031633146116de57600080fd5b601755565b60145481565b6060600b805461095990612c78565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60125481565b6018546001600160a01b0316331461174357600080fd5b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6018546001600160a01b0316331461177c57600080fd5b601c80546001600160a01b0319166001600160a01b0392909216919091179055565b6008546301000000900460ff1681565b6018546001600160a01b031633146117c557600080fd5b601655565b600d602052600090815260409020805460019091015460ff1682565b600f5481565b6001600160e01b031981166301ffc9a760e01b14919050565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061185b826112bc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b5490565b60006118a382611805565b6118bf5760405162461bcd60e51b8152600401610a03906126ca565b60006118ca836112bc565b9050806001600160a01b0316846001600160a01b031614806119055750836001600160a01b03166118fa846109dc565b6001600160a01b0316145b80611915575061191581856116f8565b949350505050565b826001600160a01b0316611930826112bc565b6001600160a01b0316146119565760405162461bcd60e51b8152600401610a039061292b565b6001600160a01b03821661197c5760405162461bcd60e51b8152600401610a0390612620565b611987838383610abb565b611992600082611826565b6001600160a01b03831660009081526003602052604081208054600192906119bb908490612c35565b90915550506001600160a01b03821660009081526003602052604081208054600192906119e9908490612bea565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60026006541415611a6d5760405162461bcd60e51b8152600401610a0390612b36565b60026006556000611a7e6007611894565b611a89906001612bea565b9050611a956007611cae565b611a9f3382611cb7565b506001600655565b600082611ab48584611d96565b14949350505050565b816001600160a01b0316836001600160a01b03161415611aef5760405162461bcd60e51b8152600401610a0390612664565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611b539085906124d3565b60405180910390a3505050565b611b6b84848461191d565b611b7784848484611e10565b6115dc5760405162461bcd60e51b8152600401610a0390612546565b606081611bb857506040805180820190915260018152600360fc1b6020820152610945565b8160005b8115611be25780611bcc81612cb3565b9150611bdb9050600a83612c02565b9150611bbc565b60008167ffffffffffffffff811115611c0b57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611c35576020820181803683370190505b5090505b841561191557611c4a600183612c35565b9150611c57600a86612cce565b611c62906030612bea565b60f81b818381518110611c8557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611ca7600a86612c02565b9450611c39565b80546001019055565b6001600160a01b038216611cdd5760405162461bcd60e51b8152600401610a039061287b565b611ce681611805565b15611d035760405162461bcd60e51b8152600401610a0390612598565b611d0f60008383610abb565b6001600160a01b0382166000908152600360205260408120805460019290611d38908490612bea565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600081815b8451811015611e08576000858281518110611dc657634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311611de857611de18382611f2b565b9250611df5565b611df28184611f2b565b92505b5080611e0081612cb3565b915050611d9b565b509392505050565b6000611e24846001600160a01b0316611f3a565b15611f2057836001600160a01b031663150b7a02611e40611822565b8786866040518563ffffffff1660e01b8152600401611e629493929190612496565b602060405180830381600087803b158015611e7c57600080fd5b505af1925050508015611eac575060408051601f3d908101601f19168201909252611ea99181019061229c565b60015b611f06573d808015611eda576040519150601f19603f3d011682016040523d82523d6000602084013e611edf565b606091505b508051611efe5760405162461bcd60e51b8152600401610a0390612546565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611915565b506001949350505050565b60009182526020526040902090565b3b151590565b828054611f4c90612c78565b90600052602060002090601f016020900481019282611f6e5760008555611fb4565b82601f10611f8757805160ff1916838001178555611fb4565b82800160010185558215611fb4579182015b82811115611fb4578251825591602001919060010190611f99565b50611fc0929150611fc4565b5090565b5b80821115611fc05760008155600101611fc5565b600067ffffffffffffffff831115611ff357611ff3612d0e565b612006601f8401601f1916602001612bb4565b905082815283838301111561201a57600080fd5b828260208301376000602084830101529392505050565b600060208284031215612042578081fd5b813561204d81612d24565b9392505050565b600060208284031215612065578081fd5b815161204d81612d24565b60008060408385031215612082578081fd5b823561208d81612d24565b9150602083013561209d81612d24565b809150509250929050565b6000806000606084860312156120bc578081fd5b83356120c781612d24565b925060208401356120d781612d24565b929592945050506040919091013590565b600080600080608085870312156120fd578081fd5b843561210881612d24565b9350602085013561211881612d24565b925060408501359150606085013567ffffffffffffffff81111561213a578182fd5b8501601f8101871361214a578182fd5b61215987823560208401611fd9565b91505092959194509250565b60008060408385031215612177578182fd5b823561218281612d24565b91506020830135801515811461209d578182fd5b600080604083850312156121a8578182fd5b82356121b381612d24565b946020939093013593505050565b600060208083850312156121d3578182fd5b823567ffffffffffffffff808211156121ea578384fd5b818501915085601f8301126121fd578384fd5b81358181111561220f5761220f612d0e565b838102915061221f848301612bb4565b8181528481019084860184860187018a1015612239578788fd5b8795505b8386101561225b57803583526001959095019491860191860161223d565b5098975050505050505050565b600060208284031215612279578081fd5b5035919050565b600060208284031215612291578081fd5b813561204d81612d3c565b6000602082840312156122ad578081fd5b815161204d81612d3c565b6000602082840312156122c9578081fd5b813567ffffffffffffffff8111156122df578182fd5b8201601f810184136122ef578182fd5b61191584823560208401611fd9565b600080600060408486031215612312578081fd5b83359250602084013567ffffffffffffffff80821115612330578283fd5b818601915086601f830112612343578283fd5b813581811115612351578384fd5b8760208083028501011115612364578384fd5b6020830194508093505050509250925092565b6000815180845261238f816020860160208601612c4c565b601f01601f19169290920160200192915050565b600081516123b5818560208601612c4c565b9290920192915050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b82546000908190600281046001808316806123f857607f831692505b602080841082141561241857634e487b7160e01b87526022600452602487fd5b81801561242c576001811461243d57612469565b60ff19861689528489019650612469565b6124468b612bde565b885b868110156124615781548b820152908501908301612448565b505084890196505b50505050505061247981856123a3565b95945050505050565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906124c990830184612377565b9695505050505050565b901515815260200190565b90815260200190565b60006020825261204d6020830184612377565b6020808252602c908201527f416c726561647920636c61696d65642c20706c65617365207761697420666f7260408201526b081c1d589b1a58c81b5a5b9d60a21b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526031908201527f4d696e74506173732068617320616c7265616479206265656e20636c61696d6560408201527032103337b9103a3434b9903a37b5b2b71760791b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526015908201527413dd995c881b585e081c1d589b1a58c81b1a5b5a5d605a1b604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b60208082526025908201527f43616e277420636c61696d2074686973206d616e7920746f6b656e732061742060408201526437b731b29760d91b606082015260800190565b60208082526016908201527545786365656473207072697661746520737570706c7960501b604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526015908201527413585e0819195d881d1bdad95b9cc81b5a5b9d1959605a1b604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252601a908201527f596f7520646f206e6f74206f776e207468697320746f6b656e2e000000000000604082015260600190565b60208082526019908201527f53616c6520686173206e6f742073746172746564207965742e00000000000000604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526034908201527f596f7520617265206e6f742077686974656c69737465642c20706c65617365206040820152731dd85a5d08199bdc881c1d589b1a58c81b5a5b9d60621b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601e908201527f43616e6e6f7420757365206120636f6e747261637420666f7220746869730000604082015260600190565b6020808252601d908201527f43616e6e6f7420757365206120636f6e747261637420746f206d696e74000000604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526017908201527f4554482073656e74206973206e6f7420636f7272656374000000000000000000604082015260600190565b9182521515602082015260400190565b60405181810167ffffffffffffffff81118282101715612bd657612bd6612d0e565b604052919050565b60009081526020902090565b60008219821115612bfd57612bfd612ce2565b500190565b600082612c1157612c11612cf8565b500490565b6000816000190483118215151615612c3057612c30612ce2565b500290565b600082821015612c4757612c47612ce2565b500390565b60005b83811015612c67578181015183820152602001612c4f565b838111156115dc5750506000910152565b600281046001821680612c8c57607f821691505b60208210811415612cad57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612cc757612cc7612ce2565b5060010190565b600082612cdd57612cdd612cf8565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612d3957600080fd5b50565b6001600160e01b031981168114612d3957600080fdfea26469706673582212206b5d6cd5a10436b0314e641521fc7ada9a5f90fd5bf0374a7a548f39fc98c8c464736f6c63430008000033000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000fa0000000000000000000000000000000000000000000000000000000000000170c00000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000b5068f4f23ce76f6f9e789e39b390de176a21e7fa0375128e0b5e25778ecbb71b966f9f099a1f29ac3a8bcf83bb4cc69fcf9e64c00000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000000124d6574614765636b6f734163746976617465000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054d47455831000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005368747470733a2f2f656e7469746965732e6d7970696e6174612e636c6f75642f697066732f516d53373364796843463974507a6837514163415772703637534168784d4468584b794146346245444d4c55733300000000000000000000000000000000000000000000000000000000000000000000000000000000000000002f68747470733a2f2f6d676578312e6865726f6b756170702e636f6d2f6170692f746f6b656e2d6d657461646174612f0000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103355760003560e01c80638da5cb5b116101ab578063ce79d7a5116100f7578063f0292a0311610095578063f413a9ff1161006f578063f413a9ff1461088a578063f4a0a5281461089f578063f9d0afa8146108bf578063fabb652b146108ed57610335565b8063f0292a0314610835578063f2fde38b1461084a578063f31798911461086a57610335565b8063d8a7ab89116100d1578063d8a7ab89146107cb578063e6a5931e146107eb578063e8a3d48514610800578063e985e9c51461081557610335565b8063ce79d7a514610781578063d0b8512114610796578063d5abeb01146107b657610335565b8063a0712d6811610164578063b88d4fde1161013e578063b88d4fde14610701578063bc548db914610721578063c413fa9714610741578063c87b56dd1461076157610335565b8063a0712d68146106b9578063a22cb465146106cc578063a3db1b83146106ec57610335565b80638da5cb5b14610625578063919216ad1461063a578063938e3d7b1461064f57806395d89b411461066f5780639c882a3e14610684578063a035b1fe146106a457610335565b80632a47f79911610285578063510db75a116102235780636352211e116101fd5780636352211e146105bb5780636373a6b1146105db57806370a08231146105f05780638290becd1461061057610335565b8063510db75a1461057157806355f804b3146105865780635d08c1ae146105a657610335565b80633ccfd60b1161025f5780633ccfd60b1461051657806342842e0e1461051e578063448f9ca61461053e5780634d10b5461461055e57610335565b80632a47f799146104cc5780632fbba115146104e15780633a3543a41461050157610335565b806313a29bb2116102f25780631a2832e8116102cc5780631a2832e81461046d57806323b872dd1461048257806325fd90f3146104a257806328af7afc146104b757610335565b806313a29bb21461042357806318160ddd1461043857806318ff49c51461044d57610335565b806301ffc9a71461033a57806306fdde0314610370578063081812fc14610392578063095ea7b3146103bf5780630a302530146103e15780631096952314610403575b600080fd5b34801561034657600080fd5b5061035a610355366004612280565b610902565b60405161036791906124d3565b60405180910390f35b34801561037c57600080fd5b5061038561094a565b60405161036791906124e7565b34801561039e57600080fd5b506103b26103ad366004612268565b6109dc565b6040516103679190612482565b3480156103cb57600080fd5b506103df6103da366004612196565b610a28565b005b3480156103ed57600080fd5b506103f6610ac0565b60405161036791906124de565b34801561040f57600080fd5b506103df61041e3660046122b8565b610ac6565b34801561042f57600080fd5b506103f6610af4565b34801561044457600080fd5b506103f6610afa565b34801561045957600080fd5b5061035a610468366004612268565b610b0b565b34801561047957600080fd5b506103f6610b1e565b34801561048e57600080fd5b506103df61049d3660046120a8565b610b24565b3480156104ae57600080fd5b5061035a610b5c565b3480156104c357600080fd5b506103df610b65565b3480156104d857600080fd5b506103f6610b9d565b3480156104ed57600080fd5b506103df6104fc366004612268565b610ba3565b34801561050d57600080fd5b506103b2610c3d565b6103df610c4c565b34801561052a57600080fd5b506103df6105393660046120a8565b610d4d565b34801561054a57600080fd5b506103df6105593660046121c1565b610d68565b6103df61056c3660046122fe565b611031565b34801561057d57600080fd5b506103df611256565b34801561059257600080fd5b506103df6105a13660046122b8565b611281565b3480156105b257600080fd5b5061035a6112ab565b3480156105c757600080fd5b506103b26105d6366004612268565b6112bc565b3480156105e757600080fd5b506103856112f1565b3480156105fc57600080fd5b506103f661060b366004612031565b61137f565b34801561061c57600080fd5b5061035a6113c3565b34801561063157600080fd5b506103b26113d2565b34801561064657600080fd5b506103df6113e1565b34801561065b57600080fd5b506103df61066a3660046122b8565b611415565b34801561067b57600080fd5b5061038561143f565b34801561069057600080fd5b506103df61069f366004612031565b61144e565b3480156106b057600080fd5b506103f6611487565b6103df6106c7366004612268565b61148d565b3480156106d857600080fd5b506103df6106e7366004612165565b61158b565b3480156106f857600080fd5b506103f661159d565b34801561070d57600080fd5b506103df61071c3660046120e8565b6115a3565b34801561072d57600080fd5b506103df61073c366004612031565b6115e2565b34801561074d57600080fd5b506103f661075c366004612031565b61161b565b34801561076d57600080fd5b5061038561077c366004612268565b61162d565b34801561078d57600080fd5b5061035a611661565b3480156107a257600080fd5b506103df6107b1366004612031565b61166f565b3480156107c257600080fd5b506103f66116a8565b3480156107d757600080fd5b506103df6107e6366004612268565b6116c7565b3480156107f757600080fd5b506103f66116e3565b34801561080c57600080fd5b506103856116e9565b34801561082157600080fd5b5061035a610830366004612070565b6116f8565b34801561084157600080fd5b506103f6611726565b34801561085657600080fd5b506103df610865366004612031565b61172c565b34801561087657600080fd5b506103df610885366004612031565b611765565b34801561089657600080fd5b5061035a61179e565b3480156108ab57600080fd5b506103df6108ba366004612268565b6117ae565b3480156108cb57600080fd5b506108df6108da366004612268565b6117ca565b604051610367929190612ba4565b3480156108f957600080fd5b506103f66117e6565b60006001600160e01b031982166380ac58cd60e01b148061093357506001600160e01b03198216635b5e139f60e01b145b806109425750610942826117ec565b90505b919050565b60606000805461095990612c78565b80601f016020809104026020016040519081016040528092919081815260200182805461098590612c78565b80156109d25780601f106109a7576101008083540402835291602001916109d2565b820191906000526020600020905b8154815290600101906020018083116109b557829003601f168201915b5050505050905090565b60006109e782611805565b610a0c5760405162461bcd60e51b8152600401610a03906128df565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610a33826112bc565b9050806001600160a01b0316836001600160a01b03161415610a675760405162461bcd60e51b8152600401610a03906129e2565b806001600160a01b0316610a79611822565b6001600160a01b03161480610a955750610a9581610830611822565b610ab15760405162461bcd60e51b8152600401610a0390612716565b610abb8383611826565b505050565b60175481565b6018546001600160a01b03163314610add57600080fd5b8051610af090600a906020840190611f40565b5050565b60135481565b6000610b066007611894565b905090565b6000818152600d60205260409020541490565b60155481565b610b35610b2f611822565b82611898565b610b515760405162461bcd60e51b8152600401610a0390612a77565b610abb83838361191d565b60085460ff1681565b6018546001600160a01b03163314610b7c57600080fd5b6008805463ff00000019811663010000009182900460ff1615909102179055565b60105481565b6018546001600160a01b03163314610bba57600080fd5b601154610bc8906001612bea565b81601554610bd69190612bea565b10610bf35760405162461bcd60e51b8152600401610a03906128b0565b60005b81811015610af0576011546015541015610c2b57600160156000828254610c1d9190612bea565b90915550610c2b9050611a4a565b80610c3581612cb3565b915050610bf6565b601c546001600160a01b031681565b6018546001600160a01b03163314610c6357600080fd5b60006103e8610c73476064612c16565b610c7d9190612c02565b905060006103e8610c8f4760fa612c16565b610c999190612c02565b905060006103e8610cac4761028a612c16565b610cb69190612c02565b6019546040519192506001600160a01b03169084156108fc029085906000818181858888f19350505050610ce957600080fd5b601a546040516001600160a01b039091169083156108fc029084906000818181858888f19350505050610d1b57600080fd5b601b546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050610abb57600080fd5b610abb838383604051806020016040528060008152506115a3565b600854610100900460ff16610d8f5760405162461bcd60e51b8152600401610a03906129ab565b601254610d9d906001612bea565b815110610dbc5760405162461bcd60e51b8152600401610a0390612806565b333214610ddb5760405162461bcd60e51b8152600401610a0390612ac8565b600f54610de9906001612bea565b8151601354610df89190612bea565b10610e155760405162461bcd60e51b8152600401610a039061284b565b60005b8151811015610af057601c54825133916001600160a01b031690636352211e90859085908110610e5857634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401610e7c91906124de565b60206040518083038186803b158015610e9457600080fd5b505afa158015610ea8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ecc9190612054565b6001600160a01b031614610ef25760405162461bcd60e51b8152600401610a0390612974565b610f22828281518110610f1557634e487b7160e01b600052603260045260246000fd5b6020026020010151610b0b565b15610f3f5760405162461bcd60e51b8152600401610a03906125cf565b818181518110610f5f57634e487b7160e01b600052603260045260246000fd5b6020026020010151600d6000848481518110610f8b57634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600001819055506001600d6000848481518110610fce57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060010160006101000a81548160ff0219169083151502179055506001601360008282546110119190612bea565b9091555061101f9050611a4a565b8061102981612cb3565b915050610e18565b6008546301000000900460ff1661105a5760405162461bcd60e51b8152600401610a03906129ab565b3332146110795760405162461bcd60e51b8152600401610a0390612aff565b601254611087906001612bea565b83106110a55760405162461bcd60e51b8152600401610a0390612806565b6010546110b3906001612bea565b836014546110c19190612bea565b106110de5760405162461bcd60e51b8152600401610a039061269b565b6000336040516020016110f191906123bf565b604051602081830303815290604052805190602001209050600061114c848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506017549150859050611aa7565b90508061116b5760405162461bcd60e51b8152600401610a0390612a23565b601254611179906001612bea565b336000908152600e6020526040902054611194908790612bea565b106111b15760405162461bcd60e51b8152600401610a03906124fa565b846016546111bf9190612c16565b3410156111de5760405162461bcd60e51b8152600401610a0390612b6d565b60005b600181101561124e57601054601454101561123c576001601460008282546112099190612bea565b9091555050336000908152600e6020526040812080546001929061122e908490612bea565b9091555061123c9050611a4a565b8061124681612cb3565b9150506111e1565b505050505050565b6018546001600160a01b0316331461126d57600080fd5b6008805460ff19811660ff90911615179055565b6018546001600160a01b0316331461129857600080fd5b8051610af0906009906020840190611f40565b600854640100000000900460ff1681565b6000818152600260205260408120546001600160a01b0316806109425760405162461bcd60e51b8152600401610a03906127bd565b600a80546112fe90612c78565b80601f016020809104026020016040519081016040528092919081815260200182805461132a90612c78565b80156113775780601f1061134c57610100808354040283529160200191611377565b820191906000526020600020905b81548152906001019060200180831161135a57829003601f168201915b505050505081565b60006001600160a01b0382166113a75760405162461bcd60e51b8152600401610a0390612773565b506001600160a01b031660009081526003602052604090205490565b60085462010000900460ff1681565b6018546001600160a01b031681565b6018546001600160a01b031633146113f857600080fd5b6008805461ff001981166101009182900460ff1615909102179055565b6018546001600160a01b0316331461142c57600080fd5b8051610af090600b906020840190611f40565b60606001805461095990612c78565b6018546001600160a01b0316331461146557600080fd5b601a80546001600160a01b0319166001600160a01b0392909216919091179055565b60165481565b60085460ff166114af5760405162461bcd60e51b8152600401610a03906129ab565b6012546114bd906001612bea565b81106114db5760405162461bcd60e51b8152600401610a0390612806565b6010546114e9906001612bea565b816014546114f79190612bea565b106115145760405162461bcd60e51b8152600401610a039061269b565b806016546115229190612c16565b3410156115415760405162461bcd60e51b8152600401610a0390612b6d565b60005b81811015610af05760105460145410156115795760016014600082825461156b9190612bea565b909155506115799050611a4a565b8061158381612cb3565b915050611544565b610af0611596611822565b8383611abd565b60115481565b6115b46115ae611822565b83611898565b6115d05760405162461bcd60e51b8152600401610a0390612a77565b6115dc84848484611b60565b50505050565b6018546001600160a01b031633146115f957600080fd5b601980546001600160a01b0319166001600160a01b0392909216919091179055565b600e6020526000908152604090205481565b6060600961163a83611b93565b60405160200161164b9291906123dc565b6040516020818303038152906040529050919050565b600854610100900460ff1681565b6018546001600160a01b0316331461168657600080fd5b601b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000601154601054600f546116bd9190612bea565b610b069190612bea565b6018546001600160a01b031633146116de57600080fd5b601755565b60145481565b6060600b805461095990612c78565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60125481565b6018546001600160a01b0316331461174357600080fd5b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6018546001600160a01b0316331461177c57600080fd5b601c80546001600160a01b0319166001600160a01b0392909216919091179055565b6008546301000000900460ff1681565b6018546001600160a01b031633146117c557600080fd5b601655565b600d602052600090815260409020805460019091015460ff1682565b600f5481565b6001600160e01b031981166301ffc9a760e01b14919050565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061185b826112bc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b5490565b60006118a382611805565b6118bf5760405162461bcd60e51b8152600401610a03906126ca565b60006118ca836112bc565b9050806001600160a01b0316846001600160a01b031614806119055750836001600160a01b03166118fa846109dc565b6001600160a01b0316145b80611915575061191581856116f8565b949350505050565b826001600160a01b0316611930826112bc565b6001600160a01b0316146119565760405162461bcd60e51b8152600401610a039061292b565b6001600160a01b03821661197c5760405162461bcd60e51b8152600401610a0390612620565b611987838383610abb565b611992600082611826565b6001600160a01b03831660009081526003602052604081208054600192906119bb908490612c35565b90915550506001600160a01b03821660009081526003602052604081208054600192906119e9908490612bea565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60026006541415611a6d5760405162461bcd60e51b8152600401610a0390612b36565b60026006556000611a7e6007611894565b611a89906001612bea565b9050611a956007611cae565b611a9f3382611cb7565b506001600655565b600082611ab48584611d96565b14949350505050565b816001600160a01b0316836001600160a01b03161415611aef5760405162461bcd60e51b8152600401610a0390612664565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611b539085906124d3565b60405180910390a3505050565b611b6b84848461191d565b611b7784848484611e10565b6115dc5760405162461bcd60e51b8152600401610a0390612546565b606081611bb857506040805180820190915260018152600360fc1b6020820152610945565b8160005b8115611be25780611bcc81612cb3565b9150611bdb9050600a83612c02565b9150611bbc565b60008167ffffffffffffffff811115611c0b57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611c35576020820181803683370190505b5090505b841561191557611c4a600183612c35565b9150611c57600a86612cce565b611c62906030612bea565b60f81b818381518110611c8557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611ca7600a86612c02565b9450611c39565b80546001019055565b6001600160a01b038216611cdd5760405162461bcd60e51b8152600401610a039061287b565b611ce681611805565b15611d035760405162461bcd60e51b8152600401610a0390612598565b611d0f60008383610abb565b6001600160a01b0382166000908152600360205260408120805460019290611d38908490612bea565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600081815b8451811015611e08576000858281518110611dc657634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311611de857611de18382611f2b565b9250611df5565b611df28184611f2b565b92505b5080611e0081612cb3565b915050611d9b565b509392505050565b6000611e24846001600160a01b0316611f3a565b15611f2057836001600160a01b031663150b7a02611e40611822565b8786866040518563ffffffff1660e01b8152600401611e629493929190612496565b602060405180830381600087803b158015611e7c57600080fd5b505af1925050508015611eac575060408051601f3d908101601f19168201909252611ea99181019061229c565b60015b611f06573d808015611eda576040519150601f19603f3d011682016040523d82523d6000602084013e611edf565b606091505b508051611efe5760405162461bcd60e51b8152600401610a0390612546565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611915565b506001949350505050565b60009182526020526040902090565b3b151590565b828054611f4c90612c78565b90600052602060002090601f016020900481019282611f6e5760008555611fb4565b82601f10611f8757805160ff1916838001178555611fb4565b82800160010185558215611fb4579182015b82811115611fb4578251825591602001919060010190611f99565b50611fc0929150611fc4565b5090565b5b80821115611fc05760008155600101611fc5565b600067ffffffffffffffff831115611ff357611ff3612d0e565b612006601f8401601f1916602001612bb4565b905082815283838301111561201a57600080fd5b828260208301376000602084830101529392505050565b600060208284031215612042578081fd5b813561204d81612d24565b9392505050565b600060208284031215612065578081fd5b815161204d81612d24565b60008060408385031215612082578081fd5b823561208d81612d24565b9150602083013561209d81612d24565b809150509250929050565b6000806000606084860312156120bc578081fd5b83356120c781612d24565b925060208401356120d781612d24565b929592945050506040919091013590565b600080600080608085870312156120fd578081fd5b843561210881612d24565b9350602085013561211881612d24565b925060408501359150606085013567ffffffffffffffff81111561213a578182fd5b8501601f8101871361214a578182fd5b61215987823560208401611fd9565b91505092959194509250565b60008060408385031215612177578182fd5b823561218281612d24565b91506020830135801515811461209d578182fd5b600080604083850312156121a8578182fd5b82356121b381612d24565b946020939093013593505050565b600060208083850312156121d3578182fd5b823567ffffffffffffffff808211156121ea578384fd5b818501915085601f8301126121fd578384fd5b81358181111561220f5761220f612d0e565b838102915061221f848301612bb4565b8181528481019084860184860187018a1015612239578788fd5b8795505b8386101561225b57803583526001959095019491860191860161223d565b5098975050505050505050565b600060208284031215612279578081fd5b5035919050565b600060208284031215612291578081fd5b813561204d81612d3c565b6000602082840312156122ad578081fd5b815161204d81612d3c565b6000602082840312156122c9578081fd5b813567ffffffffffffffff8111156122df578182fd5b8201601f810184136122ef578182fd5b61191584823560208401611fd9565b600080600060408486031215612312578081fd5b83359250602084013567ffffffffffffffff80821115612330578283fd5b818601915086601f830112612343578283fd5b813581811115612351578384fd5b8760208083028501011115612364578384fd5b6020830194508093505050509250925092565b6000815180845261238f816020860160208601612c4c565b601f01601f19169290920160200192915050565b600081516123b5818560208601612c4c565b9290920192915050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b82546000908190600281046001808316806123f857607f831692505b602080841082141561241857634e487b7160e01b87526022600452602487fd5b81801561242c576001811461243d57612469565b60ff19861689528489019650612469565b6124468b612bde565b885b868110156124615781548b820152908501908301612448565b505084890196505b50505050505061247981856123a3565b95945050505050565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906124c990830184612377565b9695505050505050565b901515815260200190565b90815260200190565b60006020825261204d6020830184612377565b6020808252602c908201527f416c726561647920636c61696d65642c20706c65617365207761697420666f7260408201526b081c1d589b1a58c81b5a5b9d60a21b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526031908201527f4d696e74506173732068617320616c7265616479206265656e20636c61696d6560408201527032103337b9103a3434b9903a37b5b2b71760791b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526015908201527413dd995c881b585e081c1d589b1a58c81b1a5b5a5d605a1b604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b60208082526025908201527f43616e277420636c61696d2074686973206d616e7920746f6b656e732061742060408201526437b731b29760d91b606082015260800190565b60208082526016908201527545786365656473207072697661746520737570706c7960501b604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526015908201527413585e0819195d881d1bdad95b9cc81b5a5b9d1959605a1b604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252601a908201527f596f7520646f206e6f74206f776e207468697320746f6b656e2e000000000000604082015260600190565b60208082526019908201527f53616c6520686173206e6f742073746172746564207965742e00000000000000604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526034908201527f596f7520617265206e6f742077686974656c69737465642c20706c65617365206040820152731dd85a5d08199bdc881c1d589b1a58c81b5a5b9d60621b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601e908201527f43616e6e6f7420757365206120636f6e747261637420666f7220746869730000604082015260600190565b6020808252601d908201527f43616e6e6f7420757365206120636f6e747261637420746f206d696e74000000604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526017908201527f4554482073656e74206973206e6f7420636f7272656374000000000000000000604082015260600190565b9182521515602082015260400190565b60405181810167ffffffffffffffff81118282101715612bd657612bd6612d0e565b604052919050565b60009081526020902090565b60008219821115612bfd57612bfd612ce2565b500190565b600082612c1157612c11612cf8565b500490565b6000816000190483118215151615612c3057612c30612ce2565b500290565b600082821015612c4757612c47612ce2565b500390565b60005b83811015612c67578181015183820152602001612c4f565b838111156115dc5750506000910152565b600281046001821680612c8c57607f821691505b60208210811415612cad57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612cc757612cc7612ce2565b5060010190565b600082612cdd57612cdd612cf8565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612d3957600080fd5b50565b6001600160e01b031981168114612d3957600080fdfea26469706673582212206b5d6cd5a10436b0314e641521fc7ada9a5f90fd5bf0374a7a548f39fc98c8c464736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000fa0000000000000000000000000000000000000000000000000000000000000170c00000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000b5068f4f23ce76f6f9e789e39b390de176a21e7fa0375128e0b5e25778ecbb71b966f9f099a1f29ac3a8bcf83bb4cc69fcf9e64c00000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000000124d6574614765636b6f734163746976617465000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054d47455831000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005368747470733a2f2f656e7469746965732e6d7970696e6174612e636c6f75642f697066732f516d53373364796843463974507a6837514163415772703637534168784d4468584b794146346245444d4c55733300000000000000000000000000000000000000000000000000000000000000000000000000000000000000002f68747470733a2f2f6d676578312e6865726f6b756170702e636f6d2f6170692f746f6b656e2d6d657461646174612f0000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : COLLECTION_NAME (string): MetaGeckosActivate
Arg [1] : COLLECTION_SYMBOL (string): MGEX1
Arg [2] : _MAX_MINTPASS_SUPPLY (uint256): 4000
Arg [3] : _MAX_PUBLIC_SUPPLY (uint256): 5900
Arg [4] : _MAX_TEAM_MINT (uint256): 100
Arg [5] : _MAX_MINT (uint256): 20
Arg [6] : _price (uint256): 100000000000000000
Arg [7] : _mintPassToken (address): 0xb5068f4f23Ce76F6f9e789e39b390de176A21E7f
Arg [8] : _ogMerkleRoot (bytes32): 0xa0375128e0b5e25778ecbb71b966f9f099a1f29ac3a8bcf83bb4cc69fcf9e64c
Arg [9] : _baseContractURI (string): https://entities.mypinata.cloud/ipfs/QmS73dyhCF9tPzh7QAcAWrp67SAhxMDhXKyAF4bEDMLUs3
Arg [10] : _baseTokenURI (string): https://mgex1.herokuapp.com/api/token-metadata/
-----Encoded View---------------
22 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000fa0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000170c
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [6] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [7] : 000000000000000000000000b5068f4f23ce76f6f9e789e39b390de176a21e7f
Arg [8] : a0375128e0b5e25778ecbb71b966f9f099a1f29ac3a8bcf83bb4cc69fcf9e64c
Arg [9] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000260
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [12] : 4d6574614765636b6f7341637469766174650000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [14] : 4d47455831000000000000000000000000000000000000000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000053
Arg [16] : 68747470733a2f2f656e7469746965732e6d7970696e6174612e636c6f75642f
Arg [17] : 697066732f516d53373364796843463974507a68375141634157727036375341
Arg [18] : 68784d4468584b794146346245444d4c55733300000000000000000000000000
Arg [19] : 000000000000000000000000000000000000000000000000000000000000002f
Arg [20] : 68747470733a2f2f6d676578312e6865726f6b756170702e636f6d2f6170692f
Arg [21] : 746f6b656e2d6d657461646174612f0000000000000000000000000000000000
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.