ERC-721
Overview
Max Total Supply
5,000 MOOPY
Holders
1,628
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 MOOPYLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Moopy
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@......@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%&@@@....@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%%%%#((%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%@@@@@@@((((((((((%@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@( ((((((((((@@(%%%%%%%%@@ @@(((((((%%@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@ ((((((((((((((%%%%@. @@@ @&(((((%%.@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@ ((((((((((((((%%@.. @&&&&&&@ @(((%%%..@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@ ((((((((((((((@... @&**&&&%,@. @((%%....&@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@ @*(((((((((((((@... @@** &@ @%%......,@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@ ((((((((((((@.... .@* &&@ @&.........@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@ ((((((((((#@.... @ ,,,,,&@ @*.........#@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@ ((((((((((%@.... @@@@@ @*@..........@@@@@@@@@@@@@@@@ @@@@@@@@@@@@( (((((((((((((@@..........@@@@@@%............,%%@@@@@@@@@@@@@@@ @@@@@@@@@@@@@((((((((((((((((((@@#(((((((&@@ /@@@............%%%%&@@@@@@@@@@@@@@ @@@@@@@@@@@@@((((((((((((((((((((((((((((@ ****@@..........%%%%%%@@@@@@@@@@@@@@ @@@@@@@@@@@@@@(((((((((((((((((((((((((((@& ***@........%%%%%%%%@@@@@@@@@@@@@@ @@@@@@@@@@@@@@#(((((((((((((((((((((((((((@ ****@((/...%%%%%%%%%%@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@(((((((((((((#(((((((((((((@ ****@((((((((%%%%%%%%@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@((((((%%%......(((((((((((@ .**@(((((((((((((%%%@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@%%%%.............(((((((((@ ***@((((((((((((((((%@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@%%....%%............((((((((@@&(((((((((((((@@((((@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@%.....@@...............(((((((((((((((((((((@@((((@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@......@@...................(((((((((((((((((@(((((@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@%.....@@................ /((((((((((@((((@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@%%%#...@@........... @@((((@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@%%%%%%%@@... @((((@@@@@@@@@@@@@@@@ */ pragma solidity ^0.8.0; import "./ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract Moopy is ERC721A, Ownable { using SafeERC20 for IERC20; using Strings for uint256; // Maximum supply uint256 public MAX_SUPPLY = 5000; // Starting time of auction uint256 public AUCTION_START_TIME = 1657026000; // Maximum ending time of auction uint256 public AUCTION_END_TIME = 1657198800; // Possible ending time of auction uint256 public AUCTION_MARK_TIME = 1657177200; // Metadata URI suffix string public constant TOKEN_URI_SUFFIX = ".json"; // Minimum bid price to qualify for minting uint256 public qualifyingPrice; // Timelock for owner withdraw function uint256 public ownerWithdrawTimelock; // Metadata URI string public baseTokenURI; // Whether the auction has ended bool public isAuctionEnded; // Allows whitelisters to mint during their window bool public isWhitelistMintActive; // All bidder addresses address[] public allBidders; // Merkle root for Whitelists bytes32 public merkleRoot; // Whitelisted addresses that have minted mapping(address => bool) public whitelistMinted; // Bid prices of addresses mapping(address => uint256) public bidPrices; // Random ending time of auction uint256 private _auctionRandEndTime = AUCTION_END_TIME; // Check if auction is ongoing modifier auctionLive { require(block.timestamp >= AUCTION_START_TIME, "auction not started"); require(!isAuctionEnded, "auction ended"); if (block.timestamp >= _auctionRandEndTime) { isAuctionEnded = true; emit AuctionEnded(block.timestamp, allBidders.length); return; } _; } // Events event AuctionEnded(uint256 _endTime, uint256 _totalBids); event BidPlaced(address indexed _bidder, uint256 _bidPrice); constructor() ERC721A ("Moopy", "MOOPY") {} // --PUBLIC-- // Mint one token for a whitelisted address function whitelistMint(bytes32[] calldata _merkleProof) public { require(isWhitelistMintActive, "whitelist mint not active"); require(!whitelistMinted[msg.sender], "address already minted"); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), "invalid proof"); uint256 supply = totalSupply(); require(supply + 1 <= MAX_SUPPLY, "order exceeds supply"); whitelistMinted[msg.sender] = true; _safeMint(msg.sender, 1); } // Submit or increase the bid price of an address function placeBid() public payable auctionLive { require(msg.value > 0, "bid price must be at least 1 wei"); uint256 lastBidPrice = bidPrices[msg.sender]; if(lastBidPrice == 0) { allBidders.push(msg.sender); } bidPrices[msg.sender] += msg.value; emit BidPlaced(msg.sender, bidPrices[msg.sender]); } // Randomly set an ending time for the auction function randomizeAuctionEndTime(uint256 _randNum) public auctionLive { require (tx.origin == msg.sender && msg.sender.code.length == 0, "only EOA calls"); require (block.timestamp >= AUCTION_MARK_TIME, "auction cannot be ended yet"); _auctionRandEndTime = block.timestamp + (_getRandomNumber(_randNum) % (AUCTION_END_TIME - block.timestamp)); } // Handle the result of the auction for each bidder function resolveAuctionResults() public { _resolveAuctionResults(msg.sender); } // Allow bidders to withdraw if owner attempts to rug function emergencyWithdraw() public { require(ownerWithdrawTimelock != 0, "e-withdraw not active"); uint256 bidPrice = bidPrices[msg.sender]; require(bidPrice != 0, "no bid submitted"); bidPrices[msg.sender] = 0; payable(msg.sender).transfer(bidPrice); } // --PUBLIC VIEWS-- // Retrieve all tokens owned by an address function walletOfOwner(address _account) public view returns (uint256[] memory _wallet) { uint256 count; uint256 quantity = balanceOf(_account); uint256 length = totalSupply(); uint256[] memory wallet = new uint256[](quantity); for (uint256 i; i < length; i++) { if (_account == ownerOf(i)) { wallet[count++] = i; if (count == quantity) break; } } return wallet; } // Retrieve the total number of bids function getTotalBids() public view returns (uint256) { return allBidders.length; } // Retrieve all addresses who placed bids function getAllBidders(uint256 _startIndex, uint256 _endIndex) public view returns (address[] memory) { uint256 size = _endIndex - _startIndex + 1; address[] memory bidders = new address[](size); for (uint256 i = 0; i < size; i++) { bidders[i] = allBidders[i + _startIndex]; } return bidders; } // Retrieve the bid prices for an array of addresses function getBidsByAddresses(address[] memory _bidders) public view returns (uint256[] memory) { uint256[] memory bids = new uint[](_bidders.length); for (uint256 i = 0; i < _bidders.length; i++) { bids[i] = bidPrices[_bidders[i]]; } return bids; } // Retrieves the total number of bids above this qualifying price function checkQualifyingPrice(uint256 _qualifyingPrice) public view returns (uint256 count) { address bidder; uint256 bidPrice; for (uint256 i = 0; i < allBidders.length; i++) { bidder = allBidders[i]; bidPrice = bidPrices[bidder]; if (bidPrice >= _qualifyingPrice) { ++count; } } } // Retrieve the URI of a token function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "query for nonexistent token"); return string(abi.encodePacked(baseTokenURI, tokenId.toString(), TOKEN_URI_SUFFIX)); } // --ONLY OWNER-- // Mint tokens for the team function devMint(uint256 _quantity) public onlyOwner { uint256 supply = totalSupply(); require(supply + _quantity <= MAX_SUPPLY, "order exceeds supply"); while (_quantity > 10) { _safeMint(msg.sender, 10); _quantity -= 10; } if (_quantity > 0) { _safeMint(msg.sender, _quantity); } } // Set Merkle Root function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner { merkleRoot = _merkleRoot; } // Toggle whitelist sale function setWhitelistMintActive() public onlyOwner { isWhitelistMintActive = !isWhitelistMintActive; } // Set qualifying price for auction function setQualifyingPrice(uint256 _price) public onlyOwner { qualifyingPrice = _price; } // Set base URI of token function setBaseURI(string calldata _newBaseURI) public onlyOwner { baseTokenURI = _newBaseURI; } // Withdraw funds in contract, 24 hour timelock function ownerWithdraw(address _receiver) public onlyOwner { if(ownerWithdrawTimelock == 0) { ownerWithdrawTimelock = block.timestamp + 86400; }else if(ownerWithdrawTimelock < block.timestamp) { ownerWithdrawTimelock = 0; uint256 balance = address(this).balance; payable(_receiver).transfer(balance); } } // Force the resolution of an address function forcedResolve(address _bidder) public onlyOwner { _resolveAuctionResults(_bidder); } // Withdraw ERC20 tokens if necessary function transferERC20Token(IERC20 token, uint256 amount) external onlyOwner { token.safeTransfer(owner(), amount); } // --INTERNAL-- // Resolve the results of the auction function _resolveAuctionResults(address _bidder) internal { require(qualifyingPrice != 0, "auction not concluded"); uint256 bidPrice = bidPrices[_bidder]; require(bidPrice != 0, "no bid submitted"); uint256 refundAmount = 0; if(bidPrice >= qualifyingPrice) { // Successful bid, mint one token and refund excess bid amount require(totalSupply() < MAX_SUPPLY, "mint exceeds supply"); bidPrices[_bidder] = 0; refundAmount = bidPrice - qualifyingPrice; _safeMint(_bidder, 1); }else { // Unsuccessful bid, refund bid amount bidPrices[_bidder] = 0; refundAmount = bidPrice; } payable(_bidder).transfer(refundAmount); } // Generate a random number // Unsecure implementation, chosen for scope and gas efficiency function _getRandomNumber(uint256 _randNum) private view returns (uint256) { return uint256(keccak256(abi.encode(_randNum, allBidders.length, blockhash(block.number - 1)))); } }
// 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 v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/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 (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":false,"internalType":"uint256","name":"_endTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_totalBids","type":"uint256"}],"name":"AuctionEnded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"_bidPrice","type":"uint256"}],"name":"BidPlaced","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_END_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AUCTION_MARK_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AUCTION_START_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_URI_SUFFIX","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allBidders","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bidPrices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_qualifyingPrice","type":"uint256"}],"name":"checkQualifyingPrice","outputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bidder","type":"address"}],"name":"forcedResolve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startIndex","type":"uint256"},{"internalType":"uint256","name":"_endIndex","type":"uint256"}],"name":"getAllBidders","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_bidders","type":"address[]"}],"name":"getBidsByAddresses","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalBids","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":"isAuctionEnded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWhitelistMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"ownerWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ownerWithdrawTimelock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"placeBid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"qualifyingPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_randNum","type":"uint256"}],"name":"randomizeAuctionEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resolveAuctionResults","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","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":"setQualifyingPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setWhitelistMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferERC20Token","outputs":[],"stateMutability":"nonpayable","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":"_account","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"_wallet","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526113886009556362c435d0600a556362c6d8d0600b556362c68470600c55600b546015553480156200003557600080fd5b506040518060400160405280600581526020017f4d6f6f70790000000000000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f4d4f4f50590000000000000000000000000000000000000000000000000000008152508160029080519060200190620000ba929190620001e5565b508060039080519060200190620000d3929190620001e5565b50620000e46200011260201b60201c565b60008190555050506200010c620001006200011760201b60201c565b6200011f60201b60201c565b620002fa565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620001f390620002c4565b90600052602060002090601f01602090048101928262000217576000855562000263565b82601f106200023257805160ff191683800117855562000263565b8280016001018555821562000263579182015b828111156200026257825182559160200191906001019062000245565b5b50905062000272919062000276565b5090565b5b808211156200029157600081600090555060010162000277565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620002dd57607f821691505b60208210811415620002f457620002f362000295565b5b50919050565b615952806200030a6000396000f3fe6080604052600436106102ae5760003560e01c8063715018a611610175578063bcba6939116100dc578063dcc70b9a11610095578063f17d076f1161006f578063f17d076f14610aa1578063f2fde38b14610acc578063f9bfaa7d14610af5578063fabd1d2d14610b1e576102ae565b8063dcc70b9a14610a2f578063e985e9c514610a5a578063ecfc7ecc14610a97576102ae565b8063bcba693914610933578063c87b56dd1461095c578063cb57ba5014610999578063d547cfb7146109c2578063da8b017d146109ed578063db2e21bc14610a18576102ae565b806398a8cffe1161012e57806398a8cffe146108135780639caed83a14610850578063a013781b1461088d578063a22cb465146108ca578063a6fc6ca2146108f3578063b88d4fde1461090a576102ae565b8063715018a6146107175780637cb647591461072e5780638132253a1461075757806384e867bb146107945780638da5cb5b146107bd57806395d89b41146107e8576102ae565b806342842e0e116102195780635b41062c116101d25780635b41062c146106055780636352211e14610630578063654634ea1461066d57806366c1020914610684578063684edbb7146106af57806370a08231146106da576102ae565b806342842e0e146104e557806343891f3a1461050e578063438b6300146105395780634f5b1ac7146105765780635228d710146105b357806355f804b3146105dc576102ae565b80632bfc9df01161026b5780632bfc9df0146103d55780632eb4a7ab1461040057806332cb6b0c1461042b5780633463deea14610456578063372f657c14610493578063375a069a146104bc576102ae565b806301ffc9a7146102b357806306fdde03146102f0578063081812fc1461031b578063095ea7b31461035857806318160ddd1461038157806323b872dd146103ac575b600080fd5b3480156102bf57600080fd5b506102da60048036038101906102d59190614060565b610b49565b6040516102e791906140a8565b60405180910390f35b3480156102fc57600080fd5b50610305610c2b565b604051610312919061415c565b60405180910390f35b34801561032757600080fd5b50610342600480360381019061033d91906141b4565b610cbd565b60405161034f9190614222565b60405180910390f35b34801561036457600080fd5b5061037f600480360381019061037a9190614269565b610d39565b005b34801561038d57600080fd5b50610396610e44565b6040516103a391906142b8565b60405180910390f35b3480156103b857600080fd5b506103d360048036038101906103ce91906142d3565b610e5b565b005b3480156103e157600080fd5b506103ea610e6b565b6040516103f7919061415c565b60405180910390f35b34801561040c57600080fd5b50610415610ea4565b604051610422919061433f565b60405180910390f35b34801561043757600080fd5b50610440610eaa565b60405161044d91906142b8565b60405180910390f35b34801561046257600080fd5b5061047d6004803603810190610478919061435a565b610eb0565b60405161048a91906142b8565b60405180910390f35b34801561049f57600080fd5b506104ba60048036038101906104b591906143ec565b610ec8565b005b3480156104c857600080fd5b506104e360048036038101906104de91906141b4565b611122565b005b3480156104f157600080fd5b5061050c600480360381019061050791906142d3565b61123b565b005b34801561051a57600080fd5b5061052361125b565b60405161053091906140a8565b60405180910390f35b34801561054557600080fd5b50610560600480360381019061055b919061435a565b61126e565b60405161056d91906144f7565b60405180910390f35b34801561058257600080fd5b5061059d60048036038101906105989190614519565b611378565b6040516105aa9190614617565b60405180910390f35b3480156105bf57600080fd5b506105da60048036038101906105d591906141b4565b6114a4565b005b3480156105e857600080fd5b5061060360048036038101906105fe919061468f565b6116ac565b005b34801561061157600080fd5b5061061a61173e565b60405161062791906142b8565b60405180910390f35b34801561063c57600080fd5b50610657600480360381019061065291906141b4565b611744565b6040516106649190614222565b60405180910390f35b34801561067957600080fd5b5061068261175a565b005b34801561069057600080fd5b50610699611802565b6040516106a691906142b8565b60405180910390f35b3480156106bb57600080fd5b506106c4611808565b6040516106d191906142b8565b60405180910390f35b3480156106e657600080fd5b5061070160048036038101906106fc919061435a565b61180e565b60405161070e91906142b8565b60405180910390f35b34801561072357600080fd5b5061072c6118de565b005b34801561073a57600080fd5b5061075560048036038101906107509190614708565b611966565b005b34801561076357600080fd5b5061077e60048036038101906107799190614873565b6119ec565b60405161078b91906144f7565b60405180910390f35b3480156107a057600080fd5b506107bb60048036038101906107b6919061435a565b611ade565b005b3480156107c957600080fd5b506107d2611b66565b6040516107df9190614222565b60405180910390f35b3480156107f457600080fd5b506107fd611b90565b60405161080a919061415c565b60405180910390f35b34801561081f57600080fd5b5061083a6004803603810190610835919061435a565b611c22565b60405161084791906140a8565b60405180910390f35b34801561085c57600080fd5b50610877600480360381019061087291906141b4565b611c42565b60405161088491906142b8565b60405180910390f35b34801561089957600080fd5b506108b460048036038101906108af91906141b4565b611d0c565b6040516108c19190614222565b60405180910390f35b3480156108d657600080fd5b506108f160048036038101906108ec91906148e8565b611d4b565b005b3480156108ff57600080fd5b50610908611ec3565b005b34801561091657600080fd5b50610931600480360381019061092c91906149dd565b611ece565b005b34801561093f57600080fd5b5061095a60048036038101906109559190614a9e565b611f4a565b005b34801561096857600080fd5b50610983600480360381019061097e91906141b4565b611ffc565b604051610990919061415c565b60405180910390f35b3480156109a557600080fd5b506109c060048036038101906109bb91906141b4565b6120af565b005b3480156109ce57600080fd5b506109d7612135565b6040516109e4919061415c565b60405180910390f35b3480156109f957600080fd5b50610a026121c3565b604051610a0f91906142b8565b60405180910390f35b348015610a2457600080fd5b50610a2d6121c9565b005b348015610a3b57600080fd5b50610a44612326565b604051610a5191906142b8565b60405180910390f35b348015610a6657600080fd5b50610a816004803603810190610a7c9190614ade565b612333565b604051610a8e91906140a8565b60405180910390f35b610a9f6123c7565b005b348015610aad57600080fd5b50610ab661269e565b604051610ac391906142b8565b60405180910390f35b348015610ad857600080fd5b50610af36004803603810190610aee919061435a565b6126a4565b005b348015610b0157600080fd5b50610b1c6004803603810190610b17919061435a565b61279c565b005b348015610b2a57600080fd5b50610b336128a1565b604051610b4091906140a8565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c1457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c245750610c23826128b4565b5b9050919050565b606060028054610c3a90614b4d565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6690614b4d565b8015610cb35780601f10610c8857610100808354040283529160200191610cb3565b820191906000526020600020905b815481529060010190602001808311610c9657829003601f168201915b5050505050905090565b6000610cc88261291e565b610cfe576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d4482611744565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610dac576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610dcb61296c565b73ffffffffffffffffffffffffffffffffffffffff1614158015610dfd5750610dfb81610df661296c565b612333565b155b15610e34576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e3f838383612974565b505050565b6000610e4e612a26565b6001546000540303905090565b610e66838383612a2b565b505050565b6040518060400160405280600581526020017f2e6a736f6e00000000000000000000000000000000000000000000000000000081525081565b60125481565b60095481565b60146020528060005260406000206000915090505481565b601060019054906101000a900460ff16610f17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0e90614bcb565b60405180910390fd5b601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610fa4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9b90614c37565b60405180910390fd5b600033604051602001610fb79190614c9f565b60405160208183030381529060405280519060200120905061101d838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060125483612ee1565b61105c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105390614d06565b60405180910390fd5b6000611066610e44565b90506009546001826110789190614d55565b11156110b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b090614df7565b60405180910390fd5b6001601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061111c336001612ef8565b50505050565b61112a61296c565b73ffffffffffffffffffffffffffffffffffffffff16611148611b66565b73ffffffffffffffffffffffffffffffffffffffff161461119e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119590614e63565b60405180910390fd5b60006111a8610e44565b905060095482826111b99190614d55565b11156111fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f190614df7565b60405180910390fd5b5b600a8211156112235761120f33600a612ef8565b600a8261121c9190614e83565b91506111fb565b6000821115611237576112363383612ef8565b5b5050565b61125683838360405180602001604052806000815250611ece565b505050565b601060009054906101000a900460ff1681565b606060008061127c8461180e565b90506000611288610e44565b905060008267ffffffffffffffff8111156112a6576112a5614735565b5b6040519080825280602002602001820160405280156112d45781602001602082028036833780820191505090505b50905060005b8281101561136b576112eb81611744565b73ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff161415611358578082868061132b90614eb7565b97508151811061133e5761133d614f00565b5b602002602001018181525050838514156113575761136b565b5b808061136390614eb7565b9150506112da565b5080945050505050919050565b606060006001848461138a9190614e83565b6113949190614d55565b905060008167ffffffffffffffff8111156113b2576113b1614735565b5b6040519080825280602002602001820160405280156113e05781602001602082028036833780820191505090505b50905060005b8281101561149857601186826113fc9190614d55565b8154811061140d5761140c614f00565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682828151811061144b5761144a614f00565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050808061149090614eb7565b9150506113e6565b50809250505092915050565b600a544210156114e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e090614f7b565b60405180910390fd5b601060009054906101000a900460ff1615611539576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153090614fe7565b60405180910390fd5b60155442106115a0576001601060006101000a81548160ff0219169083151502179055507fe536ac546f86787f3ea4069f79235c6b5a681e87d051300a3ed19a6ebb0db71c42601180549050604051611593929190615007565b60405180910390a16116a9565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161480156115f2575060003373ffffffffffffffffffffffffffffffffffffffff163b145b611631576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116289061507c565b60405180910390fd5b600c54421015611676576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166d906150e8565b60405180910390fd5b42600b546116849190614e83565b61168d82612f16565b6116979190615137565b426116a29190614d55565b6015819055505b50565b6116b461296c565b73ffffffffffffffffffffffffffffffffffffffff166116d2611b66565b73ffffffffffffffffffffffffffffffffffffffff1614611728576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171f90614e63565b60405180910390fd5b8181600f9190611739929190613f0e565b505050565b600c5481565b600061174f82612f5f565b600001519050919050565b61176261296c565b73ffffffffffffffffffffffffffffffffffffffff16611780611b66565b73ffffffffffffffffffffffffffffffffffffffff16146117d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117cd90614e63565b60405180910390fd5b601060019054906101000a900460ff1615601060016101000a81548160ff021916908315150217905550565b600e5481565b600b5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611876576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6118e661296c565b73ffffffffffffffffffffffffffffffffffffffff16611904611b66565b73ffffffffffffffffffffffffffffffffffffffff161461195a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195190614e63565b60405180910390fd5b61196460006131ee565b565b61196e61296c565b73ffffffffffffffffffffffffffffffffffffffff1661198c611b66565b73ffffffffffffffffffffffffffffffffffffffff16146119e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d990614e63565b60405180910390fd5b8060128190555050565b60606000825167ffffffffffffffff811115611a0b57611a0a614735565b5b604051908082528060200260200182016040528015611a395781602001602082028036833780820191505090505b50905060005b8351811015611ad45760146000858381518110611a5f57611a5e614f00565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054828281518110611ab557611ab4614f00565b5b6020026020010181815250508080611acc90614eb7565b915050611a3f565b5080915050919050565b611ae661296c565b73ffffffffffffffffffffffffffffffffffffffff16611b04611b66565b73ffffffffffffffffffffffffffffffffffffffff1614611b5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5190614e63565b60405180910390fd5b611b63816132b4565b50565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611b9f90614b4d565b80601f0160208091040260200160405190810160405280929190818152602001828054611bcb90614b4d565b8015611c185780601f10611bed57610100808354040283529160200191611c18565b820191906000526020600020905b815481529060010190602001808311611bfb57829003601f168201915b5050505050905090565b60136020528060005260406000206000915054906101000a900460ff1681565b600080600080600090505b601180549050811015611d045760118181548110611c6e57611c6d614f00565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169250601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549150848210611cf15783611cee90614eb7565b93505b8080611cfc90614eb7565b915050611c4d565b505050919050565b60118181548110611d1c57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611d5361296c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611db8576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611dc561296c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611e7261296c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611eb791906140a8565b60405180910390a35050565b611ecc336132b4565b565b611ed9848484612a2b565b611ef88373ffffffffffffffffffffffffffffffffffffffff166134d2565b8015611f0d5750611f0b848484846134f5565b155b15611f44576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b611f5261296c565b73ffffffffffffffffffffffffffffffffffffffff16611f70611b66565b73ffffffffffffffffffffffffffffffffffffffff1614611fc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fbd90614e63565b60405180910390fd5b611ff8611fd1611b66565b828473ffffffffffffffffffffffffffffffffffffffff166136559092919063ffffffff16565b5050565b60606120078261291e565b612046576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203d906151b4565b60405180910390fd5b600f612051836136db565b6040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250604051602001612099939291906152a4565b6040516020818303038152906040529050919050565b6120b761296c565b73ffffffffffffffffffffffffffffffffffffffff166120d5611b66565b73ffffffffffffffffffffffffffffffffffffffff161461212b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212290614e63565b60405180910390fd5b80600d8190555050565b600f805461214290614b4d565b80601f016020809104026020016040519081016040528092919081815260200182805461216e90614b4d565b80156121bb5780601f10612190576101008083540402835291602001916121bb565b820191906000526020600020905b81548152906001019060200180831161219e57829003601f168201915b505050505081565b600d5481565b6000600e54141561220f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220690615321565b60405180910390fd5b6000601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811415612297576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228e9061538d565b60405180910390fd5b6000601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015612322573d6000803e3d6000fd5b5050565b6000601180549050905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600a5442101561240c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240390614f7b565b60405180910390fd5b601060009054906101000a900460ff161561245c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245390614fe7565b60405180910390fd5b60155442106124c3576001601060006101000a81548160ff0219169083151502179055507fe536ac546f86787f3ea4069f79235c6b5a681e87d051300a3ed19a6ebb0db71c426011805490506040516124b6929190615007565b60405180910390a161269c565b60003411612506576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124fd906153f9565b60405180910390fd5b6000601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008114156125b7576011339080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b34601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126069190614d55565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167f3fabff0a9c3ecd6814702e247fa9733e5d0aa69e3a38590f92cb18f623a2254d601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460405161269291906142b8565b60405180910390a2505b565b600a5481565b6126ac61296c565b73ffffffffffffffffffffffffffffffffffffffff166126ca611b66565b73ffffffffffffffffffffffffffffffffffffffff1614612720576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271790614e63565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612790576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127879061548b565b60405180910390fd5b612799816131ee565b50565b6127a461296c565b73ffffffffffffffffffffffffffffffffffffffff166127c2611b66565b73ffffffffffffffffffffffffffffffffffffffff1614612818576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161280f90614e63565b60405180910390fd5b6000600e54141561283d5762015180426128329190614d55565b600e8190555061289e565b42600e54101561289d576000600e8190555060004790508173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561289a573d6000803e3d6000fd5b50505b5b50565b601060019054906101000a900460ff1681565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081612929612a26565b11158015612938575060005482105b8015612965575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b6000612a3682612f5f565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612aa1576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16612ac261296c565b73ffffffffffffffffffffffffffffffffffffffff161480612af15750612af085612aeb61296c565b612333565b5b80612b365750612aff61296c565b73ffffffffffffffffffffffffffffffffffffffff16612b1e84610cbd565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612b6f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612bd6576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612be3858585600161383c565b612bef60008487612974565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612e6f576000548214612e6e57878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612eda8585856001613842565b5050505050565b600082612eee8584613848565b1490509392505050565b612f128282604051806020016040528060008152506138bd565b5050565b600081601180549050600143612f2c9190614e83565b40604051602001612f3f939291906154ab565b6040516020818303038152906040528051906020012060001c9050919050565b612f67613f94565b600082905080612f75612a26565b11158015612f84575060005481105b156131b7576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050905080604001516131b557600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146130995780925050506131e9565b5b6001156131b457818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146131af5780925050506131e9565b61309a565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600d5414156132fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132f19061552e565b60405180910390fd5b6000601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811415613382576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133799061538d565b60405180910390fd5b6000600d54821061343d57600954613398610e44565b106133d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133cf9061559a565b60405180910390fd5b6000601460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600d548261342b9190614e83565b9050613438836001612ef8565b613486565b6000601460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508190505b8273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156134cc573d6000803e3d6000fd5b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261351b61296c565b8786866040518563ffffffff1660e01b815260040161353d949392919061560f565b602060405180830381600087803b15801561355757600080fd5b505af192505050801561358857506040513d601f19601f820116820180604052508101906135859190615670565b60015b613602573d80600081146135b8576040519150601f19603f3d011682016040523d82523d6000602084013e6135bd565b606091505b506000815114156135fa576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6136d68363a9059cbb60e01b848460405160240161367492919061569d565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506138cf565b505050565b60606000821415613723576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613837565b600082905060005b6000821461375557808061373e90614eb7565b915050600a8261374e91906156c6565b915061372b565b60008167ffffffffffffffff81111561377157613770614735565b5b6040519080825280601f01601f1916602001820160405280156137a35781602001600182028036833780820191505090505b5090505b60008514613830576001826137bc9190614e83565b9150600a856137cb9190615137565b60306137d79190614d55565b60f81b8183815181106137ed576137ec614f00565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561382991906156c6565b94506137a7565b8093505050505b919050565b50505050565b50505050565b60008082905060005b84518110156138b257600085828151811061386f5761386e614f00565b5b602002602001015190508083116138915761388a8382613996565b925061389e565b61389b8184613996565b92505b5080806138aa90614eb7565b915050613851565b508091505092915050565b6138ca83838360016139ad565b505050565b6000613931826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16613d7b9092919063ffffffff16565b90506000815111156139915780806020019051810190613951919061570c565b613990576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613987906157ab565b60405180910390fd5b5b505050565b600082600052816020526040600020905092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415613a1a576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000841415613a55576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613a62600086838761383c565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060008582019050838015613c2c5750613c2b8773ffffffffffffffffffffffffffffffffffffffff166134d2565b5b15613cf2575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613ca160008884806001019550886134f5565b613cd7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80821415613c32578260005414613ced57600080fd5b613d5e565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821415613cf3575b816000819055505050613d746000868387613842565b5050505050565b6060613d8a8484600085613d93565b90509392505050565b606082471015613dd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613dcf9061583d565b60405180910390fd5b613de1856134d2565b613e20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613e17906158a9565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613e499190615905565b60006040518083038185875af1925050503d8060008114613e86576040519150601f19603f3d011682016040523d82523d6000602084013e613e8b565b606091505b5091509150613e9b828286613ea7565b92505050949350505050565b60608315613eb757829050613f07565b600083511115613eca5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613efe919061415c565b60405180910390fd5b9392505050565b828054613f1a90614b4d565b90600052602060002090601f016020900481019282613f3c5760008555613f83565b82601f10613f5557803560ff1916838001178555613f83565b82800160010185558215613f83579182015b82811115613f82578235825591602001919060010190613f67565b5b509050613f909190613fd7565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115613ff0576000816000905550600101613fd8565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61403d81614008565b811461404857600080fd5b50565b60008135905061405a81614034565b92915050565b60006020828403121561407657614075613ffe565b5b60006140848482850161404b565b91505092915050565b60008115159050919050565b6140a28161408d565b82525050565b60006020820190506140bd6000830184614099565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156140fd5780820151818401526020810190506140e2565b8381111561410c576000848401525b50505050565b6000601f19601f8301169050919050565b600061412e826140c3565b61413881856140ce565b93506141488185602086016140df565b61415181614112565b840191505092915050565b600060208201905081810360008301526141768184614123565b905092915050565b6000819050919050565b6141918161417e565b811461419c57600080fd5b50565b6000813590506141ae81614188565b92915050565b6000602082840312156141ca576141c9613ffe565b5b60006141d88482850161419f565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061420c826141e1565b9050919050565b61421c81614201565b82525050565b60006020820190506142376000830184614213565b92915050565b61424681614201565b811461425157600080fd5b50565b6000813590506142638161423d565b92915050565b600080604083850312156142805761427f613ffe565b5b600061428e85828601614254565b925050602061429f8582860161419f565b9150509250929050565b6142b28161417e565b82525050565b60006020820190506142cd60008301846142a9565b92915050565b6000806000606084860312156142ec576142eb613ffe565b5b60006142fa86828701614254565b935050602061430b86828701614254565b925050604061431c8682870161419f565b9150509250925092565b6000819050919050565b61433981614326565b82525050565b60006020820190506143546000830184614330565b92915050565b6000602082840312156143705761436f613ffe565b5b600061437e84828501614254565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126143ac576143ab614387565b5b8235905067ffffffffffffffff8111156143c9576143c861438c565b5b6020830191508360208202830111156143e5576143e4614391565b5b9250929050565b6000806020838503121561440357614402613ffe565b5b600083013567ffffffffffffffff81111561442157614420614003565b5b61442d85828601614396565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61446e8161417e565b82525050565b60006144808383614465565b60208301905092915050565b6000602082019050919050565b60006144a482614439565b6144ae8185614444565b93506144b983614455565b8060005b838110156144ea5781516144d18882614474565b97506144dc8361448c565b9250506001810190506144bd565b5085935050505092915050565b600060208201905081810360008301526145118184614499565b905092915050565b600080604083850312156145305761452f613ffe565b5b600061453e8582860161419f565b925050602061454f8582860161419f565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61458e81614201565b82525050565b60006145a08383614585565b60208301905092915050565b6000602082019050919050565b60006145c482614559565b6145ce8185614564565b93506145d983614575565b8060005b8381101561460a5781516145f18882614594565b97506145fc836145ac565b9250506001810190506145dd565b5085935050505092915050565b6000602082019050818103600083015261463181846145b9565b905092915050565b60008083601f84011261464f5761464e614387565b5b8235905067ffffffffffffffff81111561466c5761466b61438c565b5b60208301915083600182028301111561468857614687614391565b5b9250929050565b600080602083850312156146a6576146a5613ffe565b5b600083013567ffffffffffffffff8111156146c4576146c3614003565b5b6146d085828601614639565b92509250509250929050565b6146e581614326565b81146146f057600080fd5b50565b600081359050614702816146dc565b92915050565b60006020828403121561471e5761471d613ffe565b5b600061472c848285016146f3565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61476d82614112565b810181811067ffffffffffffffff8211171561478c5761478b614735565b5b80604052505050565b600061479f613ff4565b90506147ab8282614764565b919050565b600067ffffffffffffffff8211156147cb576147ca614735565b5b602082029050602081019050919050565b60006147ef6147ea846147b0565b614795565b9050808382526020820190506020840283018581111561481257614811614391565b5b835b8181101561483b57806148278882614254565b845260208401935050602081019050614814565b5050509392505050565b600082601f83011261485a57614859614387565b5b813561486a8482602086016147dc565b91505092915050565b60006020828403121561488957614888613ffe565b5b600082013567ffffffffffffffff8111156148a7576148a6614003565b5b6148b384828501614845565b91505092915050565b6148c58161408d565b81146148d057600080fd5b50565b6000813590506148e2816148bc565b92915050565b600080604083850312156148ff576148fe613ffe565b5b600061490d85828601614254565b925050602061491e858286016148d3565b9150509250929050565b600080fd5b600067ffffffffffffffff82111561494857614947614735565b5b61495182614112565b9050602081019050919050565b82818337600083830152505050565b600061498061497b8461492d565b614795565b90508281526020810184848401111561499c5761499b614928565b5b6149a784828561495e565b509392505050565b600082601f8301126149c4576149c3614387565b5b81356149d484826020860161496d565b91505092915050565b600080600080608085870312156149f7576149f6613ffe565b5b6000614a0587828801614254565b9450506020614a1687828801614254565b9350506040614a278782880161419f565b925050606085013567ffffffffffffffff811115614a4857614a47614003565b5b614a54878288016149af565b91505092959194509250565b6000614a6b82614201565b9050919050565b614a7b81614a60565b8114614a8657600080fd5b50565b600081359050614a9881614a72565b92915050565b60008060408385031215614ab557614ab4613ffe565b5b6000614ac385828601614a89565b9250506020614ad48582860161419f565b9150509250929050565b60008060408385031215614af557614af4613ffe565b5b6000614b0385828601614254565b9250506020614b1485828601614254565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614b6557607f821691505b60208210811415614b7957614b78614b1e565b5b50919050565b7f77686974656c697374206d696e74206e6f742061637469766500000000000000600082015250565b6000614bb56019836140ce565b9150614bc082614b7f565b602082019050919050565b60006020820190508181036000830152614be481614ba8565b9050919050565b7f6164647265737320616c7265616479206d696e74656400000000000000000000600082015250565b6000614c216016836140ce565b9150614c2c82614beb565b602082019050919050565b60006020820190508181036000830152614c5081614c14565b9050919050565b60008160601b9050919050565b6000614c6f82614c57565b9050919050565b6000614c8182614c64565b9050919050565b614c99614c9482614201565b614c76565b82525050565b6000614cab8284614c88565b60148201915081905092915050565b7f696e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b6000614cf0600d836140ce565b9150614cfb82614cba565b602082019050919050565b60006020820190508181036000830152614d1f81614ce3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614d608261417e565b9150614d6b8361417e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614da057614d9f614d26565b5b828201905092915050565b7f6f72646572206578636565647320737570706c79000000000000000000000000600082015250565b6000614de16014836140ce565b9150614dec82614dab565b602082019050919050565b60006020820190508181036000830152614e1081614dd4565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614e4d6020836140ce565b9150614e5882614e17565b602082019050919050565b60006020820190508181036000830152614e7c81614e40565b9050919050565b6000614e8e8261417e565b9150614e998361417e565b925082821015614eac57614eab614d26565b5b828203905092915050565b6000614ec28261417e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614ef557614ef4614d26565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f61756374696f6e206e6f74207374617274656400000000000000000000000000600082015250565b6000614f656013836140ce565b9150614f7082614f2f565b602082019050919050565b60006020820190508181036000830152614f9481614f58565b9050919050565b7f61756374696f6e20656e64656400000000000000000000000000000000000000600082015250565b6000614fd1600d836140ce565b9150614fdc82614f9b565b602082019050919050565b6000602082019050818103600083015261500081614fc4565b9050919050565b600060408201905061501c60008301856142a9565b61502960208301846142a9565b9392505050565b7f6f6e6c7920454f412063616c6c73000000000000000000000000000000000000600082015250565b6000615066600e836140ce565b915061507182615030565b602082019050919050565b6000602082019050818103600083015261509581615059565b9050919050565b7f61756374696f6e2063616e6e6f7420626520656e646564207965740000000000600082015250565b60006150d2601b836140ce565b91506150dd8261509c565b602082019050919050565b60006020820190508181036000830152615101816150c5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006151428261417e565b915061514d8361417e565b92508261515d5761515c615108565b5b828206905092915050565b7f717565727920666f72206e6f6e6578697374656e7420746f6b656e0000000000600082015250565b600061519e601b836140ce565b91506151a982615168565b602082019050919050565b600060208201905081810360008301526151cd81615191565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b6000815461520181614b4d565b61520b81866151d4565b9450600182166000811461522657600181146152375761526a565b60ff1983168652818601935061526a565b615240856151df565b60005b8381101561526257815481890152600182019150602081019050615243565b838801955050505b50505092915050565b600061527e826140c3565b61528881856151d4565b93506152988185602086016140df565b80840191505092915050565b60006152b082866151f4565b91506152bc8285615273565b91506152c88284615273565b9150819050949350505050565b7f652d7769746864726177206e6f74206163746976650000000000000000000000600082015250565b600061530b6015836140ce565b9150615316826152d5565b602082019050919050565b6000602082019050818103600083015261533a816152fe565b9050919050565b7f6e6f20626964207375626d697474656400000000000000000000000000000000600082015250565b60006153776010836140ce565b915061538282615341565b602082019050919050565b600060208201905081810360008301526153a68161536a565b9050919050565b7f626964207072696365206d757374206265206174206c65617374203120776569600082015250565b60006153e36020836140ce565b91506153ee826153ad565b602082019050919050565b60006020820190508181036000830152615412816153d6565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006154756026836140ce565b915061548082615419565b604082019050919050565b600060208201905081810360008301526154a481615468565b9050919050565b60006060820190506154c060008301866142a9565b6154cd60208301856142a9565b6154da6040830184614330565b949350505050565b7f61756374696f6e206e6f7420636f6e636c756465640000000000000000000000600082015250565b60006155186015836140ce565b9150615523826154e2565b602082019050919050565b600060208201905081810360008301526155478161550b565b9050919050565b7f6d696e74206578636565647320737570706c7900000000000000000000000000600082015250565b60006155846013836140ce565b915061558f8261554e565b602082019050919050565b600060208201905081810360008301526155b381615577565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006155e1826155ba565b6155eb81856155c5565b93506155fb8185602086016140df565b61560481614112565b840191505092915050565b60006080820190506156246000830187614213565b6156316020830186614213565b61563e60408301856142a9565b818103606083015261565081846155d6565b905095945050505050565b60008151905061566a81614034565b92915050565b60006020828403121561568657615685613ffe565b5b60006156948482850161565b565b91505092915050565b60006040820190506156b26000830185614213565b6156bf60208301846142a9565b9392505050565b60006156d18261417e565b91506156dc8361417e565b9250826156ec576156eb615108565b5b828204905092915050565b600081519050615706816148bc565b92915050565b60006020828403121561572257615721613ffe565b5b6000615730848285016156f7565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000615795602a836140ce565b91506157a082615739565b604082019050919050565b600060208201905081810360008301526157c481615788565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006158276026836140ce565b9150615832826157cb565b604082019050919050565b600060208201905081810360008301526158568161581a565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000615893601d836140ce565b915061589e8261585d565b602082019050919050565b600060208201905081810360008301526158c281615886565b9050919050565b600081905092915050565b60006158df826155ba565b6158e981856158c9565b93506158f98185602086016140df565b80840191505092915050565b600061591182846158d4565b91508190509291505056fea2646970667358221220cc5fc9986f581068ad969e28cbd85b843a167152df14394fde5f67f2e5d6284564736f6c63430008090033
Deployed Bytecode
0x6080604052600436106102ae5760003560e01c8063715018a611610175578063bcba6939116100dc578063dcc70b9a11610095578063f17d076f1161006f578063f17d076f14610aa1578063f2fde38b14610acc578063f9bfaa7d14610af5578063fabd1d2d14610b1e576102ae565b8063dcc70b9a14610a2f578063e985e9c514610a5a578063ecfc7ecc14610a97576102ae565b8063bcba693914610933578063c87b56dd1461095c578063cb57ba5014610999578063d547cfb7146109c2578063da8b017d146109ed578063db2e21bc14610a18576102ae565b806398a8cffe1161012e57806398a8cffe146108135780639caed83a14610850578063a013781b1461088d578063a22cb465146108ca578063a6fc6ca2146108f3578063b88d4fde1461090a576102ae565b8063715018a6146107175780637cb647591461072e5780638132253a1461075757806384e867bb146107945780638da5cb5b146107bd57806395d89b41146107e8576102ae565b806342842e0e116102195780635b41062c116101d25780635b41062c146106055780636352211e14610630578063654634ea1461066d57806366c1020914610684578063684edbb7146106af57806370a08231146106da576102ae565b806342842e0e146104e557806343891f3a1461050e578063438b6300146105395780634f5b1ac7146105765780635228d710146105b357806355f804b3146105dc576102ae565b80632bfc9df01161026b5780632bfc9df0146103d55780632eb4a7ab1461040057806332cb6b0c1461042b5780633463deea14610456578063372f657c14610493578063375a069a146104bc576102ae565b806301ffc9a7146102b357806306fdde03146102f0578063081812fc1461031b578063095ea7b31461035857806318160ddd1461038157806323b872dd146103ac575b600080fd5b3480156102bf57600080fd5b506102da60048036038101906102d59190614060565b610b49565b6040516102e791906140a8565b60405180910390f35b3480156102fc57600080fd5b50610305610c2b565b604051610312919061415c565b60405180910390f35b34801561032757600080fd5b50610342600480360381019061033d91906141b4565b610cbd565b60405161034f9190614222565b60405180910390f35b34801561036457600080fd5b5061037f600480360381019061037a9190614269565b610d39565b005b34801561038d57600080fd5b50610396610e44565b6040516103a391906142b8565b60405180910390f35b3480156103b857600080fd5b506103d360048036038101906103ce91906142d3565b610e5b565b005b3480156103e157600080fd5b506103ea610e6b565b6040516103f7919061415c565b60405180910390f35b34801561040c57600080fd5b50610415610ea4565b604051610422919061433f565b60405180910390f35b34801561043757600080fd5b50610440610eaa565b60405161044d91906142b8565b60405180910390f35b34801561046257600080fd5b5061047d6004803603810190610478919061435a565b610eb0565b60405161048a91906142b8565b60405180910390f35b34801561049f57600080fd5b506104ba60048036038101906104b591906143ec565b610ec8565b005b3480156104c857600080fd5b506104e360048036038101906104de91906141b4565b611122565b005b3480156104f157600080fd5b5061050c600480360381019061050791906142d3565b61123b565b005b34801561051a57600080fd5b5061052361125b565b60405161053091906140a8565b60405180910390f35b34801561054557600080fd5b50610560600480360381019061055b919061435a565b61126e565b60405161056d91906144f7565b60405180910390f35b34801561058257600080fd5b5061059d60048036038101906105989190614519565b611378565b6040516105aa9190614617565b60405180910390f35b3480156105bf57600080fd5b506105da60048036038101906105d591906141b4565b6114a4565b005b3480156105e857600080fd5b5061060360048036038101906105fe919061468f565b6116ac565b005b34801561061157600080fd5b5061061a61173e565b60405161062791906142b8565b60405180910390f35b34801561063c57600080fd5b50610657600480360381019061065291906141b4565b611744565b6040516106649190614222565b60405180910390f35b34801561067957600080fd5b5061068261175a565b005b34801561069057600080fd5b50610699611802565b6040516106a691906142b8565b60405180910390f35b3480156106bb57600080fd5b506106c4611808565b6040516106d191906142b8565b60405180910390f35b3480156106e657600080fd5b5061070160048036038101906106fc919061435a565b61180e565b60405161070e91906142b8565b60405180910390f35b34801561072357600080fd5b5061072c6118de565b005b34801561073a57600080fd5b5061075560048036038101906107509190614708565b611966565b005b34801561076357600080fd5b5061077e60048036038101906107799190614873565b6119ec565b60405161078b91906144f7565b60405180910390f35b3480156107a057600080fd5b506107bb60048036038101906107b6919061435a565b611ade565b005b3480156107c957600080fd5b506107d2611b66565b6040516107df9190614222565b60405180910390f35b3480156107f457600080fd5b506107fd611b90565b60405161080a919061415c565b60405180910390f35b34801561081f57600080fd5b5061083a6004803603810190610835919061435a565b611c22565b60405161084791906140a8565b60405180910390f35b34801561085c57600080fd5b50610877600480360381019061087291906141b4565b611c42565b60405161088491906142b8565b60405180910390f35b34801561089957600080fd5b506108b460048036038101906108af91906141b4565b611d0c565b6040516108c19190614222565b60405180910390f35b3480156108d657600080fd5b506108f160048036038101906108ec91906148e8565b611d4b565b005b3480156108ff57600080fd5b50610908611ec3565b005b34801561091657600080fd5b50610931600480360381019061092c91906149dd565b611ece565b005b34801561093f57600080fd5b5061095a60048036038101906109559190614a9e565b611f4a565b005b34801561096857600080fd5b50610983600480360381019061097e91906141b4565b611ffc565b604051610990919061415c565b60405180910390f35b3480156109a557600080fd5b506109c060048036038101906109bb91906141b4565b6120af565b005b3480156109ce57600080fd5b506109d7612135565b6040516109e4919061415c565b60405180910390f35b3480156109f957600080fd5b50610a026121c3565b604051610a0f91906142b8565b60405180910390f35b348015610a2457600080fd5b50610a2d6121c9565b005b348015610a3b57600080fd5b50610a44612326565b604051610a5191906142b8565b60405180910390f35b348015610a6657600080fd5b50610a816004803603810190610a7c9190614ade565b612333565b604051610a8e91906140a8565b60405180910390f35b610a9f6123c7565b005b348015610aad57600080fd5b50610ab661269e565b604051610ac391906142b8565b60405180910390f35b348015610ad857600080fd5b50610af36004803603810190610aee919061435a565b6126a4565b005b348015610b0157600080fd5b50610b1c6004803603810190610b17919061435a565b61279c565b005b348015610b2a57600080fd5b50610b336128a1565b604051610b4091906140a8565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c1457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c245750610c23826128b4565b5b9050919050565b606060028054610c3a90614b4d565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6690614b4d565b8015610cb35780601f10610c8857610100808354040283529160200191610cb3565b820191906000526020600020905b815481529060010190602001808311610c9657829003601f168201915b5050505050905090565b6000610cc88261291e565b610cfe576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d4482611744565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610dac576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610dcb61296c565b73ffffffffffffffffffffffffffffffffffffffff1614158015610dfd5750610dfb81610df661296c565b612333565b155b15610e34576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e3f838383612974565b505050565b6000610e4e612a26565b6001546000540303905090565b610e66838383612a2b565b505050565b6040518060400160405280600581526020017f2e6a736f6e00000000000000000000000000000000000000000000000000000081525081565b60125481565b60095481565b60146020528060005260406000206000915090505481565b601060019054906101000a900460ff16610f17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0e90614bcb565b60405180910390fd5b601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610fa4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9b90614c37565b60405180910390fd5b600033604051602001610fb79190614c9f565b60405160208183030381529060405280519060200120905061101d838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060125483612ee1565b61105c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105390614d06565b60405180910390fd5b6000611066610e44565b90506009546001826110789190614d55565b11156110b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b090614df7565b60405180910390fd5b6001601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061111c336001612ef8565b50505050565b61112a61296c565b73ffffffffffffffffffffffffffffffffffffffff16611148611b66565b73ffffffffffffffffffffffffffffffffffffffff161461119e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119590614e63565b60405180910390fd5b60006111a8610e44565b905060095482826111b99190614d55565b11156111fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f190614df7565b60405180910390fd5b5b600a8211156112235761120f33600a612ef8565b600a8261121c9190614e83565b91506111fb565b6000821115611237576112363383612ef8565b5b5050565b61125683838360405180602001604052806000815250611ece565b505050565b601060009054906101000a900460ff1681565b606060008061127c8461180e565b90506000611288610e44565b905060008267ffffffffffffffff8111156112a6576112a5614735565b5b6040519080825280602002602001820160405280156112d45781602001602082028036833780820191505090505b50905060005b8281101561136b576112eb81611744565b73ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff161415611358578082868061132b90614eb7565b97508151811061133e5761133d614f00565b5b602002602001018181525050838514156113575761136b565b5b808061136390614eb7565b9150506112da565b5080945050505050919050565b606060006001848461138a9190614e83565b6113949190614d55565b905060008167ffffffffffffffff8111156113b2576113b1614735565b5b6040519080825280602002602001820160405280156113e05781602001602082028036833780820191505090505b50905060005b8281101561149857601186826113fc9190614d55565b8154811061140d5761140c614f00565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682828151811061144b5761144a614f00565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050808061149090614eb7565b9150506113e6565b50809250505092915050565b600a544210156114e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e090614f7b565b60405180910390fd5b601060009054906101000a900460ff1615611539576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153090614fe7565b60405180910390fd5b60155442106115a0576001601060006101000a81548160ff0219169083151502179055507fe536ac546f86787f3ea4069f79235c6b5a681e87d051300a3ed19a6ebb0db71c42601180549050604051611593929190615007565b60405180910390a16116a9565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161480156115f2575060003373ffffffffffffffffffffffffffffffffffffffff163b145b611631576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116289061507c565b60405180910390fd5b600c54421015611676576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166d906150e8565b60405180910390fd5b42600b546116849190614e83565b61168d82612f16565b6116979190615137565b426116a29190614d55565b6015819055505b50565b6116b461296c565b73ffffffffffffffffffffffffffffffffffffffff166116d2611b66565b73ffffffffffffffffffffffffffffffffffffffff1614611728576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171f90614e63565b60405180910390fd5b8181600f9190611739929190613f0e565b505050565b600c5481565b600061174f82612f5f565b600001519050919050565b61176261296c565b73ffffffffffffffffffffffffffffffffffffffff16611780611b66565b73ffffffffffffffffffffffffffffffffffffffff16146117d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117cd90614e63565b60405180910390fd5b601060019054906101000a900460ff1615601060016101000a81548160ff021916908315150217905550565b600e5481565b600b5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611876576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6118e661296c565b73ffffffffffffffffffffffffffffffffffffffff16611904611b66565b73ffffffffffffffffffffffffffffffffffffffff161461195a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195190614e63565b60405180910390fd5b61196460006131ee565b565b61196e61296c565b73ffffffffffffffffffffffffffffffffffffffff1661198c611b66565b73ffffffffffffffffffffffffffffffffffffffff16146119e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d990614e63565b60405180910390fd5b8060128190555050565b60606000825167ffffffffffffffff811115611a0b57611a0a614735565b5b604051908082528060200260200182016040528015611a395781602001602082028036833780820191505090505b50905060005b8351811015611ad45760146000858381518110611a5f57611a5e614f00565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054828281518110611ab557611ab4614f00565b5b6020026020010181815250508080611acc90614eb7565b915050611a3f565b5080915050919050565b611ae661296c565b73ffffffffffffffffffffffffffffffffffffffff16611b04611b66565b73ffffffffffffffffffffffffffffffffffffffff1614611b5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5190614e63565b60405180910390fd5b611b63816132b4565b50565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611b9f90614b4d565b80601f0160208091040260200160405190810160405280929190818152602001828054611bcb90614b4d565b8015611c185780601f10611bed57610100808354040283529160200191611c18565b820191906000526020600020905b815481529060010190602001808311611bfb57829003601f168201915b5050505050905090565b60136020528060005260406000206000915054906101000a900460ff1681565b600080600080600090505b601180549050811015611d045760118181548110611c6e57611c6d614f00565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169250601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549150848210611cf15783611cee90614eb7565b93505b8080611cfc90614eb7565b915050611c4d565b505050919050565b60118181548110611d1c57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611d5361296c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611db8576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611dc561296c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611e7261296c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611eb791906140a8565b60405180910390a35050565b611ecc336132b4565b565b611ed9848484612a2b565b611ef88373ffffffffffffffffffffffffffffffffffffffff166134d2565b8015611f0d5750611f0b848484846134f5565b155b15611f44576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b611f5261296c565b73ffffffffffffffffffffffffffffffffffffffff16611f70611b66565b73ffffffffffffffffffffffffffffffffffffffff1614611fc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fbd90614e63565b60405180910390fd5b611ff8611fd1611b66565b828473ffffffffffffffffffffffffffffffffffffffff166136559092919063ffffffff16565b5050565b60606120078261291e565b612046576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203d906151b4565b60405180910390fd5b600f612051836136db565b6040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250604051602001612099939291906152a4565b6040516020818303038152906040529050919050565b6120b761296c565b73ffffffffffffffffffffffffffffffffffffffff166120d5611b66565b73ffffffffffffffffffffffffffffffffffffffff161461212b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212290614e63565b60405180910390fd5b80600d8190555050565b600f805461214290614b4d565b80601f016020809104026020016040519081016040528092919081815260200182805461216e90614b4d565b80156121bb5780601f10612190576101008083540402835291602001916121bb565b820191906000526020600020905b81548152906001019060200180831161219e57829003601f168201915b505050505081565b600d5481565b6000600e54141561220f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220690615321565b60405180910390fd5b6000601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811415612297576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228e9061538d565b60405180910390fd5b6000601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015612322573d6000803e3d6000fd5b5050565b6000601180549050905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600a5442101561240c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240390614f7b565b60405180910390fd5b601060009054906101000a900460ff161561245c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245390614fe7565b60405180910390fd5b60155442106124c3576001601060006101000a81548160ff0219169083151502179055507fe536ac546f86787f3ea4069f79235c6b5a681e87d051300a3ed19a6ebb0db71c426011805490506040516124b6929190615007565b60405180910390a161269c565b60003411612506576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124fd906153f9565b60405180910390fd5b6000601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008114156125b7576011339080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b34601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126069190614d55565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167f3fabff0a9c3ecd6814702e247fa9733e5d0aa69e3a38590f92cb18f623a2254d601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460405161269291906142b8565b60405180910390a2505b565b600a5481565b6126ac61296c565b73ffffffffffffffffffffffffffffffffffffffff166126ca611b66565b73ffffffffffffffffffffffffffffffffffffffff1614612720576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271790614e63565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612790576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127879061548b565b60405180910390fd5b612799816131ee565b50565b6127a461296c565b73ffffffffffffffffffffffffffffffffffffffff166127c2611b66565b73ffffffffffffffffffffffffffffffffffffffff1614612818576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161280f90614e63565b60405180910390fd5b6000600e54141561283d5762015180426128329190614d55565b600e8190555061289e565b42600e54101561289d576000600e8190555060004790508173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561289a573d6000803e3d6000fd5b50505b5b50565b601060019054906101000a900460ff1681565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081612929612a26565b11158015612938575060005482105b8015612965575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b6000612a3682612f5f565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612aa1576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16612ac261296c565b73ffffffffffffffffffffffffffffffffffffffff161480612af15750612af085612aeb61296c565b612333565b5b80612b365750612aff61296c565b73ffffffffffffffffffffffffffffffffffffffff16612b1e84610cbd565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612b6f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612bd6576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612be3858585600161383c565b612bef60008487612974565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612e6f576000548214612e6e57878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612eda8585856001613842565b5050505050565b600082612eee8584613848565b1490509392505050565b612f128282604051806020016040528060008152506138bd565b5050565b600081601180549050600143612f2c9190614e83565b40604051602001612f3f939291906154ab565b6040516020818303038152906040528051906020012060001c9050919050565b612f67613f94565b600082905080612f75612a26565b11158015612f84575060005481105b156131b7576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050905080604001516131b557600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146130995780925050506131e9565b5b6001156131b457818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146131af5780925050506131e9565b61309a565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600d5414156132fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132f19061552e565b60405180910390fd5b6000601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811415613382576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133799061538d565b60405180910390fd5b6000600d54821061343d57600954613398610e44565b106133d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133cf9061559a565b60405180910390fd5b6000601460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600d548261342b9190614e83565b9050613438836001612ef8565b613486565b6000601460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508190505b8273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156134cc573d6000803e3d6000fd5b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261351b61296c565b8786866040518563ffffffff1660e01b815260040161353d949392919061560f565b602060405180830381600087803b15801561355757600080fd5b505af192505050801561358857506040513d601f19601f820116820180604052508101906135859190615670565b60015b613602573d80600081146135b8576040519150601f19603f3d011682016040523d82523d6000602084013e6135bd565b606091505b506000815114156135fa576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6136d68363a9059cbb60e01b848460405160240161367492919061569d565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506138cf565b505050565b60606000821415613723576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613837565b600082905060005b6000821461375557808061373e90614eb7565b915050600a8261374e91906156c6565b915061372b565b60008167ffffffffffffffff81111561377157613770614735565b5b6040519080825280601f01601f1916602001820160405280156137a35781602001600182028036833780820191505090505b5090505b60008514613830576001826137bc9190614e83565b9150600a856137cb9190615137565b60306137d79190614d55565b60f81b8183815181106137ed576137ec614f00565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561382991906156c6565b94506137a7565b8093505050505b919050565b50505050565b50505050565b60008082905060005b84518110156138b257600085828151811061386f5761386e614f00565b5b602002602001015190508083116138915761388a8382613996565b925061389e565b61389b8184613996565b92505b5080806138aa90614eb7565b915050613851565b508091505092915050565b6138ca83838360016139ad565b505050565b6000613931826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16613d7b9092919063ffffffff16565b90506000815111156139915780806020019051810190613951919061570c565b613990576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613987906157ab565b60405180910390fd5b5b505050565b600082600052816020526040600020905092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415613a1a576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000841415613a55576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613a62600086838761383c565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060008582019050838015613c2c5750613c2b8773ffffffffffffffffffffffffffffffffffffffff166134d2565b5b15613cf2575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613ca160008884806001019550886134f5565b613cd7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80821415613c32578260005414613ced57600080fd5b613d5e565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821415613cf3575b816000819055505050613d746000868387613842565b5050505050565b6060613d8a8484600085613d93565b90509392505050565b606082471015613dd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613dcf9061583d565b60405180910390fd5b613de1856134d2565b613e20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613e17906158a9565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613e499190615905565b60006040518083038185875af1925050503d8060008114613e86576040519150601f19603f3d011682016040523d82523d6000602084013e613e8b565b606091505b5091509150613e9b828286613ea7565b92505050949350505050565b60608315613eb757829050613f07565b600083511115613eca5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613efe919061415c565b60405180910390fd5b9392505050565b828054613f1a90614b4d565b90600052602060002090601f016020900481019282613f3c5760008555613f83565b82601f10613f5557803560ff1916838001178555613f83565b82800160010185558215613f83579182015b82811115613f82578235825591602001919060010190613f67565b5b509050613f909190613fd7565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115613ff0576000816000905550600101613fd8565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61403d81614008565b811461404857600080fd5b50565b60008135905061405a81614034565b92915050565b60006020828403121561407657614075613ffe565b5b60006140848482850161404b565b91505092915050565b60008115159050919050565b6140a28161408d565b82525050565b60006020820190506140bd6000830184614099565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156140fd5780820151818401526020810190506140e2565b8381111561410c576000848401525b50505050565b6000601f19601f8301169050919050565b600061412e826140c3565b61413881856140ce565b93506141488185602086016140df565b61415181614112565b840191505092915050565b600060208201905081810360008301526141768184614123565b905092915050565b6000819050919050565b6141918161417e565b811461419c57600080fd5b50565b6000813590506141ae81614188565b92915050565b6000602082840312156141ca576141c9613ffe565b5b60006141d88482850161419f565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061420c826141e1565b9050919050565b61421c81614201565b82525050565b60006020820190506142376000830184614213565b92915050565b61424681614201565b811461425157600080fd5b50565b6000813590506142638161423d565b92915050565b600080604083850312156142805761427f613ffe565b5b600061428e85828601614254565b925050602061429f8582860161419f565b9150509250929050565b6142b28161417e565b82525050565b60006020820190506142cd60008301846142a9565b92915050565b6000806000606084860312156142ec576142eb613ffe565b5b60006142fa86828701614254565b935050602061430b86828701614254565b925050604061431c8682870161419f565b9150509250925092565b6000819050919050565b61433981614326565b82525050565b60006020820190506143546000830184614330565b92915050565b6000602082840312156143705761436f613ffe565b5b600061437e84828501614254565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126143ac576143ab614387565b5b8235905067ffffffffffffffff8111156143c9576143c861438c565b5b6020830191508360208202830111156143e5576143e4614391565b5b9250929050565b6000806020838503121561440357614402613ffe565b5b600083013567ffffffffffffffff81111561442157614420614003565b5b61442d85828601614396565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61446e8161417e565b82525050565b60006144808383614465565b60208301905092915050565b6000602082019050919050565b60006144a482614439565b6144ae8185614444565b93506144b983614455565b8060005b838110156144ea5781516144d18882614474565b97506144dc8361448c565b9250506001810190506144bd565b5085935050505092915050565b600060208201905081810360008301526145118184614499565b905092915050565b600080604083850312156145305761452f613ffe565b5b600061453e8582860161419f565b925050602061454f8582860161419f565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61458e81614201565b82525050565b60006145a08383614585565b60208301905092915050565b6000602082019050919050565b60006145c482614559565b6145ce8185614564565b93506145d983614575565b8060005b8381101561460a5781516145f18882614594565b97506145fc836145ac565b9250506001810190506145dd565b5085935050505092915050565b6000602082019050818103600083015261463181846145b9565b905092915050565b60008083601f84011261464f5761464e614387565b5b8235905067ffffffffffffffff81111561466c5761466b61438c565b5b60208301915083600182028301111561468857614687614391565b5b9250929050565b600080602083850312156146a6576146a5613ffe565b5b600083013567ffffffffffffffff8111156146c4576146c3614003565b5b6146d085828601614639565b92509250509250929050565b6146e581614326565b81146146f057600080fd5b50565b600081359050614702816146dc565b92915050565b60006020828403121561471e5761471d613ffe565b5b600061472c848285016146f3565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61476d82614112565b810181811067ffffffffffffffff8211171561478c5761478b614735565b5b80604052505050565b600061479f613ff4565b90506147ab8282614764565b919050565b600067ffffffffffffffff8211156147cb576147ca614735565b5b602082029050602081019050919050565b60006147ef6147ea846147b0565b614795565b9050808382526020820190506020840283018581111561481257614811614391565b5b835b8181101561483b57806148278882614254565b845260208401935050602081019050614814565b5050509392505050565b600082601f83011261485a57614859614387565b5b813561486a8482602086016147dc565b91505092915050565b60006020828403121561488957614888613ffe565b5b600082013567ffffffffffffffff8111156148a7576148a6614003565b5b6148b384828501614845565b91505092915050565b6148c58161408d565b81146148d057600080fd5b50565b6000813590506148e2816148bc565b92915050565b600080604083850312156148ff576148fe613ffe565b5b600061490d85828601614254565b925050602061491e858286016148d3565b9150509250929050565b600080fd5b600067ffffffffffffffff82111561494857614947614735565b5b61495182614112565b9050602081019050919050565b82818337600083830152505050565b600061498061497b8461492d565b614795565b90508281526020810184848401111561499c5761499b614928565b5b6149a784828561495e565b509392505050565b600082601f8301126149c4576149c3614387565b5b81356149d484826020860161496d565b91505092915050565b600080600080608085870312156149f7576149f6613ffe565b5b6000614a0587828801614254565b9450506020614a1687828801614254565b9350506040614a278782880161419f565b925050606085013567ffffffffffffffff811115614a4857614a47614003565b5b614a54878288016149af565b91505092959194509250565b6000614a6b82614201565b9050919050565b614a7b81614a60565b8114614a8657600080fd5b50565b600081359050614a9881614a72565b92915050565b60008060408385031215614ab557614ab4613ffe565b5b6000614ac385828601614a89565b9250506020614ad48582860161419f565b9150509250929050565b60008060408385031215614af557614af4613ffe565b5b6000614b0385828601614254565b9250506020614b1485828601614254565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614b6557607f821691505b60208210811415614b7957614b78614b1e565b5b50919050565b7f77686974656c697374206d696e74206e6f742061637469766500000000000000600082015250565b6000614bb56019836140ce565b9150614bc082614b7f565b602082019050919050565b60006020820190508181036000830152614be481614ba8565b9050919050565b7f6164647265737320616c7265616479206d696e74656400000000000000000000600082015250565b6000614c216016836140ce565b9150614c2c82614beb565b602082019050919050565b60006020820190508181036000830152614c5081614c14565b9050919050565b60008160601b9050919050565b6000614c6f82614c57565b9050919050565b6000614c8182614c64565b9050919050565b614c99614c9482614201565b614c76565b82525050565b6000614cab8284614c88565b60148201915081905092915050565b7f696e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b6000614cf0600d836140ce565b9150614cfb82614cba565b602082019050919050565b60006020820190508181036000830152614d1f81614ce3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614d608261417e565b9150614d6b8361417e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614da057614d9f614d26565b5b828201905092915050565b7f6f72646572206578636565647320737570706c79000000000000000000000000600082015250565b6000614de16014836140ce565b9150614dec82614dab565b602082019050919050565b60006020820190508181036000830152614e1081614dd4565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614e4d6020836140ce565b9150614e5882614e17565b602082019050919050565b60006020820190508181036000830152614e7c81614e40565b9050919050565b6000614e8e8261417e565b9150614e998361417e565b925082821015614eac57614eab614d26565b5b828203905092915050565b6000614ec28261417e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614ef557614ef4614d26565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f61756374696f6e206e6f74207374617274656400000000000000000000000000600082015250565b6000614f656013836140ce565b9150614f7082614f2f565b602082019050919050565b60006020820190508181036000830152614f9481614f58565b9050919050565b7f61756374696f6e20656e64656400000000000000000000000000000000000000600082015250565b6000614fd1600d836140ce565b9150614fdc82614f9b565b602082019050919050565b6000602082019050818103600083015261500081614fc4565b9050919050565b600060408201905061501c60008301856142a9565b61502960208301846142a9565b9392505050565b7f6f6e6c7920454f412063616c6c73000000000000000000000000000000000000600082015250565b6000615066600e836140ce565b915061507182615030565b602082019050919050565b6000602082019050818103600083015261509581615059565b9050919050565b7f61756374696f6e2063616e6e6f7420626520656e646564207965740000000000600082015250565b60006150d2601b836140ce565b91506150dd8261509c565b602082019050919050565b60006020820190508181036000830152615101816150c5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006151428261417e565b915061514d8361417e565b92508261515d5761515c615108565b5b828206905092915050565b7f717565727920666f72206e6f6e6578697374656e7420746f6b656e0000000000600082015250565b600061519e601b836140ce565b91506151a982615168565b602082019050919050565b600060208201905081810360008301526151cd81615191565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b6000815461520181614b4d565b61520b81866151d4565b9450600182166000811461522657600181146152375761526a565b60ff1983168652818601935061526a565b615240856151df565b60005b8381101561526257815481890152600182019150602081019050615243565b838801955050505b50505092915050565b600061527e826140c3565b61528881856151d4565b93506152988185602086016140df565b80840191505092915050565b60006152b082866151f4565b91506152bc8285615273565b91506152c88284615273565b9150819050949350505050565b7f652d7769746864726177206e6f74206163746976650000000000000000000000600082015250565b600061530b6015836140ce565b9150615316826152d5565b602082019050919050565b6000602082019050818103600083015261533a816152fe565b9050919050565b7f6e6f20626964207375626d697474656400000000000000000000000000000000600082015250565b60006153776010836140ce565b915061538282615341565b602082019050919050565b600060208201905081810360008301526153a68161536a565b9050919050565b7f626964207072696365206d757374206265206174206c65617374203120776569600082015250565b60006153e36020836140ce565b91506153ee826153ad565b602082019050919050565b60006020820190508181036000830152615412816153d6565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006154756026836140ce565b915061548082615419565b604082019050919050565b600060208201905081810360008301526154a481615468565b9050919050565b60006060820190506154c060008301866142a9565b6154cd60208301856142a9565b6154da6040830184614330565b949350505050565b7f61756374696f6e206e6f7420636f6e636c756465640000000000000000000000600082015250565b60006155186015836140ce565b9150615523826154e2565b602082019050919050565b600060208201905081810360008301526155478161550b565b9050919050565b7f6d696e74206578636565647320737570706c7900000000000000000000000000600082015250565b60006155846013836140ce565b915061558f8261554e565b602082019050919050565b600060208201905081810360008301526155b381615577565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006155e1826155ba565b6155eb81856155c5565b93506155fb8185602086016140df565b61560481614112565b840191505092915050565b60006080820190506156246000830187614213565b6156316020830186614213565b61563e60408301856142a9565b818103606083015261565081846155d6565b905095945050505050565b60008151905061566a81614034565b92915050565b60006020828403121561568657615685613ffe565b5b60006156948482850161565b565b91505092915050565b60006040820190506156b26000830185614213565b6156bf60208301846142a9565b9392505050565b60006156d18261417e565b91506156dc8361417e565b9250826156ec576156eb615108565b5b828204905092915050565b600081519050615706816148bc565b92915050565b60006020828403121561572257615721613ffe565b5b6000615730848285016156f7565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000615795602a836140ce565b91506157a082615739565b604082019050919050565b600060208201905081810360008301526157c481615788565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006158276026836140ce565b9150615832826157cb565b604082019050919050565b600060208201905081810360008301526158568161581a565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000615893601d836140ce565b915061589e8261585d565b602082019050919050565b600060208201905081810360008301526158c281615886565b9050919050565b600081905092915050565b60006158df826155ba565b6158e981856158c9565b93506158f98185602086016140df565b80840191505092915050565b600061591182846158d4565b91508190509291505056fea2646970667358221220cc5fc9986f581068ad969e28cbd85b843a167152df14394fde5f67f2e5d6284564736f6c63430008090033
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.