Feature Tip: Add private address tag to any address under My Name Tag !
Overview
TokenID
1024
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TheSymbols
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 100 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.11; import '@openzeppelin/contracts/access/Ownable.sol'; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "./ERC721A.sol"; /* * @title ERC721 token for TheSymbols * * @author TheSymbols */ contract TheSymbols is ERC721A, Ownable, IERC2981 { using Strings for uint256; using Counters for Counters.Counter; using ECDSA for bytes32; uint256 public constant PERCENTAGE_DENOMINATOR = 10000; uint256 public constant MAX_SUPPLY = 9775; bool public reveal; uint256 public publicMintPrice; address public multisigWallet; address public royaltiesMultisigWallet; uint256 public royaltiesBasisPoint; address public signerPublicAddress; bool public allowlistSaleOpen; bool public publicSaleOpen; string public foundersIPFSURI; string public ipfsStaticURI; string public genesisIPFSURI; uint256 public maxMintPublic; uint256[] public allowlistMintPrices; uint256[] public allowlistMintPricesAfterFreeMintDone; uint256 public maxFreeMints; uint256 private _maxMintAllowlisted; /** * @notice Constructor to create Genesis contract * * @param _name the token Name * @param _symbol the token Symbol */ constructor ( string memory _name, string memory _symbol, address _multisigWallet, address _royaltiesMultisigWallet, string memory _foundersIPFSURI, string memory _ipfsStaticURI, string memory _genesisIPFSURI, address _signerPublicAddress ) ERC721A(_name, _symbol) { foundersIPFSURI = _foundersIPFSURI; ipfsStaticURI = _ipfsStaticURI; genesisIPFSURI = _genesisIPFSURI; multisigWallet = _multisigWallet; royaltiesMultisigWallet = _royaltiesMultisigWallet; signerPublicAddress = _signerPublicAddress; maxMintPublic = 2; _maxMintAllowlisted = 5; publicMintPrice = 0.16 ether; royaltiesBasisPoint = 750; // 7.5% maxFreeMints = 2500; allowlistMintPrices.push(0); allowlistMintPrices.push(0.04 ether); allowlistMintPrices.push(0.08 ether); allowlistMintPrices.push(0.16 ether); allowlistMintPrices.push(0.32 ether); allowlistMintPricesAfterFreeMintDone.push(0.04 ether); allowlistMintPricesAfterFreeMintDone.push(0.08 ether); allowlistMintPricesAfterFreeMintDone.push(0.16 ether); allowlistMintPricesAfterFreeMintDone.push(0.32 ether); // Founders + reserved for ecosystem _safeMint(msg.sender, 500); } function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721A) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } // =========== ERC721A =========== function _startTokenId() override internal view virtual returns (uint256) { return 1; } // =========== EIP2981 =========== function royaltyInfo(uint256, uint256 _salePrice) external view override returns (address receiver, uint256 royaltyAmount) { return (royaltiesMultisigWallet, (_salePrice * royaltiesBasisPoint) / PERCENTAGE_DENOMINATOR); } /** * @notice Mint New Token for allowlist only */ function mintAllowlist(uint16 _quantity, uint8 v, bytes32 r, bytes32 s) external payable { require(allowlistSaleOpen, "allowlist mint not open"); require(_isAllowlisted(v, r, s), "you are not allowlisted"); require(_numberMinted(msg.sender) + _quantity <= maxMintAllowlisted(), "passed max per wallet"); require(totalSupply() + _quantity <= MAX_SUPPLY, "passed max supply"); _collectFeeAndMintToken(_quantity, false); } /** * @notice Mint New Token for Public sale only */ function mint(uint16 _quantity) external payable { require(publicSaleOpen, "public mint not open"); require(balanceOf(msg.sender) + _quantity <= maxMintPublic, "passed max per wallet"); require(totalSupply() + _quantity <= MAX_SUPPLY, "passed max supply"); _collectFeeAndMintToken(_quantity, true); } // ===================== Views ===================== /** * @dev See {IERC721Metadata-tokenURI}. * */ function tokenURI(uint256 tokenId) public view virtual override(ERC721A) returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(tokenId); if (!reveal && (tokenId > 26 || bytes(foundersIPFSURI).length == 0)) { // Static unrevealed return baseURI; } else { // Founders or reveal return string(abi.encodePacked(baseURI, tokenId.toString())); } } function maxMintAllowlisted() public view returns (uint256) { if (totalSupply() >= maxFreeMints) { return _maxMintAllowlisted - 1; } return _maxMintAllowlisted; } function getAllowlistMintPrice(address minter, uint256 quantity) public view returns (uint256) { uint256 totalToPay; uint256[] memory prices = totalSupply() >= maxFreeMints ? allowlistMintPricesAfterFreeMintDone : allowlistMintPrices; for (uint256 i = _numberMinted(minter); i < _numberMinted(minter) + quantity; i++) { totalToPay += prices[i]; } return totalToPay; } function getTotalMinted(address minter) public view returns (uint256) { return _numberMinted(minter); } // ===================== Management ===================== /** * @notice Configure Reveal * * @param _reveal Reveal Started or Stopped */ function setRevealStatus(bool _reveal) external onlyOwner { reveal = _reveal; } /** * @notice Configure allowlistSaleOpen * * @param _allowlistSaleOpen allowlist Sale Started Or Stopped */ function setAllowlistSaleOpen(bool _allowlistSaleOpen) external onlyOwner { allowlistSaleOpen = _allowlistSaleOpen; } /** * @notice Configure publicSaleOpen * * @param _publicSaleOpen Public Sale Started Or Stopped */ function setPublicSaleOpen(bool _publicSaleOpen) external onlyOwner { publicSaleOpen = _publicSaleOpen; } /** * @notice Configure Mint Price * * @param _publicMintPrice Mint Price */ function setPublicMintPrice(uint256 _publicMintPrice) external onlyOwner { publicMintPrice = _publicMintPrice; } /** * @notice Configure Mint Price * * @param _allowlistMintPrices Mint Price */ function setAllowlistMintPrices(uint256[] memory _allowlistMintPrices) external onlyOwner { allowlistMintPrices = _allowlistMintPrices; } /** * @notice Configure Mint Price * * @param _allowlistMintPricesAfterFreeMintDone Mint Price */ function setAllowlistMintPricesAfterFreeMintDone(uint256[] memory _allowlistMintPricesAfterFreeMintDone) external onlyOwner { allowlistMintPricesAfterFreeMintDone = _allowlistMintPricesAfterFreeMintDone; } /** * @notice Configure Max Mint Public * * @param _max_mint_public Value */ function setMaxMintPublic(uint256 _max_mint_public) external onlyOwner { maxMintPublic = _max_mint_public; } /** * @notice Configure Max Mint Allowlisted * * @param _max_mint_allowlisted Value */ function setMaxMintAllowlisted(uint256 _max_mint_allowlisted) external onlyOwner { _maxMintAllowlisted = _max_mint_allowlisted; } /** * @notice Configure Max Free Mints * * @param _maxFreeMints Value */ function setMaxFreeMints(uint256 _maxFreeMints) external onlyOwner { maxFreeMints = _maxFreeMints; } /** * @notice Configure Signer Public Address * * @param _signerPublicAddress Address */ function setSignerPublicAddress(address _signerPublicAddress) external onlyOwner { signerPublicAddress = _signerPublicAddress; } /** * @notice Configure Multisig Wallet for minting * * @param _multisigWallet Address */ function setMultisigWallet(address _multisigWallet) external onlyOwner { multisigWallet = _multisigWallet; } /** * @notice Configure Multisig Wallet for royalties * * @param _royaltiesMultisigWallet Address */ function setRoyaltiesMultisigWallet(address _royaltiesMultisigWallet) external onlyOwner { royaltiesMultisigWallet = _royaltiesMultisigWallet; } /** * @notice Configure royalties % * * @param _royaltiesBasisPoint uint256 */ function setRoyaltiesBasisPoint(uint256 _royaltiesBasisPoint) external onlyOwner { require(_royaltiesBasisPoint <= 1000, "max is 10%"); royaltiesBasisPoint = _royaltiesBasisPoint; } /** * @notice Change the base URI for returning metadata * * @param _foundersIPFSURI the respective base URI * @param _ipfsStaticURI the static base URI * @param _genesisIPFSURI the different base URI */ function setBaseURI(string memory _foundersIPFSURI, string memory _ipfsStaticURI, string memory _genesisIPFSURI) external onlyOwner { foundersIPFSURI = _foundersIPFSURI; ipfsStaticURI = _ipfsStaticURI; genesisIPFSURI = _genesisIPFSURI; } // ===================== Internals ===================== /** * @notice Check baseURI for token * * @param tokenId Token ID */ function _baseURI(uint256 tokenId) internal view returns (string memory) { if (tokenId <= 26 && bytes(foundersIPFSURI).length != 0) { // Founders only (might be revealed first) return foundersIPFSURI; } else if (reveal == false) { return ipfsStaticURI; } return genesisIPFSURI; } /** * @notice _CollectFeeAndMintToken * * @param _quantity Total tokens to mint */ function _collectFeeAndMintToken(uint16 _quantity, bool forPublicMint) internal { uint256 amount = forPublicMint ? publicMintPrice * _quantity : getAllowlistMintPrice(msg.sender, _quantity); require(msg.value >= amount, "Amount sent is not enough"); // Send excess Payment return uint256 excessPayment = msg.value - amount; if (excessPayment > 0) { Address.sendValue(payable(msg.sender), excessPayment); } Address.sendValue(payable(multisigWallet), amount); _safeMint(msg.sender, _quantity); } /** * @notice Check if address is allowlisted * */ function _isAllowlisted(uint8 v, bytes32 r, bytes32 s) internal view returns (bool) { return keccak256(abi.encodePacked(_msgSender())).toEthSignedMessageHash().recover(v, r, s) == signerPublicAddress; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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 (last updated v4.5.0) (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 = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 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 (last updated v4.5.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be payed in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.11; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of allowlist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @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 override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of allowlist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of allowlist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _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 { _transfer(from, to, tokenId); if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex != end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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; } }
{ "optimizer": { "enabled": true, "runs": 100 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_multisigWallet","type":"address"},{"internalType":"address","name":"_royaltiesMultisigWallet","type":"address"},{"internalType":"string","name":"_foundersIPFSURI","type":"string"},{"internalType":"string","name":"_ipfsStaticURI","type":"string"},{"internalType":"string","name":"_genesisIPFSURI","type":"string"},{"internalType":"address","name":"_signerPublicAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENTAGE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allowlistMintPrices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allowlistMintPricesAfterFreeMintDone","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowlistSaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"foundersIPFSURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"genesisIPFSURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"getAllowlistMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"getTotalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ipfsStaticURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFreeMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAllowlisted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_quantity","type":"uint16"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_quantity","type":"uint16"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"mintAllowlist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"multisigWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltiesBasisPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltiesMultisigWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_allowlistMintPrices","type":"uint256[]"}],"name":"setAllowlistMintPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_allowlistMintPricesAfterFreeMintDone","type":"uint256[]"}],"name":"setAllowlistMintPricesAfterFreeMintDone","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_allowlistSaleOpen","type":"bool"}],"name":"setAllowlistSaleOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_foundersIPFSURI","type":"string"},{"internalType":"string","name":"_ipfsStaticURI","type":"string"},{"internalType":"string","name":"_genesisIPFSURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxFreeMints","type":"uint256"}],"name":"setMaxFreeMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max_mint_allowlisted","type":"uint256"}],"name":"setMaxMintAllowlisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max_mint_public","type":"uint256"}],"name":"setMaxMintPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_multisigWallet","type":"address"}],"name":"setMultisigWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicMintPrice","type":"uint256"}],"name":"setPublicMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_publicSaleOpen","type":"bool"}],"name":"setPublicSaleOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_reveal","type":"bool"}],"name":"setRevealStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_royaltiesBasisPoint","type":"uint256"}],"name":"setRoyaltiesBasisPoint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royaltiesMultisigWallet","type":"address"}],"name":"setRoyaltiesMultisigWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signerPublicAddress","type":"address"}],"name":"setSignerPublicAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerPublicAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200361b3803806200361b8339810160408190526200003491620006ec565b8751889088906200004d90600290602085019062000553565b5080516200006390600390602084019062000553565b5050600160005550620000763362000213565b83516200008b90600e90602087019062000553565b508251620000a190600f90602086019062000553565b508151620000b790601090602085019062000553565b50600a80546001600160a01b038089166001600160a01b031992831617909255600b8054888416908316179055600d805492841692909116919091179055600260115560056015556702386f26fc10000060098190556102ee600c556109c4601455601280546001818101835560007fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec344492830181905583548083018555668e1bc9bf0400009084018190558454808401865567011c37937e0800009085018190558554808501875585018790558554808501909655670470de4df820000095909401859055601380548085018255928190527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a09092830191909155805480840182558201939093558254808301845581019490945581549081019091559091015562000205336101f462000265565b5050505050505050620008cb565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620002878282604051806020016040528060008152506200028b60201b60201c565b5050565b6000546001600160a01b038416620002b557604051622e076360e81b815260040160405180910390fd5b82620002d45760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546001600160801b031981166001600160401b038083168b018116918217680100000000000000006001600160401b031990941690921783900481168b0181169092021790915585845260048352922080546001600160e01b0319168417600160a01b4290941693909302929092179091558291828601916200037d919062000453811b6200169f17901c565b15620003fd575b60405182906001600160a01b03881690600090600080516020620035fb833981519152908290a46001820191620003c19060009088908762000462565b620003df576040516368d2bf6b60e11b815260040160405180910390fd5b8082141562000384578260005414620003f757600080fd5b62000433565b5b6040516001830192906001600160a01b03881690600090600080516020620035fb833981519152908290a480821415620003fe575b5060009081556200044d908583866001600160e01b038516565b50505050565b6001600160a01b03163b151590565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906200049990339089908890889060040162000805565b6020604051808303816000875af1925050508015620004d7575060408051601f3d908101601f19168201909252620004d4918101906200085b565b60015b62000536573d80801562000508576040519150601f19603f3d011682016040523d82523d6000602084013e6200050d565b606091505b5080516200052e576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b82805462000561906200088e565b90600052602060002090601f016020900481019282620005855760008555620005d0565b82601f10620005a057805160ff1916838001178555620005d0565b82800160010185558215620005d0579182015b82811115620005d0578251825591602001919060010190620005b3565b50620005de929150620005e2565b5090565b5b80821115620005de5760008155600101620005e3565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200062c57818101518382015260200162000612565b838111156200044d5750506000910152565b600082601f8301126200065057600080fd5b81516001600160401b03808211156200066d576200066d620005f9565b604051601f8301601f19908116603f01168101908282118183101715620006985762000698620005f9565b81604052838152866020858801011115620006b257600080fd5b620006c58460208301602089016200060f565b9695505050505050565b80516001600160a01b0381168114620006e757600080fd5b919050565b600080600080600080600080610100898b0312156200070a57600080fd5b88516001600160401b03808211156200072257600080fd5b620007308c838d016200063e565b995060208b01519150808211156200074757600080fd5b620007558c838d016200063e565b98506200076560408c01620006cf565b97506200077560608c01620006cf565b965060808b01519150808211156200078c57600080fd5b6200079a8c838d016200063e565b955060a08b0151915080821115620007b157600080fd5b620007bf8c838d016200063e565b945060c08b0151915080821115620007d657600080fd5b50620007e58b828c016200063e565b925050620007f660e08a01620006cf565b90509295985092959890939650565b600060018060a01b038087168352808616602084015250836040830152608060608301528251806080840152620008448160a08501602087016200060f565b601f01601f19169190910160a00195945050505050565b6000602082840312156200086e57600080fd5b81516001600160e01b0319811681146200088757600080fd5b9392505050565b600181811c90821680620008a357607f821691505b60208210811415620008c557634e487b7160e01b600052602260045260246000fd5b50919050565b612d2080620008db6000396000f3fe6080604052600436106102d55760003560e01c8063762bafe21161017b578063b8691787116100d7578063da6c405d11610085578063da6c405d14610880578063dc53fd92146108a0578063e985e9c5146108b6578063ef9b63ba146108ff578063f2fde38b14610915578063f65c922b14610935578063f9e237991461095557600080fd5b8063b8691787146107ab578063b88d4fde146107cb578063ba40a96a146107eb578063bf3b763d1461080b578063c286c53e1461082b578063c87b56dd14610840578063cba5cc5f1461086057600080fd5b80639586004b116101345780639586004b146106de57806395d89b41146106fe5780639a9c1bb114610713578063a22cb46514610733578063a475b5dd14610753578063a809f7a514610774578063b3cd42541461079557600080fd5b8063762bafe2146106415780637a79b28314610656578063825e14af1461066957806384c99fb4146106895780638da5cb5b146106a95780639075becf146106be57600080fd5b806332cb6b0c1161023557806365b781ef116101e357806365b781ef1461058057806369dd655a146105a05780636dc5f1ce146105c0578063704a48aa146105e057806370a08231146105f6578063715018a614610616578063732496c91461062b57600080fd5b806332cb6b0c146104b55780633fbf4660146104cb578063407043fc146104e057806342842e0e146105005780635d82cf6e146105205780636352211e14610540578063649134771461056057600080fd5b806318160ddd1161029257806318160ddd146103c05780631c0860d1146103e357806323394d991461040357806323b872dd1461042357806323cf0a2214610443578063291fe303146104565780632a55205a1461047657600080fd5b806301ffc9a7146102da5780630483a0821461030f57806306fdde031461033157806307126df014610353578063081812fc14610368578063095ea7b3146103a0575b600080fd5b3480156102e657600080fd5b506102fa6102f53660046125ca565b610976565b60405190151581526020015b60405180910390f35b34801561031b57600080fd5b5061032f61032a366004612603565b6109a1565b005b34801561033d57600080fd5b506103466109f7565b6040516103069190612676565b34801561035f57600080fd5b50610346610a89565b34801561037457600080fd5b50610388610383366004612689565b610b17565b6040516001600160a01b039091168152602001610306565b3480156103ac57600080fd5b5061032f6103bb3660046126b9565b610b5b565b3480156103cc57600080fd5b506103d5610be9565b604051908152602001610306565b3480156103ef57600080fd5b5061032f6103fe3660046127a0565b610bf7565b34801561040f57600080fd5b5061032f61041e366004612603565b610c67565b34801561042f57600080fd5b5061032f61043e366004612827565b610cb4565b61032f610451366004612875565b610cbf565b34801561046257600080fd5b5061032f610471366004612890565b610d8e565b34801561048257600080fd5b50610496610491366004612935565b610dd4565b604080516001600160a01b039093168352602083019190915201610306565b3480156104c157600080fd5b506103d561262f81565b3480156104d757600080fd5b50610346610e0e565b3480156104ec57600080fd5b5061032f6104fb366004612689565b610e1b565b34801561050c57600080fd5b5061032f61051b366004612827565b610e4f565b34801561052c57600080fd5b5061032f61053b366004612689565b610e6a565b34801561054c57600080fd5b5061038861055b366004612689565b610e9e565b34801561056c57600080fd5b5061032f61057b366004612957565b610eb0565b34801561058c57600080fd5b50600b54610388906001600160a01b031681565b3480156105ac57600080fd5b5061032f6105bb366004612689565b610f01565b3480156105cc57600080fd5b5061032f6105db366004612689565b610f74565b3480156105ec57600080fd5b506103d5600c5481565b34801561060257600080fd5b506103d5610611366004612957565b610fa8565b34801561062257600080fd5b5061032f610ff6565b34801561063757600080fd5b506103d560145481565b34801561064d57600080fd5b50610346611031565b61032f610664366004612972565b61103e565b34801561067557600080fd5b506103d5610684366004612689565b611163565b34801561069557600080fd5b5061032f6106a4366004612603565b611184565b3480156106b557600080fd5b506103886111d1565b3480156106ca57600080fd5b50600a54610388906001600160a01b031681565b3480156106ea57600080fd5b506103d56106f93660046126b9565b6111e0565b34801561070a57600080fd5b506103466112bd565b34801561071f57600080fd5b506103d561072e366004612957565b6112cc565b34801561073f57600080fd5b5061032f61074e3660046129bc565b6112d7565b34801561075f57600080fd5b506008546102fa90600160a01b900460ff1681565b34801561078057600080fd5b50600d546102fa90600160a01b900460ff1681565b3480156107a157600080fd5b506103d561271081565b3480156107b757600080fd5b5061032f6107c6366004612957565b61136d565b3480156107d757600080fd5b5061032f6107e63660046129ef565b6113be565b3480156107f757600080fd5b50600d54610388906001600160a01b031681565b34801561081757600080fd5b5061032f610826366004612890565b61140e565b34801561083757600080fd5b506103d5611450565b34801561084c57600080fd5b5061034661085b366004612689565b61147d565b34801561086c57600080fd5b5061032f61087b366004612957565b61156d565b34801561088c57600080fd5b5061032f61089b366004612689565b6115be565b3480156108ac57600080fd5b506103d560095481565b3480156108c257600080fd5b506102fa6108d1366004612a6a565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561090b57600080fd5b506103d560115481565b34801561092157600080fd5b5061032f610930366004612957565b6115f2565b34801561094157600080fd5b506103d5610950366004612689565b61168f565b34801561096157600080fd5b50600d546102fa90600160a81b900460ff1681565b60006001600160e01b0319821663152a902d60e11b148061099b575061099b826116ae565b92915050565b336109aa6111d1565b6001600160a01b0316146109d95760405162461bcd60e51b81526004016109d090612a94565b60405180910390fd5b600d8054911515600160a01b0260ff60a01b19909216919091179055565b606060028054610a0690612ac9565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3290612ac9565b8015610a7f5780601f10610a5457610100808354040283529160200191610a7f565b820191906000526020600020905b815481529060010190602001808311610a6257829003601f168201915b5050505050905090565b600e8054610a9690612ac9565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac290612ac9565b8015610b0f5780601f10610ae457610100808354040283529160200191610b0f565b820191906000526020600020905b815481529060010190602001808311610af257829003601f168201915b505050505081565b6000610b22826116fe565b610b3f576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610b6682610e9e565b9050806001600160a01b0316836001600160a01b03161415610b9b5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610bbb5750610bb981336108d1565b155b15610bd9576040516367d9dca160e11b815260040160405180910390fd5b610be4838383611737565b505050565b600154600054036000190190565b33610c006111d1565b6001600160a01b031614610c265760405162461bcd60e51b81526004016109d090612a94565b8251610c3990600e9060208601906124e1565b508151610c4d90600f9060208501906124e1565b508051610c619060109060208401906124e1565b50505050565b33610c706111d1565b6001600160a01b031614610c965760405162461bcd60e51b81526004016109d090612a94565b600d8054911515600160a81b0260ff60a81b19909216919091179055565b610be4838383611793565b600d54600160a81b900460ff16610d0f5760405162461bcd60e51b8152602060048201526014602482015273383ab13634b19036b4b73a103737ba1037b832b760611b60448201526064016109d0565b6011548161ffff16610d2033610fa8565b610d2a9190612b14565b1115610d485760405162461bcd60e51b81526004016109d090612b2c565b61262f8161ffff16610d58610be9565b610d629190612b14565b1115610d805760405162461bcd60e51b81526004016109d090612b5b565b610d8b81600161196e565b50565b33610d976111d1565b6001600160a01b031614610dbd5760405162461bcd60e51b81526004016109d090612a94565b8051610dd0906012906020840190612565565b5050565b600b54600c5460009182916001600160a01b039091169061271090610df99086612b86565b610e039190612bbb565b915091509250929050565b60108054610a9690612ac9565b33610e246111d1565b6001600160a01b031614610e4a5760405162461bcd60e51b81526004016109d090612a94565b601455565b610be4838383604051806020016040528060008152506113be565b33610e736111d1565b6001600160a01b031614610e995760405162461bcd60e51b81526004016109d090612a94565b600955565b6000610ea982611a2a565b5192915050565b33610eb96111d1565b6001600160a01b031614610edf5760405162461bcd60e51b81526004016109d090612a94565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b33610f0a6111d1565b6001600160a01b031614610f305760405162461bcd60e51b81526004016109d090612a94565b6103e8811115610f6f5760405162461bcd60e51b815260206004820152600a6024820152696d61782069732031302560b01b60448201526064016109d0565b600c55565b33610f7d6111d1565b6001600160a01b031614610fa35760405162461bcd60e51b81526004016109d090612a94565b601155565b60006001600160a01b038216610fd1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b33610fff6111d1565b6001600160a01b0316146110255760405162461bcd60e51b81526004016109d090612a94565b61102f6000611b51565b565b600f8054610a9690612ac9565b600d54600160a01b900460ff166110915760405162461bcd60e51b815260206004820152601760248201527630b63637bbb634b9ba1036b4b73a103737ba1037b832b760491b60448201526064016109d0565b61109c838383611ba3565b6110e25760405162461bcd60e51b81526020600482015260176024820152761e5bdd48185c99481b9bdd08185b1b1bdddb1a5cdd1959604a1b60448201526064016109d0565b6110ea611450565b8461ffff166110f833611c5e565b6111029190612b14565b11156111205760405162461bcd60e51b81526004016109d090612b2c565b61262f8461ffff16611130610be9565b61113a9190612b14565b11156111585760405162461bcd60e51b81526004016109d090612b5b565b610c6184600061196e565b6012818154811061117357600080fd5b600091825260209091200154905081565b3361118d6111d1565b6001600160a01b0316146111b35760405162461bcd60e51b81526004016109d090612a94565b60088054911515600160a01b0260ff60a01b19909216919091179055565b6008546001600160a01b031690565b60008060006014546111f0610be9565b10156111fd576012611200565b60135b80548060200260200160405190810160405280929190818152602001828054801561124a57602002820191906000526020600020905b815481526020019060010190808311611236575b50505050509050600061125c86611c5e565b90505b8461126987611c5e565b6112739190612b14565b8110156112b35781818151811061128c5761128c612bcf565b60200260200101518361129f9190612b14565b9250806112ab81612be5565b91505061125f565b5090949350505050565b606060038054610a0690612ac9565b600061099b82611c5e565b6001600160a01b0382163314156113015760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b336113766111d1565b6001600160a01b03161461139c5760405162461bcd60e51b81526004016109d090612a94565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6113c9848484611793565b6113db836001600160a01b031661169f565b80156113f057506113ee84848484611c89565b155b15610c61576040516368d2bf6b60e11b815260040160405180910390fd5b336114176111d1565b6001600160a01b03161461143d5760405162461bcd60e51b81526004016109d090612a94565b8051610dd0906013906020840190612565565b600060145461145d610be9565b106114765760016015546114719190612c00565b905090565b5060155490565b6060611488826116fe565b6114ec5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016109d0565b60006114f783611d72565b600854909150600160a01b900460ff1615801561152a5750601a83118061152a5750600e805461152690612ac9565b1590505b156115355792915050565b8061153f84611e54565b604051602001611550929190612c17565b604051602081830303815290604052915050919050565b50919050565b336115766111d1565b6001600160a01b03161461159c5760405162461bcd60e51b81526004016109d090612a94565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b336115c76111d1565b6001600160a01b0316146115ed5760405162461bcd60e51b81526004016109d090612a94565b601555565b336115fb6111d1565b6001600160a01b0316146116215760405162461bcd60e51b81526004016109d090612a94565b6001600160a01b0381166116865760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109d0565b610d8b81611b51565b6013818154811061117357600080fd5b6001600160a01b03163b151590565b60006001600160e01b031982166380ac58cd60e01b14806116df57506001600160e01b03198216635b5e139f60e01b145b8061099b57506301ffc9a760e01b6001600160e01b031983161461099b565b600081600111158015611712575060005482105b801561099b575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061179e82611a2a565b9050836001600160a01b031681600001516001600160a01b0316146117d55760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806117f357506117f385336108d1565b8061180e57503361180384610b17565b6001600160a01b0316145b90508061182e57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661185557604051633a954ecd60e21b815260040160405180910390fd5b61186160008487611737565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661193557600054821461193557805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b0316600080516020612ccb83398151915260405160405180910390a45050505050565b60008161198857611983338461ffff166111e0565b61199a565b8261ffff1660095461199a9190612b86565b9050803410156119e85760405162461bcd60e51b8152602060048201526019602482015278082dadeeadce840e6cadce840d2e640dcdee840cadcdeeaced603b1b60448201526064016109d0565b60006119f48234612c00565b90508015611a0657611a063382611f51565b600a54611a1c906001600160a01b031683611f51565b610c61338561ffff1661206a565b60408051606081018252600080825260208201819052918101919091528180600111158015611a5a575060005481105b15611b3857600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611b365780516001600160a01b031615611acd579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611b31579392505050565b611acd565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600d546000906001600160a01b0316611c4c858585611c4433604051602001611be4919060609190911b6bffffffffffffffffffffffff1916815260140190565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b929190612084565b6001600160a01b031614949350505050565b6001600160a01b0316600090815260056020526040902054600160401b90046001600160401b031690565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611cbe903390899088908890600401612c46565b6020604051808303816000875af1925050508015611cf9575060408051601f3d908101601f19168201909252611cf691810190612c83565b60015b611d54573d808015611d27576040519150601f19603f3d011682016040523d82523d6000602084013e611d2c565b606091505b508051611d4c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060601a8211158015611d925750600e8054611d8d90612ac9565b151590505b15611e2957600e8054611da490612ac9565b80601f0160208091040260200160405190810160405280929190818152602001828054611dd090612ac9565b8015611e1d5780601f10611df257610100808354040283529160200191611e1d565b820191906000526020600020905b815481529060010190602001808311611e0057829003601f168201915b50505050509050919050565b600854600160a01b900460ff16611e4757600f8054611da490612ac9565b60108054611da490612ac9565b606081611e785750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611ea25780611e8c81612be5565b9150611e9b9050600a83612bbb565b9150611e7c565b6000816001600160401b03811115611ebc57611ebc6126e3565b6040519080825280601f01601f191660200182016040528015611ee6576020820181803683370190505b5090505b8415611d6a57611efb600183612c00565b9150611f08600a86612ca0565b611f13906030612b14565b60f81b818381518110611f2857611f28612bcf565b60200101906001600160f81b031916908160001a905350611f4a600a86612bbb565b9450611eea565b80471015611fa15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016109d0565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611fee576040519150601f19603f3d011682016040523d82523d6000602084013e611ff3565b606091505b5050905080610be45760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016109d0565b610dd08282604051806020016040528060008152506120ac565b600080600061209587878787612248565b915091506120a28161232b565b5095945050505050565b6000546001600160a01b0384166120d557604051622e076360e81b815260040160405180910390fd5b826120f35760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546001600160801b031981166001600160401b038083168b018116918217600160401b67ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b429093169290920291909117905581908185019061218d9061169f565b15612204575b60405182906001600160a01b03881690600090600080516020612ccb833981519152908290a46121cc6000878480600101955087611c89565b6121e9576040516368d2bf6b60e11b815260040160405180910390fd5b808214156121935782600054146121ff57600080fd5b612238565b5b6040516001830192906001600160a01b03881690600090600080516020612ccb833981519152908290a480821415612205575b506000908155610c619085838684565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b038311156122755750600090506003612322565b8460ff16601b1415801561228d57508460ff16601c14155b1561229e5750600090506004612322565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156122f2573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661231b57600060019250925050612322565b9150600090505b94509492505050565b600081600481111561233f5761233f612cb4565b14156123485750565b600181600481111561235c5761235c612cb4565b14156123a55760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b60448201526064016109d0565b60028160048111156123b9576123b9612cb4565b14156124075760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016109d0565b600381600481111561241b5761241b612cb4565b14156124745760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016109d0565b600481600481111561248857612488612cb4565b1415610d8b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016109d0565b8280546124ed90612ac9565b90600052602060002090601f01602090048101928261250f5760008555612555565b82601f1061252857805160ff1916838001178555612555565b82800160010185558215612555579182015b8281111561255557825182559160200191906001019061253a565b5061256192915061259f565b5090565b828054828255906000526020600020908101928215612555579160200282018281111561255557825182559160200191906001019061253a565b5b8082111561256157600081556001016125a0565b6001600160e01b031981168114610d8b57600080fd5b6000602082840312156125dc57600080fd5b81356125e7816125b4565b9392505050565b803580151581146125fe57600080fd5b919050565b60006020828403121561261557600080fd5b6125e7826125ee565b60005b83811015612639578181015183820152602001612621565b83811115610c615750506000910152565b6000815180845261266281602086016020860161261e565b601f01601f19169290920160200192915050565b6020815260006125e7602083018461264a565b60006020828403121561269b57600080fd5b5035919050565b80356001600160a01b03811681146125fe57600080fd5b600080604083850312156126cc57600080fd5b6126d5836126a2565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612721576127216126e3565b604052919050565b60006001600160401b03831115612742576127426126e3565b612755601f8401601f19166020016126f9565b905082815283838301111561276957600080fd5b828260208301376000602084830101529392505050565b600082601f83011261279157600080fd5b6125e783833560208501612729565b6000806000606084860312156127b557600080fd5b83356001600160401b03808211156127cc57600080fd5b6127d887838801612780565b945060208601359150808211156127ee57600080fd5b6127fa87838801612780565b9350604086013591508082111561281057600080fd5b5061281d86828701612780565b9150509250925092565b60008060006060848603121561283c57600080fd5b612845846126a2565b9250612853602085016126a2565b9150604084013590509250925092565b803561ffff811681146125fe57600080fd5b60006020828403121561288757600080fd5b6125e782612863565b600060208083850312156128a357600080fd5b82356001600160401b03808211156128ba57600080fd5b818501915085601f8301126128ce57600080fd5b8135818111156128e0576128e06126e3565b8060051b91506128f18483016126f9565b818152918301840191848101908884111561290b57600080fd5b938501935b8385101561292957843582529385019390850190612910565b98975050505050505050565b6000806040838503121561294857600080fd5b50508035926020909101359150565b60006020828403121561296957600080fd5b6125e7826126a2565b6000806000806080858703121561298857600080fd5b61299185612863565b9350602085013560ff811681146129a757600080fd5b93969395505050506040820135916060013590565b600080604083850312156129cf57600080fd5b6129d8836126a2565b91506129e6602084016125ee565b90509250929050565b60008060008060808587031215612a0557600080fd5b612a0e856126a2565b9350612a1c602086016126a2565b92506040850135915060608501356001600160401b03811115612a3e57600080fd5b8501601f81018713612a4f57600080fd5b612a5e87823560208401612729565b91505092959194509250565b60008060408385031215612a7d57600080fd5b612a86836126a2565b91506129e6602084016126a2565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680612add57607f821691505b6020821081141561156757634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115612b2757612b27612afe565b500190565b6020808252601590820152741c185cdcd959081b585e081c195c881dd85b1b195d605a1b604082015260600190565b602080825260119082015270706173736564206d617820737570706c7960781b604082015260600190565b6000816000190483118215151615612ba057612ba0612afe565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612bca57612bca612ba5565b500490565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612bf957612bf9612afe565b5060010190565b600082821015612c1257612c12612afe565b500390565b60008351612c2981846020880161261e565b835190830190612c3d81836020880161261e565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c799083018461264a565b9695505050505050565b600060208284031215612c9557600080fd5b81516125e7816125b4565b600082612caf57612caf612ba5565b500690565b634e487b7160e01b600052602160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212200b78fe2532762a1d50354a2fab18a99dace834fd2a0be942e0df0a1d3351db1764736f6c634300080b0033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef00000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000e38b85d465f70b2aa513bf95c4f72dc004ff6897000000000000000000000000e38b85d465f70b2aa513bf95c4f72dc004ff6897000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000007411bf60cf8afa3167983b5e01989b951322845b000000000000000000000000000000000000000000000000000000000000000b5468652053796d626f6c73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a54686553796d626f6c73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001768747470733a2f2f697066732e696f2f7374617469632f0000000000000000000000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102d55760003560e01c8063762bafe21161017b578063b8691787116100d7578063da6c405d11610085578063da6c405d14610880578063dc53fd92146108a0578063e985e9c5146108b6578063ef9b63ba146108ff578063f2fde38b14610915578063f65c922b14610935578063f9e237991461095557600080fd5b8063b8691787146107ab578063b88d4fde146107cb578063ba40a96a146107eb578063bf3b763d1461080b578063c286c53e1461082b578063c87b56dd14610840578063cba5cc5f1461086057600080fd5b80639586004b116101345780639586004b146106de57806395d89b41146106fe5780639a9c1bb114610713578063a22cb46514610733578063a475b5dd14610753578063a809f7a514610774578063b3cd42541461079557600080fd5b8063762bafe2146106415780637a79b28314610656578063825e14af1461066957806384c99fb4146106895780638da5cb5b146106a95780639075becf146106be57600080fd5b806332cb6b0c1161023557806365b781ef116101e357806365b781ef1461058057806369dd655a146105a05780636dc5f1ce146105c0578063704a48aa146105e057806370a08231146105f6578063715018a614610616578063732496c91461062b57600080fd5b806332cb6b0c146104b55780633fbf4660146104cb578063407043fc146104e057806342842e0e146105005780635d82cf6e146105205780636352211e14610540578063649134771461056057600080fd5b806318160ddd1161029257806318160ddd146103c05780631c0860d1146103e357806323394d991461040357806323b872dd1461042357806323cf0a2214610443578063291fe303146104565780632a55205a1461047657600080fd5b806301ffc9a7146102da5780630483a0821461030f57806306fdde031461033157806307126df014610353578063081812fc14610368578063095ea7b3146103a0575b600080fd5b3480156102e657600080fd5b506102fa6102f53660046125ca565b610976565b60405190151581526020015b60405180910390f35b34801561031b57600080fd5b5061032f61032a366004612603565b6109a1565b005b34801561033d57600080fd5b506103466109f7565b6040516103069190612676565b34801561035f57600080fd5b50610346610a89565b34801561037457600080fd5b50610388610383366004612689565b610b17565b6040516001600160a01b039091168152602001610306565b3480156103ac57600080fd5b5061032f6103bb3660046126b9565b610b5b565b3480156103cc57600080fd5b506103d5610be9565b604051908152602001610306565b3480156103ef57600080fd5b5061032f6103fe3660046127a0565b610bf7565b34801561040f57600080fd5b5061032f61041e366004612603565b610c67565b34801561042f57600080fd5b5061032f61043e366004612827565b610cb4565b61032f610451366004612875565b610cbf565b34801561046257600080fd5b5061032f610471366004612890565b610d8e565b34801561048257600080fd5b50610496610491366004612935565b610dd4565b604080516001600160a01b039093168352602083019190915201610306565b3480156104c157600080fd5b506103d561262f81565b3480156104d757600080fd5b50610346610e0e565b3480156104ec57600080fd5b5061032f6104fb366004612689565b610e1b565b34801561050c57600080fd5b5061032f61051b366004612827565b610e4f565b34801561052c57600080fd5b5061032f61053b366004612689565b610e6a565b34801561054c57600080fd5b5061038861055b366004612689565b610e9e565b34801561056c57600080fd5b5061032f61057b366004612957565b610eb0565b34801561058c57600080fd5b50600b54610388906001600160a01b031681565b3480156105ac57600080fd5b5061032f6105bb366004612689565b610f01565b3480156105cc57600080fd5b5061032f6105db366004612689565b610f74565b3480156105ec57600080fd5b506103d5600c5481565b34801561060257600080fd5b506103d5610611366004612957565b610fa8565b34801561062257600080fd5b5061032f610ff6565b34801561063757600080fd5b506103d560145481565b34801561064d57600080fd5b50610346611031565b61032f610664366004612972565b61103e565b34801561067557600080fd5b506103d5610684366004612689565b611163565b34801561069557600080fd5b5061032f6106a4366004612603565b611184565b3480156106b557600080fd5b506103886111d1565b3480156106ca57600080fd5b50600a54610388906001600160a01b031681565b3480156106ea57600080fd5b506103d56106f93660046126b9565b6111e0565b34801561070a57600080fd5b506103466112bd565b34801561071f57600080fd5b506103d561072e366004612957565b6112cc565b34801561073f57600080fd5b5061032f61074e3660046129bc565b6112d7565b34801561075f57600080fd5b506008546102fa90600160a01b900460ff1681565b34801561078057600080fd5b50600d546102fa90600160a01b900460ff1681565b3480156107a157600080fd5b506103d561271081565b3480156107b757600080fd5b5061032f6107c6366004612957565b61136d565b3480156107d757600080fd5b5061032f6107e63660046129ef565b6113be565b3480156107f757600080fd5b50600d54610388906001600160a01b031681565b34801561081757600080fd5b5061032f610826366004612890565b61140e565b34801561083757600080fd5b506103d5611450565b34801561084c57600080fd5b5061034661085b366004612689565b61147d565b34801561086c57600080fd5b5061032f61087b366004612957565b61156d565b34801561088c57600080fd5b5061032f61089b366004612689565b6115be565b3480156108ac57600080fd5b506103d560095481565b3480156108c257600080fd5b506102fa6108d1366004612a6a565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561090b57600080fd5b506103d560115481565b34801561092157600080fd5b5061032f610930366004612957565b6115f2565b34801561094157600080fd5b506103d5610950366004612689565b61168f565b34801561096157600080fd5b50600d546102fa90600160a81b900460ff1681565b60006001600160e01b0319821663152a902d60e11b148061099b575061099b826116ae565b92915050565b336109aa6111d1565b6001600160a01b0316146109d95760405162461bcd60e51b81526004016109d090612a94565b60405180910390fd5b600d8054911515600160a01b0260ff60a01b19909216919091179055565b606060028054610a0690612ac9565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3290612ac9565b8015610a7f5780601f10610a5457610100808354040283529160200191610a7f565b820191906000526020600020905b815481529060010190602001808311610a6257829003601f168201915b5050505050905090565b600e8054610a9690612ac9565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac290612ac9565b8015610b0f5780601f10610ae457610100808354040283529160200191610b0f565b820191906000526020600020905b815481529060010190602001808311610af257829003601f168201915b505050505081565b6000610b22826116fe565b610b3f576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610b6682610e9e565b9050806001600160a01b0316836001600160a01b03161415610b9b5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610bbb5750610bb981336108d1565b155b15610bd9576040516367d9dca160e11b815260040160405180910390fd5b610be4838383611737565b505050565b600154600054036000190190565b33610c006111d1565b6001600160a01b031614610c265760405162461bcd60e51b81526004016109d090612a94565b8251610c3990600e9060208601906124e1565b508151610c4d90600f9060208501906124e1565b508051610c619060109060208401906124e1565b50505050565b33610c706111d1565b6001600160a01b031614610c965760405162461bcd60e51b81526004016109d090612a94565b600d8054911515600160a81b0260ff60a81b19909216919091179055565b610be4838383611793565b600d54600160a81b900460ff16610d0f5760405162461bcd60e51b8152602060048201526014602482015273383ab13634b19036b4b73a103737ba1037b832b760611b60448201526064016109d0565b6011548161ffff16610d2033610fa8565b610d2a9190612b14565b1115610d485760405162461bcd60e51b81526004016109d090612b2c565b61262f8161ffff16610d58610be9565b610d629190612b14565b1115610d805760405162461bcd60e51b81526004016109d090612b5b565b610d8b81600161196e565b50565b33610d976111d1565b6001600160a01b031614610dbd5760405162461bcd60e51b81526004016109d090612a94565b8051610dd0906012906020840190612565565b5050565b600b54600c5460009182916001600160a01b039091169061271090610df99086612b86565b610e039190612bbb565b915091509250929050565b60108054610a9690612ac9565b33610e246111d1565b6001600160a01b031614610e4a5760405162461bcd60e51b81526004016109d090612a94565b601455565b610be4838383604051806020016040528060008152506113be565b33610e736111d1565b6001600160a01b031614610e995760405162461bcd60e51b81526004016109d090612a94565b600955565b6000610ea982611a2a565b5192915050565b33610eb96111d1565b6001600160a01b031614610edf5760405162461bcd60e51b81526004016109d090612a94565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b33610f0a6111d1565b6001600160a01b031614610f305760405162461bcd60e51b81526004016109d090612a94565b6103e8811115610f6f5760405162461bcd60e51b815260206004820152600a6024820152696d61782069732031302560b01b60448201526064016109d0565b600c55565b33610f7d6111d1565b6001600160a01b031614610fa35760405162461bcd60e51b81526004016109d090612a94565b601155565b60006001600160a01b038216610fd1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b33610fff6111d1565b6001600160a01b0316146110255760405162461bcd60e51b81526004016109d090612a94565b61102f6000611b51565b565b600f8054610a9690612ac9565b600d54600160a01b900460ff166110915760405162461bcd60e51b815260206004820152601760248201527630b63637bbb634b9ba1036b4b73a103737ba1037b832b760491b60448201526064016109d0565b61109c838383611ba3565b6110e25760405162461bcd60e51b81526020600482015260176024820152761e5bdd48185c99481b9bdd08185b1b1bdddb1a5cdd1959604a1b60448201526064016109d0565b6110ea611450565b8461ffff166110f833611c5e565b6111029190612b14565b11156111205760405162461bcd60e51b81526004016109d090612b2c565b61262f8461ffff16611130610be9565b61113a9190612b14565b11156111585760405162461bcd60e51b81526004016109d090612b5b565b610c6184600061196e565b6012818154811061117357600080fd5b600091825260209091200154905081565b3361118d6111d1565b6001600160a01b0316146111b35760405162461bcd60e51b81526004016109d090612a94565b60088054911515600160a01b0260ff60a01b19909216919091179055565b6008546001600160a01b031690565b60008060006014546111f0610be9565b10156111fd576012611200565b60135b80548060200260200160405190810160405280929190818152602001828054801561124a57602002820191906000526020600020905b815481526020019060010190808311611236575b50505050509050600061125c86611c5e565b90505b8461126987611c5e565b6112739190612b14565b8110156112b35781818151811061128c5761128c612bcf565b60200260200101518361129f9190612b14565b9250806112ab81612be5565b91505061125f565b5090949350505050565b606060038054610a0690612ac9565b600061099b82611c5e565b6001600160a01b0382163314156113015760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b336113766111d1565b6001600160a01b03161461139c5760405162461bcd60e51b81526004016109d090612a94565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6113c9848484611793565b6113db836001600160a01b031661169f565b80156113f057506113ee84848484611c89565b155b15610c61576040516368d2bf6b60e11b815260040160405180910390fd5b336114176111d1565b6001600160a01b03161461143d5760405162461bcd60e51b81526004016109d090612a94565b8051610dd0906013906020840190612565565b600060145461145d610be9565b106114765760016015546114719190612c00565b905090565b5060155490565b6060611488826116fe565b6114ec5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016109d0565b60006114f783611d72565b600854909150600160a01b900460ff1615801561152a5750601a83118061152a5750600e805461152690612ac9565b1590505b156115355792915050565b8061153f84611e54565b604051602001611550929190612c17565b604051602081830303815290604052915050919050565b50919050565b336115766111d1565b6001600160a01b03161461159c5760405162461bcd60e51b81526004016109d090612a94565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b336115c76111d1565b6001600160a01b0316146115ed5760405162461bcd60e51b81526004016109d090612a94565b601555565b336115fb6111d1565b6001600160a01b0316146116215760405162461bcd60e51b81526004016109d090612a94565b6001600160a01b0381166116865760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109d0565b610d8b81611b51565b6013818154811061117357600080fd5b6001600160a01b03163b151590565b60006001600160e01b031982166380ac58cd60e01b14806116df57506001600160e01b03198216635b5e139f60e01b145b8061099b57506301ffc9a760e01b6001600160e01b031983161461099b565b600081600111158015611712575060005482105b801561099b575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061179e82611a2a565b9050836001600160a01b031681600001516001600160a01b0316146117d55760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806117f357506117f385336108d1565b8061180e57503361180384610b17565b6001600160a01b0316145b90508061182e57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661185557604051633a954ecd60e21b815260040160405180910390fd5b61186160008487611737565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661193557600054821461193557805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b0316600080516020612ccb83398151915260405160405180910390a45050505050565b60008161198857611983338461ffff166111e0565b61199a565b8261ffff1660095461199a9190612b86565b9050803410156119e85760405162461bcd60e51b8152602060048201526019602482015278082dadeeadce840e6cadce840d2e640dcdee840cadcdeeaced603b1b60448201526064016109d0565b60006119f48234612c00565b90508015611a0657611a063382611f51565b600a54611a1c906001600160a01b031683611f51565b610c61338561ffff1661206a565b60408051606081018252600080825260208201819052918101919091528180600111158015611a5a575060005481105b15611b3857600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611b365780516001600160a01b031615611acd579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611b31579392505050565b611acd565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600d546000906001600160a01b0316611c4c858585611c4433604051602001611be4919060609190911b6bffffffffffffffffffffffff1916815260140190565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b929190612084565b6001600160a01b031614949350505050565b6001600160a01b0316600090815260056020526040902054600160401b90046001600160401b031690565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611cbe903390899088908890600401612c46565b6020604051808303816000875af1925050508015611cf9575060408051601f3d908101601f19168201909252611cf691810190612c83565b60015b611d54573d808015611d27576040519150601f19603f3d011682016040523d82523d6000602084013e611d2c565b606091505b508051611d4c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060601a8211158015611d925750600e8054611d8d90612ac9565b151590505b15611e2957600e8054611da490612ac9565b80601f0160208091040260200160405190810160405280929190818152602001828054611dd090612ac9565b8015611e1d5780601f10611df257610100808354040283529160200191611e1d565b820191906000526020600020905b815481529060010190602001808311611e0057829003601f168201915b50505050509050919050565b600854600160a01b900460ff16611e4757600f8054611da490612ac9565b60108054611da490612ac9565b606081611e785750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611ea25780611e8c81612be5565b9150611e9b9050600a83612bbb565b9150611e7c565b6000816001600160401b03811115611ebc57611ebc6126e3565b6040519080825280601f01601f191660200182016040528015611ee6576020820181803683370190505b5090505b8415611d6a57611efb600183612c00565b9150611f08600a86612ca0565b611f13906030612b14565b60f81b818381518110611f2857611f28612bcf565b60200101906001600160f81b031916908160001a905350611f4a600a86612bbb565b9450611eea565b80471015611fa15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016109d0565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611fee576040519150601f19603f3d011682016040523d82523d6000602084013e611ff3565b606091505b5050905080610be45760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016109d0565b610dd08282604051806020016040528060008152506120ac565b600080600061209587878787612248565b915091506120a28161232b565b5095945050505050565b6000546001600160a01b0384166120d557604051622e076360e81b815260040160405180910390fd5b826120f35760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546001600160801b031981166001600160401b038083168b018116918217600160401b67ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b429093169290920291909117905581908185019061218d9061169f565b15612204575b60405182906001600160a01b03881690600090600080516020612ccb833981519152908290a46121cc6000878480600101955087611c89565b6121e9576040516368d2bf6b60e11b815260040160405180910390fd5b808214156121935782600054146121ff57600080fd5b612238565b5b6040516001830192906001600160a01b03881690600090600080516020612ccb833981519152908290a480821415612205575b506000908155610c619085838684565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b038311156122755750600090506003612322565b8460ff16601b1415801561228d57508460ff16601c14155b1561229e5750600090506004612322565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156122f2573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661231b57600060019250925050612322565b9150600090505b94509492505050565b600081600481111561233f5761233f612cb4565b14156123485750565b600181600481111561235c5761235c612cb4565b14156123a55760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b60448201526064016109d0565b60028160048111156123b9576123b9612cb4565b14156124075760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016109d0565b600381600481111561241b5761241b612cb4565b14156124745760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016109d0565b600481600481111561248857612488612cb4565b1415610d8b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016109d0565b8280546124ed90612ac9565b90600052602060002090601f01602090048101928261250f5760008555612555565b82601f1061252857805160ff1916838001178555612555565b82800160010185558215612555579182015b8281111561255557825182559160200191906001019061253a565b5061256192915061259f565b5090565b828054828255906000526020600020908101928215612555579160200282018281111561255557825182559160200191906001019061253a565b5b8082111561256157600081556001016125a0565b6001600160e01b031981168114610d8b57600080fd5b6000602082840312156125dc57600080fd5b81356125e7816125b4565b9392505050565b803580151581146125fe57600080fd5b919050565b60006020828403121561261557600080fd5b6125e7826125ee565b60005b83811015612639578181015183820152602001612621565b83811115610c615750506000910152565b6000815180845261266281602086016020860161261e565b601f01601f19169290920160200192915050565b6020815260006125e7602083018461264a565b60006020828403121561269b57600080fd5b5035919050565b80356001600160a01b03811681146125fe57600080fd5b600080604083850312156126cc57600080fd5b6126d5836126a2565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612721576127216126e3565b604052919050565b60006001600160401b03831115612742576127426126e3565b612755601f8401601f19166020016126f9565b905082815283838301111561276957600080fd5b828260208301376000602084830101529392505050565b600082601f83011261279157600080fd5b6125e783833560208501612729565b6000806000606084860312156127b557600080fd5b83356001600160401b03808211156127cc57600080fd5b6127d887838801612780565b945060208601359150808211156127ee57600080fd5b6127fa87838801612780565b9350604086013591508082111561281057600080fd5b5061281d86828701612780565b9150509250925092565b60008060006060848603121561283c57600080fd5b612845846126a2565b9250612853602085016126a2565b9150604084013590509250925092565b803561ffff811681146125fe57600080fd5b60006020828403121561288757600080fd5b6125e782612863565b600060208083850312156128a357600080fd5b82356001600160401b03808211156128ba57600080fd5b818501915085601f8301126128ce57600080fd5b8135818111156128e0576128e06126e3565b8060051b91506128f18483016126f9565b818152918301840191848101908884111561290b57600080fd5b938501935b8385101561292957843582529385019390850190612910565b98975050505050505050565b6000806040838503121561294857600080fd5b50508035926020909101359150565b60006020828403121561296957600080fd5b6125e7826126a2565b6000806000806080858703121561298857600080fd5b61299185612863565b9350602085013560ff811681146129a757600080fd5b93969395505050506040820135916060013590565b600080604083850312156129cf57600080fd5b6129d8836126a2565b91506129e6602084016125ee565b90509250929050565b60008060008060808587031215612a0557600080fd5b612a0e856126a2565b9350612a1c602086016126a2565b92506040850135915060608501356001600160401b03811115612a3e57600080fd5b8501601f81018713612a4f57600080fd5b612a5e87823560208401612729565b91505092959194509250565b60008060408385031215612a7d57600080fd5b612a86836126a2565b91506129e6602084016126a2565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680612add57607f821691505b6020821081141561156757634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115612b2757612b27612afe565b500190565b6020808252601590820152741c185cdcd959081b585e081c195c881dd85b1b195d605a1b604082015260600190565b602080825260119082015270706173736564206d617820737570706c7960781b604082015260600190565b6000816000190483118215151615612ba057612ba0612afe565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612bca57612bca612ba5565b500490565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612bf957612bf9612afe565b5060010190565b600082821015612c1257612c12612afe565b500390565b60008351612c2981846020880161261e565b835190830190612c3d81836020880161261e565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c799083018461264a565b9695505050505050565b600060208284031215612c9557600080fd5b81516125e7816125b4565b600082612caf57612caf612ba5565b500690565b634e487b7160e01b600052602160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212200b78fe2532762a1d50354a2fab18a99dace834fd2a0be942e0df0a1d3351db1764736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000e38b85d465f70b2aa513bf95c4f72dc004ff6897000000000000000000000000e38b85d465f70b2aa513bf95c4f72dc004ff6897000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000007411bf60cf8afa3167983b5e01989b951322845b000000000000000000000000000000000000000000000000000000000000000b5468652053796d626f6c73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a54686553796d626f6c73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001768747470733a2f2f697066732e696f2f7374617469632f0000000000000000000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): The Symbols
Arg [1] : _symbol (string): TheSymbols
Arg [2] : _multisigWallet (address): 0xe38B85d465F70b2AA513Bf95c4F72Dc004fF6897
Arg [3] : _royaltiesMultisigWallet (address): 0xe38B85d465F70b2AA513Bf95c4F72Dc004fF6897
Arg [4] : _foundersIPFSURI (string):
Arg [5] : _ipfsStaticURI (string): https://ipfs.io/static/
Arg [6] : _genesisIPFSURI (string):
Arg [7] : _signerPublicAddress (address): 0x7411bF60CF8afa3167983b5E01989B951322845B
-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 000000000000000000000000e38b85d465f70b2aa513bf95c4f72dc004ff6897
Arg [3] : 000000000000000000000000e38b85d465f70b2aa513bf95c4f72dc004ff6897
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [5] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [6] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [7] : 0000000000000000000000007411bf60cf8afa3167983b5e01989b951322845b
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [9] : 5468652053796d626f6c73000000000000000000000000000000000000000000
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [11] : 54686553796d626f6c7300000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [14] : 68747470733a2f2f697066732e696f2f7374617469632f000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ 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.