ERC-721
Overview
Max Total Supply
3,000 DP
Holders
565
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 DPLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DoodlePets
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"; interface DoodleRooms { function ownerOf(uint256) external view returns (address); function balanceOf(address) external view returns (uint256); } contract DoodlePets 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; DoodleRooms public doodleRooms; uint256 public constant MAX_DOODLE_PETS_FOR_DOODLE_ROOMS_WITH_PETS = 200; uint256 public constant MAX_FREE_MINT_DOODLE_PETS = 200; uint256 public constant MAX_GIFTED_DOODLE_PETS = 50; uint256 public constant MAX_DOODLE_PETS_PER_WALLET = 5; uint256 public constant MAX_DOODLE_PETS_PER_TX = 10; uint256 public constant DOODLE_PETS_SUPPLY = 4644; uint256 public constant DOODLE_PET_PRICE_FIRST_PHASE = 0.03 ether; uint256 public constant THREE_DOODLE_PETS_PRICE_FIRST_PHASE = 0.075 ether; uint256 public constant FIVE_DOODLE_PETS_PRICE_FIRST_PHASE = 0.1 ether; uint256 public constant DOODLE_PET_PRICE = 0.04 ether; uint256 public constant THREE_DOODLE_PETS_PRICE = 0.1 ether; uint256 public constant FIVE_DOODLE_PETS_PRICE = 0.15 ether; uint256 public constant TEN_DOODLE_PETS_PRICE = 0.3 ether; address public shareOneAddress; address public shareTwoAddress; bytes32 public firstPhaseMerkleRoot; bool public isFirstPhaseActive; bool public isPresaleActive; bool public shouldCheckDoodleRoomOwnership; uint256 public numGiftedDoodlePets; uint256 public numClaimedDoodlePets; bytes32 public claimListMerkleRoot; bool public isClaimActive; mapping(address => uint256) public presaleMintCounts; mapping(address => uint256) public firstPhaseMintCounts; mapping(address => bool) public claimCount; modifier publicSaleActive() { require(isPublicSaleActive, "Third phase is not open"); _; } modifier presaleActive() { require(isPresaleActive, "Presale is not open"); _; } modifier firstPhaseActive() { require(isFirstPhaseActive, "First phase is not open"); _; } modifier canMintDoodlePets(uint256 numberOfTokens) { require( totalSupply() + numberOfTokens < (DOODLE_PETS_SUPPLY - MAX_GIFTED_DOODLE_PETS - MAX_FREE_MINT_DOODLE_PETS - MAX_DOODLE_PETS_FOR_DOODLE_ROOMS_WITH_PETS), "Not enough DoodlePets remaining to mint" ); _; } modifier canGiftDoodlePets(uint256 num) { require( numGiftedDoodlePets + num <= MAX_GIFTED_DOODLE_PETS + MAX_DOODLE_PETS_FOR_DOODLE_ROOMS_WITH_PETS, "Not enough DoodlePets remaining to gift" ); require( totalSupply() + num <= DOODLE_PETS_SUPPLY, "Not enough DoodlePets remaining to mint" ); _; } modifier isCorrectFirstPhaseOrPresalePayment(uint256 numberOfTokens) { require( (numberOfTokens == 3 ? THREE_DOODLE_PETS_PRICE_FIRST_PHASE : numberOfTokens == 5 ? FIVE_DOODLE_PETS_PRICE_FIRST_PHASE : DOODLE_PET_PRICE_FIRST_PHASE * numberOfTokens) == msg.value, "Incorrect ETH value sent" ); _; } modifier isDoodleRoomOwner() { require(doodleRooms.balanceOf(msg.sender) > 0, "Must be a Doodle Room owner"); _; } modifier isCorrectPayment(uint256 numberOfTokens) { require( (numberOfTokens == 3 ? THREE_DOODLE_PETS_PRICE : numberOfTokens == 5 ? FIVE_DOODLE_PETS_PRICE : numberOfTokens == 10 ? TEN_DOODLE_PETS_PRICE : DOODLE_PET_PRICE * numberOfTokens) == msg.value, "Incorrect ETH value sent" ); _; } constructor( address _openSeaProxyRegistryAddress, bytes32 _firstPhasePresaleMerkleRoot, bytes32 _claimMerkleRoot, address _shareOneAddress, address _shareTwoAddress ) ERC721A("Doodle Pets", "DP", 10) { openSeaProxyRegistryAddress = _openSeaProxyRegistryAddress; firstPhaseMerkleRoot = _firstPhasePresaleMerkleRoot; claimListMerkleRoot = _claimMerkleRoot; shareOneAddress = _shareOneAddress; shareTwoAddress = _shareTwoAddress; shouldCheckDoodleRoomOwnership = true; doodleRooms = DoodleRooms(0x5426C860C9e660145Ad09d3FB26427e5Fd4569E9); baseURI = "ipfs://QmZzeyfwQLc6bLdxTB9bvw7q497b3g8qEBraRU3vXwNdRq"; } function mint(uint256 numberOfTokens) external payable nonReentrant publicSaleActive isCorrectPayment(numberOfTokens) canMintDoodlePets(numberOfTokens) { if (shouldCheckDoodleRoomOwnership) { require(doodleRooms.balanceOf(msg.sender) > 0, "Must be a Doodle Room owner"); } require(numberOfTokens <= MAX_DOODLE_PETS_PER_TX, "Max mint of Doodle Pets per tx is ten"); _safeMint(msg.sender, numberOfTokens); } function mintPresale(uint256 numberOfTokens) external payable nonReentrant presaleActive isDoodleRoomOwner canMintDoodlePets(numberOfTokens) isCorrectFirstPhaseOrPresalePayment(numberOfTokens) { uint256 numAlreadyMinted = presaleMintCounts[msg.sender]; require( numAlreadyMinted + numberOfTokens <= MAX_DOODLE_PETS_PER_WALLET, "Max Doodle Pets to mint in presale is five" ); presaleMintCounts[msg.sender] = numAlreadyMinted + numberOfTokens; _safeMint(msg.sender, numberOfTokens); } function mintFirstPhase( uint256 numberOfTokens, bytes32[] calldata merkleProof ) external payable nonReentrant firstPhaseActive canMintDoodlePets(numberOfTokens) isCorrectFirstPhaseOrPresalePayment(numberOfTokens) { require( doodleRooms.balanceOf(msg.sender) > 25 || MerkleProof.verify( merkleProof, firstPhaseMerkleRoot, keccak256(abi.encodePacked(msg.sender)) ), "mintFirstPhase: Must be whitelisted or at least a Tycoon Doodle Room owner" ); uint256 numAlreadyMinted = firstPhaseMintCounts[msg.sender]; require( numAlreadyMinted + numberOfTokens <= MAX_DOODLE_PETS_PER_WALLET, "Max DoodlePets to mint during first phase is five" ); firstPhaseMintCounts[msg.sender] = numAlreadyMinted + numberOfTokens; _safeMint(msg.sender, numberOfTokens); } function getBaseURI() external view returns (string memory) { return baseURI; } function getFirstPhaseCount(address _addr) public view returns (uint256) { return firstPhaseMintCounts[_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; } function setIsPublicSaleActive(bool _isPublicSaleActive) external onlyOwner { isPublicSaleActive = _isPublicSaleActive; } function setIsPresaleActive(bool _isPresaleActive) external onlyOwner { isPresaleActive = _isPresaleActive; } function setIsFirstPhaseActive(bool _firstPhaseActive) external onlyOwner { isFirstPhaseActive = _firstPhaseActive; } function setShouldCheckDoodleRoomOwnership(bool _shouldCheck) external onlyOwner { shouldCheckDoodleRoomOwnership = _shouldCheck; } function setFirstPhaseMerkleRoot(bytes32 merkleRoot) external onlyOwner { firstPhaseMerkleRoot = merkleRoot; } function setClaimListMerkleRoot(bytes32 merkleRoot) external onlyOwner { claimListMerkleRoot = merkleRoot; } function reserveForGifting(uint256 numToReserve) external nonReentrant onlyOwner canGiftDoodlePets(numToReserve) { numGiftedDoodlePets += numToReserve; _safeMint(msg.sender, numToReserve); } function giftDoodlePets(address[] calldata addresses) external nonReentrant onlyOwner canGiftDoodlePets(addresses.length) { uint256 numToGift = addresses.length; numGiftedDoodlePets += numToGift; for (uint256 i = 0; i < numToGift; i++) { _safeMint(addresses[i], 1); } } function claim(bytes32[] calldata proof) external nonReentrant { require(isClaimActive, "Claim not active"); require(numClaimedDoodlePets <= MAX_FREE_MINT_DOODLE_PETS); require(totalSupply() + 1 <= DOODLE_PETS_SUPPLY); require( MerkleProof.verify( proof, claimListMerkleRoot, keccak256(abi.encodePacked(msg.sender)) ), "Not eligible for a free mint" ); require(!claimCount[msg.sender], "Already claimed a free Doodle Pet"); claimCount[msg.sender] = true; numClaimedDoodlePets += 1; _safeMint(msg.sender, 1); } function setDoodlePetsContract(address _addr) external onlyOwner { doodleRooms = DoodleRooms(_addr); } function withdraw() external onlyOwner { uint256 balance = address(this).balance; uint256 shareOne = (balance * 13) / 100; 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":"bytes32","name":"_firstPhasePresaleMerkleRoot","type":"bytes32"},{"internalType":"bytes32","name":"_claimMerkleRoot","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_PETS_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOODLE_PET_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOODLE_PET_PRICE_FIRST_PHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FIVE_DOODLE_PETS_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FIVE_DOODLE_PETS_PRICE_FIRST_PHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_DOODLE_PETS_FOR_DOODLE_ROOMS_WITH_PETS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_DOODLE_PETS_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_DOODLE_PETS_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FREE_MINT_DOODLE_PETS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_GIFTED_DOODLE_PETS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEN_DOODLE_PETS_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"THREE_DOODLE_PETS_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"THREE_DOODLE_PETS_PRICE_FIRST_PHASE","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":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimCount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimListMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"doodleRooms","outputs":[{"internalType":"contract DoodleRooms","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstPhaseMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"firstPhaseMintCounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getFirstPhaseCount","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":"giftDoodlePets","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":"isClaimActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFirstPhaseActive","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":[{"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":"mintFirstPhase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"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":"numClaimedDoodlePets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numGiftedDoodlePets","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":[{"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":"address","name":"_addr","type":"address"}],"name":"setDoodlePetsContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setFirstPhaseMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_firstPhaseActive","type":"bool"}],"name":"setIsFirstPhaseActive","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":"bool","name":"_shouldCheck","type":"bool"}],"name":"setShouldCheckDoodleRoomOwnership","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":[],"name":"shouldCheckDoodleRoomOwnership","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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
60a06040526000808055600755600c805460ff60a01b1916600160a01b1790553480156200002c57600080fd5b5060405162004927380380620049278339810160408190526200004f91620002fe565b6040518060400160405280600b81526020016a446f6f646c65205065747360a81b81525060405180604001604052806002815260200161044560f41b815250600a60008111620000f55760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b606482015260840160405180910390fd5b82516200010a9060019060208601906200023b565b508151620001209060029060208501906200023b565b506080525062000132905033620001e9565b6001600955600c80546001600160a01b038088166001600160a01b03199283161790925560108690556014859055600e8054858416908316179055600f8054928416928216929092179091556011805462ff0000191662010000179055600d8054909116735426c860c9e660145ad09d3fb26427e5fd4569e917905560408051606081019091526035808252620048f260208301398051620001dd91600a916020909101906200023b565b50505050505062000398565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000249906200035b565b90600052602060002090601f0160209004810192826200026d5760008555620002b8565b82601f106200028857805160ff1916838001178555620002b8565b82800160010185558215620002b8579182015b82811115620002b85782518255916020019190600101906200029b565b50620002c6929150620002ca565b5090565b5b80821115620002c65760008155600101620002cb565b80516001600160a01b0381168114620002f957600080fd5b919050565b600080600080600060a0868803121562000316578081fd5b6200032186620002e1565b945060208601519350604086015192506200033f60608701620002e1565b91506200034f60808701620002e1565b90509295509295909350565b600181811c908216806200037057607f821691505b602082108114156200039257634e487b7160e01b600052602260045260246000fd5b50919050565b608051614530620003c2600039600081816134ac015281816134d60152613a8501526145306000f3fe6080604052600436106104805760003560e01c806370a082311161025e578063a22cb46511610143578063c9c44a79116100bb578063e985e9c51161008a578063f2fde38b1161006f578063f2fde38b14610c8d578063f759867a14610cad578063fda047b314610cc057600080fd5b8063e985e9c514610c51578063ec14db6714610c7157600080fd5b8063c9c44a7914610bea578063d19cf74014610c06578063d7224ba014610c1b578063e43082f714610c3157600080fd5b8063b88d4fde11610112578063c30d5f31116100f7578063c30d5f3114610b99578063c87b56dd14610bb4578063c8d09d8b14610bd457600080fd5b8063b88d4fde14610b64578063c0c36a3714610b8457600080fd5b8063a22cb46514610af5578063abc4233b14610b15578063b391c50814610b2a578063b567236014610b4a57600080fd5b8063879e930d116101d657806395d89b41116101a55780639bd31e301161018a5780639bd31e3014610a995780639df0457e14610ab5578063a0712d6814610ae257600080fd5b806395d89b4114610a8457806397c49e6b1461077657600080fd5b8063879e930d14610a10578063885948ca14610a305780638b34cb6914610a465780638da5cb5b14610a6657600080fd5b80637ae17f3e1161022d5780637fc27803116102125780637fc27803146109e057806386c9e18414610924578063879a9ed1146109fa57600080fd5b80637ae17f3e146109aa5780637afa2fc0146109ca57600080fd5b806370a0823114610940578063714c539814610960578063715018a6146109755780637a77378c1461098a57600080fd5b80632e24cafa116103845780634f6ccce7116102fc5780636352211e116102cb5780636ad5c368116102b05780636ad5c368146108ef5780636c3a9b4a146109045780636c842b451461092457600080fd5b80636352211e1461089f57806369c12cb7146108bf57600080fd5b80634f6ccce714610820578063551c384a1461084057806355f804b31461086057806360d938dc1461088057600080fd5b80633ccfd60b11610353578063443da2a211610338578063443da2a2146107c0578063494c9db2146107e057806349df728c1461080057600080fd5b80633ccfd60b1461078b57806342842e0e146107a057600080fd5b80632e24cafa146107255780632f745c5914610740578063326f9ad31461076057806336e1b1da1461077657600080fd5b806318160ddd1161041757806324f985e9116103e6578063280d2a28116103cb578063280d2a28146106a657806328cad13d146106c65780632a55205a146106e657600080fd5b806324f985e91461065957806327626f341461067957600080fd5b806318160ddd146105cd57806319c17c0c146105e25780631e84c4131461061857806323b872dd1461063957600080fd5b8063081812fc11610453578063081812fc14610535578063095ea7b31461056d5780630a3786bd1461058d57806315bdebe2146105ad57600080fd5b806301ffc9a714610485578063025ef838146104ba578063064d98d9146104fe57806306fdde0314610513575b600080fd5b34801561049157600080fd5b506104a56104a0366004614077565b610ce0565b60405190151581526020015b60405180910390f35b3480156104c657600080fd5b506104f06104d5366004613e77565b6001600160a01b031660009081526016602052604090205490565b6040519081526020016104b1565b61051161050c366004614129565b610d24565b005b34801561051f57600080fd5b5061052861114b565b6040516104b191906142ea565b34801561054157600080fd5b5061055561055036600461405f565b6111dd565b6040516001600160a01b0390911681526020016104b1565b34801561057957600080fd5b50610511610588366004613fbc565b611278565b34801561059957600080fd5b506105116105a8366004614027565b6113ab565b3480156105b957600080fd5b506105116105c836600461405f565b61140f565b3480156105d957600080fd5b506000546104f0565b3480156105ee57600080fd5b506104f06105fd366004613e77565b6001600160a01b031660009081526017602052604090205490565b34801561062457600080fd5b50600c546104a590600160a81b900460ff1681565b34801561064557600080fd5b50610511610654366004613ed2565b61145c565b34801561066557600080fd5b506105116106743660046140cb565b611467565b34801561068557600080fd5b506104f0610694366004613e77565b60166020526000908152604090205481565b3480156106b257600080fd5b506105116106c1366004613e77565b6114c6565b3480156106d257600080fd5b506105116106e1366004614027565b61153d565b3480156106f257600080fd5b50610706610701366004614173565b6115be565b604080516001600160a01b0390931683526020830191909152016104b1565b34801561073157600080fd5b506104f0668e1bc9bf04000081565b34801561074c57600080fd5b506104f061075b366004613fbc565b61163c565b34801561076c57600080fd5b506104f060145481565b34801561078257600080fd5b506104f060c881565b34801561079757600080fd5b506105116117d4565b3480156107ac57600080fd5b506105116107bb366004613ed2565b6118c0565b3480156107cc57600080fd5b506105116107db366004614027565b6118db565b3480156107ec57600080fd5b50600e54610555906001600160a01b031681565b34801561080c57600080fd5b5061051161081b366004613e77565b61193d565b34801561082c57600080fd5b506104f061083b36600461405f565b611a9b565b34801561084c57600080fd5b5061051161085b366004614027565b611b17565b34801561086c57600080fd5b5061051161087b3660046140cb565b611b72565b34801561088c57600080fd5b506011546104a590610100900460ff1681565b3480156108ab57600080fd5b506105556108ba36600461405f565b611bcd565b3480156108cb57600080fd5b506104a56108da366004613e77565b60186020526000908152604090205460ff1681565b3480156108fb57600080fd5b506104f0600581565b34801561091057600080fd5b5061051161091f36600461405f565b611bdf565b34801561093057600080fd5b506104f067016345785d8a000081565b34801561094c57600080fd5b506104f061095b366004613e77565b611d98565b34801561096c57600080fd5b50610528611e3b565b34801561098157600080fd5b50610511611e4a565b34801561099657600080fd5b50600f54610555906001600160a01b031681565b3480156109b657600080fd5b506105116109c5366004613fe7565b611e9e565b3480156109d657600080fd5b506104f061122481565b3480156109ec57600080fd5b506015546104a59060ff1681565b348015610a0657600080fd5b506104f060135481565b348015610a1c57600080fd5b50600d54610555906001600160a01b031681565b348015610a3c57600080fd5b506104f060105481565b348015610a5257600080fd5b506011546104a59062010000900460ff1681565b348015610a7257600080fd5b506008546001600160a01b0316610555565b348015610a9057600080fd5b506105286120b0565b348015610aa557600080fd5b506104f0670214e8348c4f000081565b348015610ac157600080fd5b506104f0610ad0366004613e77565b60176020526000908152604090205481565b610511610af036600461405f565b6120bf565b348015610b0157600080fd5b50610511610b10366004613f8f565b61240e565b348015610b2157600080fd5b506104f0603281565b348015610b3657600080fd5b50610511610b45366004613fe7565b6124d3565b348015610b5657600080fd5b506011546104a59060ff1681565b348015610b7057600080fd5b50610511610b7f366004613f12565b612721565b348015610b9057600080fd5b506105286127aa565b348015610ba557600080fd5b506104f0666a94d74f43000081565b348015610bc057600080fd5b50610528610bcf36600461405f565b612838565b348015610be057600080fd5b506104f060125481565b348015610bf657600080fd5b506104f0670429d069189e000081565b348015610c1257600080fd5b506104f0600a81565b348015610c2757600080fd5b506104f060075481565b348015610c3d57600080fd5b50610511610c4c366004614027565b6128ed565b348015610c5d57600080fd5b506104a5610c6c366004613e9a565b61296e565b348015610c7d57600080fd5b506104f067010a741a4627800081565b348015610c9957600080fd5b50610511610ca8366004613e77565b612a73565b610511610cbb36600461405f565b612b43565b348015610ccc57600080fd5b50610511610cdb36600461405f565b612ea0565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610d1e5750610d1e82612eed565b92915050565b60026009541415610d7c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260095560115460ff16610dd35760405162461bcd60e51b815260206004820152601760248201527f4669727374207068617365206973206e6f74206f70656e0000000000000000006044820152606401610d73565b8260c880610de4603261122461439b565b610dee919061439b565b610df8919061439b565b81610e0260005490565b610e0c9190614328565b10610e695760405162461bcd60e51b815260206004820152602760248201527f4e6f7420656e6f75676820446f6f646c65506574732072656d61696e696e67206044820152661d1bc81b5a5b9d60ca1b6064820152608401610d73565b833481600314610e9f5781600514610e9157610e8c82666a94d74f430000614354565b610ea9565b67016345785d8a0000610ea9565b67010a741a462780005b14610ef65760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e7400000000000000006044820152606401610d73565b600d546040516370a0823160e01b81523360048201526019916001600160a01b0316906370a082319060240160206040518083038186803b158015610f3a57600080fd5b505afa158015610f4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f729190614111565b1180610fef5750610fef848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506010546040516bffffffffffffffffffffffff193360601b16602082015290925060340190505b60405160208183030381529060405280519060200120612fbc565b6110875760405162461bcd60e51b815260206004820152604a60248201527f6d696e74466972737450686173653a204d7573742062652077686974656c697360448201527f746564206f72206174206c656173742061205479636f6f6e20446f6f646c652060648201527f526f6f6d206f776e657200000000000000000000000000000000000000000000608482015260a401610d73565b3360009081526017602052604090205460056110a38783614328565b11156111175760405162461bcd60e51b815260206004820152603160248201527f4d617820446f6f646c655065747320746f206d696e7420647572696e6720666960448201527f72737420706861736520697320666976650000000000000000000000000000006064820152608401610d73565b6111218682614328565b3360008181526017602052604090209190915561113e9087612fd2565b5050600160095550505050565b60606001805461115a906143f5565b80601f0160208091040260200160405190810160405280929190818152602001828054611186906143f5565b80156111d35780601f106111a8576101008083540402835291602001916111d3565b820191906000526020600020905b8154815290600101906020018083116111b657829003601f168201915b5050505050905090565b60006111ea826000541190565b61125c5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608401610d73565b506000908152600560205260409020546001600160a01b031690565b600061128382611bcd565b9050806001600160a01b0316836001600160a01b0316141561130d5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610d73565b336001600160a01b03821614806113295750611329813361296e565b61139b5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610d73565b6113a6838383612fec565b505050565b6008546001600160a01b031633146113f35760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b60118054911515620100000262ff000019909216919091179055565b6008546001600160a01b031633146114575760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b601455565b6113a6838383613055565b6008546001600160a01b031633146114af5760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b80516114c290600b906020840190613d2e565b5050565b6008546001600160a01b0316331461150e5760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b600d805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6008546001600160a01b031633146115855760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b600c8054911515600160a81b027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000806115cc846000541190565b6116185760405162461bcd60e51b815260206004820152601160248201527f4e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006044820152606401610d73565b306064611626856007614354565b6116309190614340565b915091505b9250929050565b600061164783611d98565b82106116bb5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610d73565b600080549080805b83811015611765576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561171657805192505b876001600160a01b0316836001600160a01b03161415611752578684141561174457509350610d1e92505050565b8361174e81614430565b9450505b508061175d81614430565b9150506116c3565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610d73565b6008546001600160a01b0316331461181c5760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b476000606461182c83600d614354565b6118369190614340565b90506000611844828461439b565b600e546040519192506001600160a01b03169083156108fc029084906000818181858888f1935050505015801561187f573d6000803e3d6000fd5b50600f546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156118ba573d6000803e3d6000fd5b50505050565b6113a683838360405180602001604052806000815250612721565b6008546001600160a01b031633146119235760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b601180549115156101000261ff0019909216919091179055565b6008546001600160a01b031633146119855760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b1580156119c757600080fd5b505afa1580156119db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ff9190614111565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290529091506001600160a01b0383169063a9059cbb90604401602060405180830381600087803b158015611a6357600080fd5b505af1158015611a77573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113a69190614043565b600080548210611b135760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610d73565b5090565b6008546001600160a01b03163314611b5f5760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b6011805460ff1916911515919091179055565b6008546001600160a01b03163314611bba5760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b80516114c290600a906020840190613d2e565b6000611bd882613417565b5192915050565b60026009541415611c325760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d73565b60026009556008546001600160a01b03163314611c7f5760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b80611c8c60c86032614328565b81601254611c9a9190614328565b1115611cf85760405162461bcd60e51b815260206004820152602760248201527f4e6f7420656e6f75676820446f6f646c65506574732072656d61696e696e67206044820152661d1bc819da599d60ca1b6064820152608401610d73565b61122481611d0560005490565b611d0f9190614328565b1115611d6d5760405162461bcd60e51b815260206004820152602760248201527f4e6f7420656e6f75676820446f6f646c65506574732072656d61696e696e67206044820152661d1bc81b5a5b9d60ca1b6064820152608401610d73565b8160126000828254611d7f9190614328565b90915550611d8f90503383612fd2565b50506001600955565b60006001600160a01b038216611e165760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610d73565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6060600a805461115a906143f5565b6008546001600160a01b03163314611e925760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b611e9c60006135e2565b565b60026009541415611ef15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d73565b60026009556008546001600160a01b03163314611f3e5760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b80611f4b60c86032614328565b81601254611f599190614328565b1115611fb75760405162461bcd60e51b815260206004820152602760248201527f4e6f7420656e6f75676820446f6f646c65506574732072656d61696e696e67206044820152661d1bc819da599d60ca1b6064820152608401610d73565b61122481611fc460005490565b611fce9190614328565b111561202c5760405162461bcd60e51b815260206004820152602760248201527f4e6f7420656e6f75676820446f6f646c65506574732072656d61696e696e67206044820152661d1bc81b5a5b9d60ca1b6064820152608401610d73565b6012805483918291600090612042908490614328565b90915550600090505b818110156120a45761209285858381811061207657634e487b7160e01b600052603260045260246000fd5b905060200201602081019061208b9190613e77565b6001612fd2565b8061209c81614430565b91505061204b565b50506001600955505050565b60606002805461115a906143f5565b600260095414156121125760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d73565b6002600955600c54600160a81b900460ff166121705760405162461bcd60e51b815260206004820152601760248201527f5468697264207068617365206973206e6f74206f70656e0000000000000000006044820152606401610d73565b8034816003146121bc57816005146121ae5781600a146121a05761219b82668e1bc9bf040000614354565b6121c6565b670429d069189e00006121c6565b670214e8348c4f00006121c6565b67016345785d8a00005b146122135760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e7400000000000000006044820152606401610d73565b8160c880612224603261122461439b565b61222e919061439b565b612238919061439b565b8161224260005490565b61224c9190614328565b106122a95760405162461bcd60e51b815260206004820152602760248201527f4e6f7420656e6f75676820446f6f646c65506574732072656d61696e696e67206044820152661d1bc81b5a5b9d60ca1b6064820152608401610d73565b60115462010000900460ff161561238357600d546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156122fe57600080fd5b505afa158015612312573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123369190614111565b116123835760405162461bcd60e51b815260206004820152601b60248201527f4d757374206265206120446f6f646c6520526f6f6d206f776e657200000000006044820152606401610d73565b600a8311156123fa5760405162461bcd60e51b815260206004820152602560248201527f4d6178206d696e74206f6620446f6f646c65205065747320706572207478206960448201527f732074656e0000000000000000000000000000000000000000000000000000006064820152608401610d73565b6124043384612fd2565b5050600160095550565b6001600160a01b0382163314156124675760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610d73565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600260095414156125265760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d73565b600260095560155460ff1661257d5760405162461bcd60e51b815260206004820152601060248201527f436c61696d206e6f7420616374697665000000000000000000000000000000006044820152606401610d73565b60c8601354111561258d57600080fd5b61122461259960005490565b6125a4906001614328565b11156125af57600080fd5b61260e828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506014546040516bffffffffffffffffffffffff193360601b1660208201529092506034019050610fd4565b61265a5760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420656c696769626c6520666f7220612066726565206d696e74000000006044820152606401610d73565b3360009081526018602052604090205460ff16156126e05760405162461bcd60e51b815260206004820152602160248201527f416c726561647920636c61696d65642061206672656520446f6f646c6520506560448201527f74000000000000000000000000000000000000000000000000000000000000006064820152608401610d73565b336000908152601860205260408120805460ff191660019081179091556013805491929091612710908490614328565b90915550611d8f9050336001612fd2565b61272c848484613055565b61273884848484613641565b6118ba5760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610d73565b600b80546127b7906143f5565b80601f01602080910402602001604051908101604052809291908181526020018280546127e3906143f5565b80156128305780601f1061280557610100808354040283529160200191612830565b820191906000526020600020905b81548152906001019060200180831161281357829003601f168201915b505050505081565b6060612845826000541190565b6128915760405162461bcd60e51b815260206004820152601160248201527f4e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006044820152606401610d73565b6000600a80546128a0906143f5565b9050116128bc5760405180602001604052806000815250610d1e565b600a6128c7836137a4565b6040516020016128d89291906141dc565b60405160208183030381529060405292915050565b6008546001600160a01b031633146129355760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b600c8054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b600c546000906001600160a01b03811690600160a01b900460ff168015612a3257506040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b1580156129ef57600080fd5b505afa158015612a03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a2791906140af565b6001600160a01b0316145b15612a41576001915050610d1e565b6001600160a01b0380851660009081526006602090815260408083209387168352929052205460ff165b949350505050565b6008546001600160a01b03163314612abb5760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b6001600160a01b038116612b375760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d73565b612b40816135e2565b50565b60026009541415612b965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d73565b6002600955601154610100900460ff16612bf25760405162461bcd60e51b815260206004820152601360248201527f50726573616c65206973206e6f74206f70656e000000000000000000000000006044820152606401610d73565b600d546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015612c3657600080fd5b505afa158015612c4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c6e9190614111565b11612cbb5760405162461bcd60e51b815260206004820152601b60248201527f4d757374206265206120446f6f646c6520526f6f6d206f776e657200000000006044820152606401610d73565b8060c880612ccc603261122461439b565b612cd6919061439b565b612ce0919061439b565b81612cea60005490565b612cf49190614328565b10612d515760405162461bcd60e51b815260206004820152602760248201527f4e6f7420656e6f75676820446f6f646c65506574732072656d61696e696e67206044820152661d1bc81b5a5b9d60ca1b6064820152608401610d73565b813481600314612d875781600514612d7957612d7482666a94d74f430000614354565b612d91565b67016345785d8a0000612d91565b67010a741a462780005b14612dde5760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e7400000000000000006044820152606401610d73565b336000908152601660205260409020546005612dfa8583614328565b1115612e6e5760405162461bcd60e51b815260206004820152602a60248201527f4d617820446f6f646c65205065747320746f206d696e7420696e20707265736160448201527f6c652069732066697665000000000000000000000000000000000000000000006064820152608401610d73565b612e788482614328565b33600081815260166020526040902091909155612e959085612fd2565b505060016009555050565b6008546001600160a01b03163314612ee85760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b601055565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612f5057506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80612f8457506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610d1e57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610d1e565b600082612fc985846138f2565b14949350505050565b6114c28282604051806020016040528060008152506139ac565b600082815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061306082613417565b80519091506000906001600160a01b0316336001600160a01b0316148061309757503361308c846111dd565b6001600160a01b0316145b806130a9575081516130a9903361296e565b90508061311e5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610d73565b846001600160a01b031682600001516001600160a01b0316146131a95760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610d73565b6001600160a01b0384166132255760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610d73565b6132356000848460000151612fec565b6001600160a01b03851660009081526004602052604081208054600192906132679084906001600160801b0316614373565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b038616600090815260046020526040812080546001945090926132b3918591166142fd565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b0319909116919092161717905561333b846001614328565b6000818152600360205260409020549091506001600160a01b03166133cd57613365816000541190565b156133cd5760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6040805180820190915260008082526020820152613436826000541190565b6134a85760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610d73565b60007f00000000000000000000000000000000000000000000000000000000000000008310613509576134fb7f00000000000000000000000000000000000000000000000000000000000000008461439b565b613506906001614328565b90505b825b818110613573576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561356057949350505050565b508061356b816143de565b91505061350b565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610d73565b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b1561379957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906136859033908990889088906004016142ae565b602060405180830381600087803b15801561369f57600080fd5b505af19250505080156136cf575060408051601f3d908101601f191682019092526136cc91810190614093565b60015b61377f573d8080156136fd576040519150601f19603f3d011682016040523d82523d6000602084013e613702565b606091505b5080516137775760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610d73565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612a6b565b506001949350505050565b6060816137e457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561380e57806137f881614430565b91506138079050600a83614340565b91506137e8565b60008167ffffffffffffffff81111561383757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613861576020820181803683370190505b5090505b8415612a6b5761387660018361439b565b9150613883600a8661444b565b61388e906030614328565b60f81b8183815181106138b157634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506138eb600a86614340565b9450613865565b600081815b84518110156139a457600085828151811061392257634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311613964576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250613991565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061399c81614430565b9150506138f7565b509392505050565b6000546001600160a01b038416613a2b5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610d73565b613a36816000541190565b15613a835760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610d73565b7f0000000000000000000000000000000000000000000000000000000000000000831115613b195760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610d73565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b0380821683527001000000000000000000000000000000009091041691810191909152815180830190925280519091908190613b829087906142fd565b6001600160801b03168152602001858360200151613ba091906142fd565b6001600160801b039081169091526001600160a01b03808816600081815260046020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015613d235760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4613c916000888488613641565b613d035760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610d73565b81613d0d81614430565b9250508080613d1b90614430565b915050613c44565b50600081905561340f565b828054613d3a906143f5565b90600052602060002090601f016020900481019282613d5c5760008555613da2565b82601f10613d7557805160ff1916838001178555613da2565b82800160010185558215613da2579182015b82811115613da2578251825591602001919060010190613d87565b50611b139291505b80821115611b135760008155600101613daa565b600067ffffffffffffffff80841115613dd957613dd961448b565b604051601f8501601f19908116603f01168101908282118183101715613e0157613e0161448b565b81604052809350858152868686011115613e1a57600080fd5b858560208301376000602087830101525050509392505050565b60008083601f840112613e45578081fd5b50813567ffffffffffffffff811115613e5c578182fd5b6020830191508360208260051b850101111561163557600080fd5b600060208284031215613e88578081fd5b8135613e93816144a1565b9392505050565b60008060408385031215613eac578081fd5b8235613eb7816144a1565b91506020830135613ec7816144a1565b809150509250929050565b600080600060608486031215613ee6578081fd5b8335613ef1816144a1565b92506020840135613f01816144a1565b929592945050506040919091013590565b60008060008060808587031215613f27578081fd5b8435613f32816144a1565b93506020850135613f42816144a1565b925060408501359150606085013567ffffffffffffffff811115613f64578182fd5b8501601f81018713613f74578182fd5b613f8387823560208401613dbe565b91505092959194509250565b60008060408385031215613fa1578182fd5b8235613fac816144a1565b91506020830135613ec7816144b6565b60008060408385031215613fce578182fd5b8235613fd9816144a1565b946020939093013593505050565b60008060208385031215613ff9578182fd5b823567ffffffffffffffff81111561400f578283fd5b61401b85828601613e34565b90969095509350505050565b600060208284031215614038578081fd5b8135613e93816144b6565b600060208284031215614054578081fd5b8151613e93816144b6565b600060208284031215614070578081fd5b5035919050565b600060208284031215614088578081fd5b8135613e93816144c4565b6000602082840312156140a4578081fd5b8151613e93816144c4565b6000602082840312156140c0578081fd5b8151613e93816144a1565b6000602082840312156140dc578081fd5b813567ffffffffffffffff8111156140f2578182fd5b8201601f81018413614102578182fd5b612a6b84823560208401613dbe565b600060208284031215614122578081fd5b5051919050565b60008060006040848603121561413d578081fd5b83359250602084013567ffffffffffffffff81111561415a578182fd5b61416686828701613e34565b9497909650939450505050565b60008060408385031215614185578182fd5b50508035926020909101359150565b600081518084526141ac8160208601602086016143b2565b601f01601f19169290920160200192915050565b600081516141d28185602086016143b2565b9290920192915050565b600080845482600182811c9150808316806141f857607f831692505b602080841082141561421857634e487b7160e01b87526022600452602487fd5b81801561422c576001811461423d57614269565b60ff19861689528489019650614269565b60008b815260209020885b868110156142615781548b820152908501908301614248565b505084890196505b5050505050506142a561429f827f2f00000000000000000000000000000000000000000000000000000000000000815260010190565b856141c0565b95945050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526142e06080830184614194565b9695505050505050565b602081526000613e936020830184614194565b60006001600160801b0380831681851680830382111561431f5761431f61445f565b01949350505050565b6000821982111561433b5761433b61445f565b500190565b60008261434f5761434f614475565b500490565b600081600019048311821515161561436e5761436e61445f565b500290565b60006001600160801b03838116908316818110156143935761439361445f565b039392505050565b6000828210156143ad576143ad61445f565b500390565b60005b838110156143cd5781810151838201526020016143b5565b838111156118ba5750506000910152565b6000816143ed576143ed61445f565b506000190190565b600181811c9082168061440957607f821691505b6020821081141561442a57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156144445761444461445f565b5060010190565b60008261445a5761445a614475565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612b4057600080fd5b8015158114612b4057600080fd5b6001600160e01b031981168114612b4057600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220b5ab83c44c271035b689df8d3124c5b61756617c034a71715a745ae068c5cece64736f6c63430008040033697066733a2f2f516d5a7a65796677514c6336624c647854423962767737713439376233673871454272615255337658774e645271000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1fe14d612d39b635c1a07e7a0c3b5be78d5d9ebbf3fee7822a8c18ad95adad7dc15e3a36d09dacfa4e2d12265afd4f453671efc308099d95001518526e5f29dad0000000000000000000000000215f05293e5a826d64a18be35a9471c0148ffe30000000000000000000000008a48debdd94c9b19e74fdad114ec0fe568fd0500
Deployed Bytecode
0x6080604052600436106104805760003560e01c806370a082311161025e578063a22cb46511610143578063c9c44a79116100bb578063e985e9c51161008a578063f2fde38b1161006f578063f2fde38b14610c8d578063f759867a14610cad578063fda047b314610cc057600080fd5b8063e985e9c514610c51578063ec14db6714610c7157600080fd5b8063c9c44a7914610bea578063d19cf74014610c06578063d7224ba014610c1b578063e43082f714610c3157600080fd5b8063b88d4fde11610112578063c30d5f31116100f7578063c30d5f3114610b99578063c87b56dd14610bb4578063c8d09d8b14610bd457600080fd5b8063b88d4fde14610b64578063c0c36a3714610b8457600080fd5b8063a22cb46514610af5578063abc4233b14610b15578063b391c50814610b2a578063b567236014610b4a57600080fd5b8063879e930d116101d657806395d89b41116101a55780639bd31e301161018a5780639bd31e3014610a995780639df0457e14610ab5578063a0712d6814610ae257600080fd5b806395d89b4114610a8457806397c49e6b1461077657600080fd5b8063879e930d14610a10578063885948ca14610a305780638b34cb6914610a465780638da5cb5b14610a6657600080fd5b80637ae17f3e1161022d5780637fc27803116102125780637fc27803146109e057806386c9e18414610924578063879a9ed1146109fa57600080fd5b80637ae17f3e146109aa5780637afa2fc0146109ca57600080fd5b806370a0823114610940578063714c539814610960578063715018a6146109755780637a77378c1461098a57600080fd5b80632e24cafa116103845780634f6ccce7116102fc5780636352211e116102cb5780636ad5c368116102b05780636ad5c368146108ef5780636c3a9b4a146109045780636c842b451461092457600080fd5b80636352211e1461089f57806369c12cb7146108bf57600080fd5b80634f6ccce714610820578063551c384a1461084057806355f804b31461086057806360d938dc1461088057600080fd5b80633ccfd60b11610353578063443da2a211610338578063443da2a2146107c0578063494c9db2146107e057806349df728c1461080057600080fd5b80633ccfd60b1461078b57806342842e0e146107a057600080fd5b80632e24cafa146107255780632f745c5914610740578063326f9ad31461076057806336e1b1da1461077657600080fd5b806318160ddd1161041757806324f985e9116103e6578063280d2a28116103cb578063280d2a28146106a657806328cad13d146106c65780632a55205a146106e657600080fd5b806324f985e91461065957806327626f341461067957600080fd5b806318160ddd146105cd57806319c17c0c146105e25780631e84c4131461061857806323b872dd1461063957600080fd5b8063081812fc11610453578063081812fc14610535578063095ea7b31461056d5780630a3786bd1461058d57806315bdebe2146105ad57600080fd5b806301ffc9a714610485578063025ef838146104ba578063064d98d9146104fe57806306fdde0314610513575b600080fd5b34801561049157600080fd5b506104a56104a0366004614077565b610ce0565b60405190151581526020015b60405180910390f35b3480156104c657600080fd5b506104f06104d5366004613e77565b6001600160a01b031660009081526016602052604090205490565b6040519081526020016104b1565b61051161050c366004614129565b610d24565b005b34801561051f57600080fd5b5061052861114b565b6040516104b191906142ea565b34801561054157600080fd5b5061055561055036600461405f565b6111dd565b6040516001600160a01b0390911681526020016104b1565b34801561057957600080fd5b50610511610588366004613fbc565b611278565b34801561059957600080fd5b506105116105a8366004614027565b6113ab565b3480156105b957600080fd5b506105116105c836600461405f565b61140f565b3480156105d957600080fd5b506000546104f0565b3480156105ee57600080fd5b506104f06105fd366004613e77565b6001600160a01b031660009081526017602052604090205490565b34801561062457600080fd5b50600c546104a590600160a81b900460ff1681565b34801561064557600080fd5b50610511610654366004613ed2565b61145c565b34801561066557600080fd5b506105116106743660046140cb565b611467565b34801561068557600080fd5b506104f0610694366004613e77565b60166020526000908152604090205481565b3480156106b257600080fd5b506105116106c1366004613e77565b6114c6565b3480156106d257600080fd5b506105116106e1366004614027565b61153d565b3480156106f257600080fd5b50610706610701366004614173565b6115be565b604080516001600160a01b0390931683526020830191909152016104b1565b34801561073157600080fd5b506104f0668e1bc9bf04000081565b34801561074c57600080fd5b506104f061075b366004613fbc565b61163c565b34801561076c57600080fd5b506104f060145481565b34801561078257600080fd5b506104f060c881565b34801561079757600080fd5b506105116117d4565b3480156107ac57600080fd5b506105116107bb366004613ed2565b6118c0565b3480156107cc57600080fd5b506105116107db366004614027565b6118db565b3480156107ec57600080fd5b50600e54610555906001600160a01b031681565b34801561080c57600080fd5b5061051161081b366004613e77565b61193d565b34801561082c57600080fd5b506104f061083b36600461405f565b611a9b565b34801561084c57600080fd5b5061051161085b366004614027565b611b17565b34801561086c57600080fd5b5061051161087b3660046140cb565b611b72565b34801561088c57600080fd5b506011546104a590610100900460ff1681565b3480156108ab57600080fd5b506105556108ba36600461405f565b611bcd565b3480156108cb57600080fd5b506104a56108da366004613e77565b60186020526000908152604090205460ff1681565b3480156108fb57600080fd5b506104f0600581565b34801561091057600080fd5b5061051161091f36600461405f565b611bdf565b34801561093057600080fd5b506104f067016345785d8a000081565b34801561094c57600080fd5b506104f061095b366004613e77565b611d98565b34801561096c57600080fd5b50610528611e3b565b34801561098157600080fd5b50610511611e4a565b34801561099657600080fd5b50600f54610555906001600160a01b031681565b3480156109b657600080fd5b506105116109c5366004613fe7565b611e9e565b3480156109d657600080fd5b506104f061122481565b3480156109ec57600080fd5b506015546104a59060ff1681565b348015610a0657600080fd5b506104f060135481565b348015610a1c57600080fd5b50600d54610555906001600160a01b031681565b348015610a3c57600080fd5b506104f060105481565b348015610a5257600080fd5b506011546104a59062010000900460ff1681565b348015610a7257600080fd5b506008546001600160a01b0316610555565b348015610a9057600080fd5b506105286120b0565b348015610aa557600080fd5b506104f0670214e8348c4f000081565b348015610ac157600080fd5b506104f0610ad0366004613e77565b60176020526000908152604090205481565b610511610af036600461405f565b6120bf565b348015610b0157600080fd5b50610511610b10366004613f8f565b61240e565b348015610b2157600080fd5b506104f0603281565b348015610b3657600080fd5b50610511610b45366004613fe7565b6124d3565b348015610b5657600080fd5b506011546104a59060ff1681565b348015610b7057600080fd5b50610511610b7f366004613f12565b612721565b348015610b9057600080fd5b506105286127aa565b348015610ba557600080fd5b506104f0666a94d74f43000081565b348015610bc057600080fd5b50610528610bcf36600461405f565b612838565b348015610be057600080fd5b506104f060125481565b348015610bf657600080fd5b506104f0670429d069189e000081565b348015610c1257600080fd5b506104f0600a81565b348015610c2757600080fd5b506104f060075481565b348015610c3d57600080fd5b50610511610c4c366004614027565b6128ed565b348015610c5d57600080fd5b506104a5610c6c366004613e9a565b61296e565b348015610c7d57600080fd5b506104f067010a741a4627800081565b348015610c9957600080fd5b50610511610ca8366004613e77565b612a73565b610511610cbb36600461405f565b612b43565b348015610ccc57600080fd5b50610511610cdb36600461405f565b612ea0565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610d1e5750610d1e82612eed565b92915050565b60026009541415610d7c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260095560115460ff16610dd35760405162461bcd60e51b815260206004820152601760248201527f4669727374207068617365206973206e6f74206f70656e0000000000000000006044820152606401610d73565b8260c880610de4603261122461439b565b610dee919061439b565b610df8919061439b565b81610e0260005490565b610e0c9190614328565b10610e695760405162461bcd60e51b815260206004820152602760248201527f4e6f7420656e6f75676820446f6f646c65506574732072656d61696e696e67206044820152661d1bc81b5a5b9d60ca1b6064820152608401610d73565b833481600314610e9f5781600514610e9157610e8c82666a94d74f430000614354565b610ea9565b67016345785d8a0000610ea9565b67010a741a462780005b14610ef65760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e7400000000000000006044820152606401610d73565b600d546040516370a0823160e01b81523360048201526019916001600160a01b0316906370a082319060240160206040518083038186803b158015610f3a57600080fd5b505afa158015610f4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f729190614111565b1180610fef5750610fef848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506010546040516bffffffffffffffffffffffff193360601b16602082015290925060340190505b60405160208183030381529060405280519060200120612fbc565b6110875760405162461bcd60e51b815260206004820152604a60248201527f6d696e74466972737450686173653a204d7573742062652077686974656c697360448201527f746564206f72206174206c656173742061205479636f6f6e20446f6f646c652060648201527f526f6f6d206f776e657200000000000000000000000000000000000000000000608482015260a401610d73565b3360009081526017602052604090205460056110a38783614328565b11156111175760405162461bcd60e51b815260206004820152603160248201527f4d617820446f6f646c655065747320746f206d696e7420647572696e6720666960448201527f72737420706861736520697320666976650000000000000000000000000000006064820152608401610d73565b6111218682614328565b3360008181526017602052604090209190915561113e9087612fd2565b5050600160095550505050565b60606001805461115a906143f5565b80601f0160208091040260200160405190810160405280929190818152602001828054611186906143f5565b80156111d35780601f106111a8576101008083540402835291602001916111d3565b820191906000526020600020905b8154815290600101906020018083116111b657829003601f168201915b5050505050905090565b60006111ea826000541190565b61125c5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608401610d73565b506000908152600560205260409020546001600160a01b031690565b600061128382611bcd565b9050806001600160a01b0316836001600160a01b0316141561130d5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610d73565b336001600160a01b03821614806113295750611329813361296e565b61139b5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610d73565b6113a6838383612fec565b505050565b6008546001600160a01b031633146113f35760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b60118054911515620100000262ff000019909216919091179055565b6008546001600160a01b031633146114575760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b601455565b6113a6838383613055565b6008546001600160a01b031633146114af5760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b80516114c290600b906020840190613d2e565b5050565b6008546001600160a01b0316331461150e5760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b600d805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6008546001600160a01b031633146115855760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b600c8054911515600160a81b027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000806115cc846000541190565b6116185760405162461bcd60e51b815260206004820152601160248201527f4e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006044820152606401610d73565b306064611626856007614354565b6116309190614340565b915091505b9250929050565b600061164783611d98565b82106116bb5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610d73565b600080549080805b83811015611765576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561171657805192505b876001600160a01b0316836001600160a01b03161415611752578684141561174457509350610d1e92505050565b8361174e81614430565b9450505b508061175d81614430565b9150506116c3565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610d73565b6008546001600160a01b0316331461181c5760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b476000606461182c83600d614354565b6118369190614340565b90506000611844828461439b565b600e546040519192506001600160a01b03169083156108fc029084906000818181858888f1935050505015801561187f573d6000803e3d6000fd5b50600f546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156118ba573d6000803e3d6000fd5b50505050565b6113a683838360405180602001604052806000815250612721565b6008546001600160a01b031633146119235760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b601180549115156101000261ff0019909216919091179055565b6008546001600160a01b031633146119855760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b1580156119c757600080fd5b505afa1580156119db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ff9190614111565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290529091506001600160a01b0383169063a9059cbb90604401602060405180830381600087803b158015611a6357600080fd5b505af1158015611a77573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113a69190614043565b600080548210611b135760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610d73565b5090565b6008546001600160a01b03163314611b5f5760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b6011805460ff1916911515919091179055565b6008546001600160a01b03163314611bba5760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b80516114c290600a906020840190613d2e565b6000611bd882613417565b5192915050565b60026009541415611c325760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d73565b60026009556008546001600160a01b03163314611c7f5760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b80611c8c60c86032614328565b81601254611c9a9190614328565b1115611cf85760405162461bcd60e51b815260206004820152602760248201527f4e6f7420656e6f75676820446f6f646c65506574732072656d61696e696e67206044820152661d1bc819da599d60ca1b6064820152608401610d73565b61122481611d0560005490565b611d0f9190614328565b1115611d6d5760405162461bcd60e51b815260206004820152602760248201527f4e6f7420656e6f75676820446f6f646c65506574732072656d61696e696e67206044820152661d1bc81b5a5b9d60ca1b6064820152608401610d73565b8160126000828254611d7f9190614328565b90915550611d8f90503383612fd2565b50506001600955565b60006001600160a01b038216611e165760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610d73565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6060600a805461115a906143f5565b6008546001600160a01b03163314611e925760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b611e9c60006135e2565b565b60026009541415611ef15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d73565b60026009556008546001600160a01b03163314611f3e5760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b80611f4b60c86032614328565b81601254611f599190614328565b1115611fb75760405162461bcd60e51b815260206004820152602760248201527f4e6f7420656e6f75676820446f6f646c65506574732072656d61696e696e67206044820152661d1bc819da599d60ca1b6064820152608401610d73565b61122481611fc460005490565b611fce9190614328565b111561202c5760405162461bcd60e51b815260206004820152602760248201527f4e6f7420656e6f75676820446f6f646c65506574732072656d61696e696e67206044820152661d1bc81b5a5b9d60ca1b6064820152608401610d73565b6012805483918291600090612042908490614328565b90915550600090505b818110156120a45761209285858381811061207657634e487b7160e01b600052603260045260246000fd5b905060200201602081019061208b9190613e77565b6001612fd2565b8061209c81614430565b91505061204b565b50506001600955505050565b60606002805461115a906143f5565b600260095414156121125760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d73565b6002600955600c54600160a81b900460ff166121705760405162461bcd60e51b815260206004820152601760248201527f5468697264207068617365206973206e6f74206f70656e0000000000000000006044820152606401610d73565b8034816003146121bc57816005146121ae5781600a146121a05761219b82668e1bc9bf040000614354565b6121c6565b670429d069189e00006121c6565b670214e8348c4f00006121c6565b67016345785d8a00005b146122135760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e7400000000000000006044820152606401610d73565b8160c880612224603261122461439b565b61222e919061439b565b612238919061439b565b8161224260005490565b61224c9190614328565b106122a95760405162461bcd60e51b815260206004820152602760248201527f4e6f7420656e6f75676820446f6f646c65506574732072656d61696e696e67206044820152661d1bc81b5a5b9d60ca1b6064820152608401610d73565b60115462010000900460ff161561238357600d546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156122fe57600080fd5b505afa158015612312573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123369190614111565b116123835760405162461bcd60e51b815260206004820152601b60248201527f4d757374206265206120446f6f646c6520526f6f6d206f776e657200000000006044820152606401610d73565b600a8311156123fa5760405162461bcd60e51b815260206004820152602560248201527f4d6178206d696e74206f6620446f6f646c65205065747320706572207478206960448201527f732074656e0000000000000000000000000000000000000000000000000000006064820152608401610d73565b6124043384612fd2565b5050600160095550565b6001600160a01b0382163314156124675760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610d73565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600260095414156125265760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d73565b600260095560155460ff1661257d5760405162461bcd60e51b815260206004820152601060248201527f436c61696d206e6f7420616374697665000000000000000000000000000000006044820152606401610d73565b60c8601354111561258d57600080fd5b61122461259960005490565b6125a4906001614328565b11156125af57600080fd5b61260e828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506014546040516bffffffffffffffffffffffff193360601b1660208201529092506034019050610fd4565b61265a5760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420656c696769626c6520666f7220612066726565206d696e74000000006044820152606401610d73565b3360009081526018602052604090205460ff16156126e05760405162461bcd60e51b815260206004820152602160248201527f416c726561647920636c61696d65642061206672656520446f6f646c6520506560448201527f74000000000000000000000000000000000000000000000000000000000000006064820152608401610d73565b336000908152601860205260408120805460ff191660019081179091556013805491929091612710908490614328565b90915550611d8f9050336001612fd2565b61272c848484613055565b61273884848484613641565b6118ba5760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610d73565b600b80546127b7906143f5565b80601f01602080910402602001604051908101604052809291908181526020018280546127e3906143f5565b80156128305780601f1061280557610100808354040283529160200191612830565b820191906000526020600020905b81548152906001019060200180831161281357829003601f168201915b505050505081565b6060612845826000541190565b6128915760405162461bcd60e51b815260206004820152601160248201527f4e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006044820152606401610d73565b6000600a80546128a0906143f5565b9050116128bc5760405180602001604052806000815250610d1e565b600a6128c7836137a4565b6040516020016128d89291906141dc565b60405160208183030381529060405292915050565b6008546001600160a01b031633146129355760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b600c8054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b600c546000906001600160a01b03811690600160a01b900460ff168015612a3257506040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b1580156129ef57600080fd5b505afa158015612a03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a2791906140af565b6001600160a01b0316145b15612a41576001915050610d1e565b6001600160a01b0380851660009081526006602090815260408083209387168352929052205460ff165b949350505050565b6008546001600160a01b03163314612abb5760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b6001600160a01b038116612b375760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d73565b612b40816135e2565b50565b60026009541415612b965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d73565b6002600955601154610100900460ff16612bf25760405162461bcd60e51b815260206004820152601360248201527f50726573616c65206973206e6f74206f70656e000000000000000000000000006044820152606401610d73565b600d546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015612c3657600080fd5b505afa158015612c4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c6e9190614111565b11612cbb5760405162461bcd60e51b815260206004820152601b60248201527f4d757374206265206120446f6f646c6520526f6f6d206f776e657200000000006044820152606401610d73565b8060c880612ccc603261122461439b565b612cd6919061439b565b612ce0919061439b565b81612cea60005490565b612cf49190614328565b10612d515760405162461bcd60e51b815260206004820152602760248201527f4e6f7420656e6f75676820446f6f646c65506574732072656d61696e696e67206044820152661d1bc81b5a5b9d60ca1b6064820152608401610d73565b813481600314612d875781600514612d7957612d7482666a94d74f430000614354565b612d91565b67016345785d8a0000612d91565b67010a741a462780005b14612dde5760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e7400000000000000006044820152606401610d73565b336000908152601660205260409020546005612dfa8583614328565b1115612e6e5760405162461bcd60e51b815260206004820152602a60248201527f4d617820446f6f646c65205065747320746f206d696e7420696e20707265736160448201527f6c652069732066697665000000000000000000000000000000000000000000006064820152608401610d73565b612e788482614328565b33600081815260166020526040902091909155612e959085612fd2565b505060016009555050565b6008546001600160a01b03163314612ee85760405162461bcd60e51b815260206004820181905260248201526000805160206144db8339815191526044820152606401610d73565b601055565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612f5057506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80612f8457506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610d1e57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610d1e565b600082612fc985846138f2565b14949350505050565b6114c28282604051806020016040528060008152506139ac565b600082815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061306082613417565b80519091506000906001600160a01b0316336001600160a01b0316148061309757503361308c846111dd565b6001600160a01b0316145b806130a9575081516130a9903361296e565b90508061311e5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610d73565b846001600160a01b031682600001516001600160a01b0316146131a95760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610d73565b6001600160a01b0384166132255760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610d73565b6132356000848460000151612fec565b6001600160a01b03851660009081526004602052604081208054600192906132679084906001600160801b0316614373565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b038616600090815260046020526040812080546001945090926132b3918591166142fd565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b0319909116919092161717905561333b846001614328565b6000818152600360205260409020549091506001600160a01b03166133cd57613365816000541190565b156133cd5760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6040805180820190915260008082526020820152613436826000541190565b6134a85760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610d73565b60007f000000000000000000000000000000000000000000000000000000000000000a8310613509576134fb7f000000000000000000000000000000000000000000000000000000000000000a8461439b565b613506906001614328565b90505b825b818110613573576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561356057949350505050565b508061356b816143de565b91505061350b565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610d73565b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b1561379957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906136859033908990889088906004016142ae565b602060405180830381600087803b15801561369f57600080fd5b505af19250505080156136cf575060408051601f3d908101601f191682019092526136cc91810190614093565b60015b61377f573d8080156136fd576040519150601f19603f3d011682016040523d82523d6000602084013e613702565b606091505b5080516137775760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610d73565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612a6b565b506001949350505050565b6060816137e457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561380e57806137f881614430565b91506138079050600a83614340565b91506137e8565b60008167ffffffffffffffff81111561383757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613861576020820181803683370190505b5090505b8415612a6b5761387660018361439b565b9150613883600a8661444b565b61388e906030614328565b60f81b8183815181106138b157634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506138eb600a86614340565b9450613865565b600081815b84518110156139a457600085828151811061392257634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311613964576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250613991565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061399c81614430565b9150506138f7565b509392505050565b6000546001600160a01b038416613a2b5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610d73565b613a36816000541190565b15613a835760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610d73565b7f000000000000000000000000000000000000000000000000000000000000000a831115613b195760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610d73565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b0380821683527001000000000000000000000000000000009091041691810191909152815180830190925280519091908190613b829087906142fd565b6001600160801b03168152602001858360200151613ba091906142fd565b6001600160801b039081169091526001600160a01b03808816600081815260046020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015613d235760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4613c916000888488613641565b613d035760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610d73565b81613d0d81614430565b9250508080613d1b90614430565b915050613c44565b50600081905561340f565b828054613d3a906143f5565b90600052602060002090601f016020900481019282613d5c5760008555613da2565b82601f10613d7557805160ff1916838001178555613da2565b82800160010185558215613da2579182015b82811115613da2578251825591602001919060010190613d87565b50611b139291505b80821115611b135760008155600101613daa565b600067ffffffffffffffff80841115613dd957613dd961448b565b604051601f8501601f19908116603f01168101908282118183101715613e0157613e0161448b565b81604052809350858152868686011115613e1a57600080fd5b858560208301376000602087830101525050509392505050565b60008083601f840112613e45578081fd5b50813567ffffffffffffffff811115613e5c578182fd5b6020830191508360208260051b850101111561163557600080fd5b600060208284031215613e88578081fd5b8135613e93816144a1565b9392505050565b60008060408385031215613eac578081fd5b8235613eb7816144a1565b91506020830135613ec7816144a1565b809150509250929050565b600080600060608486031215613ee6578081fd5b8335613ef1816144a1565b92506020840135613f01816144a1565b929592945050506040919091013590565b60008060008060808587031215613f27578081fd5b8435613f32816144a1565b93506020850135613f42816144a1565b925060408501359150606085013567ffffffffffffffff811115613f64578182fd5b8501601f81018713613f74578182fd5b613f8387823560208401613dbe565b91505092959194509250565b60008060408385031215613fa1578182fd5b8235613fac816144a1565b91506020830135613ec7816144b6565b60008060408385031215613fce578182fd5b8235613fd9816144a1565b946020939093013593505050565b60008060208385031215613ff9578182fd5b823567ffffffffffffffff81111561400f578283fd5b61401b85828601613e34565b90969095509350505050565b600060208284031215614038578081fd5b8135613e93816144b6565b600060208284031215614054578081fd5b8151613e93816144b6565b600060208284031215614070578081fd5b5035919050565b600060208284031215614088578081fd5b8135613e93816144c4565b6000602082840312156140a4578081fd5b8151613e93816144c4565b6000602082840312156140c0578081fd5b8151613e93816144a1565b6000602082840312156140dc578081fd5b813567ffffffffffffffff8111156140f2578182fd5b8201601f81018413614102578182fd5b612a6b84823560208401613dbe565b600060208284031215614122578081fd5b5051919050565b60008060006040848603121561413d578081fd5b83359250602084013567ffffffffffffffff81111561415a578182fd5b61416686828701613e34565b9497909650939450505050565b60008060408385031215614185578182fd5b50508035926020909101359150565b600081518084526141ac8160208601602086016143b2565b601f01601f19169290920160200192915050565b600081516141d28185602086016143b2565b9290920192915050565b600080845482600182811c9150808316806141f857607f831692505b602080841082141561421857634e487b7160e01b87526022600452602487fd5b81801561422c576001811461423d57614269565b60ff19861689528489019650614269565b60008b815260209020885b868110156142615781548b820152908501908301614248565b505084890196505b5050505050506142a561429f827f2f00000000000000000000000000000000000000000000000000000000000000815260010190565b856141c0565b95945050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526142e06080830184614194565b9695505050505050565b602081526000613e936020830184614194565b60006001600160801b0380831681851680830382111561431f5761431f61445f565b01949350505050565b6000821982111561433b5761433b61445f565b500190565b60008261434f5761434f614475565b500490565b600081600019048311821515161561436e5761436e61445f565b500290565b60006001600160801b03838116908316818110156143935761439361445f565b039392505050565b6000828210156143ad576143ad61445f565b500390565b60005b838110156143cd5781810151838201526020016143b5565b838111156118ba5750506000910152565b6000816143ed576143ed61445f565b506000190190565b600181811c9082168061440957607f821691505b6020821081141561442a57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156144445761444461445f565b5060010190565b60008261445a5761445a614475565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612b4057600080fd5b8015158114612b4057600080fd5b6001600160e01b031981168114612b4057600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220b5ab83c44c271035b689df8d3124c5b61756617c034a71715a745ae068c5cece64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1fe14d612d39b635c1a07e7a0c3b5be78d5d9ebbf3fee7822a8c18ad95adad7dc15e3a36d09dacfa4e2d12265afd4f453671efc308099d95001518526e5f29dad0000000000000000000000000215f05293e5a826d64a18be35a9471c0148ffe30000000000000000000000008a48debdd94c9b19e74fdad114ec0fe568fd0500
-----Decoded View---------------
Arg [0] : _openSeaProxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [1] : _firstPhasePresaleMerkleRoot (bytes32): 0xfe14d612d39b635c1a07e7a0c3b5be78d5d9ebbf3fee7822a8c18ad95adad7dc
Arg [2] : _claimMerkleRoot (bytes32): 0x15e3a36d09dacfa4e2d12265afd4f453671efc308099d95001518526e5f29dad
Arg [3] : _shareOneAddress (address): 0x0215f05293E5A826D64a18Be35A9471C0148ffE3
Arg [4] : _shareTwoAddress (address): 0x8A48DEbdd94C9B19e74FDAD114ec0FE568fD0500
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [1] : fe14d612d39b635c1a07e7a0c3b5be78d5d9ebbf3fee7822a8c18ad95adad7dc
Arg [2] : 15e3a36d09dacfa4e2d12265afd4f453671efc308099d95001518526e5f29dad
Arg [3] : 0000000000000000000000000215f05293e5a826d64a18be35a9471c0148ffe3
Arg [4] : 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.