ERC-721
Overview
Max Total Supply
9,998 DR
Holders
2,117
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 DRLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DoodleRooms
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "./ERC721A.sol"; contract DoodleRooms is ERC721A, IERC2981, Ownable, ReentrancyGuard { using Strings for uint256; string private baseURI; string public verificationHash; address private openSeaProxyRegistryAddress; bool private isOpenSeaProxyActive = true; bool public isPublicSaleActive; uint256 public constant MAX_DOODLE_ROOMS_PER_TX = 5; uint256 public constant MAX_PRESALE_DOODLE_ROOMS_PER_WALLET = 5; uint256 public constant MAX_OG_DOODLE_ROOMS_PER_WALLET = 10; uint256 public constant DOODLE_ROOMS_SUPPLY = 9999; uint256 public constant DOODLE_ROOM_PRICE = 0.02 ether; uint256 public constant THREE_DOODLE_ROOMS_PRICE = 0.05 ether; uint256 public constant FIVE_DOODLE_ROOMS_PRICE = 0.06 ether; uint256 public constant TEN_DOODLE_ROOMS_PRICE = 0.12 ether; uint256 public constant MAX_GIFTED_DOODLE_ROOMS = 100; address public shareOneAddress; address public shareTwoAddress; uint256 public maxOGSaleDoodleRooms; bytes32 public ogSaleMerkleRoot; bool public isOGSaleActive; uint256 public maxPresaleDoodleRooms; bytes32 public presaleMerkleRoot; bool public isPresaleActive; uint256 public numGiftedDoodleRooms; bytes32 public claimListMerkleRoot; mapping(address => uint256) public presaleMintCounts; mapping(address => uint256) public ogSaleMintCounts; // ============ ACCESS CONTROL/SANITY MODIFIERS ============ modifier publicSaleActive() { require(isPublicSaleActive, "Public sale is not open"); _; } modifier presaleActive() { require(isPresaleActive, "Public presale sale is not open"); _; } modifier ogSaleActive() { require(isOGSaleActive, "OG presale is not open"); _; } modifier canMintDoodleRooms(uint256 numberOfTokens) { require( totalSupply() + numberOfTokens <= DOODLE_ROOMS_SUPPLY - MAX_GIFTED_DOODLE_ROOMS, "Not enough DoodleRooms remaining to mint" ); _; } modifier canGiftDoodleRooms(uint256 num) { require( numGiftedDoodleRooms + num <= MAX_GIFTED_DOODLE_ROOMS, "Not enough DoodleRooms remaining to gift" ); require( totalSupply() + num <= DOODLE_ROOMS_SUPPLY, "Not enough DoodleRooms remaining to mint" ); _; } modifier isCorrectPayment(uint256 numberOfTokens) { require( (numberOfTokens == 3 ? THREE_DOODLE_ROOMS_PRICE : numberOfTokens == 5 ? FIVE_DOODLE_ROOMS_PRICE : numberOfTokens == 10 ? TEN_DOODLE_ROOMS_PRICE : DOODLE_ROOM_PRICE * numberOfTokens) == msg.value, "Incorrect ETH value sent" ); _; } modifier isValidMerkleProof(bytes32[] calldata merkleProof, bytes32 root) { require( MerkleProof.verify( merkleProof, root, keccak256(abi.encodePacked(msg.sender)) ), "Address does not exist in the list" ); _; } constructor( address _openSeaProxyRegistryAddress, uint256 _maxPresaleDoodleRooms, bytes32 _presaleMerkleRoot, uint256 _maxOGDoodleRooms, bytes32 _ogPresaleMerkleRoot, address _shareOneAddress, address _shareTwoAddress ) ERC721A("Doodle Rooms", "DR", 10) { openSeaProxyRegistryAddress = _openSeaProxyRegistryAddress; maxPresaleDoodleRooms = _maxPresaleDoodleRooms; presaleMerkleRoot = _presaleMerkleRoot; ogSaleMerkleRoot = _ogPresaleMerkleRoot; maxOGSaleDoodleRooms = _maxOGDoodleRooms; shareOneAddress = _shareOneAddress; shareTwoAddress = _shareTwoAddress; baseURI = "ipfs://QmXQzSvUhxk6F7na1P9ocUttyFCqA8QRg5LV9iURUJMqvp"; } // ============ PUBLIC FUNCTIONS FOR MINTING ============ function mint(uint256 numberOfTokens) external payable nonReentrant publicSaleActive isCorrectPayment(numberOfTokens) canMintDoodleRooms(numberOfTokens) { require(numberOfTokens <= MAX_DOODLE_ROOMS_PER_TX, "Max mint of Doodle Rooms per tx is five"); _safeMint(msg.sender, numberOfTokens); } function mintPresale( uint256 numberOfTokens, bytes32[] calldata merkleProof ) external payable nonReentrant presaleActive canMintDoodleRooms(numberOfTokens) isCorrectPayment(numberOfTokens) isValidMerkleProof(merkleProof, presaleMerkleRoot) { uint256 numAlreadyMinted = presaleMintCounts[msg.sender]; require( numAlreadyMinted + numberOfTokens <= MAX_PRESALE_DOODLE_ROOMS_PER_WALLET, "Max DoodleRooms to mint in presale is five" ); require( totalSupply() + numberOfTokens <= maxPresaleDoodleRooms, "Not enough DoodleRooms remaining to mint" ); presaleMintCounts[msg.sender] = numAlreadyMinted + numberOfTokens; _safeMint(msg.sender, numberOfTokens); } function mintOGSale( uint256 numberOfTokens, bytes32[] calldata merkleProof ) external payable nonReentrant ogSaleActive canMintDoodleRooms(numberOfTokens) isCorrectPayment(numberOfTokens) isValidMerkleProof(merkleProof, ogSaleMerkleRoot) { uint256 numAlreadyMinted = ogSaleMintCounts[msg.sender]; require( numAlreadyMinted + numberOfTokens <= MAX_OG_DOODLE_ROOMS_PER_WALLET, "Max DoodleRooms to mint in og sale is five" ); require( totalSupply() + numberOfTokens <= maxOGSaleDoodleRooms, "Not enough DoodleRooms remaining to mint" ); ogSaleMintCounts[msg.sender] = numAlreadyMinted + numberOfTokens; _safeMint(msg.sender, numberOfTokens); } function getBaseURI() external view returns (string memory) { return baseURI; } function getOGSaleMintCount(address _addr) public view returns (uint256) { return ogSaleMintCounts[_addr]; } function getPresaleMintCount(address _addr) public view returns (uint256) { return presaleMintCounts[_addr]; } function setBaseURI(string memory _baseURI) external onlyOwner { baseURI = _baseURI; } // function to disable gasless listings for security in case // opensea ever shuts down or is compromised function setIsOpenSeaProxyActive(bool _isOpenSeaProxyActive) external onlyOwner { isOpenSeaProxyActive = _isOpenSeaProxyActive; } function setVerificationHash(string memory _verificationHash) external onlyOwner { verificationHash = _verificationHash; } // ============ SALE/PRESALE/OG_SALE STATE CHANGES ============ function setPresaleSupply(uint256 _maxPresaleDoodleRooms) external onlyOwner { maxPresaleDoodleRooms = _maxPresaleDoodleRooms; } function setOGSaleSupply(uint256 _maxOGPresaleDoodleRooms) external onlyOwner { maxOGSaleDoodleRooms = _maxOGPresaleDoodleRooms; } function setIsPublicSaleActive(bool _isPublicSaleActive) external onlyOwner { isPublicSaleActive = _isPublicSaleActive; } function setIsPresaleActive(bool _isPresaleActive) external onlyOwner { isPresaleActive = _isPresaleActive; } function setIsOGSaleActive(bool _isOGSaleActive) external onlyOwner { isOGSaleActive = _isOGSaleActive; } function setPresaleListMerkleRoot(bytes32 merkleRoot) external onlyOwner { presaleMerkleRoot = merkleRoot; } function setOGPresaleListMerkleRoot(bytes32 merkleRoot) external onlyOwner { ogSaleMerkleRoot = merkleRoot; } function setClaimListMerkleRoot(bytes32 merkleRoot) external onlyOwner { claimListMerkleRoot = merkleRoot; } function reserveForGifting(uint256 numToReserve) external nonReentrant onlyOwner canGiftDoodleRooms(numToReserve) { numGiftedDoodleRooms += numToReserve; _safeMint(msg.sender, numToReserve); } function giftDoodleRooms(address[] calldata addresses) external nonReentrant onlyOwner canGiftDoodleRooms(addresses.length) { uint256 numToGift = addresses.length; numGiftedDoodleRooms += numToGift; for (uint256 i = 0; i < numToGift; i++) { _safeMint(addresses[i], 1); } } function withdraw() external onlyOwner { uint256 balance = address(this).balance; uint256 shareOne = balance / 5; uint256 shareTwo = balance - shareOne; payable(shareOneAddress).transfer(shareOne); payable(shareTwoAddress).transfer(shareTwo); } function withdrawTokens(IERC20 token) external onlyOwner { uint256 balance = token.balanceOf(address(this)); token.transfer(msg.sender, balance); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, IERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Override isApprovedForAll to allowlist user's OpenSea proxy accounts to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) public view override returns (bool) { // Get a reference to OpenSea's proxy registry contract by instantiating // the contract using the already existing address. ProxyRegistry proxyRegistry = ProxyRegistry( openSeaProxyRegistryAddress ); if ( isOpenSeaProxyActive && address(proxyRegistry.proxies(owner)) == operator ) { return true; } return super.isApprovedForAll(owner, operator); } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "Nonexistent token"); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, "/", tokenId.toString())) : ''; } /** * @dev See {IERC165-royaltyInfo}. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view override returns (address receiver, uint256 royaltyAmount) { require(_exists(tokenId), "Nonexistent token"); return (address(this), (salePrice * 7) / 100); } } // These contract definitions are used to create a reference to the OpenSea // ProxyRegistry contract by using the registry's address (see isApprovedForAll). contract OwnableDelegateProxy { } contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard */ interface IERC2981 is IERC165 { /** * @dev Called with the sale price to determine how much royalty is owed and to whom. * @param tokenId - the NFT asset queried for royalty information * @param salePrice - the sale price of the NFT asset specified by `tokenId` * @return receiver - address of who should be sent the royalty payment * @return royaltyAmount - the royalty payment amount for `salePrice` */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// 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 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } }
// 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 // Creators: locationtba.eth, 2pmflow.eth pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > currentIndex - 1) { endIndex = currentIndex - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership( ownership.addr, ownership.startTimestamp ); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// 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/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// 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 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_openSeaProxyRegistryAddress","type":"address"},{"internalType":"uint256","name":"_maxPresaleDoodleRooms","type":"uint256"},{"internalType":"bytes32","name":"_presaleMerkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_maxOGDoodleRooms","type":"uint256"},{"internalType":"bytes32","name":"_ogPresaleMerkleRoot","type":"bytes32"},{"internalType":"address","name":"_shareOneAddress","type":"address"},{"internalType":"address","name":"_shareTwoAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOODLE_ROOMS_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOODLE_ROOM_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FIVE_DOODLE_ROOMS_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_DOODLE_ROOMS_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_GIFTED_DOODLE_ROOMS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_OG_DOODLE_ROOMS_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PRESALE_DOODLE_ROOMS_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEN_DOODLE_ROOMS_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"THREE_DOODLE_ROOMS_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"claimListMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getOGSaleMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getPresaleMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"giftDoodleRooms","outputs":[],"stateMutability":"nonpayable","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":"isOGSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxOGSaleDoodleRooms","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPresaleDoodleRooms","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintOGSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numGiftedDoodleRooms","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ogSaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"ogSaleMintCounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleMintCounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numToReserve","type":"uint256"}],"name":"reserveForGifting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setClaimListMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isOGSaleActive","type":"bool"}],"name":"setIsOGSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isOpenSeaProxyActive","type":"bool"}],"name":"setIsOpenSeaProxyActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPresaleActive","type":"bool"}],"name":"setIsPresaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPublicSaleActive","type":"bool"}],"name":"setIsPublicSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setOGPresaleListMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxOGPresaleDoodleRooms","type":"uint256"}],"name":"setOGSaleSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setPresaleListMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPresaleDoodleRooms","type":"uint256"}],"name":"setPresaleSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_verificationHash","type":"string"}],"name":"setVerificationHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shareOneAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"shareTwoAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"verificationHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040526000808055600755600c805460ff60a01b1916600160a01b1790553480156200002c57600080fd5b506040516200446d3803806200446d8339810160408190526200004f91620002db565b6040518060400160405280600c81526020016b446f6f646c6520526f6f6d7360a01b81525060405180604001604052806002815260200161222960f11b815250600a60008111620000f65760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b606482015260840160405180910390fd5b82516200010b90600190602086019062000218565b5081516200012190600290602085019062000218565b506080525062000133905033620001c6565b6001600955600c80546001600160a01b03808a166001600160a01b031992831617909255601288905560138790556010859055600f869055600d8054858416908316179055600e805492841692909116919091179055604080516060810190915260358082526200443860208301398051620001b891600a9160209091019062000218565b505050505050505062000388565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000226906200034b565b90600052602060002090601f0160209004810192826200024a576000855562000295565b82601f106200026557805160ff191683800117855562000295565b8280016001018555821562000295579182015b828111156200029557825182559160200191906001019062000278565b50620002a3929150620002a7565b5090565b5b80821115620002a35760008155600101620002a8565b80516001600160a01b0381168114620002d657600080fd5b919050565b600080600080600080600060e0888a031215620002f6578283fd5b6200030188620002be565b9650602088015195506040880151945060608801519350608088015192506200032d60a08901620002be565b91506200033d60c08901620002be565b905092959891949750929550565b600181811c908216806200036057607f821691505b602082108114156200038257634e487b7160e01b600052602260045260246000fd5b50919050565b608051614086620003b2600039600081816130020152818161302c01526135db01526140866000f3fe6080604052600436106103de5760003560e01c80636352211e1161020d578063a3d30feb11610128578063c87b56dd116100bb578063e32f2ede1161008a578063e985e9c51161006f578063e985e9c514610b32578063ec79692e14610b52578063f2fde38b14610b6d57600080fd5b8063e32f2ede14610af7578063e43082f714610b1257600080fd5b8063c87b56dd14610a8f578063c9ceec8e14610aaf578063cce0178414610acb578063d7224ba014610ae157600080fd5b8063b88d4fde116100f7578063b88d4fde14610a3a578063b96502cb14610a5a578063c0c36a3714610a7a578063c581d843146108d457600080fd5b8063a3d30feb146109b8578063a643ed30146109ce578063ac637f40146109ee578063b87bbfaf14610a2457600080fd5b8063863ff37c116101a05780639d60c70c1161016f5780639d60c70c14610952578063a0712d6814610972578063a22cb46514610985578063a3a53ccb146109a557600080fd5b8063863ff37c146108e95780638787a5b6146108ff5780638da5cb5b1461091f57806395d89b411461093d57600080fd5b8063714c5398116101dc578063714c53981461088a578063715018a61461089f5780637a77378c146108b4578063858ca231146108d457600080fd5b80636352211e146108145780636c3a9b4a1461083457806370a082311461085457806371161f4d1461087457600080fd5b80632a55205a116102fd578063443da2a2116102905780634c965ed81161025f5780634c965ed81461079a5780634f6ccce7146107ba57806355f804b3146107da57806360d938dc146107fa57600080fd5b8063443da2a21461072557806345f75e8914610745578063494c9db21461075a57806349df728c1461077a57600080fd5b80633c5369e1116102cc5780633c5369e1146106ae5780633ccfd60b146106db578063406e37b8146106f057806342842e0e1461070557600080fd5b80632a55205a1461061e5780632f745c591461065d578063326f9ad31461067d5780633677827b1461069357600080fd5b80631959d9f81161037557806323b872dd1161034457806323b872dd1461059157806324f985e9146105b157806327626f34146105d157806328cad13d146105fe57600080fd5b80631959d9f8146105205780631e84c4131461053a5780631f9898911461055b57806322212e2b1461057b57600080fd5b8063095ea7b3116103b1578063095ea7b3146104b65780630c0a6b5e146104d857806315bdebe2146104eb57806318160ddd1461050b57600080fd5b806301ffc9a7146103e3578063025ef8381461041857806306fdde031461045c578063081812fc1461047e575b600080fd5b3480156103ef57600080fd5b506104036103fe366004613bcd565b610b8d565b60405190151581526020015b60405180910390f35b34801561042457600080fd5b5061044e6104333660046139cd565b6001600160a01b031660009081526017602052604090205490565b60405190815260200161040f565b34801561046857600080fd5b50610471610bd1565b60405161040f9190613e40565b34801561048a57600080fd5b5061049e610499366004613bb5565b610c63565b6040516001600160a01b03909116815260200161040f565b3480156104c257600080fd5b506104d66104d1366004613b12565b610d03565b005b6104d66104e6366004613c7f565b610e36565b3480156104f757600080fd5b506104d6610506366004613bb5565b6111fb565b34801561051757600080fd5b5060005461044e565b34801561052c57600080fd5b506011546104039060ff1681565b34801561054657600080fd5b50600c5461040390600160a81b900460ff1681565b34801561056757600080fd5b506104d6610576366004613b3d565b611248565b34801561058757600080fd5b5061044e60135481565b34801561059d57600080fd5b506104d66105ac366004613a28565b611454565b3480156105bd57600080fd5b506104d66105cc366004613c21565b61145f565b3480156105dd57600080fd5b5061044e6105ec3660046139cd565b60176020526000908152604090205481565b34801561060a57600080fd5b506104d6610619366004613b7d565b6114be565b34801561062a57600080fd5b5061063e610639366004613cc9565b61153f565b604080516001600160a01b03909316835260208301919091520161040f565b34801561066957600080fd5b5061044e610678366004613b12565b6115bd565b34801561068957600080fd5b5061044e60165481565b34801561069f57600080fd5b5061044e66b1a2bc2ec5000081565b3480156106ba57600080fd5b5061044e6106c93660046139cd565b60186020526000908152604090205481565b3480156106e757600080fd5b506104d6611755565b3480156106fc57600080fd5b5061044e606481565b34801561071157600080fd5b506104d6610720366004613a28565b611835565b34801561073157600080fd5b506104d6610740366004613b7d565b611850565b34801561075157600080fd5b5061044e600a81565b34801561076657600080fd5b50600d5461049e906001600160a01b031681565b34801561078657600080fd5b506104d66107953660046139cd565b6118ab565b3480156107a657600080fd5b506104d66107b5366004613bb5565b611a22565b3480156107c657600080fd5b5061044e6107d5366004613bb5565b611a6f565b3480156107e657600080fd5b506104d66107f5366004613c21565b611aeb565b34801561080657600080fd5b506014546104039060ff1681565b34801561082057600080fd5b5061049e61082f366004613bb5565b611b46565b34801561084057600080fd5b506104d661084f366004613bb5565b611b58565b34801561086057600080fd5b5061044e61086f3660046139cd565b611d09565b34801561088057600080fd5b5061044e600f5481565b34801561089657600080fd5b50610471611dac565b3480156108ab57600080fd5b506104d6611dbb565b3480156108c057600080fd5b50600e5461049e906001600160a01b031681565b3480156108e057600080fd5b5061044e600581565b3480156108f557600080fd5b5061044e60125481565b34801561090b57600080fd5b506104d661091a366004613bb5565b611e0f565b34801561092b57600080fd5b506008546001600160a01b031661049e565b34801561094957600080fd5b50610471611e5c565b34801561095e57600080fd5b506104d661096d366004613b7d565b611e6b565b6104d6610980366004613bb5565b611ec6565b34801561099157600080fd5b506104d66109a0366004613ae5565b612124565b6104d66109b3366004613c7f565b6121e9565b3480156109c457600080fd5b5061044e60105481565b3480156109da57600080fd5b506104d66109e9366004613bb5565b612587565b3480156109fa57600080fd5b5061044e610a093660046139cd565b6001600160a01b031660009081526018602052604090205490565b348015610a3057600080fd5b5061044e61270f81565b348015610a4657600080fd5b506104d6610a55366004613a68565b6125d4565b348015610a6657600080fd5b506104d6610a75366004613bb5565b61265d565b348015610a8657600080fd5b506104716126aa565b348015610a9b57600080fd5b50610471610aaa366004613bb5565b612738565b348015610abb57600080fd5b5061044e6701aa535d3d0c000081565b348015610ad757600080fd5b5061044e60155481565b348015610aed57600080fd5b5061044e60075481565b348015610b0357600080fd5b5061044e66d529ae9e86000081565b348015610b1e57600080fd5b506104d6610b2d366004613b7d565b6127ed565b348015610b3e57600080fd5b50610403610b4d3660046139f0565b61286e565b348015610b5e57600080fd5b5061044e66470de4df82000081565b348015610b7957600080fd5b506104d6610b883660046139cd565b612973565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610bcb5750610bcb82612a43565b92915050565b606060018054610be090613f4b565b80601f0160208091040260200160405190810160405280929190818152602001828054610c0c90613f4b565b8015610c595780601f10610c2e57610100808354040283529160200191610c59565b820191906000526020600020905b815481529060010190602001808311610c3c57829003601f168201915b5050505050905090565b6000610c70826000541190565b610ce75760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610d0e82611b46565b9050806001600160a01b0316836001600160a01b03161415610d985760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610cde565b336001600160a01b0382161480610db45750610db4813361286e565b610e265760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610cde565b610e31838383612b12565b505050565b60026009541415610e895760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cde565b600260095560145460ff16610ee05760405162461bcd60e51b815260206004820152601f60248201527f5075626c69632070726573616c652073616c65206973206e6f74206f70656e006044820152606401610cde565b82610eee606461270f613ef1565b81610ef860005490565b610f029190613e7e565b1115610f615760405162461bcd60e51b815260206004820152602860248201527f4e6f7420656e6f75676820446f6f646c65526f6f6d732072656d61696e696e67604482015267081d1bc81b5a5b9d60c21b6064820152608401610cde565b833481600314610fac5781600514610f9f5781600a14610f9157610f8c8266470de4df820000613eaa565b610fb5565b6701aa535d3d0c0000610fb5565b66d529ae9e860000610fb5565b66b1a2bc2ec500005b146110025760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e7400000000000000006044820152606401610cde565b838360135461107a838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516bffffffffffffffffffffffff193360601b16602082015285925060340190505b60405160208183030381529060405280519060200120612b7b565b6110d15760405162461bcd60e51b815260206004820152602260248201527f4164647265737320646f6573206e6f7420657869737420696e20746865206c696044820152611cdd60f21b6064820152608401610cde565b3360009081526017602052604090205460056110ed8a83613e7e565b111561114e5760405162461bcd60e51b815260206004820152602a60248201527f4d617820446f6f646c65526f6f6d7320746f206d696e7420696e2070726573616044820152696c65206973206669766560b01b6064820152608401610cde565b6012548961115b60005490565b6111659190613e7e565b11156111c45760405162461bcd60e51b815260206004820152602860248201527f4e6f7420656e6f75676820446f6f646c65526f6f6d732072656d61696e696e67604482015267081d1bc81b5a5b9d60c21b6064820152608401610cde565b6111ce8982613e7e565b336000818152601760205260409020919091556111eb908a612b91565b5050600160095550505050505050565b6008546001600160a01b031633146112435760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b601655565b6002600954141561129b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cde565b60026009556008546001600160a01b031633146112e85760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b60155481906064906112fb908390613e7e565b111561135a5760405162461bcd60e51b815260206004820152602860248201527f4e6f7420656e6f75676820446f6f646c65526f6f6d732072656d61696e696e67604482015267081d1bc819da599d60c21b6064820152608401610cde565b61270f8161136760005490565b6113719190613e7e565b11156113d05760405162461bcd60e51b815260206004820152602860248201527f4e6f7420656e6f75676820446f6f646c65526f6f6d732072656d61696e696e67604482015267081d1bc81b5a5b9d60c21b6064820152608401610cde565b60158054839182916000906113e6908490613e7e565b90915550600090505b818110156114485761143685858381811061141a57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061142f91906139cd565b6001612b91565b8061144081613f86565b9150506113ef565b50506001600955505050565b610e31838383612bab565b6008546001600160a01b031633146114a75760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b80516114ba90600b906020840190613884565b5050565b6008546001600160a01b031633146115065760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b600c8054911515600160a81b027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b60008061154d846000541190565b6115995760405162461bcd60e51b815260206004820152601160248201527f4e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006044820152606401610cde565b3060646115a7856007613eaa565b6115b19190613e96565b915091505b9250929050565b60006115c883611d09565b821061163c5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610cde565b600080549080805b838110156116e6576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561169757805192505b876001600160a01b0316836001600160a01b031614156116d357868414156116c557509350610bcb92505050565b836116cf81613f86565b9450505b50806116de81613f86565b915050611644565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610cde565b6008546001600160a01b0316331461179d5760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b4760006117ab600583613e96565b905060006117b98284613ef1565b600d546040519192506001600160a01b03169083156108fc029084906000818181858888f193505050501580156117f4573d6000803e3d6000fd5b50600e546040516001600160a01b039091169082156108fc029083906000818181858888f1935050505015801561182f573d6000803e3d6000fd5b50505050565b610e31838383604051806020016040528060008152506125d4565b6008546001600160a01b031633146118985760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b6014805460ff1916911515919091179055565b6008546001600160a01b031633146118f35760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561194e57600080fd5b505afa158015611962573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119869190613c67565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290529091506001600160a01b0383169063a9059cbb90604401602060405180830381600087803b1580156119ea57600080fd5b505af11580156119fe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e319190613b99565b6008546001600160a01b03163314611a6a5760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b601055565b600080548210611ae75760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610cde565b5090565b6008546001600160a01b03163314611b335760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b80516114ba90600a906020840190613884565b6000611b5182612f6d565b5192915050565b60026009541415611bab5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cde565b60026009556008546001600160a01b03163314611bf85760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b80606481601554611c099190613e7e565b1115611c685760405162461bcd60e51b815260206004820152602860248201527f4e6f7420656e6f75676820446f6f646c65526f6f6d732072656d61696e696e67604482015267081d1bc819da599d60c21b6064820152608401610cde565b61270f81611c7560005490565b611c7f9190613e7e565b1115611cde5760405162461bcd60e51b815260206004820152602860248201527f4e6f7420656e6f75676820446f6f646c65526f6f6d732072656d61696e696e67604482015267081d1bc81b5a5b9d60c21b6064820152608401610cde565b8160156000828254611cf09190613e7e565b90915550611d0090503383612b91565b50506001600955565b60006001600160a01b038216611d875760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610cde565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6060600a8054610be090613f4b565b6008546001600160a01b03163314611e035760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b611e0d6000613138565b565b6008546001600160a01b03163314611e575760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b600f55565b606060028054610be090613f4b565b6008546001600160a01b03163314611eb35760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b6011805460ff1916911515919091179055565b60026009541415611f195760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cde565b6002600955600c54600160a81b900460ff16611f775760405162461bcd60e51b815260206004820152601760248201527f5075626c69632073616c65206973206e6f74206f70656e0000000000000000006044820152606401610cde565b803481600314611fc25781600514611fb55781600a14611fa757611fa28266470de4df820000613eaa565b611fcb565b6701aa535d3d0c0000611fcb565b66d529ae9e860000611fcb565b66b1a2bc2ec500005b146120185760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e7400000000000000006044820152606401610cde565b81612026606461270f613ef1565b8161203060005490565b61203a9190613e7e565b11156120995760405162461bcd60e51b815260206004820152602860248201527f4e6f7420656e6f75676820446f6f646c65526f6f6d732072656d61696e696e67604482015267081d1bc81b5a5b9d60c21b6064820152608401610cde565b60058311156121105760405162461bcd60e51b815260206004820152602760248201527f4d6178206d696e74206f6620446f6f646c6520526f6f6d73207065722074782060448201527f69732066697665000000000000000000000000000000000000000000000000006064820152608401610cde565b61211a3384612b91565b5050600160095550565b6001600160a01b03821633141561217d5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610cde565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6002600954141561223c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cde565b600260095560115460ff166122935760405162461bcd60e51b815260206004820152601660248201527f4f472070726573616c65206973206e6f74206f70656e000000000000000000006044820152606401610cde565b826122a1606461270f613ef1565b816122ab60005490565b6122b59190613e7e565b11156123145760405162461bcd60e51b815260206004820152602860248201527f4e6f7420656e6f75676820446f6f646c65526f6f6d732072656d61696e696e67604482015267081d1bc81b5a5b9d60c21b6064820152608401610cde565b83348160031461235f57816005146123525781600a146123445761233f8266470de4df820000613eaa565b612368565b6701aa535d3d0c0000612368565b66d529ae9e860000612368565b66b1a2bc2ec500005b146123b55760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e7400000000000000006044820152606401610cde565b8383601054612416838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516bffffffffffffffffffffffff193360601b166020820152859250603401905061105f565b61246d5760405162461bcd60e51b815260206004820152602260248201527f4164647265737320646f6573206e6f7420657869737420696e20746865206c696044820152611cdd60f21b6064820152608401610cde565b33600090815260186020526040902054600a6124898a83613e7e565b11156124ea5760405162461bcd60e51b815260206004820152602a60248201527f4d617820446f6f646c65526f6f6d7320746f206d696e7420696e206f672073616044820152696c65206973206669766560b01b6064820152608401610cde565b600f54896124f760005490565b6125019190613e7e565b11156125605760405162461bcd60e51b815260206004820152602860248201527f4e6f7420656e6f75676820446f6f646c65526f6f6d732072656d61696e696e67604482015267081d1bc81b5a5b9d60c21b6064820152608401610cde565b61256a8982613e7e565b336000818152601860205260409020919091556111eb908a612b91565b6008546001600160a01b031633146125cf5760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b601355565b6125df848484612bab565b6125eb84848484613197565b61182f5760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610cde565b6008546001600160a01b031633146126a55760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b601255565b600b80546126b790613f4b565b80601f01602080910402602001604051908101604052809291908181526020018280546126e390613f4b565b80156127305780601f1061270557610100808354040283529160200191612730565b820191906000526020600020905b81548152906001019060200180831161271357829003601f168201915b505050505081565b6060612745826000541190565b6127915760405162461bcd60e51b815260206004820152601160248201527f4e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006044820152606401610cde565b6000600a80546127a090613f4b565b9050116127bc5760405180602001604052806000815250610bcb565b600a6127c7836132fa565b6040516020016127d8929190613d32565b60405160208183030381529060405292915050565b6008546001600160a01b031633146128355760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b600c8054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b600c546000906001600160a01b03811690600160a01b900460ff16801561293257506040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b1580156128ef57600080fd5b505afa158015612903573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129279190613c05565b6001600160a01b0316145b15612941576001915050610bcb565b6001600160a01b0380851660009081526006602090815260408083209387168352929052205460ff165b949350505050565b6008546001600160a01b031633146129bb5760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b6001600160a01b038116612a375760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610cde565b612a4081613138565b50565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612aa657506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80612ada57506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610bcb57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610bcb565b600082815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600082612b888584613448565b14949350505050565b6114ba828260405180602001604052806000815250613502565b6000612bb682612f6d565b80519091506000906001600160a01b0316336001600160a01b03161480612bed575033612be284610c63565b6001600160a01b0316145b80612bff57508151612bff903361286e565b905080612c745760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610cde565b846001600160a01b031682600001516001600160a01b031614612cff5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610cde565b6001600160a01b038416612d7b5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610cde565b612d8b6000848460000151612b12565b6001600160a01b0385166000908152600460205260408120805460019290612dbd9084906001600160801b0316613ec9565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092612e0991859116613e53565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055612e91846001613e7e565b6000818152600360205260409020549091506001600160a01b0316612f2357612ebb816000541190565b15612f235760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6040805180820190915260008082526020820152612f8c826000541190565b612ffe5760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610cde565b60007f0000000000000000000000000000000000000000000000000000000000000000831061305f576130517f000000000000000000000000000000000000000000000000000000000000000084613ef1565b61305c906001613e7e565b90505b825b8181106130c9576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156130b657949350505050565b50806130c181613f34565b915050613061565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610cde565b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b156132ef57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906131db903390899088908890600401613e04565b602060405180830381600087803b1580156131f557600080fd5b505af1925050508015613225575060408051601f3d908101601f1916820190925261322291810190613be9565b60015b6132d5573d808015613253576040519150601f19603f3d011682016040523d82523d6000602084013e613258565b606091505b5080516132cd5760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610cde565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061296b565b506001949350505050565b60608161333a57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613364578061334e81613f86565b915061335d9050600a83613e96565b915061333e565b60008167ffffffffffffffff81111561338d57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156133b7576020820181803683370190505b5090505b841561296b576133cc600183613ef1565b91506133d9600a86613fa1565b6133e4906030613e7e565b60f81b81838151811061340757634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613441600a86613e96565b94506133bb565b600081815b84518110156134fa57600085828151811061347857634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116134ba5760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506134e7565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806134f281613f86565b91505061344d565b509392505050565b6000546001600160a01b0384166135815760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610cde565b61358c816000541190565b156135d95760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610cde565b7f000000000000000000000000000000000000000000000000000000000000000083111561366f5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610cde565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b03808216835270010000000000000000000000000000000090910416918101919091528151808301909252805190919081906136d8908790613e53565b6001600160801b031681526020018583602001516136f69190613e53565b6001600160801b039081169091526001600160a01b03808816600081815260046020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b858110156138795760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46137e76000888488613197565b6138595760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610cde565b8161386381613f86565b925050808061387190613f86565b91505061379a565b506000819055612f65565b82805461389090613f4b565b90600052602060002090601f0160209004810192826138b257600085556138f8565b82601f106138cb57805160ff19168380011785556138f8565b828001600101855582156138f8579182015b828111156138f85782518255916020019190600101906138dd565b50611ae79291505b80821115611ae75760008155600101613900565b600067ffffffffffffffff8084111561392f5761392f613fe1565b604051601f8501601f19908116603f0116810190828211818310171561395757613957613fe1565b8160405280935085815286868601111561397057600080fd5b858560208301376000602087830101525050509392505050565b60008083601f84011261399b578081fd5b50813567ffffffffffffffff8111156139b2578182fd5b6020830191508360208260051b85010111156115b657600080fd5b6000602082840312156139de578081fd5b81356139e981613ff7565b9392505050565b60008060408385031215613a02578081fd5b8235613a0d81613ff7565b91506020830135613a1d81613ff7565b809150509250929050565b600080600060608486031215613a3c578081fd5b8335613a4781613ff7565b92506020840135613a5781613ff7565b929592945050506040919091013590565b60008060008060808587031215613a7d578081fd5b8435613a8881613ff7565b93506020850135613a9881613ff7565b925060408501359150606085013567ffffffffffffffff811115613aba578182fd5b8501601f81018713613aca578182fd5b613ad987823560208401613914565b91505092959194509250565b60008060408385031215613af7578182fd5b8235613b0281613ff7565b91506020830135613a1d8161400c565b60008060408385031215613b24578182fd5b8235613b2f81613ff7565b946020939093013593505050565b60008060208385031215613b4f578182fd5b823567ffffffffffffffff811115613b65578283fd5b613b718582860161398a565b90969095509350505050565b600060208284031215613b8e578081fd5b81356139e98161400c565b600060208284031215613baa578081fd5b81516139e98161400c565b600060208284031215613bc6578081fd5b5035919050565b600060208284031215613bde578081fd5b81356139e98161401a565b600060208284031215613bfa578081fd5b81516139e98161401a565b600060208284031215613c16578081fd5b81516139e981613ff7565b600060208284031215613c32578081fd5b813567ffffffffffffffff811115613c48578182fd5b8201601f81018413613c58578182fd5b61296b84823560208401613914565b600060208284031215613c78578081fd5b5051919050565b600080600060408486031215613c93578081fd5b83359250602084013567ffffffffffffffff811115613cb0578182fd5b613cbc8682870161398a565b9497909650939450505050565b60008060408385031215613cdb578182fd5b50508035926020909101359150565b60008151808452613d02816020860160208601613f08565b601f01601f19169290920160200192915050565b60008151613d28818560208601613f08565b9290920192915050565b600080845482600182811c915080831680613d4e57607f831692505b6020808410821415613d6e57634e487b7160e01b87526022600452602487fd5b818015613d825760018114613d9357613dbf565b60ff19861689528489019650613dbf565b60008b815260209020885b86811015613db75781548b820152908501908301613d9e565b505084890196505b505050505050613dfb613df5827f2f00000000000000000000000000000000000000000000000000000000000000815260010190565b85613d16565b95945050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613e366080830184613cea565b9695505050505050565b6020815260006139e96020830184613cea565b60006001600160801b03808316818516808303821115613e7557613e75613fb5565b01949350505050565b60008219821115613e9157613e91613fb5565b500190565b600082613ea557613ea5613fcb565b500490565b6000816000190483118215151615613ec457613ec4613fb5565b500290565b60006001600160801b0383811690831681811015613ee957613ee9613fb5565b039392505050565b600082821015613f0357613f03613fb5565b500390565b60005b83811015613f23578181015183820152602001613f0b565b8381111561182f5750506000910152565b600081613f4357613f43613fb5565b506000190190565b600181811c90821680613f5f57607f821691505b60208210811415613f8057634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613f9a57613f9a613fb5565b5060010190565b600082613fb057613fb0613fcb565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612a4057600080fd5b8015158114612a4057600080fd5b6001600160e01b031981168114612a4057600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122082e8fa4c2136796782f4cc2bbf92cedc38d1c69f8df54da2f46a7b7793f1219464736f6c63430008040033697066733a2f2f516d58517a53765568786b3646376e613150396f63557474794643714138515267354c5639695552554a4d717670000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000000abe970e66dab00032b5b1178e9c30f8f1a16dbc78f92a704f3f2dc7fc69f0dc5d5c00000000000000000000000000000000000000000000000000000000000007d0e00993716bed0ed52dd604b5d283951a2e4fb456d0b33303bb62df9814aa9e480000000000000000000000000215f05293e5a826d64a18be35a9471c0148ffe30000000000000000000000008a48debdd94c9b19e74fdad114ec0fe568fd0500
Deployed Bytecode
0x6080604052600436106103de5760003560e01c80636352211e1161020d578063a3d30feb11610128578063c87b56dd116100bb578063e32f2ede1161008a578063e985e9c51161006f578063e985e9c514610b32578063ec79692e14610b52578063f2fde38b14610b6d57600080fd5b8063e32f2ede14610af7578063e43082f714610b1257600080fd5b8063c87b56dd14610a8f578063c9ceec8e14610aaf578063cce0178414610acb578063d7224ba014610ae157600080fd5b8063b88d4fde116100f7578063b88d4fde14610a3a578063b96502cb14610a5a578063c0c36a3714610a7a578063c581d843146108d457600080fd5b8063a3d30feb146109b8578063a643ed30146109ce578063ac637f40146109ee578063b87bbfaf14610a2457600080fd5b8063863ff37c116101a05780639d60c70c1161016f5780639d60c70c14610952578063a0712d6814610972578063a22cb46514610985578063a3a53ccb146109a557600080fd5b8063863ff37c146108e95780638787a5b6146108ff5780638da5cb5b1461091f57806395d89b411461093d57600080fd5b8063714c5398116101dc578063714c53981461088a578063715018a61461089f5780637a77378c146108b4578063858ca231146108d457600080fd5b80636352211e146108145780636c3a9b4a1461083457806370a082311461085457806371161f4d1461087457600080fd5b80632a55205a116102fd578063443da2a2116102905780634c965ed81161025f5780634c965ed81461079a5780634f6ccce7146107ba57806355f804b3146107da57806360d938dc146107fa57600080fd5b8063443da2a21461072557806345f75e8914610745578063494c9db21461075a57806349df728c1461077a57600080fd5b80633c5369e1116102cc5780633c5369e1146106ae5780633ccfd60b146106db578063406e37b8146106f057806342842e0e1461070557600080fd5b80632a55205a1461061e5780632f745c591461065d578063326f9ad31461067d5780633677827b1461069357600080fd5b80631959d9f81161037557806323b872dd1161034457806323b872dd1461059157806324f985e9146105b157806327626f34146105d157806328cad13d146105fe57600080fd5b80631959d9f8146105205780631e84c4131461053a5780631f9898911461055b57806322212e2b1461057b57600080fd5b8063095ea7b3116103b1578063095ea7b3146104b65780630c0a6b5e146104d857806315bdebe2146104eb57806318160ddd1461050b57600080fd5b806301ffc9a7146103e3578063025ef8381461041857806306fdde031461045c578063081812fc1461047e575b600080fd5b3480156103ef57600080fd5b506104036103fe366004613bcd565b610b8d565b60405190151581526020015b60405180910390f35b34801561042457600080fd5b5061044e6104333660046139cd565b6001600160a01b031660009081526017602052604090205490565b60405190815260200161040f565b34801561046857600080fd5b50610471610bd1565b60405161040f9190613e40565b34801561048a57600080fd5b5061049e610499366004613bb5565b610c63565b6040516001600160a01b03909116815260200161040f565b3480156104c257600080fd5b506104d66104d1366004613b12565b610d03565b005b6104d66104e6366004613c7f565b610e36565b3480156104f757600080fd5b506104d6610506366004613bb5565b6111fb565b34801561051757600080fd5b5060005461044e565b34801561052c57600080fd5b506011546104039060ff1681565b34801561054657600080fd5b50600c5461040390600160a81b900460ff1681565b34801561056757600080fd5b506104d6610576366004613b3d565b611248565b34801561058757600080fd5b5061044e60135481565b34801561059d57600080fd5b506104d66105ac366004613a28565b611454565b3480156105bd57600080fd5b506104d66105cc366004613c21565b61145f565b3480156105dd57600080fd5b5061044e6105ec3660046139cd565b60176020526000908152604090205481565b34801561060a57600080fd5b506104d6610619366004613b7d565b6114be565b34801561062a57600080fd5b5061063e610639366004613cc9565b61153f565b604080516001600160a01b03909316835260208301919091520161040f565b34801561066957600080fd5b5061044e610678366004613b12565b6115bd565b34801561068957600080fd5b5061044e60165481565b34801561069f57600080fd5b5061044e66b1a2bc2ec5000081565b3480156106ba57600080fd5b5061044e6106c93660046139cd565b60186020526000908152604090205481565b3480156106e757600080fd5b506104d6611755565b3480156106fc57600080fd5b5061044e606481565b34801561071157600080fd5b506104d6610720366004613a28565b611835565b34801561073157600080fd5b506104d6610740366004613b7d565b611850565b34801561075157600080fd5b5061044e600a81565b34801561076657600080fd5b50600d5461049e906001600160a01b031681565b34801561078657600080fd5b506104d66107953660046139cd565b6118ab565b3480156107a657600080fd5b506104d66107b5366004613bb5565b611a22565b3480156107c657600080fd5b5061044e6107d5366004613bb5565b611a6f565b3480156107e657600080fd5b506104d66107f5366004613c21565b611aeb565b34801561080657600080fd5b506014546104039060ff1681565b34801561082057600080fd5b5061049e61082f366004613bb5565b611b46565b34801561084057600080fd5b506104d661084f366004613bb5565b611b58565b34801561086057600080fd5b5061044e61086f3660046139cd565b611d09565b34801561088057600080fd5b5061044e600f5481565b34801561089657600080fd5b50610471611dac565b3480156108ab57600080fd5b506104d6611dbb565b3480156108c057600080fd5b50600e5461049e906001600160a01b031681565b3480156108e057600080fd5b5061044e600581565b3480156108f557600080fd5b5061044e60125481565b34801561090b57600080fd5b506104d661091a366004613bb5565b611e0f565b34801561092b57600080fd5b506008546001600160a01b031661049e565b34801561094957600080fd5b50610471611e5c565b34801561095e57600080fd5b506104d661096d366004613b7d565b611e6b565b6104d6610980366004613bb5565b611ec6565b34801561099157600080fd5b506104d66109a0366004613ae5565b612124565b6104d66109b3366004613c7f565b6121e9565b3480156109c457600080fd5b5061044e60105481565b3480156109da57600080fd5b506104d66109e9366004613bb5565b612587565b3480156109fa57600080fd5b5061044e610a093660046139cd565b6001600160a01b031660009081526018602052604090205490565b348015610a3057600080fd5b5061044e61270f81565b348015610a4657600080fd5b506104d6610a55366004613a68565b6125d4565b348015610a6657600080fd5b506104d6610a75366004613bb5565b61265d565b348015610a8657600080fd5b506104716126aa565b348015610a9b57600080fd5b50610471610aaa366004613bb5565b612738565b348015610abb57600080fd5b5061044e6701aa535d3d0c000081565b348015610ad757600080fd5b5061044e60155481565b348015610aed57600080fd5b5061044e60075481565b348015610b0357600080fd5b5061044e66d529ae9e86000081565b348015610b1e57600080fd5b506104d6610b2d366004613b7d565b6127ed565b348015610b3e57600080fd5b50610403610b4d3660046139f0565b61286e565b348015610b5e57600080fd5b5061044e66470de4df82000081565b348015610b7957600080fd5b506104d6610b883660046139cd565b612973565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610bcb5750610bcb82612a43565b92915050565b606060018054610be090613f4b565b80601f0160208091040260200160405190810160405280929190818152602001828054610c0c90613f4b565b8015610c595780601f10610c2e57610100808354040283529160200191610c59565b820191906000526020600020905b815481529060010190602001808311610c3c57829003601f168201915b5050505050905090565b6000610c70826000541190565b610ce75760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610d0e82611b46565b9050806001600160a01b0316836001600160a01b03161415610d985760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610cde565b336001600160a01b0382161480610db45750610db4813361286e565b610e265760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610cde565b610e31838383612b12565b505050565b60026009541415610e895760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cde565b600260095560145460ff16610ee05760405162461bcd60e51b815260206004820152601f60248201527f5075626c69632070726573616c652073616c65206973206e6f74206f70656e006044820152606401610cde565b82610eee606461270f613ef1565b81610ef860005490565b610f029190613e7e565b1115610f615760405162461bcd60e51b815260206004820152602860248201527f4e6f7420656e6f75676820446f6f646c65526f6f6d732072656d61696e696e67604482015267081d1bc81b5a5b9d60c21b6064820152608401610cde565b833481600314610fac5781600514610f9f5781600a14610f9157610f8c8266470de4df820000613eaa565b610fb5565b6701aa535d3d0c0000610fb5565b66d529ae9e860000610fb5565b66b1a2bc2ec500005b146110025760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e7400000000000000006044820152606401610cde565b838360135461107a838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516bffffffffffffffffffffffff193360601b16602082015285925060340190505b60405160208183030381529060405280519060200120612b7b565b6110d15760405162461bcd60e51b815260206004820152602260248201527f4164647265737320646f6573206e6f7420657869737420696e20746865206c696044820152611cdd60f21b6064820152608401610cde565b3360009081526017602052604090205460056110ed8a83613e7e565b111561114e5760405162461bcd60e51b815260206004820152602a60248201527f4d617820446f6f646c65526f6f6d7320746f206d696e7420696e2070726573616044820152696c65206973206669766560b01b6064820152608401610cde565b6012548961115b60005490565b6111659190613e7e565b11156111c45760405162461bcd60e51b815260206004820152602860248201527f4e6f7420656e6f75676820446f6f646c65526f6f6d732072656d61696e696e67604482015267081d1bc81b5a5b9d60c21b6064820152608401610cde565b6111ce8982613e7e565b336000818152601760205260409020919091556111eb908a612b91565b5050600160095550505050505050565b6008546001600160a01b031633146112435760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b601655565b6002600954141561129b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cde565b60026009556008546001600160a01b031633146112e85760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b60155481906064906112fb908390613e7e565b111561135a5760405162461bcd60e51b815260206004820152602860248201527f4e6f7420656e6f75676820446f6f646c65526f6f6d732072656d61696e696e67604482015267081d1bc819da599d60c21b6064820152608401610cde565b61270f8161136760005490565b6113719190613e7e565b11156113d05760405162461bcd60e51b815260206004820152602860248201527f4e6f7420656e6f75676820446f6f646c65526f6f6d732072656d61696e696e67604482015267081d1bc81b5a5b9d60c21b6064820152608401610cde565b60158054839182916000906113e6908490613e7e565b90915550600090505b818110156114485761143685858381811061141a57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061142f91906139cd565b6001612b91565b8061144081613f86565b9150506113ef565b50506001600955505050565b610e31838383612bab565b6008546001600160a01b031633146114a75760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b80516114ba90600b906020840190613884565b5050565b6008546001600160a01b031633146115065760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b600c8054911515600160a81b027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b60008061154d846000541190565b6115995760405162461bcd60e51b815260206004820152601160248201527f4e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006044820152606401610cde565b3060646115a7856007613eaa565b6115b19190613e96565b915091505b9250929050565b60006115c883611d09565b821061163c5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610cde565b600080549080805b838110156116e6576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561169757805192505b876001600160a01b0316836001600160a01b031614156116d357868414156116c557509350610bcb92505050565b836116cf81613f86565b9450505b50806116de81613f86565b915050611644565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610cde565b6008546001600160a01b0316331461179d5760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b4760006117ab600583613e96565b905060006117b98284613ef1565b600d546040519192506001600160a01b03169083156108fc029084906000818181858888f193505050501580156117f4573d6000803e3d6000fd5b50600e546040516001600160a01b039091169082156108fc029083906000818181858888f1935050505015801561182f573d6000803e3d6000fd5b50505050565b610e31838383604051806020016040528060008152506125d4565b6008546001600160a01b031633146118985760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b6014805460ff1916911515919091179055565b6008546001600160a01b031633146118f35760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561194e57600080fd5b505afa158015611962573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119869190613c67565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290529091506001600160a01b0383169063a9059cbb90604401602060405180830381600087803b1580156119ea57600080fd5b505af11580156119fe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e319190613b99565b6008546001600160a01b03163314611a6a5760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b601055565b600080548210611ae75760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610cde565b5090565b6008546001600160a01b03163314611b335760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b80516114ba90600a906020840190613884565b6000611b5182612f6d565b5192915050565b60026009541415611bab5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cde565b60026009556008546001600160a01b03163314611bf85760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b80606481601554611c099190613e7e565b1115611c685760405162461bcd60e51b815260206004820152602860248201527f4e6f7420656e6f75676820446f6f646c65526f6f6d732072656d61696e696e67604482015267081d1bc819da599d60c21b6064820152608401610cde565b61270f81611c7560005490565b611c7f9190613e7e565b1115611cde5760405162461bcd60e51b815260206004820152602860248201527f4e6f7420656e6f75676820446f6f646c65526f6f6d732072656d61696e696e67604482015267081d1bc81b5a5b9d60c21b6064820152608401610cde565b8160156000828254611cf09190613e7e565b90915550611d0090503383612b91565b50506001600955565b60006001600160a01b038216611d875760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610cde565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6060600a8054610be090613f4b565b6008546001600160a01b03163314611e035760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b611e0d6000613138565b565b6008546001600160a01b03163314611e575760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b600f55565b606060028054610be090613f4b565b6008546001600160a01b03163314611eb35760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b6011805460ff1916911515919091179055565b60026009541415611f195760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cde565b6002600955600c54600160a81b900460ff16611f775760405162461bcd60e51b815260206004820152601760248201527f5075626c69632073616c65206973206e6f74206f70656e0000000000000000006044820152606401610cde565b803481600314611fc25781600514611fb55781600a14611fa757611fa28266470de4df820000613eaa565b611fcb565b6701aa535d3d0c0000611fcb565b66d529ae9e860000611fcb565b66b1a2bc2ec500005b146120185760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e7400000000000000006044820152606401610cde565b81612026606461270f613ef1565b8161203060005490565b61203a9190613e7e565b11156120995760405162461bcd60e51b815260206004820152602860248201527f4e6f7420656e6f75676820446f6f646c65526f6f6d732072656d61696e696e67604482015267081d1bc81b5a5b9d60c21b6064820152608401610cde565b60058311156121105760405162461bcd60e51b815260206004820152602760248201527f4d6178206d696e74206f6620446f6f646c6520526f6f6d73207065722074782060448201527f69732066697665000000000000000000000000000000000000000000000000006064820152608401610cde565b61211a3384612b91565b5050600160095550565b6001600160a01b03821633141561217d5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610cde565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6002600954141561223c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cde565b600260095560115460ff166122935760405162461bcd60e51b815260206004820152601660248201527f4f472070726573616c65206973206e6f74206f70656e000000000000000000006044820152606401610cde565b826122a1606461270f613ef1565b816122ab60005490565b6122b59190613e7e565b11156123145760405162461bcd60e51b815260206004820152602860248201527f4e6f7420656e6f75676820446f6f646c65526f6f6d732072656d61696e696e67604482015267081d1bc81b5a5b9d60c21b6064820152608401610cde565b83348160031461235f57816005146123525781600a146123445761233f8266470de4df820000613eaa565b612368565b6701aa535d3d0c0000612368565b66d529ae9e860000612368565b66b1a2bc2ec500005b146123b55760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e7400000000000000006044820152606401610cde565b8383601054612416838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516bffffffffffffffffffffffff193360601b166020820152859250603401905061105f565b61246d5760405162461bcd60e51b815260206004820152602260248201527f4164647265737320646f6573206e6f7420657869737420696e20746865206c696044820152611cdd60f21b6064820152608401610cde565b33600090815260186020526040902054600a6124898a83613e7e565b11156124ea5760405162461bcd60e51b815260206004820152602a60248201527f4d617820446f6f646c65526f6f6d7320746f206d696e7420696e206f672073616044820152696c65206973206669766560b01b6064820152608401610cde565b600f54896124f760005490565b6125019190613e7e565b11156125605760405162461bcd60e51b815260206004820152602860248201527f4e6f7420656e6f75676820446f6f646c65526f6f6d732072656d61696e696e67604482015267081d1bc81b5a5b9d60c21b6064820152608401610cde565b61256a8982613e7e565b336000818152601860205260409020919091556111eb908a612b91565b6008546001600160a01b031633146125cf5760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b601355565b6125df848484612bab565b6125eb84848484613197565b61182f5760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610cde565b6008546001600160a01b031633146126a55760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b601255565b600b80546126b790613f4b565b80601f01602080910402602001604051908101604052809291908181526020018280546126e390613f4b565b80156127305780601f1061270557610100808354040283529160200191612730565b820191906000526020600020905b81548152906001019060200180831161271357829003601f168201915b505050505081565b6060612745826000541190565b6127915760405162461bcd60e51b815260206004820152601160248201527f4e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006044820152606401610cde565b6000600a80546127a090613f4b565b9050116127bc5760405180602001604052806000815250610bcb565b600a6127c7836132fa565b6040516020016127d8929190613d32565b60405160208183030381529060405292915050565b6008546001600160a01b031633146128355760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b600c8054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b600c546000906001600160a01b03811690600160a01b900460ff16801561293257506040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b1580156128ef57600080fd5b505afa158015612903573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129279190613c05565b6001600160a01b0316145b15612941576001915050610bcb565b6001600160a01b0380851660009081526006602090815260408083209387168352929052205460ff165b949350505050565b6008546001600160a01b031633146129bb5760405162461bcd60e51b815260206004820181905260248201526000805160206140318339815191526044820152606401610cde565b6001600160a01b038116612a375760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610cde565b612a4081613138565b50565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612aa657506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80612ada57506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610bcb57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610bcb565b600082815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600082612b888584613448565b14949350505050565b6114ba828260405180602001604052806000815250613502565b6000612bb682612f6d565b80519091506000906001600160a01b0316336001600160a01b03161480612bed575033612be284610c63565b6001600160a01b0316145b80612bff57508151612bff903361286e565b905080612c745760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610cde565b846001600160a01b031682600001516001600160a01b031614612cff5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610cde565b6001600160a01b038416612d7b5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610cde565b612d8b6000848460000151612b12565b6001600160a01b0385166000908152600460205260408120805460019290612dbd9084906001600160801b0316613ec9565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092612e0991859116613e53565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055612e91846001613e7e565b6000818152600360205260409020549091506001600160a01b0316612f2357612ebb816000541190565b15612f235760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6040805180820190915260008082526020820152612f8c826000541190565b612ffe5760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610cde565b60007f000000000000000000000000000000000000000000000000000000000000000a831061305f576130517f000000000000000000000000000000000000000000000000000000000000000a84613ef1565b61305c906001613e7e565b90505b825b8181106130c9576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156130b657949350505050565b50806130c181613f34565b915050613061565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610cde565b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b156132ef57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906131db903390899088908890600401613e04565b602060405180830381600087803b1580156131f557600080fd5b505af1925050508015613225575060408051601f3d908101601f1916820190925261322291810190613be9565b60015b6132d5573d808015613253576040519150601f19603f3d011682016040523d82523d6000602084013e613258565b606091505b5080516132cd5760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610cde565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061296b565b506001949350505050565b60608161333a57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613364578061334e81613f86565b915061335d9050600a83613e96565b915061333e565b60008167ffffffffffffffff81111561338d57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156133b7576020820181803683370190505b5090505b841561296b576133cc600183613ef1565b91506133d9600a86613fa1565b6133e4906030613e7e565b60f81b81838151811061340757634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613441600a86613e96565b94506133bb565b600081815b84518110156134fa57600085828151811061347857634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116134ba5760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506134e7565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806134f281613f86565b91505061344d565b509392505050565b6000546001600160a01b0384166135815760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610cde565b61358c816000541190565b156135d95760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610cde565b7f000000000000000000000000000000000000000000000000000000000000000a83111561366f5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610cde565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b03808216835270010000000000000000000000000000000090910416918101919091528151808301909252805190919081906136d8908790613e53565b6001600160801b031681526020018583602001516136f69190613e53565b6001600160801b039081169091526001600160a01b03808816600081815260046020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b858110156138795760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46137e76000888488613197565b6138595760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610cde565b8161386381613f86565b925050808061387190613f86565b91505061379a565b506000819055612f65565b82805461389090613f4b565b90600052602060002090601f0160209004810192826138b257600085556138f8565b82601f106138cb57805160ff19168380011785556138f8565b828001600101855582156138f8579182015b828111156138f85782518255916020019190600101906138dd565b50611ae79291505b80821115611ae75760008155600101613900565b600067ffffffffffffffff8084111561392f5761392f613fe1565b604051601f8501601f19908116603f0116810190828211818310171561395757613957613fe1565b8160405280935085815286868601111561397057600080fd5b858560208301376000602087830101525050509392505050565b60008083601f84011261399b578081fd5b50813567ffffffffffffffff8111156139b2578182fd5b6020830191508360208260051b85010111156115b657600080fd5b6000602082840312156139de578081fd5b81356139e981613ff7565b9392505050565b60008060408385031215613a02578081fd5b8235613a0d81613ff7565b91506020830135613a1d81613ff7565b809150509250929050565b600080600060608486031215613a3c578081fd5b8335613a4781613ff7565b92506020840135613a5781613ff7565b929592945050506040919091013590565b60008060008060808587031215613a7d578081fd5b8435613a8881613ff7565b93506020850135613a9881613ff7565b925060408501359150606085013567ffffffffffffffff811115613aba578182fd5b8501601f81018713613aca578182fd5b613ad987823560208401613914565b91505092959194509250565b60008060408385031215613af7578182fd5b8235613b0281613ff7565b91506020830135613a1d8161400c565b60008060408385031215613b24578182fd5b8235613b2f81613ff7565b946020939093013593505050565b60008060208385031215613b4f578182fd5b823567ffffffffffffffff811115613b65578283fd5b613b718582860161398a565b90969095509350505050565b600060208284031215613b8e578081fd5b81356139e98161400c565b600060208284031215613baa578081fd5b81516139e98161400c565b600060208284031215613bc6578081fd5b5035919050565b600060208284031215613bde578081fd5b81356139e98161401a565b600060208284031215613bfa578081fd5b81516139e98161401a565b600060208284031215613c16578081fd5b81516139e981613ff7565b600060208284031215613c32578081fd5b813567ffffffffffffffff811115613c48578182fd5b8201601f81018413613c58578182fd5b61296b84823560208401613914565b600060208284031215613c78578081fd5b5051919050565b600080600060408486031215613c93578081fd5b83359250602084013567ffffffffffffffff811115613cb0578182fd5b613cbc8682870161398a565b9497909650939450505050565b60008060408385031215613cdb578182fd5b50508035926020909101359150565b60008151808452613d02816020860160208601613f08565b601f01601f19169290920160200192915050565b60008151613d28818560208601613f08565b9290920192915050565b600080845482600182811c915080831680613d4e57607f831692505b6020808410821415613d6e57634e487b7160e01b87526022600452602487fd5b818015613d825760018114613d9357613dbf565b60ff19861689528489019650613dbf565b60008b815260209020885b86811015613db75781548b820152908501908301613d9e565b505084890196505b505050505050613dfb613df5827f2f00000000000000000000000000000000000000000000000000000000000000815260010190565b85613d16565b95945050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613e366080830184613cea565b9695505050505050565b6020815260006139e96020830184613cea565b60006001600160801b03808316818516808303821115613e7557613e75613fb5565b01949350505050565b60008219821115613e9157613e91613fb5565b500190565b600082613ea557613ea5613fcb565b500490565b6000816000190483118215151615613ec457613ec4613fb5565b500290565b60006001600160801b0383811690831681811015613ee957613ee9613fb5565b039392505050565b600082821015613f0357613f03613fb5565b500390565b60005b83811015613f23578181015183820152602001613f0b565b8381111561182f5750506000910152565b600081613f4357613f43613fb5565b506000190190565b600181811c90821680613f5f57607f821691505b60208210811415613f8057634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613f9a57613f9a613fb5565b5060010190565b600082613fb057613fb0613fcb565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612a4057600080fd5b8015158114612a4057600080fd5b6001600160e01b031981168114612a4057600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122082e8fa4c2136796782f4cc2bbf92cedc38d1c69f8df54da2f46a7b7793f1219464736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000000abe970e66dab00032b5b1178e9c30f8f1a16dbc78f92a704f3f2dc7fc69f0dc5d5c00000000000000000000000000000000000000000000000000000000000007d0e00993716bed0ed52dd604b5d283951a2e4fb456d0b33303bb62df9814aa9e480000000000000000000000000215f05293e5a826d64a18be35a9471c0148ffe30000000000000000000000008a48debdd94c9b19e74fdad114ec0fe568fd0500
-----Decoded View---------------
Arg [0] : _openSeaProxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [1] : _maxPresaleDoodleRooms (uint256): 2750
Arg [2] : _presaleMerkleRoot (bytes32): 0x970e66dab00032b5b1178e9c30f8f1a16dbc78f92a704f3f2dc7fc69f0dc5d5c
Arg [3] : _maxOGDoodleRooms (uint256): 2000
Arg [4] : _ogPresaleMerkleRoot (bytes32): 0xe00993716bed0ed52dd604b5d283951a2e4fb456d0b33303bb62df9814aa9e48
Arg [5] : _shareOneAddress (address): 0x0215f05293E5A826D64a18Be35A9471C0148ffE3
Arg [6] : _shareTwoAddress (address): 0x8A48DEbdd94C9B19e74FDAD114ec0FE568fD0500
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000abe
Arg [2] : 970e66dab00032b5b1178e9c30f8f1a16dbc78f92a704f3f2dc7fc69f0dc5d5c
Arg [3] : 00000000000000000000000000000000000000000000000000000000000007d0
Arg [4] : e00993716bed0ed52dd604b5d283951a2e4fb456d0b33303bb62df9814aa9e48
Arg [5] : 0000000000000000000000000215f05293e5a826d64a18be35a9471c0148ffe3
Arg [6] : 0000000000000000000000008a48debdd94c9b19e74fdad114ec0fe568fd0500
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.