ERC-721
NFT
Overview
Max Total Supply
6,666 DEMON
Holders
2,225
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 DEMONLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
EasyDemons
Compiler Version
v0.8.13+commit.abaa5c0e
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.13; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/security/PullPayment.sol"; contract EasyDemons is ERC721A, Ownable, ReentrancyGuard, PullPayment { using Strings for uint256; bytes32 public root; bytes32 public raffleRoot; // all stage used in frontend enum Stage { Shutdown, PublicSale, WaitPresale, Presale, WaitRaffle, RaffleSale, Pause, DevMint, Clearance } struct TokenBatchPriceData { uint256 pricePaid; uint256 qtyMinted; } mapping(address => TokenBatchPriceData[]) public userToTokenBatchPriceData; Stage public stage; bool public isDutchAuction = true; bool isEnableClaim = false; // begin::Prod uint256 public constant MAX_STEP = 12; uint256 public constant AUCTION_PERIOD = 30 minutes; uint256 public constant MAX_DEVMINT_SUPPLY = 333; uint256 public constant MAX_PRESALE_SUPPLY = 4000; uint256 public constant MAX_WL_SUPPLY = 3990; uint256 public constant MAX_PUBLIC_SUPPLY = 2666; uint256 public constant TOTAL_SUPPLY = 6666; uint256 public constant DISCOUNT_RATE = 0.05 ether; uint256 public constant AUCTION_INITIAL_PRICE = 0.6 ether; uint256 public constant AUCTION_BOTTOM_PRICE = 0; // end::Prod // begin::Dev // uint256 public constant MAX_STEP = 5; // uint256 public constant AUCTION_PERIOD = 5 minutes; // uint256 public constant MAX_DEVMINT_SUPPLY = 1; // uint256 public constant MAX_PRESALE_SUPPLY = 5; // uint256 public constant MAX_WL_SUPPLY = 4; // uint256 public constant MAX_PUBLIC_SUPPLY = 5; // uint256 public constant TOTAL_SUPPLY = 15; // uint256 public constant DISCOUNT_RATE = 0.05 ether; // uint256 public constant AUCTION_INITIAL_PRICE = 0.6 ether; // uint256 public constant AUCTION_BOTTOM_PRICE = 0; // end::Dev uint256 public publicSaleAllowance = 6; uint256 public finalPrice = 0; uint256 public normalPrice = 0.6 ether; uint256 public presalePrice = 0.13 ether; uint256 public rafflePrice = 0.13 ether; uint256 public presaleQtyMinted; mapping(address => uint256) public presalePurchases; uint256 public publicQtyMinted; mapping(address => uint256) public publicSalePurchases; uint256 public raffleQtyMinted; mapping(address => uint256) public raffleSalePurchases; uint256 public devMintQtyMinted; mapping(address => uint256) public devMintPurchases; string private _contractURI; string private _baseTokenURI; string private _defaultTokenURI; uint256 public DA_STARTING_AT; address private constant walletA = 0xb5B8D71B82ABf6bB21e432FF7E02eDcDC840d7ca; address private constant walletB = 0xa4589D18B04Dd6B6ca606F9cbFb3c3B5Ac2DDDd8; address private constant walletC = 0x9a69B8134C7676Db6B84a868d6bDE5B989Bb32CB; modifier onlySender { require(msg.sender == tx.origin, "caller is not the sender"); _; } constructor( string memory defaultTokenURI, bytes32 merkleroot ) ERC721A("Easy Demons", "DEMON") { _defaultTokenURI = defaultTokenURI; root = merkleroot; } function _startTokenId() internal pure override returns (uint256) { return 1; } function setMerkleRoot(bytes32 merkleroot) onlyOwner external { root = merkleroot; } function setRaffleRoot(bytes32 merkleroot) onlyOwner external { raffleRoot = merkleroot; } function presaleQtyRemaining() public view returns (uint256) { return MAX_WL_SUPPLY - presaleQtyMinted; } function publicSaleQtyRemaining() public view returns (uint256) { return MAX_PUBLIC_SUPPLY - publicQtyMinted; } function raffleSaleQtyRemaining() public view returns (uint256) { return raffleSaleSupply() - raffleQtyMinted; } function raffleSaleSupply() public view returns (uint256) { return presaleQtyRemaining() + publicSaleQtyRemaining() - devMintQtyMinted; } function price() public view returns (uint256) { if(stage == Stage.PublicSale && isDutchAuction == true) { return _auctionPricing(); } if(stage == Stage.PublicSale && isDutchAuction == false) { return normalPrice; } if(stage == Stage.Presale) { return finalPrice * 60 / 100; } if(stage == Stage.RaffleSale) { return rafflePrice; } return normalPrice; } function _auctionPricing() internal view returns (uint256) { if(DA_STARTING_AT > block.timestamp) { return 0; } uint256 timeElapsed = block.timestamp - DA_STARTING_AT; uint256 step = timeElapsed / AUCTION_PERIOD; if(step < MAX_STEP) { return AUCTION_INITIAL_PRICE - (DISCOUNT_RATE * step); } return AUCTION_BOTTOM_PRICE; } function setNormalPrice(uint256 price_) external onlyOwner { normalPrice = price_; } function setPresalePrice(uint256 price_) external onlyOwner { presalePrice = price_; } function setRafflePrice(uint256 price_) external onlyOwner { rafflePrice = price_; } // devMint == gifting function devMint(address to, uint256 tokenQuantity) external onlyOwner { require(stage == Stage.DevMint, "not active"); require(totalSupply() + tokenQuantity <= TOTAL_SUPPLY, "exceed alloc"); require(devMintQtyMinted + presaleQtyMinted + tokenQuantity <= MAX_PRESALE_SUPPLY, "exceed presale alloc" ); require(devMintQtyMinted + tokenQuantity <= MAX_DEVMINT_SUPPLY, "exceed devmint alloc"); devMintQtyMinted += tokenQuantity; _safeMint(to, tokenQuantity); } function clearanceMint(address to, uint256 tokenQuantity) external onlyOwner { require(stage == Stage.Clearance, "not active"); require(totalSupply() + tokenQuantity <= TOTAL_SUPPLY, "exceed alloc"); _safeMint(to, tokenQuantity); } function presaleMint(uint256 tokenQuantity, uint256 allowance, bytes32[] calldata proof) external payable onlySender nonReentrant { require(_verify(_leaf(msg.sender, allowance), proof), "invalid MP"); require(stage == Stage.Presale, "not active"); require(totalSupply() + tokenQuantity <= TOTAL_SUPPLY, "exceed alloc"); require(presaleQtyMinted + tokenQuantity <= MAX_WL_SUPPLY, "exceed presale alloc"); require(tokenQuantity <= allowance, "exceed trx allow"); require(presalePurchases[msg.sender] + tokenQuantity <= allowance, "exceed wal allow"); require(price() * tokenQuantity == msg.value, "ETH not match"); presalePurchases[msg.sender] += tokenQuantity; presaleQtyMinted+=tokenQuantity; _safeMint(msg.sender, tokenQuantity); } function raffleMint(uint256 tokenQuantity, uint256 allowance, bytes32[] calldata proof) external payable onlySender nonReentrant { require(_verify(_leaf(msg.sender, allowance), proof), "invalid MP"); require(stage == Stage.RaffleSale, "not active"); require(totalSupply() + tokenQuantity <= TOTAL_SUPPLY, "exceed alloc"); require(raffleQtyMinted + tokenQuantity <= raffleSaleSupply(), "exceed raffle alloc"); require(tokenQuantity <= allowance, "exceed trx allow"); require(balanceOf(msg.sender) <= tokenQuantity + allowance, "exceed wal allow"); require(price() * tokenQuantity == msg.value, "ETH not match"); raffleSalePurchases[msg.sender] += tokenQuantity; raffleQtyMinted+=tokenQuantity; _safeMint(msg.sender, tokenQuantity); } function publicMint(uint256 tokenQuantity) external payable onlySender nonReentrant { require(stage == Stage.PublicSale, "not active"); require(totalSupply() + tokenQuantity <= TOTAL_SUPPLY, "exceed alloc"); require(publicQtyMinted + tokenQuantity <= MAX_PUBLIC_SUPPLY, "exceed public alloc"); require(tokenQuantity <= publicSaleAllowance, "exceed trx allow"); uint256 costToMint = price() * tokenQuantity; require(msg.value >= costToMint, "eth value incorrect"); if(isDutchAuction == true) { require(block.timestamp >= DA_STARTING_AT, "auction not started"); } publicSalePurchases[msg.sender] += tokenQuantity; publicQtyMinted += tokenQuantity; _safeMint(msg.sender, tokenQuantity); _addAuctionPurchaseHistory(msg.sender, msg.value, tokenQuantity); if(publicSaleQtyRemaining() == 0) { finalPrice = price(); } if(msg.value > costToMint) { (bool success,) = msg.sender.call{ value: msg.value - costToMint }(""); require(success, "Address: unable to send value, recipient may have reverted"); } } function _addAuctionPurchaseHistory(address buyer, uint256 pricePaid, uint256 qtyMinted) internal { if(isDutchAuction == false) return; TokenBatchPriceData[] storage histories = userToTokenBatchPriceData[buyer]; histories.push(TokenBatchPriceData(pricePaid, qtyMinted)); } function _removeAuctionPurchaseHistory(address buyer) internal { TokenBatchPriceData[] storage histories = userToTokenBatchPriceData[buyer]; for(uint256 i = histories.length; i > 0; i--) { histories.pop(); } } function isEligibleClaim(address buyer) public view returns (bool) { TokenBatchPriceData[] memory histories = userToTokenBatchPriceData[buyer]; if(histories.length == 0) return false; return true; } function claimableAmount(address buyer) public view returns (uint256) { TokenBatchPriceData[] memory histories = userToTokenBatchPriceData[buyer]; uint256 _claimableAmount = 0; for(uint256 i; i < histories.length; i++) { _claimableAmount += histories[i].pricePaid - ( finalPrice * histories[i].qtyMinted ); } return _claimableAmount; } function spentAmount(address buyer) external view returns (uint256) { TokenBatchPriceData[] memory histories = userToTokenBatchPriceData[buyer]; uint256 _spentAmount = 0; for(uint256 i; i < histories.length; i++) { _spentAmount += histories[i].pricePaid; } return _spentAmount; } function spentQty(address buyer) external view returns (uint256) { TokenBatchPriceData[] memory histories = userToTokenBatchPriceData[buyer]; uint256 _spentQty = 0; for(uint256 i; i < histories.length; i++) { _spentQty += histories[i].qtyMinted; } return _spentQty; } function setClaimStatus(bool status) external onlyOwner { isEnableClaim = status; } function claimRefund() external nonReentrant() { require(isEnableClaim == true, "not enabled"); require(isEligibleClaim(msg.sender) == true, "not eligible"); uint256 _claimableAmount = claimableAmount(msg.sender); require(address(this).balance >= _claimableAmount, "not enough balance"); _removeAuctionPurchaseHistory(msg.sender); _asyncTransfer(msg.sender, _claimableAmount); withdrawPayments(payable(msg.sender)); } // get all token by owner addresss function tokensOfOwner(address address_) public virtual view returns (uint256[] memory) { uint256 _balance = balanceOf(address_); uint256[] memory _tokens = new uint256[] (_balance); uint256 _index; uint256 _loopThrough = totalSupply(); for (uint256 i = 0; i < _loopThrough; i++) { bool _exists = _exists(i); if (_exists) { if (ownerOf(i) == address_) { _tokens[_index] = i; _index++; } } else if (!_exists && _tokens[_balance - 1] == 0) { _loopThrough++; } } return _tokens; } function withdraw() external onlyOwner { uint256 walletABalance = address(this).balance * 50 / 100; uint256 walletBBalance = address(this).balance * 41 / 100; uint256 walletCBalance = address(this).balance * 9 / 100; Address.sendValue(payable(walletA), walletABalance); Address.sendValue(payable(walletB), walletBBalance); Address.sendValue(payable(walletC), walletCBalance); } // change stage presale, sale, and shutdown function setStage(Stage _stage) external onlyOwner { stage = _stage; } function setAuctionTimestamp(uint256 timestamp) external onlyOwner { DA_STARTING_AT = timestamp; } function setDutchAuctionStatus(bool status_) external onlyOwner { isDutchAuction = status_; } function setPublicAllowance(uint256 _allowance) external onlyOwner { publicSaleAllowance = _allowance; } function getPublicAllowance() external view returns (uint256) { return publicSaleAllowance; } function earning() external view returns (string memory){ return (address(this).balance).toString(); } function setContractURI(string calldata URI) external onlyOwner { _contractURI = URI; } function setBaseURI(string calldata URI) external onlyOwner { _baseTokenURI = URI; } function setDefaultTokenURI(string calldata URI) external onlyOwner { _defaultTokenURI = URI; } function contractURI() public view returns (string memory) { return _contractURI; } function baseURI() public view returns (string memory) { return _baseTokenURI; } // get tokenURI by index, add default base uri function tokenURI(uint256 tokenId) public override view 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())) : _defaultTokenURI; } function _leaf(address account, uint256 allowance) internal pure returns (bytes32) { return keccak256(abi.encodePacked(account, allowance)); } function _verify(bytes32 leaf, bytes32[] memory proof) internal view returns (bool) { return MerkleProof.verify(proof, root, leaf); } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (safe && to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex != end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev This is equivalent to _burn(tokenId, false) */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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 (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 (security/PullPayment.sol) pragma solidity ^0.8.0; import "../utils/escrow/Escrow.sol"; /** * @dev Simple implementation of a * https://consensys.github.io/smart-contract-best-practices/recommendations/#favor-pull-over-push-for-external-calls[pull-payment] * strategy, where the paying contract doesn't interact directly with the * receiver account, which must withdraw its payments itself. * * Pull-payments are often considered the best practice when it comes to sending * Ether, security-wise. It prevents recipients from blocking execution, and * eliminates reentrancy concerns. * * 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]. * * To use, derive from the `PullPayment` contract, and use {_asyncTransfer} * instead of Solidity's `transfer` function. Payees can query their due * payments with {payments}, and retrieve them with {withdrawPayments}. */ abstract contract PullPayment { Escrow private immutable _escrow; constructor() { _escrow = new Escrow(); } /** * @dev Withdraw accumulated payments, forwarding all gas to the recipient. * * Note that _any_ account can call this function, not just the `payee`. * This means that contracts unaware of the `PullPayment` protocol can still * receive funds this way, by having a separate account call * {withdrawPayments}. * * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. * Make sure you trust the recipient, or are either following the * checks-effects-interactions pattern or using {ReentrancyGuard}. * * @param payee Whose payments will be withdrawn. */ function withdrawPayments(address payable payee) public virtual { _escrow.withdraw(payee); } /** * @dev Returns the payments owed to an address. * @param dest The creditor's address. */ function payments(address dest) public view returns (uint256) { return _escrow.depositsOf(dest); } /** * @dev Called by the payer to store the sent amount as credit to be pulled. * Funds sent in this way are stored in an intermediate {Escrow} contract, so * there is no danger of them being spent before withdrawal. * * @param dest The destination address of the funds. * @param amount The amount to transfer. */ function _asyncTransfer(address dest, uint256 amount) internal virtual { _escrow.deposit{value: amount}(dest); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/escrow/Escrow.sol) pragma solidity ^0.8.0; import "../../access/Ownable.sol"; import "../Address.sol"; /** * @title Escrow * @dev Base escrow contract, holds funds designated for a payee until they * withdraw them. * * Intended usage: This contract (and derived escrow contracts) should be a * standalone contract, that only interacts with the contract that instantiated * it. That way, it is guaranteed that all Ether will be handled according to * the `Escrow` rules, and there is no need to check for payable functions or * transfers in the inheritance tree. The contract that uses the escrow as its * payment method should be its owner, and provide public methods redirecting * to the escrow's deposit and withdraw. */ contract Escrow is Ownable { using Address for address payable; event Deposited(address indexed payee, uint256 weiAmount); event Withdrawn(address indexed payee, uint256 weiAmount); mapping(address => uint256) private _deposits; function depositsOf(address payee) public view returns (uint256) { return _deposits[payee]; } /** * @dev Stores the sent amount as credit to be withdrawn. * @param payee The destination address of the funds. */ function deposit(address payee) public payable virtual onlyOwner { uint256 amount = msg.value; _deposits[payee] += amount; emit Deposited(payee, amount); } /** * @dev Withdraw accumulated balance for a payee, forwarding all gas to the * recipient. * * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. * Make sure you trust the recipient, or are either following the * checks-effects-interactions pattern or using {ReentrancyGuard}. * * @param payee The address whose funds will be withdrawn and transferred to. */ function withdraw(address payable payee) public virtual onlyOwner { uint256 payment = _deposits[payee]; _deposits[payee] = 0; payee.sendValue(payment); emit Withdrawn(payee, payment); } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"defaultTokenURI","type":"string"},{"internalType":"bytes32","name":"merkleroot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"AUCTION_BOTTOM_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AUCTION_INITIAL_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AUCTION_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_STARTING_AT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DISCOUNT_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_DEVMINT_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PRESALE_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PUBLIC_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_STEP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimRefund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"buyer","type":"address"}],"name":"claimableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenQuantity","type":"uint256"}],"name":"clearanceMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenQuantity","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"devMintPurchases","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devMintQtyMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"earning","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalPrice","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":"getPublicAllowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isDutchAuction","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"buyer","type":"address"}],"name":"isEligibleClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"normalPrice","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":"dest","type":"address"}],"name":"payments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenQuantity","type":"uint256"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presalePurchases","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleQtyMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleQtyRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenQuantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicQtyMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleAllowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicSalePurchases","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleQtyRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenQuantity","type":"uint256"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"raffleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"rafflePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raffleQtyMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raffleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"raffleSalePurchases","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raffleSaleQtyRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raffleSaleSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"uint256","name":"timestamp","type":"uint256"}],"name":"setAuctionTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setClaimStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setDefaultTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status_","type":"bool"}],"name":"setDutchAuctionStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleroot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price_","type":"uint256"}],"name":"setNormalPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price_","type":"uint256"}],"name":"setPresalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allowance","type":"uint256"}],"name":"setPublicAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price_","type":"uint256"}],"name":"setRafflePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleroot","type":"bytes32"}],"name":"setRaffleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum EasyDemons.Stage","name":"_stage","type":"uint8"}],"name":"setStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"buyer","type":"address"}],"name":"spentAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"buyer","type":"address"}],"name":"spentQty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stage","outputs":[{"internalType":"enum EasyDemons.Stage","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userToTokenBatchPriceData","outputs":[{"internalType":"uint256","name":"pricePaid","type":"uint256"},{"internalType":"uint256","name":"qtyMinted","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdrawPayments","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a0604052600d805462ffff0019166101001790556006600e556000600f55670853a0d2313c00006010556701cdda4faccd000060118190556012553480156200004857600080fd5b5060405162004fba38038062004fba8339810160408190526200006b916200025d565b604080518082018252600b81526a456173792044656d6f6e7360a81b6020808301918252835180850190945260058452642222a6a7a760d91b908401528151919291620000bb9160029162000193565b508051620000d190600390602084019062000193565b5050600160005550620000e43362000141565b6001600955604051620000f79062000222565b604051809103906000f08015801562000114573d6000803e3d6000fd5b506001600160a01b031660805281516200013690601d90602085019062000193565b50600a55506200037e565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001a19062000342565b90600052602060002090601f016020900481019282620001c5576000855562000210565b82601f10620001e057805160ff191683800117855562000210565b8280016001018555821562000210579182015b8281111562000210578251825591602001919060010190620001f3565b506200021e92915062000230565b5090565b6106d180620048e983390190565b5b808211156200021e576000815560010162000231565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156200027157600080fd5b82516001600160401b03808211156200028957600080fd5b818501915085601f8301126200029e57600080fd5b815181811115620002b357620002b362000247565b604051601f8201601f19908116603f01168101908382118183101715620002de57620002de62000247565b81604052828152602093508884848701011115620002fb57600080fd5b600091505b828210156200031f578482018401518183018501529083019062000300565b82821115620003315760008484830101525b969092015195979596505050505050565b600181811c908216806200035757607f821691505b6020821081036200037857634e487b7160e01b600052602260045260246000fd5b50919050565b608051614541620003a860003960008181611a0d01528181612f6001526138d101526145416000f3fe6080604052600436106105885760003560e01c806389902e27116102d5578063b88d4fde11610184578063e2982c21116100e1578063ebf0c71711610095578063f2fde38b1161006f578063f2fde38b14610eb8578063f45e218014610ed8578063f8d8679414610eed57600080fd5b8063ebf0c71714610e62578063ec897d5514610e78578063f190190214610e9857600080fd5b8063e4add693116100c6578063e4add69314610dee578063e8a3d48514610e04578063e985e9c514610e1957600080fd5b8063e2982c2114610db9578063e432388814610dd957600080fd5b8063c87b56dd11610138578063cf5ec7a01161011d578063cf5ec7a014610d72578063da39f57714610d88578063df78abe614610da457600080fd5b8063c87b56dd14610d32578063ce3cd99714610d5257600080fd5b8063c040e6b811610169578063c040e6b814610cdf578063c422c28314610d06578063c56acc8f14610d1c57600080fd5b8063b88d4fde14610c9f578063b964049314610cbf57600080fd5b8063a22cb46511610232578063a9e2ab11116101e6578063b499e6c6116101cb578063b499e6c614610c50578063b510c58914610c6f578063b5545a3c14610c8a57600080fd5b8063a9e2ab1114610c24578063b0f6f4b514610c3a57600080fd5b8063a6b513ee11610217578063a6b513ee14610be4578063a6e9184f14610bfa578063a83c79d914610c0f57600080fd5b8063a22cb46514610b97578063a68574d314610bb757600080fd5b8063945ec9dd116102895780639edeff131161026e5780639edeff1314610b35578063a035b1fe14610b62578063a125c82414610b7757600080fd5b8063945ec9dd14610b0a57806395d89b4114610b2057600080fd5b80638f24ebfd116102ba5780638f24ebfd14610abe578063902d55a514610ad4578063938e3d7b14610aea57600080fd5b806389902e2714610a8a5780638da5cb5b14610aa057600080fd5b80633ccfd60b1161043c5780636b8dc355116103995780637a3c3fc21161034d5780638768c24c116103275780638768c24c14610a2a57806388522fc014610a4a5780638988504914610a6a57600080fd5b80637a3c3fc2146109ca5780637cb64759146109dd5780638462151c146109fd57600080fd5b80636d031d0a1161037e5780636d031d0a1461097557806370a0823114610995578063715018a6146109b557600080fd5b80636b8dc3551461094a5780636c0360eb1461096057600080fd5b80635ae47bb8116103f05780636352211e116103d55780636352211e146108f4578063654f97a314610914578063662d41ba1461093457600080fd5b80635ae47bb8146108bf578063627804af146108d457600080fd5b806348a93a0d1161042157806348a93a0d1461085f578063551ff7ae1461087f57806355f804b31461089f57600080fd5b80633ccfd60b1461082a57806342842e0e1461083f57600080fd5b8063241e6119116104ea57806331b3eb941161049e578063359ee4d911610483578063359ee4d9146107c85780633a68ba58146107e85780633b77ea92146107fd57600080fd5b806331b3eb94146107885780633549345e146107a857600080fd5b80632a47f799116104cf5780632a47f7991461072a5780632b4519fb146107405780632db115441461077557600080fd5b8063241e6119146106ff5780632661365c1461071457600080fd5b8063095ea7b31161054157806318160ddd1161052657806318160ddd146106af5780631b59169d146106cc57806323b872dd146106df57600080fd5b8063095ea7b31461066d57806310b2d71a1461068f57600080fd5b80630395f769116105725780630395f769146105e657806306fdde0314610613578063081812fc1461063557600080fd5b80620e7fa81461058d57806301ffc9a7146105b6575b600080fd5b34801561059957600080fd5b506105a360115481565b6040519081526020015b60405180910390f35b3480156105c257600080fd5b506105d66105d1366004613ea6565b610f03565b60405190151581526020016105ad565b3480156105f257600080fd5b506105a3610601366004613ed8565b60186020526000908152604090205481565b34801561061f57600080fd5b50610628610fa0565b6040516105ad9190613f4d565b34801561064157600080fd5b50610655610650366004613f60565b611032565b6040516001600160a01b0390911681526020016105ad565b34801561067957600080fd5b5061068d610688366004613f79565b61108f565b005b34801561069b57600080fd5b5061068d6106aa366004613f60565b61114e565b3480156106bb57600080fd5b5060015460005403600019016105a3565b61068d6106da366004613fa5565b6111a0565b3480156106eb57600080fd5b5061068d6106fa366004614028565b611558565b34801561070b57600080fd5b506105a3611563565b34801561072057600080fd5b506105a3601e5481565b34801561073657600080fd5b506105a3610a6a81565b34801561074c57600080fd5b5061076061075b366004613f79565b611591565b604080519283526020830191909152016105ad565b61068d610783366004613f60565b6115cd565b34801561079457600080fd5b5061068d6107a3366004613ed8565b6119d5565b3480156107b457600080fd5b5061068d6107c3366004613f60565b611a6c565b3480156107d457600080fd5b5061068d6107e3366004613f60565b611ab9565b3480156107f457600080fd5b506105a3611b06565b34801561080957600080fd5b506105a3610818366004613ed8565b60166020526000908152604090205481565b34801561083657600080fd5b5061068d611b18565b34801561084b57600080fd5b5061068d61085a366004614028565b611c0b565b34801561086b57600080fd5b5061068d61087a366004613f60565b611c26565b34801561088b57600080fd5b5061068d61089a366004613f60565b611c73565b3480156108ab57600080fd5b5061068d6108ba366004614069565b611cc0565b3480156108cb57600080fd5b506105a3611d14565b3480156108e057600080fd5b5061068d6108ef366004613f79565b611d26565b34801561090057600080fd5b5061065561090f366004613f60565b611f0a565b34801561092057600080fd5b5061068d61092f3660046140f0565b611f1c565b34801561094057600080fd5b506105a360195481565b34801561095657600080fd5b506105a3610fa081565b34801561096c57600080fd5b50610628611f80565b34801561098157600080fd5b506105a3610990366004613ed8565b611f8f565b3480156109a157600080fd5b506105a36109b0366004613ed8565b612060565b3480156109c157600080fd5b5061068d6120c8565b61068d6109d8366004613fa5565b61211c565b3480156109e957600080fd5b5061068d6109f8366004613f60565b61247f565b348015610a0957600080fd5b50610a1d610a18366004613ed8565b6124cc565b6040516105ad919061410b565b348015610a3657600080fd5b5061068d610a45366004613f79565b61260c565b348015610a5657600080fd5b506105a3610a65366004613ed8565b612709565b348015610a7657600080fd5b506105a3610a85366004613ed8565b6127d2565b348015610a9657600080fd5b506105a360155481565b348015610aac57600080fd5b506008546001600160a01b0316610655565b348015610aca57600080fd5b506105a360135481565b348015610ae057600080fd5b506105a3611a0a81565b348015610af657600080fd5b5061068d610b05366004614069565b6128cf565b348015610b1657600080fd5b506105a360105481565b348015610b2c57600080fd5b50610628612923565b348015610b4157600080fd5b506105a3610b50366004613ed8565b601a6020526000908152604090205481565b348015610b6e57600080fd5b506105a3612932565b348015610b8357600080fd5b5061068d610b92366004614069565b612a13565b348015610ba357600080fd5b5061068d610bb236600461414f565b612a67565b348015610bc357600080fd5b506105a3610bd2366004613ed8565b60146020526000908152604090205481565b348015610bf057600080fd5b506105a3600f5481565b348015610c0657600080fd5b506105a3600081565b348015610c1b57600080fd5b50600e546105a3565b348015610c3057600080fd5b506105a3600e5481565b348015610c4657600080fd5b506105a3600b5481565b348015610c5c57600080fd5b50600d546105d690610100900460ff1681565b348015610c7b57600080fd5b506105a366b1a2bc2ec5000081565b348015610c9657600080fd5b5061068d612b15565b348015610cab57600080fd5b5061068d610cba36600461419a565b612ca4565b348015610ccb57600080fd5b5061068d610cda3660046140f0565b612cf5565b348015610ceb57600080fd5b50600d54610cf99060ff1681565b6040516105ad9190614290565b348015610d1257600080fd5b506105a361070881565b348015610d2857600080fd5b506105a3610f9681565b348015610d3e57600080fd5b50610628610d4d366004613f60565b612d57565b348015610d5e57600080fd5b5061068d610d6d3660046142b8565b612eab565b348015610d7e57600080fd5b506105a361014d81565b348015610d9457600080fd5b506105a3670853a0d2313c000081565b348015610db057600080fd5b50610628612f1a565b348015610dc557600080fd5b506105a3610dd4366004613ed8565b612f25565b348015610de557600080fd5b506105a3612fcd565b348015610dfa57600080fd5b506105a360175481565b348015610e1057600080fd5b50610628612fda565b348015610e2557600080fd5b506105d6610e343660046142d9565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610e6e57600080fd5b506105a3600a5481565b348015610e8457600080fd5b506105d6610e93366004613ed8565b612fe9565b348015610ea457600080fd5b5061068d610eb3366004613f60565b613083565b348015610ec457600080fd5b5061068d610ed3366004613ed8565b6130d0565b348015610ee457600080fd5b506105a3600c81565b348015610ef957600080fd5b506105a360125481565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610f6657506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610f9a57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060028054610faf90614312565b80601f0160208091040260200160405190810160405280929190818152602001828054610fdb90614312565b80156110285780601f10610ffd57610100808354040283529160200191611028565b820191906000526020600020905b81548152906001019060200180831161100b57829003601f168201915b5050505050905090565b600061103d826131a0565b611073576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061109a82611f0a565b9050806001600160a01b0316836001600160a01b0316036110e7576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b0382161480159061110757506111058133610e34565b155b1561113e576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111498383836131d9565b505050565b6008546001600160a01b0316331461119b5760405162461bcd60e51b815260206004820181905260248201526000805160206144ec83398151915260448201526064015b60405180910390fd5b601055565b3332146111ef5760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f74207468652073656e64657200000000000000006044820152606401611192565b6002600954036112415760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401611192565b6002600955604080513360601b6bffffffffffffffffffffffff1916602080830191909152603480830187905283518084039091018152605490920190925280519101206112c3905b83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061324292505050565b6112fc5760405162461bcd60e51b815260206004820152600a6024820152690696e76616c6964204d560b41b6044820152606401611192565b6003600d5460ff1660088111156113155761131561427a565b1461134f5760405162461bcd60e51b815260206004820152600a6024820152696e6f742061637469766560b01b6044820152606401611192565b600154600054611a0a918691036000190161136a9190614362565b11156113a75760405162461bcd60e51b815260206004820152600c60248201526b65786365656420616c6c6f6360a01b6044820152606401611192565b610f96846013546113b89190614362565b11156114065760405162461bcd60e51b815260206004820152601460248201527f6578636565642070726573616c6520616c6c6f630000000000000000000000006044820152606401611192565b828411156114495760405162461bcd60e51b815260206004820152601060248201526f6578636565642074727820616c6c6f7760801b6044820152606401611192565b336000908152601460205260409020548390611466908690614362565b11156114b45760405162461bcd60e51b815260206004820152601060248201527f6578636565642077616c20616c6c6f77000000000000000000000000000000006044820152606401611192565b34846114be612932565b6114c8919061437a565b146115055760405162461bcd60e51b815260206004820152600d60248201526c08aa89040dcdee840dac2e8c6d609b1b6044820152606401611192565b3360009081526014602052604081208054869290611524908490614362565b92505081905550836013600082825461153d9190614362565b9091555061154d90503385613251565b505060016009555050565b61114983838361326b565b6000601954611570611d14565b611578611b06565b6115829190614362565b61158c9190614399565b905090565b600c60205281600052604060002081815481106115ad57600080fd5b600091825260209091206002909102018054600190910154909250905082565b33321461161c5760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f74207468652073656e64657200000000000000006044820152606401611192565b60026009540361166e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401611192565b60026009556001600d5460ff16600881111561168c5761168c61427a565b146116c65760405162461bcd60e51b815260206004820152600a6024820152696e6f742061637469766560b01b6044820152606401611192565b600154600054611a0a91839103600019016116e19190614362565b111561171e5760405162461bcd60e51b815260206004820152600c60248201526b65786365656420616c6c6f6360a01b6044820152606401611192565b610a6a8160155461172f9190614362565b111561177d5760405162461bcd60e51b815260206004820152601360248201527f657863656564207075626c696320616c6c6f63000000000000000000000000006044820152606401611192565b600e548111156117c25760405162461bcd60e51b815260206004820152601060248201526f6578636565642074727820616c6c6f7760801b6044820152606401611192565b6000816117cd612932565b6117d7919061437a565b9050803410156118295760405162461bcd60e51b815260206004820152601360248201527f6574682076616c756520696e636f7272656374000000000000000000000000006044820152606401611192565b600d54610100900460ff16151560010361188f57601e5442101561188f5760405162461bcd60e51b815260206004820152601360248201527f61756374696f6e206e6f742073746172746564000000000000000000000000006044820152606401611192565b33600090815260166020526040812080548492906118ae908490614362565b9250508190555081601560008282546118c79190614362565b909155506118d790503383613251565b6118e23334846134a4565b6118ea611d14565b6000036118fd576118f9612932565b600f555b803411156119cc576000336119128334614399565b604051600081818185875af1925050503d806000811461194e576040519150601f19603f3d011682016040523d82523d6000602084013e611953565b606091505b50509050806119ca5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401611192565b505b50506001600955565b6040517f51cff8d90000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301527f000000000000000000000000000000000000000000000000000000000000000016906351cff8d990602401600060405180830381600087803b158015611a5157600080fd5b505af1158015611a65573d6000803e3d6000fd5b5050505050565b6008546001600160a01b03163314611ab45760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b601155565b6008546001600160a01b03163314611b015760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b601e55565b6000601354610f9661158c9190614399565b6008546001600160a01b03163314611b605760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b60006064611b6f47603261437a565b611b7991906143c6565b905060006064611b8a47602961437a565b611b9491906143c6565b905060006064611ba547600961437a565b611baf91906143c6565b9050611bcf73b5b8d71b82abf6bb21e432ff7e02edcdc840d7ca8461350e565b611bed73a4589d18b04dd6b6ca606f9cbfb3c3b5ac2dddd88361350e565b611149739a69b8134c7676db6b84a868d6bde5b989bb32cb8261350e565b61114983838360405180602001604052806000815250612ca4565b6008546001600160a01b03163314611c6e5760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b601255565b6008546001600160a01b03163314611cbb5760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b600e55565b6008546001600160a01b03163314611d085760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b611149601c8383613df7565b6000601554610a6a61158c9190614399565b6008546001600160a01b03163314611d6e5760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b6007600d5460ff166008811115611d8757611d8761427a565b14611dc15760405162461bcd60e51b815260206004820152600a6024820152696e6f742061637469766560b01b6044820152606401611192565b600154600054611a0a9183910360001901611ddc9190614362565b1115611e195760405162461bcd60e51b815260206004820152600c60248201526b65786365656420616c6c6f6360a01b6044820152606401611192565b610fa081601354601954611e2d9190614362565b611e379190614362565b1115611e855760405162461bcd60e51b815260206004820152601460248201527f6578636565642070726573616c6520616c6c6f630000000000000000000000006044820152606401611192565b61014d81601954611e969190614362565b1115611ee45760405162461bcd60e51b815260206004820152601460248201527f657863656564206465766d696e7420616c6c6f630000000000000000000000006044820152606401611192565b8060196000828254611ef69190614362565b90915550611f0690508282613251565b5050565b6000611f1582613627565b5192915050565b6008546001600160a01b03163314611f645760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b600d8054911515620100000262ff000019909216919091179055565b6060601c8054610faf90614312565b6001600160a01b0381166000908152600c6020908152604080832080548251818502810185019093528083528493849084015b8282101561200857838290600052602060002090600202016040518060400160405290816000820154815260200160018201548152505081526020019060010190611fc2565b5050505090506000805b82518110156120585782818151811061202d5761202d6143da565b602002602001015160000151826120449190614362565b915080612050816143f0565b915050612012565b509392505050565b60006001600160a01b0382166120a2576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146121105760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b61211a6000613769565b565b33321461216b5760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f74207468652073656e64657200000000000000006044820152606401611192565b6002600954036121bd5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401611192565b6002600955604080513360601b6bffffffffffffffffffffffff19166020808301919091526034808301879052835180840390910181526054909201909252805191012061220a9061128a565b6122435760405162461bcd60e51b815260206004820152600a6024820152690696e76616c6964204d560b41b6044820152606401611192565b6005600d5460ff16600881111561225c5761225c61427a565b146122965760405162461bcd60e51b815260206004820152600a6024820152696e6f742061637469766560b01b6044820152606401611192565b600154600054611a0a91869103600019016122b19190614362565b11156122ee5760405162461bcd60e51b815260206004820152600c60248201526b65786365656420616c6c6f6360a01b6044820152606401611192565b6122f6611563565b846017546123049190614362565b11156123525760405162461bcd60e51b815260206004820152601360248201527f65786365656420726166666c6520616c6c6f63000000000000000000000000006044820152606401611192565b828411156123955760405162461bcd60e51b815260206004820152601060248201526f6578636565642074727820616c6c6f7760801b6044820152606401611192565b61239f8385614362565b6123a833612060565b11156123f65760405162461bcd60e51b815260206004820152601060248201527f6578636565642077616c20616c6c6f77000000000000000000000000000000006044820152606401611192565b3484612400612932565b61240a919061437a565b146124475760405162461bcd60e51b815260206004820152600d60248201526c08aa89040dcdee840dac2e8c6d609b1b6044820152606401611192565b3360009081526018602052604081208054869290612466908490614362565b92505081905550836017600082825461153d9190614362565b6008546001600160a01b031633146124c75760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b600a55565b606060006124d983612060565b905060008167ffffffffffffffff8111156124f6576124f6614184565b60405190808252806020026020018201604052801561251f578160200160208202803683370190505b5090506000806125386001546000546000199190030190565b905060005b81811015612601576000612550826131a0565b905080156125aa57876001600160a01b031661256b83611f0a565b6001600160a01b0316036125a5578185858151811061258c5761258c6143da565b6020908102919091010152836125a1816143f0565b9450505b6125ee565b801580156125db5750846125bf600188614399565b815181106125cf576125cf6143da565b60200260200101516000145b156125ee57826125ea816143f0565b9350505b50806125f9816143f0565b91505061253d565b509195945050505050565b6008546001600160a01b031633146126545760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b6008600d5460ff16600881111561266d5761266d61427a565b146126a75760405162461bcd60e51b815260206004820152600a6024820152696e6f742061637469766560b01b6044820152606401611192565b600154600054611a0a91839103600019016126c29190614362565b11156126ff5760405162461bcd60e51b815260206004820152600c60248201526b65786365656420616c6c6f6360a01b6044820152606401611192565b611f068282613251565b6001600160a01b0381166000908152600c6020908152604080832080548251818502810185019093528083528493849084015b828210156127825783829060005260206000209060020201604051806040016040529081600082015481526020016001820154815250508152602001906001019061273c565b5050505090506000805b8251811015612058578281815181106127a7576127a76143da565b602002602001015160200151826127be9190614362565b9150806127ca816143f0565b91505061278c565b6001600160a01b0381166000908152600c6020908152604080832080548251818502810185019093528083528493849084015b8282101561284b57838290600052602060002090600202016040518060400160405290816000820154815260200160018201548152505081526020019060010190612805565b5050505090506000805b825181101561205857828181518110612870576128706143da565b602002602001015160200151600f54612889919061437a565b83828151811061289b5761289b6143da565b6020026020010151600001516128b19190614399565b6128bb9083614362565b9150806128c7816143f0565b915050612855565b6008546001600160a01b031633146129175760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b611149601b8383613df7565b606060038054610faf90614312565b60006001600d5460ff16600881111561294d5761294d61427a565b1480156129675750600d5460ff6101009091041615156001145b156129745761158c6137c8565b6001600d5460ff16600881111561298d5761298d61427a565b1480156129a25750600d54610100900460ff16155b156129ae575060105490565b6003600d5460ff1660088111156129c7576129c761427a565b036129e7576064600f54603c6129dd919061437a565b61158c91906143c6565b6005600d5460ff166008811115612a0057612a0061427a565b03612a0c575060125490565b5060105490565b6008546001600160a01b03163314612a5b5760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b611149601d8383613df7565b336001600160a01b03831603612aa9576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600260095403612b675760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401611192565b6002600955600d5462010000900460ff161515600114612bc95760405162461bcd60e51b815260206004820152600b60248201527f6e6f7420656e61626c65640000000000000000000000000000000000000000006044820152606401611192565b612bd233612fe9565b1515600114612c235760405162461bcd60e51b815260206004820152600c60248201527f6e6f7420656c696769626c6500000000000000000000000000000000000000006044820152606401611192565b6000612c2e336127d2565b905080471015612c805760405162461bcd60e51b815260206004820152601260248201527f6e6f7420656e6f7567682062616c616e636500000000000000000000000000006044820152606401611192565b612c8933613838565b612c933382613899565b612c9c336119d5565b506001600955565b612caf84848461326b565b6001600160a01b0383163b15158015612cd15750612ccf84848484613933565b155b15612cef576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b03163314612d3d5760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b600d80549115156101000261ff0019909216919091179055565b6060612d62826131a0565b612dd45760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401611192565b6000612dde611f80565b90506000815111612e7957601d8054612df690614312565b80601f0160208091040260200160405190810160405280929190818152602001828054612e2290614312565b8015612e6f5780601f10612e4457610100808354040283529160200191612e6f565b820191906000526020600020905b815481529060010190602001808311612e5257829003601f168201915b5050505050612ea4565b80612e8384613a1f565b604051602001612e94929190614409565b6040516020818303038152906040525b9392505050565b6008546001600160a01b03163314612ef35760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b600d805482919060ff19166001836008811115612f1257612f1261427a565b021790555050565b606061158c47613a1f565b6040517fe3a9db1a0000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301526000917f00000000000000000000000000000000000000000000000000000000000000009091169063e3a9db1a90602401602060405180830381865afa158015612fa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9a9190614438565b6000601754611582611563565b6060601b8054610faf90614312565b6001600160a01b0381166000908152600c6020908152604080832080548251818502810185019093528083528493849084015b828210156130625783829060005260206000209060020201604051806040016040529081600082015481526020016001820154815250508152602001906001019061301c565b505050509050805160000361307a5750600092915050565b50600192915050565b6008546001600160a01b031633146130cb5760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b600b55565b6008546001600160a01b031633146131185760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b6001600160a01b0381166131945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401611192565b61319d81613769565b50565b6000816001111580156131b4575060005482105b8015610f9a575050600090815260046020526040902054600160e01b900460ff161590565b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000612ea482600a5485613b54565b611f06828260405180602001604052806000815250613b6a565b600061327682613627565b9050836001600160a01b031681600001516001600160a01b0316146132c7576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b03861614806132e557506132e58533610e34565b806133005750336132f584611032565b6001600160a01b0316145b905080613339576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416613379576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613385600084876131d9565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661345b57600054821461345b578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611a65565b600d54610100900460ff1615156000036134bd57505050565b6001600160a01b039092166000908152600c60209081526040808320815180830190925293815280820194855283546001818101865594845291909220915160029091029091019081559151910155565b8047101561355e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401611192565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146135ab576040519150601f19603f3d011682016040523d82523d6000602084013e6135b0565b606091505b50509050806111495760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401611192565b60408051606081018252600080825260208201819052918101919091528180600111158015613657575060005481105b1561373757600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906137355780516001600160a01b0316156136cb579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215613730579392505050565b6136cb565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600042601e5411156137da5750600090565b6000601e54426137ea9190614399565b905060006137fa610708836143c6565b9050600c81101561382f576138168166b1a2bc2ec5000061437a565b61382890670853a0d2313c0000614399565b9250505090565b60009250505090565b6001600160a01b0381166000908152600c6020526040902080545b8015611149578180548061386957613869614451565b6000828152602081206002600019909301928302018181556001015590558061389181614467565b915050613853565b6040517ff340fa010000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063f340fa019083906024016000604051808303818588803b15801561391657600080fd5b505af115801561392a573d6000803e3d6000fd5b50505050505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061396890339089908890889060040161447e565b6020604051808303816000875af19250505080156139a3575060408051601f3d908101601f191682019092526139a0918101906144ba565b60015b613a01573d8080156139d1576040519150601f19603f3d011682016040523d82523d6000602084013e6139d6565b606091505b5080516000036139f9576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606081600003613a6257505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613a8c5780613a76816143f0565b9150613a859050600a836143c6565b9150613a66565b60008167ffffffffffffffff811115613aa757613aa7614184565b6040519080825280601f01601f191660200182016040528015613ad1576020820181803683370190505b5090505b8415613a1757613ae6600183614399565b9150613af3600a866144d7565b613afe906030614362565b60f81b818381518110613b1357613b136143da565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613b4d600a866143c6565b9450613ad5565b600082613b618584613b77565b14949350505050565b6111498383836001613be3565b600081815b8451811015612058576000858281518110613b9957613b996143da565b60200260200101519050808311613bbf5760008381526020829052604090209250613bd0565b600081815260208490526040902092505b5080613bdb816143f0565b915050613b7c565b6000546001600160a01b038516613c26576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600003613c60576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015613d2157506001600160a01b0387163b15155b15613da9575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4613d726000888480600101955088613933565b613d8f576040516368d2bf6b60e11b815260040160405180910390fd5b808203613d27578260005414613da457600080fd5b613dee565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808203613daa575b50600055611a65565b828054613e0390614312565b90600052602060002090601f016020900481019282613e255760008555613e6b565b82601f10613e3e5782800160ff19823516178555613e6b565b82800160010185558215613e6b579182015b82811115613e6b578235825591602001919060010190613e50565b50613e77929150613e7b565b5090565b5b80821115613e775760008155600101613e7c565b6001600160e01b03198116811461319d57600080fd5b600060208284031215613eb857600080fd5b8135612ea481613e90565b6001600160a01b038116811461319d57600080fd5b600060208284031215613eea57600080fd5b8135612ea481613ec3565b60005b83811015613f10578181015183820152602001613ef8565b83811115612cef5750506000910152565b60008151808452613f39816020860160208601613ef5565b601f01601f19169290920160200192915050565b602081526000612ea46020830184613f21565b600060208284031215613f7257600080fd5b5035919050565b60008060408385031215613f8c57600080fd5b8235613f9781613ec3565b946020939093013593505050565b60008060008060608587031215613fbb57600080fd5b8435935060208501359250604085013567ffffffffffffffff80821115613fe157600080fd5b818701915087601f830112613ff557600080fd5b81358181111561400457600080fd5b8860208260051b850101111561401957600080fd5b95989497505060200194505050565b60008060006060848603121561403d57600080fd5b833561404881613ec3565b9250602084013561405881613ec3565b929592945050506040919091013590565b6000806020838503121561407c57600080fd5b823567ffffffffffffffff8082111561409457600080fd5b818501915085601f8301126140a857600080fd5b8135818111156140b757600080fd5b8660208285010111156140c957600080fd5b60209290920196919550909350505050565b803580151581146140eb57600080fd5b919050565b60006020828403121561410257600080fd5b612ea4826140db565b6020808252825182820181905260009190848201906040850190845b8181101561414357835183529284019291840191600101614127565b50909695505050505050565b6000806040838503121561416257600080fd5b823561416d81613ec3565b915061417b602084016140db565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156141b057600080fd5b84356141bb81613ec3565b935060208501356141cb81613ec3565b925060408501359150606085013567ffffffffffffffff808211156141ef57600080fd5b818701915087601f83011261420357600080fd5b81358181111561421557614215614184565b604051601f8201601f19908116603f0116810190838211818310171561423d5761423d614184565b816040528281528a602084870101111561425657600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b634e487b7160e01b600052602160045260246000fd5b60208101600983106142b257634e487b7160e01b600052602160045260246000fd5b91905290565b6000602082840312156142ca57600080fd5b813560098110612ea457600080fd5b600080604083850312156142ec57600080fd5b82356142f781613ec3565b9150602083013561430781613ec3565b809150509250929050565b600181811c9082168061432657607f821691505b60208210810361434657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156143755761437561434c565b500190565b60008160001904831182151516156143945761439461434c565b500290565b6000828210156143ab576143ab61434c565b500390565b634e487b7160e01b600052601260045260246000fd5b6000826143d5576143d56143b0565b500490565b634e487b7160e01b600052603260045260246000fd5b6000600182016144025761440261434c565b5060010190565b6000835161441b818460208801613ef5565b83519083019061442f818360208801613ef5565b01949350505050565b60006020828403121561444a57600080fd5b5051919050565b634e487b7160e01b600052603160045260246000fd5b6000816144765761447661434c565b506000190190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526144b06080830184613f21565b9695505050505050565b6000602082840312156144cc57600080fd5b8151612ea481613e90565b6000826144e6576144e66143b0565b50069056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220329061d978621035598c41f940e1d21a6a8f56f0daa73f89fc41e7cfaba5a1cb64736f6c634300080d0033608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6106538061007e6000396000f3fe6080604052600436106100655760003560e01c8063e3a9db1a11610043578063e3a9db1a146100ce578063f2fde38b14610112578063f340fa011461013257600080fd5b806351cff8d91461006a578063715018a61461008c5780638da5cb5b146100a1575b600080fd5b34801561007657600080fd5b5061008a6100853660046105ba565b610145565b005b34801561009857600080fd5b5061008a610213565b3480156100ad57600080fd5b506000546040516001600160a01b0390911681526020015b60405180910390f35b3480156100da57600080fd5b506101046100e93660046105ba565b6001600160a01b031660009081526001602052604090205490565b6040519081526020016100c5565b34801561011e57600080fd5b5061008a61012d3660046105ba565b610279565b61008a6101403660046105ba565b61035b565b6000546001600160a01b031633146101a45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b03811660008181526001602052604081208054919055906101cc908261041f565b816001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d58260405161020791815260200190565b60405180910390a25050565b6000546001600160a01b0316331461026d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161019b565b610277600061053d565b565b6000546001600160a01b031633146102d35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161019b565b6001600160a01b03811661034f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161019b565b6103588161053d565b50565b6000546001600160a01b031633146103b55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161019b565b6001600160a01b0381166000908152600160205260408120805434928392916103df9084906105de565b90915550506040518181526001600160a01b038316907f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c490602001610207565b8047101561046f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161019b565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146104bc576040519150601f19603f3d011682016040523d82523d6000602084013e6104c1565b606091505b50509050806105385760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161019b565b505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038116811461035857600080fd5b6000602082840312156105cc57600080fd5b81356105d7816105a5565b9392505050565b60008219821115610618577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b50019056fea264697066735822122091e1046087cdd1605c393735d90e8132dad2062729da4e5afbc4cd4336e64fd464736f6c634300080d0033000000000000000000000000000000000000000000000000000000000000004088414228ac1869951548526f27ded570f68f3f3fdabe0a9f6433c092ba36dd9a0000000000000000000000000000000000000000000000000000000000000037697066733a2f2f516d554447554d46556350446b7254585939333679746b7a77645276733954415043364147435771544b4d4843512f30000000000000000000
Deployed Bytecode
0x6080604052600436106105885760003560e01c806389902e27116102d5578063b88d4fde11610184578063e2982c21116100e1578063ebf0c71711610095578063f2fde38b1161006f578063f2fde38b14610eb8578063f45e218014610ed8578063f8d8679414610eed57600080fd5b8063ebf0c71714610e62578063ec897d5514610e78578063f190190214610e9857600080fd5b8063e4add693116100c6578063e4add69314610dee578063e8a3d48514610e04578063e985e9c514610e1957600080fd5b8063e2982c2114610db9578063e432388814610dd957600080fd5b8063c87b56dd11610138578063cf5ec7a01161011d578063cf5ec7a014610d72578063da39f57714610d88578063df78abe614610da457600080fd5b8063c87b56dd14610d32578063ce3cd99714610d5257600080fd5b8063c040e6b811610169578063c040e6b814610cdf578063c422c28314610d06578063c56acc8f14610d1c57600080fd5b8063b88d4fde14610c9f578063b964049314610cbf57600080fd5b8063a22cb46511610232578063a9e2ab11116101e6578063b499e6c6116101cb578063b499e6c614610c50578063b510c58914610c6f578063b5545a3c14610c8a57600080fd5b8063a9e2ab1114610c24578063b0f6f4b514610c3a57600080fd5b8063a6b513ee11610217578063a6b513ee14610be4578063a6e9184f14610bfa578063a83c79d914610c0f57600080fd5b8063a22cb46514610b97578063a68574d314610bb757600080fd5b8063945ec9dd116102895780639edeff131161026e5780639edeff1314610b35578063a035b1fe14610b62578063a125c82414610b7757600080fd5b8063945ec9dd14610b0a57806395d89b4114610b2057600080fd5b80638f24ebfd116102ba5780638f24ebfd14610abe578063902d55a514610ad4578063938e3d7b14610aea57600080fd5b806389902e2714610a8a5780638da5cb5b14610aa057600080fd5b80633ccfd60b1161043c5780636b8dc355116103995780637a3c3fc21161034d5780638768c24c116103275780638768c24c14610a2a57806388522fc014610a4a5780638988504914610a6a57600080fd5b80637a3c3fc2146109ca5780637cb64759146109dd5780638462151c146109fd57600080fd5b80636d031d0a1161037e5780636d031d0a1461097557806370a0823114610995578063715018a6146109b557600080fd5b80636b8dc3551461094a5780636c0360eb1461096057600080fd5b80635ae47bb8116103f05780636352211e116103d55780636352211e146108f4578063654f97a314610914578063662d41ba1461093457600080fd5b80635ae47bb8146108bf578063627804af146108d457600080fd5b806348a93a0d1161042157806348a93a0d1461085f578063551ff7ae1461087f57806355f804b31461089f57600080fd5b80633ccfd60b1461082a57806342842e0e1461083f57600080fd5b8063241e6119116104ea57806331b3eb941161049e578063359ee4d911610483578063359ee4d9146107c85780633a68ba58146107e85780633b77ea92146107fd57600080fd5b806331b3eb94146107885780633549345e146107a857600080fd5b80632a47f799116104cf5780632a47f7991461072a5780632b4519fb146107405780632db115441461077557600080fd5b8063241e6119146106ff5780632661365c1461071457600080fd5b8063095ea7b31161054157806318160ddd1161052657806318160ddd146106af5780631b59169d146106cc57806323b872dd146106df57600080fd5b8063095ea7b31461066d57806310b2d71a1461068f57600080fd5b80630395f769116105725780630395f769146105e657806306fdde0314610613578063081812fc1461063557600080fd5b80620e7fa81461058d57806301ffc9a7146105b6575b600080fd5b34801561059957600080fd5b506105a360115481565b6040519081526020015b60405180910390f35b3480156105c257600080fd5b506105d66105d1366004613ea6565b610f03565b60405190151581526020016105ad565b3480156105f257600080fd5b506105a3610601366004613ed8565b60186020526000908152604090205481565b34801561061f57600080fd5b50610628610fa0565b6040516105ad9190613f4d565b34801561064157600080fd5b50610655610650366004613f60565b611032565b6040516001600160a01b0390911681526020016105ad565b34801561067957600080fd5b5061068d610688366004613f79565b61108f565b005b34801561069b57600080fd5b5061068d6106aa366004613f60565b61114e565b3480156106bb57600080fd5b5060015460005403600019016105a3565b61068d6106da366004613fa5565b6111a0565b3480156106eb57600080fd5b5061068d6106fa366004614028565b611558565b34801561070b57600080fd5b506105a3611563565b34801561072057600080fd5b506105a3601e5481565b34801561073657600080fd5b506105a3610a6a81565b34801561074c57600080fd5b5061076061075b366004613f79565b611591565b604080519283526020830191909152016105ad565b61068d610783366004613f60565b6115cd565b34801561079457600080fd5b5061068d6107a3366004613ed8565b6119d5565b3480156107b457600080fd5b5061068d6107c3366004613f60565b611a6c565b3480156107d457600080fd5b5061068d6107e3366004613f60565b611ab9565b3480156107f457600080fd5b506105a3611b06565b34801561080957600080fd5b506105a3610818366004613ed8565b60166020526000908152604090205481565b34801561083657600080fd5b5061068d611b18565b34801561084b57600080fd5b5061068d61085a366004614028565b611c0b565b34801561086b57600080fd5b5061068d61087a366004613f60565b611c26565b34801561088b57600080fd5b5061068d61089a366004613f60565b611c73565b3480156108ab57600080fd5b5061068d6108ba366004614069565b611cc0565b3480156108cb57600080fd5b506105a3611d14565b3480156108e057600080fd5b5061068d6108ef366004613f79565b611d26565b34801561090057600080fd5b5061065561090f366004613f60565b611f0a565b34801561092057600080fd5b5061068d61092f3660046140f0565b611f1c565b34801561094057600080fd5b506105a360195481565b34801561095657600080fd5b506105a3610fa081565b34801561096c57600080fd5b50610628611f80565b34801561098157600080fd5b506105a3610990366004613ed8565b611f8f565b3480156109a157600080fd5b506105a36109b0366004613ed8565b612060565b3480156109c157600080fd5b5061068d6120c8565b61068d6109d8366004613fa5565b61211c565b3480156109e957600080fd5b5061068d6109f8366004613f60565b61247f565b348015610a0957600080fd5b50610a1d610a18366004613ed8565b6124cc565b6040516105ad919061410b565b348015610a3657600080fd5b5061068d610a45366004613f79565b61260c565b348015610a5657600080fd5b506105a3610a65366004613ed8565b612709565b348015610a7657600080fd5b506105a3610a85366004613ed8565b6127d2565b348015610a9657600080fd5b506105a360155481565b348015610aac57600080fd5b506008546001600160a01b0316610655565b348015610aca57600080fd5b506105a360135481565b348015610ae057600080fd5b506105a3611a0a81565b348015610af657600080fd5b5061068d610b05366004614069565b6128cf565b348015610b1657600080fd5b506105a360105481565b348015610b2c57600080fd5b50610628612923565b348015610b4157600080fd5b506105a3610b50366004613ed8565b601a6020526000908152604090205481565b348015610b6e57600080fd5b506105a3612932565b348015610b8357600080fd5b5061068d610b92366004614069565b612a13565b348015610ba357600080fd5b5061068d610bb236600461414f565b612a67565b348015610bc357600080fd5b506105a3610bd2366004613ed8565b60146020526000908152604090205481565b348015610bf057600080fd5b506105a3600f5481565b348015610c0657600080fd5b506105a3600081565b348015610c1b57600080fd5b50600e546105a3565b348015610c3057600080fd5b506105a3600e5481565b348015610c4657600080fd5b506105a3600b5481565b348015610c5c57600080fd5b50600d546105d690610100900460ff1681565b348015610c7b57600080fd5b506105a366b1a2bc2ec5000081565b348015610c9657600080fd5b5061068d612b15565b348015610cab57600080fd5b5061068d610cba36600461419a565b612ca4565b348015610ccb57600080fd5b5061068d610cda3660046140f0565b612cf5565b348015610ceb57600080fd5b50600d54610cf99060ff1681565b6040516105ad9190614290565b348015610d1257600080fd5b506105a361070881565b348015610d2857600080fd5b506105a3610f9681565b348015610d3e57600080fd5b50610628610d4d366004613f60565b612d57565b348015610d5e57600080fd5b5061068d610d6d3660046142b8565b612eab565b348015610d7e57600080fd5b506105a361014d81565b348015610d9457600080fd5b506105a3670853a0d2313c000081565b348015610db057600080fd5b50610628612f1a565b348015610dc557600080fd5b506105a3610dd4366004613ed8565b612f25565b348015610de557600080fd5b506105a3612fcd565b348015610dfa57600080fd5b506105a360175481565b348015610e1057600080fd5b50610628612fda565b348015610e2557600080fd5b506105d6610e343660046142d9565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610e6e57600080fd5b506105a3600a5481565b348015610e8457600080fd5b506105d6610e93366004613ed8565b612fe9565b348015610ea457600080fd5b5061068d610eb3366004613f60565b613083565b348015610ec457600080fd5b5061068d610ed3366004613ed8565b6130d0565b348015610ee457600080fd5b506105a3600c81565b348015610ef957600080fd5b506105a360125481565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610f6657506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610f9a57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060028054610faf90614312565b80601f0160208091040260200160405190810160405280929190818152602001828054610fdb90614312565b80156110285780601f10610ffd57610100808354040283529160200191611028565b820191906000526020600020905b81548152906001019060200180831161100b57829003601f168201915b5050505050905090565b600061103d826131a0565b611073576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061109a82611f0a565b9050806001600160a01b0316836001600160a01b0316036110e7576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b0382161480159061110757506111058133610e34565b155b1561113e576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111498383836131d9565b505050565b6008546001600160a01b0316331461119b5760405162461bcd60e51b815260206004820181905260248201526000805160206144ec83398151915260448201526064015b60405180910390fd5b601055565b3332146111ef5760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f74207468652073656e64657200000000000000006044820152606401611192565b6002600954036112415760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401611192565b6002600955604080513360601b6bffffffffffffffffffffffff1916602080830191909152603480830187905283518084039091018152605490920190925280519101206112c3905b83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061324292505050565b6112fc5760405162461bcd60e51b815260206004820152600a6024820152690696e76616c6964204d560b41b6044820152606401611192565b6003600d5460ff1660088111156113155761131561427a565b1461134f5760405162461bcd60e51b815260206004820152600a6024820152696e6f742061637469766560b01b6044820152606401611192565b600154600054611a0a918691036000190161136a9190614362565b11156113a75760405162461bcd60e51b815260206004820152600c60248201526b65786365656420616c6c6f6360a01b6044820152606401611192565b610f96846013546113b89190614362565b11156114065760405162461bcd60e51b815260206004820152601460248201527f6578636565642070726573616c6520616c6c6f630000000000000000000000006044820152606401611192565b828411156114495760405162461bcd60e51b815260206004820152601060248201526f6578636565642074727820616c6c6f7760801b6044820152606401611192565b336000908152601460205260409020548390611466908690614362565b11156114b45760405162461bcd60e51b815260206004820152601060248201527f6578636565642077616c20616c6c6f77000000000000000000000000000000006044820152606401611192565b34846114be612932565b6114c8919061437a565b146115055760405162461bcd60e51b815260206004820152600d60248201526c08aa89040dcdee840dac2e8c6d609b1b6044820152606401611192565b3360009081526014602052604081208054869290611524908490614362565b92505081905550836013600082825461153d9190614362565b9091555061154d90503385613251565b505060016009555050565b61114983838361326b565b6000601954611570611d14565b611578611b06565b6115829190614362565b61158c9190614399565b905090565b600c60205281600052604060002081815481106115ad57600080fd5b600091825260209091206002909102018054600190910154909250905082565b33321461161c5760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f74207468652073656e64657200000000000000006044820152606401611192565b60026009540361166e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401611192565b60026009556001600d5460ff16600881111561168c5761168c61427a565b146116c65760405162461bcd60e51b815260206004820152600a6024820152696e6f742061637469766560b01b6044820152606401611192565b600154600054611a0a91839103600019016116e19190614362565b111561171e5760405162461bcd60e51b815260206004820152600c60248201526b65786365656420616c6c6f6360a01b6044820152606401611192565b610a6a8160155461172f9190614362565b111561177d5760405162461bcd60e51b815260206004820152601360248201527f657863656564207075626c696320616c6c6f63000000000000000000000000006044820152606401611192565b600e548111156117c25760405162461bcd60e51b815260206004820152601060248201526f6578636565642074727820616c6c6f7760801b6044820152606401611192565b6000816117cd612932565b6117d7919061437a565b9050803410156118295760405162461bcd60e51b815260206004820152601360248201527f6574682076616c756520696e636f7272656374000000000000000000000000006044820152606401611192565b600d54610100900460ff16151560010361188f57601e5442101561188f5760405162461bcd60e51b815260206004820152601360248201527f61756374696f6e206e6f742073746172746564000000000000000000000000006044820152606401611192565b33600090815260166020526040812080548492906118ae908490614362565b9250508190555081601560008282546118c79190614362565b909155506118d790503383613251565b6118e23334846134a4565b6118ea611d14565b6000036118fd576118f9612932565b600f555b803411156119cc576000336119128334614399565b604051600081818185875af1925050503d806000811461194e576040519150601f19603f3d011682016040523d82523d6000602084013e611953565b606091505b50509050806119ca5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401611192565b505b50506001600955565b6040517f51cff8d90000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301527f00000000000000000000000013645e23ea407bc57626eb82cc981502a03785c116906351cff8d990602401600060405180830381600087803b158015611a5157600080fd5b505af1158015611a65573d6000803e3d6000fd5b5050505050565b6008546001600160a01b03163314611ab45760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b601155565b6008546001600160a01b03163314611b015760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b601e55565b6000601354610f9661158c9190614399565b6008546001600160a01b03163314611b605760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b60006064611b6f47603261437a565b611b7991906143c6565b905060006064611b8a47602961437a565b611b9491906143c6565b905060006064611ba547600961437a565b611baf91906143c6565b9050611bcf73b5b8d71b82abf6bb21e432ff7e02edcdc840d7ca8461350e565b611bed73a4589d18b04dd6b6ca606f9cbfb3c3b5ac2dddd88361350e565b611149739a69b8134c7676db6b84a868d6bde5b989bb32cb8261350e565b61114983838360405180602001604052806000815250612ca4565b6008546001600160a01b03163314611c6e5760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b601255565b6008546001600160a01b03163314611cbb5760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b600e55565b6008546001600160a01b03163314611d085760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b611149601c8383613df7565b6000601554610a6a61158c9190614399565b6008546001600160a01b03163314611d6e5760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b6007600d5460ff166008811115611d8757611d8761427a565b14611dc15760405162461bcd60e51b815260206004820152600a6024820152696e6f742061637469766560b01b6044820152606401611192565b600154600054611a0a9183910360001901611ddc9190614362565b1115611e195760405162461bcd60e51b815260206004820152600c60248201526b65786365656420616c6c6f6360a01b6044820152606401611192565b610fa081601354601954611e2d9190614362565b611e379190614362565b1115611e855760405162461bcd60e51b815260206004820152601460248201527f6578636565642070726573616c6520616c6c6f630000000000000000000000006044820152606401611192565b61014d81601954611e969190614362565b1115611ee45760405162461bcd60e51b815260206004820152601460248201527f657863656564206465766d696e7420616c6c6f630000000000000000000000006044820152606401611192565b8060196000828254611ef69190614362565b90915550611f0690508282613251565b5050565b6000611f1582613627565b5192915050565b6008546001600160a01b03163314611f645760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b600d8054911515620100000262ff000019909216919091179055565b6060601c8054610faf90614312565b6001600160a01b0381166000908152600c6020908152604080832080548251818502810185019093528083528493849084015b8282101561200857838290600052602060002090600202016040518060400160405290816000820154815260200160018201548152505081526020019060010190611fc2565b5050505090506000805b82518110156120585782818151811061202d5761202d6143da565b602002602001015160000151826120449190614362565b915080612050816143f0565b915050612012565b509392505050565b60006001600160a01b0382166120a2576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146121105760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b61211a6000613769565b565b33321461216b5760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f74207468652073656e64657200000000000000006044820152606401611192565b6002600954036121bd5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401611192565b6002600955604080513360601b6bffffffffffffffffffffffff19166020808301919091526034808301879052835180840390910181526054909201909252805191012061220a9061128a565b6122435760405162461bcd60e51b815260206004820152600a6024820152690696e76616c6964204d560b41b6044820152606401611192565b6005600d5460ff16600881111561225c5761225c61427a565b146122965760405162461bcd60e51b815260206004820152600a6024820152696e6f742061637469766560b01b6044820152606401611192565b600154600054611a0a91869103600019016122b19190614362565b11156122ee5760405162461bcd60e51b815260206004820152600c60248201526b65786365656420616c6c6f6360a01b6044820152606401611192565b6122f6611563565b846017546123049190614362565b11156123525760405162461bcd60e51b815260206004820152601360248201527f65786365656420726166666c6520616c6c6f63000000000000000000000000006044820152606401611192565b828411156123955760405162461bcd60e51b815260206004820152601060248201526f6578636565642074727820616c6c6f7760801b6044820152606401611192565b61239f8385614362565b6123a833612060565b11156123f65760405162461bcd60e51b815260206004820152601060248201527f6578636565642077616c20616c6c6f77000000000000000000000000000000006044820152606401611192565b3484612400612932565b61240a919061437a565b146124475760405162461bcd60e51b815260206004820152600d60248201526c08aa89040dcdee840dac2e8c6d609b1b6044820152606401611192565b3360009081526018602052604081208054869290612466908490614362565b92505081905550836017600082825461153d9190614362565b6008546001600160a01b031633146124c75760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b600a55565b606060006124d983612060565b905060008167ffffffffffffffff8111156124f6576124f6614184565b60405190808252806020026020018201604052801561251f578160200160208202803683370190505b5090506000806125386001546000546000199190030190565b905060005b81811015612601576000612550826131a0565b905080156125aa57876001600160a01b031661256b83611f0a565b6001600160a01b0316036125a5578185858151811061258c5761258c6143da565b6020908102919091010152836125a1816143f0565b9450505b6125ee565b801580156125db5750846125bf600188614399565b815181106125cf576125cf6143da565b60200260200101516000145b156125ee57826125ea816143f0565b9350505b50806125f9816143f0565b91505061253d565b509195945050505050565b6008546001600160a01b031633146126545760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b6008600d5460ff16600881111561266d5761266d61427a565b146126a75760405162461bcd60e51b815260206004820152600a6024820152696e6f742061637469766560b01b6044820152606401611192565b600154600054611a0a91839103600019016126c29190614362565b11156126ff5760405162461bcd60e51b815260206004820152600c60248201526b65786365656420616c6c6f6360a01b6044820152606401611192565b611f068282613251565b6001600160a01b0381166000908152600c6020908152604080832080548251818502810185019093528083528493849084015b828210156127825783829060005260206000209060020201604051806040016040529081600082015481526020016001820154815250508152602001906001019061273c565b5050505090506000805b8251811015612058578281815181106127a7576127a76143da565b602002602001015160200151826127be9190614362565b9150806127ca816143f0565b91505061278c565b6001600160a01b0381166000908152600c6020908152604080832080548251818502810185019093528083528493849084015b8282101561284b57838290600052602060002090600202016040518060400160405290816000820154815260200160018201548152505081526020019060010190612805565b5050505090506000805b825181101561205857828181518110612870576128706143da565b602002602001015160200151600f54612889919061437a565b83828151811061289b5761289b6143da565b6020026020010151600001516128b19190614399565b6128bb9083614362565b9150806128c7816143f0565b915050612855565b6008546001600160a01b031633146129175760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b611149601b8383613df7565b606060038054610faf90614312565b60006001600d5460ff16600881111561294d5761294d61427a565b1480156129675750600d5460ff6101009091041615156001145b156129745761158c6137c8565b6001600d5460ff16600881111561298d5761298d61427a565b1480156129a25750600d54610100900460ff16155b156129ae575060105490565b6003600d5460ff1660088111156129c7576129c761427a565b036129e7576064600f54603c6129dd919061437a565b61158c91906143c6565b6005600d5460ff166008811115612a0057612a0061427a565b03612a0c575060125490565b5060105490565b6008546001600160a01b03163314612a5b5760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b611149601d8383613df7565b336001600160a01b03831603612aa9576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600260095403612b675760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401611192565b6002600955600d5462010000900460ff161515600114612bc95760405162461bcd60e51b815260206004820152600b60248201527f6e6f7420656e61626c65640000000000000000000000000000000000000000006044820152606401611192565b612bd233612fe9565b1515600114612c235760405162461bcd60e51b815260206004820152600c60248201527f6e6f7420656c696769626c6500000000000000000000000000000000000000006044820152606401611192565b6000612c2e336127d2565b905080471015612c805760405162461bcd60e51b815260206004820152601260248201527f6e6f7420656e6f7567682062616c616e636500000000000000000000000000006044820152606401611192565b612c8933613838565b612c933382613899565b612c9c336119d5565b506001600955565b612caf84848461326b565b6001600160a01b0383163b15158015612cd15750612ccf84848484613933565b155b15612cef576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b03163314612d3d5760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b600d80549115156101000261ff0019909216919091179055565b6060612d62826131a0565b612dd45760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401611192565b6000612dde611f80565b90506000815111612e7957601d8054612df690614312565b80601f0160208091040260200160405190810160405280929190818152602001828054612e2290614312565b8015612e6f5780601f10612e4457610100808354040283529160200191612e6f565b820191906000526020600020905b815481529060010190602001808311612e5257829003601f168201915b5050505050612ea4565b80612e8384613a1f565b604051602001612e94929190614409565b6040516020818303038152906040525b9392505050565b6008546001600160a01b03163314612ef35760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b600d805482919060ff19166001836008811115612f1257612f1261427a565b021790555050565b606061158c47613a1f565b6040517fe3a9db1a0000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301526000917f00000000000000000000000013645e23ea407bc57626eb82cc981502a03785c19091169063e3a9db1a90602401602060405180830381865afa158015612fa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9a9190614438565b6000601754611582611563565b6060601b8054610faf90614312565b6001600160a01b0381166000908152600c6020908152604080832080548251818502810185019093528083528493849084015b828210156130625783829060005260206000209060020201604051806040016040529081600082015481526020016001820154815250508152602001906001019061301c565b505050509050805160000361307a5750600092915050565b50600192915050565b6008546001600160a01b031633146130cb5760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b600b55565b6008546001600160a01b031633146131185760405162461bcd60e51b815260206004820181905260248201526000805160206144ec8339815191526044820152606401611192565b6001600160a01b0381166131945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401611192565b61319d81613769565b50565b6000816001111580156131b4575060005482105b8015610f9a575050600090815260046020526040902054600160e01b900460ff161590565b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000612ea482600a5485613b54565b611f06828260405180602001604052806000815250613b6a565b600061327682613627565b9050836001600160a01b031681600001516001600160a01b0316146132c7576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b03861614806132e557506132e58533610e34565b806133005750336132f584611032565b6001600160a01b0316145b905080613339576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416613379576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613385600084876131d9565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661345b57600054821461345b578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611a65565b600d54610100900460ff1615156000036134bd57505050565b6001600160a01b039092166000908152600c60209081526040808320815180830190925293815280820194855283546001818101865594845291909220915160029091029091019081559151910155565b8047101561355e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401611192565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146135ab576040519150601f19603f3d011682016040523d82523d6000602084013e6135b0565b606091505b50509050806111495760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401611192565b60408051606081018252600080825260208201819052918101919091528180600111158015613657575060005481105b1561373757600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906137355780516001600160a01b0316156136cb579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215613730579392505050565b6136cb565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600042601e5411156137da5750600090565b6000601e54426137ea9190614399565b905060006137fa610708836143c6565b9050600c81101561382f576138168166b1a2bc2ec5000061437a565b61382890670853a0d2313c0000614399565b9250505090565b60009250505090565b6001600160a01b0381166000908152600c6020526040902080545b8015611149578180548061386957613869614451565b6000828152602081206002600019909301928302018181556001015590558061389181614467565b915050613853565b6040517ff340fa010000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301527f00000000000000000000000013645e23ea407bc57626eb82cc981502a03785c1169063f340fa019083906024016000604051808303818588803b15801561391657600080fd5b505af115801561392a573d6000803e3d6000fd5b50505050505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061396890339089908890889060040161447e565b6020604051808303816000875af19250505080156139a3575060408051601f3d908101601f191682019092526139a0918101906144ba565b60015b613a01573d8080156139d1576040519150601f19603f3d011682016040523d82523d6000602084013e6139d6565b606091505b5080516000036139f9576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606081600003613a6257505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613a8c5780613a76816143f0565b9150613a859050600a836143c6565b9150613a66565b60008167ffffffffffffffff811115613aa757613aa7614184565b6040519080825280601f01601f191660200182016040528015613ad1576020820181803683370190505b5090505b8415613a1757613ae6600183614399565b9150613af3600a866144d7565b613afe906030614362565b60f81b818381518110613b1357613b136143da565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613b4d600a866143c6565b9450613ad5565b600082613b618584613b77565b14949350505050565b6111498383836001613be3565b600081815b8451811015612058576000858281518110613b9957613b996143da565b60200260200101519050808311613bbf5760008381526020829052604090209250613bd0565b600081815260208490526040902092505b5080613bdb816143f0565b915050613b7c565b6000546001600160a01b038516613c26576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600003613c60576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015613d2157506001600160a01b0387163b15155b15613da9575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4613d726000888480600101955088613933565b613d8f576040516368d2bf6b60e11b815260040160405180910390fd5b808203613d27578260005414613da457600080fd5b613dee565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808203613daa575b50600055611a65565b828054613e0390614312565b90600052602060002090601f016020900481019282613e255760008555613e6b565b82601f10613e3e5782800160ff19823516178555613e6b565b82800160010185558215613e6b579182015b82811115613e6b578235825591602001919060010190613e50565b50613e77929150613e7b565b5090565b5b80821115613e775760008155600101613e7c565b6001600160e01b03198116811461319d57600080fd5b600060208284031215613eb857600080fd5b8135612ea481613e90565b6001600160a01b038116811461319d57600080fd5b600060208284031215613eea57600080fd5b8135612ea481613ec3565b60005b83811015613f10578181015183820152602001613ef8565b83811115612cef5750506000910152565b60008151808452613f39816020860160208601613ef5565b601f01601f19169290920160200192915050565b602081526000612ea46020830184613f21565b600060208284031215613f7257600080fd5b5035919050565b60008060408385031215613f8c57600080fd5b8235613f9781613ec3565b946020939093013593505050565b60008060008060608587031215613fbb57600080fd5b8435935060208501359250604085013567ffffffffffffffff80821115613fe157600080fd5b818701915087601f830112613ff557600080fd5b81358181111561400457600080fd5b8860208260051b850101111561401957600080fd5b95989497505060200194505050565b60008060006060848603121561403d57600080fd5b833561404881613ec3565b9250602084013561405881613ec3565b929592945050506040919091013590565b6000806020838503121561407c57600080fd5b823567ffffffffffffffff8082111561409457600080fd5b818501915085601f8301126140a857600080fd5b8135818111156140b757600080fd5b8660208285010111156140c957600080fd5b60209290920196919550909350505050565b803580151581146140eb57600080fd5b919050565b60006020828403121561410257600080fd5b612ea4826140db565b6020808252825182820181905260009190848201906040850190845b8181101561414357835183529284019291840191600101614127565b50909695505050505050565b6000806040838503121561416257600080fd5b823561416d81613ec3565b915061417b602084016140db565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156141b057600080fd5b84356141bb81613ec3565b935060208501356141cb81613ec3565b925060408501359150606085013567ffffffffffffffff808211156141ef57600080fd5b818701915087601f83011261420357600080fd5b81358181111561421557614215614184565b604051601f8201601f19908116603f0116810190838211818310171561423d5761423d614184565b816040528281528a602084870101111561425657600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b634e487b7160e01b600052602160045260246000fd5b60208101600983106142b257634e487b7160e01b600052602160045260246000fd5b91905290565b6000602082840312156142ca57600080fd5b813560098110612ea457600080fd5b600080604083850312156142ec57600080fd5b82356142f781613ec3565b9150602083013561430781613ec3565b809150509250929050565b600181811c9082168061432657607f821691505b60208210810361434657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156143755761437561434c565b500190565b60008160001904831182151516156143945761439461434c565b500290565b6000828210156143ab576143ab61434c565b500390565b634e487b7160e01b600052601260045260246000fd5b6000826143d5576143d56143b0565b500490565b634e487b7160e01b600052603260045260246000fd5b6000600182016144025761440261434c565b5060010190565b6000835161441b818460208801613ef5565b83519083019061442f818360208801613ef5565b01949350505050565b60006020828403121561444a57600080fd5b5051919050565b634e487b7160e01b600052603160045260246000fd5b6000816144765761447661434c565b506000190190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526144b06080830184613f21565b9695505050505050565b6000602082840312156144cc57600080fd5b8151612ea481613e90565b6000826144e6576144e66143b0565b50069056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220329061d978621035598c41f940e1d21a6a8f56f0daa73f89fc41e7cfaba5a1cb64736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000004088414228ac1869951548526f27ded570f68f3f3fdabe0a9f6433c092ba36dd9a0000000000000000000000000000000000000000000000000000000000000037697066733a2f2f516d554447554d46556350446b7254585939333679746b7a77645276733954415043364147435771544b4d4843512f30000000000000000000
-----Decoded View---------------
Arg [0] : defaultTokenURI (string): ipfs://QmUDGUMFUcPDkrTXY936ytkzwdRvs9TAPC6AGCWqTKMHCQ/0
Arg [1] : merkleroot (bytes32): 0x88414228ac1869951548526f27ded570f68f3f3fdabe0a9f6433c092ba36dd9a
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 88414228ac1869951548526f27ded570f68f3f3fdabe0a9f6433c092ba36dd9a
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000037
Arg [3] : 697066733a2f2f516d554447554d46556350446b7254585939333679746b7a77
Arg [4] : 645276733954415043364147435771544b4d4843512f30000000000000000000
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.