Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
850 DeadBod
Holders
470
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 DeadBodLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
The90sArchives
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 1 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; // //╭━━━┳━━━╮╱╱╭━━━╮╱╱╱╱╭╮ //┃╭━╮┃╭━╮┃╱╱┃╭━╮┃╱╱╱╱┃┃ //┃╰━╯┃┃┃┃┣━━┫┃╱┃┣━┳━━┫╰━┳┳╮╭┳━━┳━━╮ //╰━━╮┃┃┃┃┃━━┫╰━╯┃╭┫╭━┫╭╮┣┫╰╯┃┃━┫━━┫ //╭━━╯┃╰━╯┣━━┃╭━╮┃┃┃╰━┫┃┃┃┣╮╭┫┃━╋━━┃ //╰━━━┻━━━┻━━┻╯╱╰┻╯╰━━┻╯╰┻╯╰╯╰━━┻━━╯ // import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./I90Archive.sol"; contract The90sArchives is ERC721Enumerable, Ownable { struct The90sArchivesStruct { uint256 bg; uint256 skin; uint256 mouth; uint256 cloth1; uint256 cloth2; uint256 cloth3; uint256 hair; uint256 eyes; uint256 ear1; uint256 ear2; uint256 headwear; uint256 headgear; uint256 extra; } struct The90sArchiveParts { address owner; uint256 partInTheBody; } // ManagerInterface public manager; using Strings for uint256; /// @dev Emitted when {startPreSale} is executed and the presale isn't on. event PreSaleStarted(); /// @dev Emitted when {startSale} is executed and the sale isn't on. event SaleStarted(); /// @dev Emitted when {pauseSale} is executed and the sale is on. event SalePaused(); /// @dev Emitted when {SetPresaleWhitelist} is executed and the sale is on. event SetPresaleWhitelist(); /// @dev Emitted when {SetSpecialWhitelist} is executed and the sale is on. event SetSpecialWhitelist(); /// @dev Emitted when {SetTargetNFTWhitelist} is executed and the sale is on. event SetTargetNFTWhitelist(); /// @dev Emitted when {SetPriorityNFTWhitelist} is executed and the sale is on. event SetPriorityNFTWhitelist(); /// @dev Emitted when {SetOGNFTWhitelistLimit} is executed and the sale is on. event SetOGNFTWhitelistLimit(); /// @dev Emitted when {startSale} is executed for the first time. event ClaimsReserveUpdated(uint256 indexed reserve); /// @dev Emitted when a The90s token is claimed based on a Rat held event ArchiveClaimed(uint256 indexed ratId, uint256 indexed goodGuyId); /// @dev Emitted when {reveal} is executed. event Reveal(uint256 indexed startingIndex); /// @dev Emitted when {setTokenURI} is executed. event TokenURISet(string indexed tokenUri); /// @dev Emitted when {lockTokenURI} is executed (once-only). event TokenURILocked(string indexed tokenUri); /// @dev Emitted when owners of deadbod parts have been set. event SetArchivePartsOwner(); /// @dev Emitted when the reserved 90s archieves have been minted event MintReserveArchives(); /// @dev Emitted when the influencer 90s archieves have been minted event MintInfluencerArchives(); /// @dev Emitted when the public 90s archieves have been minted event MintPublicArchives(); IERC721 public BAYC = IERC721(0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D); string public The90sArchives_PROVENANCE = ""; bool private onTransfer = true; uint256 public constant MAX_The90s_SUPPLY = 9090; uint256 public PUBLIC_CAP = 5000; uint256 public The90s_PACK_LIMIT = 10; uint256 public The90s_PRICE = 6 ether / 100; uint256 public The90s_PRICE_PRESALE = 4 ether / 100; uint256 private constant CLAIM_PERIOD_DURATION = 1 weeks; string private constant PLACEHOLDER_SUFFIX = ""; string private constant METADATA_INFIX = "metadata/"; uint256 public startingIndex = 300; uint256 public remainIndex = 0; // uint256[] public remainArchive; bool public preSaleStarted; bool public saleStarted; uint256 public saleStartedAt; bool public tokenURILocked; mapping (address => bool) public preSaleWhitelist; mapping (address => bool) public specialWhitelist; mapping (uint256 => address) public targetNFTWhitelist; //Obsoleted mapping (uint256 => address) public priorityNFTWhitelist; //Obsoleted mapping (address => uint256) public OGNFTWhitelistLimit; mapping(uint256 => The90sArchivesStruct) public deadbod; mapping(uint256 => The90sArchiveParts) public deadpart; // current metadata base prefix string private _baseTokenUri; // prevent callers from sending ETH directly receive() external payable { revert(); } // prevent callers from sending ETH directly fallback() external payable { revert(); } constructor() ERC721("The90sArchives", "DeadBod") { } // ----- PUBLIC ----- // ------------------ /* * Set provenance once it's calculated */ function setProvenanceHash(string memory provenanceHash) public onlyOwner { The90sArchives_PROVENANCE = provenanceHash; } function setCollabContract(address _addr) public onlyOwner { BAYC = IERC721(_addr); } function checkCollabBalance() public view returns(uint256) { return BAYC.balanceOf(msg.sender); } function setStartIndexPublicSale(uint256 index) public onlyOwner { startingIndex = index; emit Reveal(startingIndex); } function setPublicCapRound(uint256 cap) public onlyOwner { PUBLIC_CAP = cap; } function setArchivesPrice(uint256 price) public onlyOwner { The90s_PRICE = (price * 1 ether ) / 100; } function setPackLimit(uint256 limit) public onlyOwner { The90s_PACK_LIMIT = limit; } function startPreSale() public onlyOwner { // will also restart when on pause if (!preSaleStarted) { preSaleStarted = true; emit PreSaleStarted(); } } function setTransfer(bool tran) public onlyOwner { onTransfer = tran; } function setArchivePartsOwner(uint256[] memory partIDs, address[] memory _owner, uint256[] memory bodySection) public onlyOwner { require(partIDs.length == _owner.length, "Number of body parts and owners must be equal"); require(partIDs.length == bodySection.length, "Number of body parts and bodySection must be equal"); for (uint256 i = 0; i < partIDs.length; i++) { deadpart[partIDs[i]] = The90sArchiveParts({ owner : _owner[i], partInTheBody : bodySection[i] }); } } function preSetTraitNFTs(uint256[] memory tokenIDs, uint256[] memory archiveTraits) public onlyOwner { require(tokenIDs.length * 10 == archiveTraits.length, "Number of traits must equal to number of tokens*attr"); uint256 j = 0; for (uint256 i = 0; i < tokenIDs.length; i++) { deadbod[tokenIDs[i]] = The90sArchivesStruct({ bg : archiveTraits[j], skin : archiveTraits[j+1], mouth : archiveTraits[j+2], cloth1 : archiveTraits[j+3], cloth2 : archiveTraits[j+4], cloth3 : archiveTraits[j+5], hair : archiveTraits[j+6], eyes : archiveTraits[j+7], ear1 : archiveTraits[j+8], ear2 : archiveTraits[j+9], headwear : archiveTraits[j+10], headgear : archiveTraits[j+11], extra : archiveTraits[j+12] }); j += 10; } } function pausePreSale() public onlyOwner { // will also restart when on pause if (preSaleStarted) { preSaleStarted = false; } } /* * @dev Start or restart distribution. Only callable by the owner. * On the first call, * - set claim reserve value (once-only) * - set sale start timestamp and emit {ClaimsReserveUpdated} (once-only) * - emit {SaleStarted} * * On subsequent calls, * - restart sale and emit {SaleStarted} if paused; * otherwise, do nothing */ function startSale() public onlyOwner { // will also restart when on pause if (!saleStarted) { saleStarted = true; emit SaleStarted(); } // once-only: set timestamp and update reserve if (saleStartedAt == 0) { saleStartedAt = block.timestamp; } } /* * @dev If sale is on, pause it and emit {SalePaused}; otherwise, do nothing. * Only callable by the owner. */ function pauseSale() public onlyOwner { if (saleStarted) { saleStarted = false; emit SalePaused(); } } function setPresaleWhitelist(address[] memory account, bool isAdd) external onlyOwner { for(uint256 i=0; i < account.length; i++) { preSaleWhitelist[account[i]] = isAdd; } emit SetPresaleWhitelist(); } function setSpecialWhitelist(address[] memory account, bool isAdd) external onlyOwner { for(uint256 i=0; i < account.length; i++) { specialWhitelist[account[i]] = isAdd; } emit SetSpecialWhitelist(); } //Obsoleted function setTargetNFTWhitelist(address[] memory account, uint256[] memory tokenId) external onlyOwner { require(account.length == tokenId.length, "No of accounts & tokens don't match"); for(uint256 i=0; i < tokenId.length; i++) { targetNFTWhitelist[tokenId[i]] = account[i]; } emit SetTargetNFTWhitelist(); } //Obsoleted function setPriorityNFTWhitelist(address[] memory account, uint256[] memory tokenId) external onlyOwner { require(account.length == tokenId.length, "No of accounts & tokens don't match"); for(uint256 i=0; i < tokenId.length; i++) { priorityNFTWhitelist[tokenId[i]] = account[i]; } emit SetPriorityNFTWhitelist(); } function setOGNFTWhitelistLimit(address[] memory account, uint256[] memory limit) external onlyOwner { require(account.length == limit.length, "No of accounts & tokens don't match"); for(uint256 i=0; i < limit.length; i++) { OGNFTWhitelistLimit[account[i]] = limit[i]; } emit SetOGNFTWhitelistLimit(); } /** * @dev Mint `numberOfThe90ss` 90Archives. * - Will only mint up to (`MAX_The90s_SUPPLY` - `ratClaimsReserve`) 90Archives. * - Will mint up to `The90s_PACK_LIMIT` items at once. * - Will only mint after the sale is started. * - ETH sent must equal (`numberOfThe90ss` * `The90s_PRICE`) * * @param numberOfThe90s The number of 90Archives NFTs to mint. */ function mintThe90sPreSale(uint256 numberOfThe90s) public payable returns (uint256[] memory){ //Whitelisted if(preSaleStarted){ require(preSaleWhitelist[msg.sender], "You are not in the private list"); }else{ _enforceSaleStarted(); } require(startingIndex + totalSupply() <= MAX_The90s_SUPPLY, "Archieves sold out"); require(balanceOf(msg.sender) + numberOfThe90s <= The90s_PACK_LIMIT + OGNFTWhitelistLimit[msg.sender], "Buy limit exceeded"); require(numberOfThe90s > 0, "Need to mint at least one"); require(The90s_PRICE_PRESALE * numberOfThe90s == msg.value, "Invalid ETH Amount"); uint256[] memory resultIDs = new uint256[](numberOfThe90s); //Minting loop for (uint256 i = 0; i < numberOfThe90s; i++) { // require(!_exists(archiveIDs[i]), "ERC721: token already minted"); // require(targetNFTWhitelist[archiveIDs[i]] == msg.sender, "This token is reserved by others"); // _safeMint(msg.sender, archiveIDs[i]); uint256 tokenId = totalSupply() + startingIndex + 1; _safeMint(msg.sender, tokenId); resultIDs[i] = tokenId; } emit MintReserveArchives(); return resultIDs; } /** * @dev Mint `numberOfThe90s` 90Archives. * - Will only mint up to (`MAX_The90s_SUPPLY` - `ratClaimsReserve`) 90Archives. * - Will mint up to `The90s_PACK_LIMIT` items at once. * - Will only mint after the sale is started. * - ETH sent must equal (`numberOfThe90ss` * `The90s_PRICE`) * * @param numberOfThe90s The number of 90Archives NFTs to mint. */ function mintThe90sPublic(uint256 numberOfThe90s) public payable returns (uint256[] memory){ _enforceSaleStarted(); require(startingIndex + totalSupply() <= MAX_The90s_SUPPLY, "Archieves sold out"); require(startingIndex + totalSupply() <= PUBLIC_CAP, "Archieves exceeded this round"); require(numberOfThe90s <= The90s_PACK_LIMIT, "Buy limit exceeded"); require(numberOfThe90s > 0, "Need to mint at least one"); if(BAYC.balanceOf(msg.sender) > 0 || specialWhitelist[msg.sender]){ require(The90s_PRICE_PRESALE * numberOfThe90s == msg.value, "Invalid ETH Amount"); } else{ require(The90s_PRICE * numberOfThe90s == msg.value, "Invalid ETH Amount Public"); } uint256[] memory resultIDs = new uint256[](numberOfThe90s); for (uint256 i = 0; i < numberOfThe90s; i++) { //Mint the remaining from reserve first // if(remainArchive.length > 0 && remainIndex < remainArchive.length){ // _safeMint(msg.sender, remainArchive[remainIndex]); // remainIndex++; // }else{ // //Public sale token number starts from startingIndex // // _safeMint(msg.sender, startingIndex); // _safeMint(msg.sender, totalSupply() + startingIndex + 1); // _calculateStartingIndex(); // } uint256 tokenId = totalSupply() + startingIndex + 1; _safeMint(msg.sender, tokenId); resultIDs[i] = tokenId; } emit MintPublicArchives(); return resultIDs; } function mintThe90sOG(uint256 numberOfThe90s) public returns (uint256[] memory){ //Whitelisted require(startingIndex + totalSupply() <= MAX_The90s_SUPPLY, "Archieves sold out"); require(numberOfThe90s <= The90s_PACK_LIMIT, "Buy limit exceeded"); require(numberOfThe90s > 0, "Need to mint at least one"); require(numberOfThe90s <= OGNFTWhitelistLimit[msg.sender], "Mint limit exceeded"); uint256[] memory resultIDs = new uint256[](numberOfThe90s); //Minting loop for (uint256 i = 0; i < numberOfThe90s; i++) { // require(!_exists(archiveIDs[i]), "ERC721: token already minted"); // _safeMint(msg.sender, archiveIDs[i]); // _safeMint(msg.sender, totalSupply() + 1); uint256 tokenId = totalSupply() + startingIndex + 1; _safeMint(msg.sender, tokenId); OGNFTWhitelistLimit[msg.sender] = OGNFTWhitelistLimit[msg.sender] - 1; resultIDs[i] = tokenId; } emit MintInfluencerArchives(); return resultIDs; } function mintThe90sAdmin(uint256[] memory archiveIDs, address[] memory receivers) public onlyOwner { require(totalSupply() <= MAX_The90s_SUPPLY, "Archieves sold out"); require(archiveIDs.length > 0, "Need to mint at least one"); require(archiveIDs.length == receivers.length, "Number of tokens and receivers must be equal"); //Minting loop for (uint256 i = 0; i < archiveIDs.length; i++) { require(!_exists(archiveIDs[i]), "ERC721: token already minted"); _safeMint(receivers[i], archiveIDs[i]); } } /** * @dev Change traits of the minted 90Archives NFT * * @param tokenId Token id of the 90Archives NFTs to be changed. * @param traits traits of the 90Archives deadbods. */ function changeTraits(uint256 tokenId, uint256[] memory traits) public payable { _enforceSaleStarted(); require(ownerOf(tokenId) == msg.sender , "Need to be the archive owner to change traits"); //Add available traits conditions require(traits.length == 10, "Invalid number of traits"); deadbod[tokenId] = The90sArchivesStruct({ bg : traits[0], skin : traits[1], mouth : traits[2], cloth1 : traits[3], cloth2 : traits[4], cloth3 : traits[5], hair : traits[6], eyes : traits[7], ear1 : traits[8], ear2 : traits[9], headwear : traits[10], headgear : traits[11], extra : traits[12] }); } /** * @dev Set base token URI. Only callable by the owner and only * if token URI hasn't been locked through {lockTokenURI}. Emit * TokenURISet with the new value on every successful execution. * * @param newUri The new base URI to use from this point on. */ function setTokenURI(string memory newUri) public onlyOwner whenUriNotLocked { _baseTokenUri = newUri; emit TokenURISet(_baseTokenUri); } function withdraw() public onlyOwner returns (bool success) { payable(msg.sender).transfer(address(this).balance); return true; } /** * @dev Prior to execution of {reveal}, return the placeholder URI for * any token minted or claimed; after the execution of {reveal}, return * adjusted URIs based on `startingIndex` cyclic shift. * * @param tokenId Identity of an existing (minted) The90s NFT. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "UnknownTokenId"); string memory result = indexedTokenURI(tokenId); return result; } // ---- INTERNAL ---- // ------------------ function claimPeriodInProgress() internal view returns (bool) { return (block.timestamp <= (saleStartedAt + CLAIM_PERIOD_DURATION)); } function _enforceSaleStarted() internal view { require(saleStarted, "SaleNotOn"); } function _enforceClaimPeriod(bool on) internal view { if (on) { require(claimPeriodInProgress(), "ClaimPeriodHasEnded"); } else { require(!claimPeriodInProgress(), "ClaimPeriodHasntEnded"); } } function _calculateStartingIndex() internal { startingIndex++; } modifier whenUriNotLocked() { require(!tokenURILocked, "TokenURILockedErr"); _; } function placeholderURI() internal view returns (string memory) { return string( abi.encodePacked( _baseTokenUri, METADATA_INFIX, PLACEHOLDER_SUFFIX ) ); } function indexedTokenURI(uint256 tokenId) internal view returns (string memory) { return string( abi.encodePacked( _baseTokenUri, METADATA_INFIX, tokenId.toString() // ".json" ) ); } // function _transfer( // address from, // address to, // uint256 tokenId // ) internal override { // require(onTransfer, "Transfer not on" ); // super._transfer(from, to, tokenId); // } }
// SPDX-License-Identifier: MIT 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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @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 virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _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 { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @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. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * 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 ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT 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 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 pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private 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 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 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 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 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 pragma solidity 0.8.7; interface I90Archive { function ownerOf(uint256 tokenId) external view returns (address); function balanceOf(address owner) external view returns (uint256); function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 1 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"ratId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"goodGuyId","type":"uint256"}],"name":"ArchiveClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"reserve","type":"uint256"}],"name":"ClaimsReserveUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"MintInfluencerArchives","type":"event"},{"anonymous":false,"inputs":[],"name":"MintPublicArchives","type":"event"},{"anonymous":false,"inputs":[],"name":"MintReserveArchives","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":[],"name":"PreSaleStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"startingIndex","type":"uint256"}],"name":"Reveal","type":"event"},{"anonymous":false,"inputs":[],"name":"SalePaused","type":"event"},{"anonymous":false,"inputs":[],"name":"SaleStarted","type":"event"},{"anonymous":false,"inputs":[],"name":"SetArchivePartsOwner","type":"event"},{"anonymous":false,"inputs":[],"name":"SetOGNFTWhitelistLimit","type":"event"},{"anonymous":false,"inputs":[],"name":"SetPresaleWhitelist","type":"event"},{"anonymous":false,"inputs":[],"name":"SetPriorityNFTWhitelist","type":"event"},{"anonymous":false,"inputs":[],"name":"SetSpecialWhitelist","type":"event"},{"anonymous":false,"inputs":[],"name":"SetTargetNFTWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"tokenUri","type":"string"}],"name":"TokenURILocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"tokenUri","type":"string"}],"name":"TokenURISet","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"BAYC","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_The90s_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"OGNFTWhitelistLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"The90sArchives_PROVENANCE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"The90s_PACK_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"The90s_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"The90s_PRICE_PRESALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256[]","name":"traits","type":"uint256[]"}],"name":"changeTraits","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"checkCollabBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"deadbod","outputs":[{"internalType":"uint256","name":"bg","type":"uint256"},{"internalType":"uint256","name":"skin","type":"uint256"},{"internalType":"uint256","name":"mouth","type":"uint256"},{"internalType":"uint256","name":"cloth1","type":"uint256"},{"internalType":"uint256","name":"cloth2","type":"uint256"},{"internalType":"uint256","name":"cloth3","type":"uint256"},{"internalType":"uint256","name":"hair","type":"uint256"},{"internalType":"uint256","name":"eyes","type":"uint256"},{"internalType":"uint256","name":"ear1","type":"uint256"},{"internalType":"uint256","name":"ear2","type":"uint256"},{"internalType":"uint256","name":"headwear","type":"uint256"},{"internalType":"uint256","name":"headgear","type":"uint256"},{"internalType":"uint256","name":"extra","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"deadpart","outputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"partInTheBody","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"archiveIDs","type":"uint256[]"},{"internalType":"address[]","name":"receivers","type":"address[]"}],"name":"mintThe90sAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfThe90s","type":"uint256"}],"name":"mintThe90sOG","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfThe90s","type":"uint256"}],"name":"mintThe90sPreSale","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfThe90s","type":"uint256"}],"name":"mintThe90sPublic","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pausePreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pauseSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"preSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"preSaleWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIDs","type":"uint256[]"},{"internalType":"uint256[]","name":"archiveTraits","type":"uint256[]"}],"name":"preSetTraitNFTs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"priorityNFTWhitelist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remainIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","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":[],"name":"saleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleStartedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"partIDs","type":"uint256[]"},{"internalType":"address[]","name":"_owner","type":"address[]"},{"internalType":"uint256[]","name":"bodySection","type":"uint256[]"}],"name":"setArchivePartsOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setArchivesPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setCollabContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"account","type":"address[]"},{"internalType":"uint256[]","name":"limit","type":"uint256[]"}],"name":"setOGNFTWhitelistLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"setPackLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"account","type":"address[]"},{"internalType":"bool","name":"isAdd","type":"bool"}],"name":"setPresaleWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"account","type":"address[]"},{"internalType":"uint256[]","name":"tokenId","type":"uint256[]"}],"name":"setPriorityNFTWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"cap","type":"uint256"}],"name":"setPublicCapRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"account","type":"address[]"},{"internalType":"bool","name":"isAdd","type":"bool"}],"name":"setSpecialWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"setStartIndexPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"account","type":"address[]"},{"internalType":"uint256[]","name":"tokenId","type":"uint256[]"}],"name":"setTargetNFTWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newUri","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"tran","type":"bool"}],"name":"setTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"specialWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startPreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startingIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"targetNFTWhitelist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenURILocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
600b80546001600160a01b03191673bc4ca0eda7647a8ab7c2061c2e118a18a936f13d17905560a06040819052600060808190526200004191600c916200016d565b50600d805460ff19166001179055611388600e55600a600f5566d529ae9e860000601055668e1bc9bf04000060115561012c60125560006013553480156200008857600080fd5b50604080518082018252600e81526d546865393073417263686976657360901b60208083019182528351808501909452600784526611195859109bd960ca1b908401528151919291620000de916000916200016d565b508051620000f49060019060208401906200016d565b505050620001116200010b6200011760201b60201c565b6200011b565b62000250565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200017b9062000213565b90600052602060002090601f0160209004810192826200019f5760008555620001ea565b82601f10620001ba57805160ff1916838001178555620001ea565b82800160010185558215620001ea579182015b82811115620001ea578251825591602001919060010190620001cd565b50620001f8929150620001fc565b5090565b5b80821115620001f85760008155600101620001fd565b600181811c908216806200022857607f821691505b602082108114156200024a57634e487b7160e01b600052602260045260246000fd5b50919050565b61445c80620002606000396000f3fe6080604052600436106102e25760003560e01c806301ffc9a7146102f157806306fdde0314610326578063081812fc14610348578063095ea7b314610375578063109695231461039757806318160ddd146103b75780631bfac2bb146103d65780631e124a3e146103f6578063233cbbc91461040957806323b872dd146104295780632512d58b146104495780632e70e0e61461045e5780632f745c59146104745780633511014c146104945780633b98b1b3146104aa5780633ccfd60b146104ca57806342842e0e146104df5780634357da58146104ff5780634f6ccce71461051457806353a8b7321461053457806355367ba91461054a57806355dd574c1461055f578063563e7936146105745780635c474f9e146105895780636352211e146105a8578063690cf0d1146105c857806370a08231146105e2578063715018a61461060257806377fa9322146106175780637e7d707c146106475780637f085af91461065d5780638132ef741461067d578063836b3802146106dc5780638da5cb5b146106fc5780638dd6241d1461071157806390834db7146107315780639582b6e51461075157806395d89b411461077157806395fe11be146107865780639a757c2f146107a65780639d54144c14610889578063a22cb465146108a9578063a296b323146108c9578063a42b4816146108e9578063a7b6d64814610909578063ab73f7b51461091f578063ac998f451461094f578063b66a0e5d14610969578063b681976e1461097e578063b88d4fde14610994578063be5065e5146109b4578063c4173d45146109e1578063c87b56dd14610a01578063cb158abd14610a21578063cb774d4714610a41578063cc977e0514610a57578063e0df5b6f14610a6a578063e93f640414610a8a578063e985e9c514610a9d578063eff1074a14610abd578063f1ae28d714610af3578063f2fde38b14610b29578063f4ba311914610b49578063f6fb000e14610b76578063f86107d214610b9657600080fd5b366102ec57600080fd5b600080fd5b3480156102fd57600080fd5b5061031161030c366004613d8c565b610bac565b60405190151581526020015b60405180910390f35b34801561033257600080fd5b5061033b610bd7565b60405161031d919061401c565b34801561035457600080fd5b50610368610363366004613e0e565b610c69565b60405161031d9190613f87565b34801561038157600080fd5b50610395610390366004613b8a565b610cf6565b005b3480156103a357600080fd5b506103956103b2366004613dc6565b610e07565b3480156103c357600080fd5b506008545b60405190815260200161031d565b3480156103e257600080fd5b506103956103f1366004613a5b565b610e4d565b610395610404366004613e40565b610e9e565b34801561041557600080fd5b50610395610424366004613e0e565b6111aa565b34801561043557600080fd5b50610395610444366004613aa9565b6111fd565b34801561045557600080fd5b5061033b61122e565b34801561046a57600080fd5b506103c860115481565b34801561048057600080fd5b506103c861048f366004613b8a565b6112bc565b3480156104a057600080fd5b506103c8600f5481565b3480156104b657600080fd5b506103956104c5366004613d3b565b611352565b3480156104d657600080fd5b50610311611711565b3480156104eb57600080fd5b506103956104fa366004613aa9565b611776565b34801561050b57600080fd5b50610395611791565b34801561052057600080fd5b506103c861052f366004613e0e565b6117d8565b34801561054057600080fd5b506103c8600e5481565b34801561055657600080fd5b5061039561186b565b34801561056b57600080fd5b506103956118e0565b34801561058057600080fd5b506103c8611951565b34801561059557600080fd5b5060145461031190610100900460ff1681565b3480156105b457600080fd5b506103686105c3366004613e0e565b6119d7565b3480156105d457600080fd5b506014546103119060ff1681565b3480156105ee57600080fd5b506103c86105fd366004613a5b565b611a4e565b34801561060e57600080fd5b50610395611ad5565b34801561062357600080fd5b50610311610632366004613a5b565b60176020526000908152604090205460ff1681565b34801561065357600080fd5b506103c860155481565b34801561066957600080fd5b50610395610678366004613cb4565b611b0e565b34801561068957600080fd5b506106bd610698366004613e0e565b601d60205260009081526040902080546001909101546001600160a01b039091169082565b604080516001600160a01b03909316835260208301919091520161031d565b3480156106e857600080fd5b506103956106f7366004613e0e565b611cd4565b34801561070857600080fd5b50610368611d36565b34801561071d57600080fd5b5061039561072c366004613c5b565b611d45565b34801561073d57600080fd5b5061039561074c366004613e0e565b611ebe565b34801561075d57600080fd5b50600b54610368906001600160a01b031681565b34801561077d57600080fd5b5061033b611ef2565b34801561079257600080fd5b506103956107a1366004613bb4565b611f01565b3480156107b257600080fd5b506108276107c1366004613e0e565b601c60205280600052604060002060009150905080600001549080600101549080600201549080600301549080600401549080600501549080600601549080600701549080600801549080600901549080600a01549080600b01549080600c015490508d565b604080519d8e5260208e019c909c529a8c019990995260608b019790975260808a019590955260a089019390935260c088019190915260e08701526101008601526101208501526101408401526101608301526101808201526101a00161031d565b34801561089557600080fd5b506103956108a4366004613bb4565b611ffa565b3480156108b557600080fd5b506103956108c4366004613b60565b612101565b3480156108d557600080fd5b506103956108e4366004613d71565b6121c2565b3480156108f557600080fd5b50610395610904366004613bb4565b612204565b34801561091557600080fd5b506103c861238281565b34801561092b57600080fd5b5061031161093a366004613a5b565b60186020526000908152604090205460ff1681565b34801561095b57600080fd5b506016546103119060ff1681565b34801561097557600080fd5b5061039561230b565b34801561098a57600080fd5b506103c860135481565b3480156109a057600080fd5b506103956109af366004613ae5565b61238f565b3480156109c057600080fd5b506109d46109cf366004613e0e565b6123c1565b60405161031d9190613fd8565b3480156109ed57600080fd5b506103956109fc366004613e0e565b6125a1565b348015610a0d57600080fd5b5061033b610a1c366004613e0e565b6125d5565b348015610a2d57600080fd5b50610395610a3c366004613c17565b61262f565b348015610a4d57600080fd5b506103c860125481565b6109d4610a65366004613e0e565b6126f3565b348015610a7657600080fd5b50610395610a85366004613dc6565b6129e2565b6109d4610a98366004613e0e565b612aae565b348015610aa957600080fd5b50610311610ab8366004613a76565b612cdb565b348015610ac957600080fd5b50610368610ad8366004613e0e565b6019602052600090815260409020546001600160a01b031681565b348015610aff57600080fd5b50610368610b0e366004613e0e565b601a602052600090815260409020546001600160a01b031681565b348015610b3557600080fd5b50610395610b44366004613a5b565b612d09565b348015610b5557600080fd5b506103c8610b64366004613a5b565b601b6020526000908152604090205481565b348015610b8257600080fd5b50610395610b91366004613c17565b612da9565b348015610ba257600080fd5b506103c860105481565b60006001600160e01b0319821663780e9d6360e01b1480610bd15750610bd182612e6d565b92915050565b606060008054610be690614318565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1290614318565b8015610c5f5780601f10610c3457610100808354040283529160200191610c5f565b820191906000526020600020905b815481529060010190602001808311610c4257829003601f168201915b5050505050905090565b6000610c7482612ebd565b610cda5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610d01826119d7565b9050806001600160a01b0316836001600160a01b03161415610d6f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610cd1565b336001600160a01b0382161480610d8b5750610d8b8133612cdb565b610df85760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610cd1565b610e028383612eda565b505050565b33610e10611d36565b6001600160a01b031614610e365760405162461bcd60e51b8152600401610cd190614142565b8051610e4990600c906020840190613866565b5050565b33610e56611d36565b6001600160a01b031614610e7c5760405162461bcd60e51b8152600401610cd190614142565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b610ea6612f48565b33610eb0836119d7565b6001600160a01b031614610f1c5760405162461bcd60e51b815260206004820152602d60248201527f4e65656420746f206265207468652061726368697665206f776e657220746f2060448201526c6368616e67652074726169747360981b6064820152608401610cd1565b8051600a14610f685760405162461bcd60e51b8152602060048201526018602482015277496e76616c6964206e756d626572206f662074726169747360401b6044820152606401610cd1565b604051806101a0016040528082600081518110610f8757610f876143c4565b6020026020010151815260200182600181518110610fa757610fa76143c4565b6020026020010151815260200182600281518110610fc757610fc76143c4565b6020026020010151815260200182600381518110610fe757610fe76143c4565b6020026020010151815260200182600481518110611007576110076143c4565b6020026020010151815260200182600581518110611027576110276143c4565b6020026020010151815260200182600681518110611047576110476143c4565b6020026020010151815260200182600781518110611067576110676143c4565b6020026020010151815260200182600881518110611087576110876143c4565b60200260200101518152602001826009815181106110a7576110a76143c4565b6020026020010151815260200182600a815181106110c7576110c76143c4565b6020026020010151815260200182600b815181106110e7576110e76143c4565b6020026020010151815260200182600c81518110611107576111076143c4565b6020908102919091018101519091526000938452601c815260409384902082518155908201516001820155928101516002840155606081015160038401556080810151600484015560a0810151600584015560c0810151600684015560e0810151600784015561010081015160088401556101208101516009840155610140810151600a840155610160810151600b8401556101800151600c9092019190915550565b336111b3611d36565b6001600160a01b0316146111d95760405162461bcd60e51b8152600401610cd190614142565b60646111ed82670de0b6b3a76400006142b6565b6111f791906142a2565b60105550565b6112073382612f8b565b6112235760405162461bcd60e51b8152600401610cd1906141e6565b610e02838383613055565b600c805461123b90614318565b80601f016020809104026020016040519081016040528092919081815260200182805461126790614318565b80156112b45780601f10611289576101008083540402835291602001916112b4565b820191906000526020600020905b81548152906001019060200180831161129757829003601f168201915b505050505081565b60006112c783611a4e565b82106113295760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610cd1565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b3361135b611d36565b6001600160a01b0316146113815760405162461bcd60e51b8152600401610cd190614142565b8051825161139090600a6142b6565b146113fa5760405162461bcd60e51b815260206004820152603460248201527f4e756d626572206f6620747261697473206d75737420657175616c20746f206e6044820152733ab6b132b91037b3103a37b5b2b7399530ba3a3960611b6064820152608401610cd1565b6000805b835181101561170b57604051806101a00160405280848481518110611425576114256143c4565b6020026020010151815260200184846001611440919061428a565b81518110611450576114506143c4565b602002602001015181526020018484600261146b919061428a565b8151811061147b5761147b6143c4565b6020026020010151815260200184846003611496919061428a565b815181106114a6576114a66143c4565b60200260200101518152602001848460046114c1919061428a565b815181106114d1576114d16143c4565b60200260200101518152602001848460056114ec919061428a565b815181106114fc576114fc6143c4565b6020026020010151815260200184846006611517919061428a565b81518110611527576115276143c4565b6020026020010151815260200184846007611542919061428a565b81518110611552576115526143c4565b602002602001015181526020018484600861156d919061428a565b8151811061157d5761157d6143c4565b6020026020010151815260200184846009611598919061428a565b815181106115a8576115a86143c4565b602002602001015181526020018484600a6115c3919061428a565b815181106115d3576115d36143c4565b602002602001015181526020018484600b6115ee919061428a565b815181106115fe576115fe6143c4565b602002602001015181526020018484600c611619919061428a565b81518110611629576116296143c4565b6020026020010151815250601c600086848151811061164a5761164a6143c4565b60200260200101518152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e082015181600701556101008201518160080155610120820151816009015561014082015181600a015561016082015181600b015561018082015181600c0155905050600a826116f7919061428a565b91508061170381614353565b9150506113fe565b50505050565b60003361171c611d36565b6001600160a01b0316146117425760405162461bcd60e51b8152600401610cd190614142565b60405133904780156108fc02916000818181858888f1935050505015801561176e573d6000803e3d6000fd5b506001905090565b610e028383836040518060200160405280600081525061238f565b3361179a611d36565b6001600160a01b0316146117c05760405162461bcd60e51b8152600401610cd190614142565b60145460ff16156117d6576014805460ff191690555b565b60006117e360085490565b82106118465760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610cd1565b60088281548110611859576118596143c4565b90600052602060002001549050919050565b33611874611d36565b6001600160a01b03161461189a5760405162461bcd60e51b8152600401610cd190614142565b601454610100900460ff16156117d6576014805461ff00191690556040517f8a98cbd0cab14e33b8a5e5710b9b59bceec8af9a5b4b3bb32fb275cf04ea048d90600090a1565b336118e9611d36565b6001600160a01b03161461190f5760405162461bcd60e51b8152600401610cd190614142565b60145460ff166117d6576014805460ff191660011790556040517f8dff4c1d9edc7d20fb38d7de9c46ff9338c28da4309a2ebadc0d8b309b000ff690600090a1565b600b546040516370a0823160e01b81526000916001600160a01b0316906370a0823190611982903390600401613f87565b60206040518083038186803b15801561199a57600080fd5b505afa1580156119ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119d29190613e27565b905090565b6000818152600260205260408120546001600160a01b031680610bd15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610cd1565b60006001600160a01b038216611ab95760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610cd1565b506001600160a01b031660009081526003602052604090205490565b33611ade611d36565b6001600160a01b031614611b045760405162461bcd60e51b8152600401610cd190614142565b6117d660006131ee565b33611b17611d36565b6001600160a01b031614611b3d5760405162461bcd60e51b8152600401610cd190614142565b8151835114611ba45760405162461bcd60e51b815260206004820152602d60248201527f4e756d626572206f6620626f647920706172747320616e64206f776e6572732060448201526c1b5d5cdd08189948195c5d585b609a1b6064820152608401610cd1565b8051835114611c105760405162461bcd60e51b815260206004820152603260248201527f4e756d626572206f6620626f647920706172747320616e6420626f64795365636044820152711d1a5bdb881b5d5cdd08189948195c5d585b60721b6064820152608401610cd1565b60005b835181101561170b576040518060400160405280848381518110611c3957611c396143c4565b60200260200101516001600160a01b03168152602001838381518110611c6157611c616143c4565b6020026020010151815250601d6000868481518110611c8257611c826143c4565b602090810291909101810151825281810192909252604001600020825181546001600160a01b0319166001600160a01b0390911617815591015160019091015580611ccc81614353565b915050611c13565b33611cdd611d36565b6001600160a01b031614611d035760405162461bcd60e51b8152600401610cd190614142565b601281905560405181907f1747b48b6ade85d7dc97c0f523e0e780795930a468c01b18a51546791fdd3ac090600090a250565b600a546001600160a01b031690565b33611d4e611d36565b6001600160a01b031614611d745760405162461bcd60e51b8152600401610cd190614142565b612382611d8060085490565b1115611d9e5760405162461bcd60e51b8152600401610cd190614116565b6000825111611dbf5760405162461bcd60e51b8152600401610cd19061402f565b8051825114611e255760405162461bcd60e51b815260206004820152602c60248201527f4e756d626572206f6620746f6b656e7320616e6420726563656976657273206d60448201526b1d5cdd08189948195c5d585b60a21b6064820152608401610cd1565b60005b8251811015610e0257611e53838281518110611e4657611e466143c4565b6020026020010151612ebd565b15611e705760405162461bcd60e51b8152600401610cd1906140b4565b611eac828281518110611e8557611e856143c4565b6020026020010151848381518110611e9f57611e9f6143c4565b6020026020010151613240565b80611eb681614353565b915050611e28565b33611ec7611d36565b6001600160a01b031614611eed5760405162461bcd60e51b8152600401610cd190614142565b600f55565b606060018054610be690614318565b33611f0a611d36565b6001600160a01b031614611f305760405162461bcd60e51b8152600401610cd190614142565b8051825114611f515760405162461bcd60e51b8152600401610cd1906141a3565b60005b8151811015611fcc57818181518110611f6f57611f6f6143c4565b6020026020010151601b6000858481518110611f8d57611f8d6143c4565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080611fc490614353565b915050611f54565b506040517feafec84fcf285fcede06719a16d83a525eb60bf28144cf7840bf67044dfa1c5790600090a15050565b33612003611d36565b6001600160a01b0316146120295760405162461bcd60e51b8152600401610cd190614142565b805182511461204a5760405162461bcd60e51b8152600401610cd1906141a3565b60005b81518110156120d357828181518110612068576120686143c4565b6020026020010151601a6000848481518110612086576120866143c4565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080806120cb90614353565b91505061204d565b506040517fd2c9065a633f02653daeb0994f3cfeaa60e14fbf2f0187e4bcf26b99deb6c26090600090a15050565b6001600160a01b0382163314156121565760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610cd1565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b336121cb611d36565b6001600160a01b0316146121f15760405162461bcd60e51b8152600401610cd190614142565b600d805460ff1916911515919091179055565b3361220d611d36565b6001600160a01b0316146122335760405162461bcd60e51b8152600401610cd190614142565b80518251146122545760405162461bcd60e51b8152600401610cd1906141a3565b60005b81518110156122dd57828181518110612272576122726143c4565b602002602001015160196000848481518110612290576122906143c4565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080806122d590614353565b915050612257565b506040517ff3096fdf6fe4c21a925560901af8bb6344780023961e759c1058660645987d2a90600090a15050565b33612314611d36565b6001600160a01b03161461233a5760405162461bcd60e51b8152600401610cd190614142565b601454610100900460ff16612382576014805461ff0019166101001790556040517f912ee23dde46ec889d6748212cce445d667f7041597691dc89e8549ad8bc0acb90600090a15b6015546117d65742601555565b6123993383612f8b565b6123b55760405162461bcd60e51b8152600401610cd1906141e6565b61170b8484848461325a565b60606123826123cf60085490565b6012546123dc919061428a565b11156123fa5760405162461bcd60e51b8152600401610cd190614116565b600f5482111561241c5760405162461bcd60e51b8152600401610cd190614177565b6000821161243c5760405162461bcd60e51b8152600401610cd19061402f565b336000908152601b60205260409020548211156124915760405162461bcd60e51b8152602060048201526013602482015272135a5b9d081b1a5b5a5d08195e18d959591959606a1b6044820152606401610cd1565b6000826001600160401b038111156124ab576124ab6143da565b6040519080825280602002602001820160405280156124d4578160200160208202803683370190505b50905060005b838110156125715760006012546124f060085490565b6124fa919061428a565b61250590600161428a565b90506125113382613240565b336000908152601b602052604090205461252d906001906142d5565b336000908152601b602052604090205582518190849084908110612553576125536143c4565b6020908102919091010152508061256981614353565b9150506124da565b506040517febea1c2ed69325ac5b50b5168c44372c66298c10fb38e194c20861263b6b312290600090a192915050565b336125aa611d36565b6001600160a01b0316146125d05760405162461bcd60e51b8152600401610cd190614142565b600e55565b60606125e082612ebd565b61261d5760405162461bcd60e51b815260206004820152600e60248201526d155b9adb9bdddb951bdad95b925960921b6044820152606401610cd1565b60006126288361328d565b9392505050565b33612638611d36565b6001600160a01b03161461265e5760405162461bcd60e51b8152600401610cd190614142565b60005b82518110156126c5578160186000858481518110612681576126816143c4565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806126bd81614353565b915050612661565b506040517f0e1f2c98f38b86837f92e81b36ddfc070a8c83b432b0f841bafc4ac27448193590600090a15050565b60606126fd612f48565b61238261270960085490565b601254612716919061428a565b11156127345760405162461bcd60e51b8152600401610cd190614116565b600e54600854601254612747919061428a565b11156127955760405162461bcd60e51b815260206004820152601d60248201527f417263686965766573206578636565646564207468697320726f756e640000006044820152606401610cd1565b600f548211156127b75760405162461bcd60e51b8152600401610cd190614177565b600082116127d75760405162461bcd60e51b8152600401610cd19061402f565b600b546040516370a0823160e01b81526000916001600160a01b0316906370a0823190612808903390600401613f87565b60206040518083038186803b15801561282057600080fd5b505afa158015612834573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128589190613e27565b118061287357503360009081526018602052604090205460ff165b156128a957348260115461288791906142b6565b146128a45760405162461bcd60e51b8152600401610cd1906140ea565b612901565b34826010546128b891906142b6565b146129015760405162461bcd60e51b8152602060048201526019602482015278496e76616c69642045544820416d6f756e74205075626c696360381b6044820152606401610cd1565b6000826001600160401b0381111561291b5761291b6143da565b604051908082528060200260200182016040528015612944578160200160208202803683370190505b50905060005b838110156129b257600060125461296060085490565b61296a919061428a565b61297590600161428a565b90506129813382613240565b80838381518110612994576129946143c4565b602090810291909101015250806129aa81614353565b91505061294a565b506040517fe93b40d3f6e630afbcd5059199831ac5d347ccc6e0954789a6d56cbe8d3ffb3e90600090a192915050565b336129eb611d36565b6001600160a01b031614612a115760405162461bcd60e51b8152600401610cd190614142565b60165460ff1615612a585760405162461bcd60e51b81526020600482015260116024820152702a37b5b2b72aa924a637b1b5b2b222b93960791b6044820152606401610cd1565b8051612a6b90601e906020840190613866565b50601e604051612a7b9190613f42565b604051908190038120907f5bb111c9b2ad41c6cc1754cdbee2cc303b7becb89d29d2d5f91165fcc0b0a49d90600090a250565b60145460609060ff1615612b20573360009081526017602052604090205460ff16612b1b5760405162461bcd60e51b815260206004820152601f60248201527f596f7520617265206e6f7420696e207468652070726976617465206c697374006044820152606401610cd1565b612b28565b612b28612f48565b612382612b3460085490565b601254612b41919061428a565b1115612b5f5760405162461bcd60e51b8152600401610cd190614116565b336000908152601b6020526040902054600f54612b7c919061428a565b82612b8633611a4e565b612b90919061428a565b1115612bae5760405162461bcd60e51b8152600401610cd190614177565b60008211612bce5760405162461bcd60e51b8152600401610cd19061402f565b3482601154612bdd91906142b6565b14612bfa5760405162461bcd60e51b8152600401610cd1906140ea565b6000826001600160401b03811115612c1457612c146143da565b604051908082528060200260200182016040528015612c3d578160200160208202803683370190505b50905060005b83811015612cab576000601254612c5960085490565b612c63919061428a565b612c6e90600161428a565b9050612c7a3382613240565b80838381518110612c8d57612c8d6143c4565b60209081029190910101525080612ca381614353565b915050612c43565b506040517fe09104290f16b1b80a410aa29fa8fdac7157ea342c8cd05cc74130726912b87790600090a192915050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b33612d12611d36565b6001600160a01b031614612d385760405162461bcd60e51b8152600401610cd190614142565b6001600160a01b038116612d9d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cd1565b612da6816131ee565b50565b33612db2611d36565b6001600160a01b031614612dd85760405162461bcd60e51b8152600401610cd190614142565b60005b8251811015612e3f578160176000858481518110612dfb57612dfb6143c4565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580612e3781614353565b915050612ddb565b506040517fabc7a939fd97c4c51220c6e910ad10c7f1d057a59e819ff619430afd1e82e93790600090a15050565b60006001600160e01b031982166380ac58cd60e01b1480612e9e57506001600160e01b03198216635b5e139f60e01b145b80610bd157506301ffc9a760e01b6001600160e01b0319831614610bd1565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612f0f826119d7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b601454610100900460ff166117d65760405162461bcd60e51b815260206004820152600960248201526829b0b632a737ba27b760b91b6044820152606401610cd1565b6000612f9682612ebd565b612ff75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610cd1565b6000613002836119d7565b9050806001600160a01b0316846001600160a01b0316148061303d5750836001600160a01b031661303284610c69565b6001600160a01b0316145b8061304d575061304d8185612cdb565b949350505050565b826001600160a01b0316613068826119d7565b6001600160a01b0316146130d05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610cd1565b6001600160a01b0382166131325760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610cd1565b61313d8383836132e4565b613148600082612eda565b6001600160a01b03831660009081526003602052604081208054600192906131719084906142d5565b90915550506001600160a01b038216600090815260036020526040812080546001929061319f90849061428a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03868116918217909255915184939187169160008051602061440783398151915291a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610e4982826040518060200160405280600081525061339c565b613265848484613055565b613271848484846133cf565b61170b5760405162461bcd60e51b8152600401610cd190614062565b6060601e604051806040016040528060098152602001686d657461646174612f60b81b8152506132bc846134dc565b6040516020016132ce93929190613f4e565b6040516020818303038152906040529050919050565b6001600160a01b03831661333f5761333a81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613362565b816001600160a01b0316836001600160a01b0316146133625761336283826135d9565b6001600160a01b03821661337957610e0281613676565b826001600160a01b0316826001600160a01b031614610e0257610e028282613725565b6133a68383613769565b6133b360008484846133cf565b610e025760405162461bcd60e51b8152600401610cd190614062565b60006001600160a01b0384163b156134d157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613413903390899088908890600401613f9b565b602060405180830381600087803b15801561342d57600080fd5b505af192505050801561345d575060408051601f3d908101601f1916820190925261345a91810190613da9565b60015b6134b7573d80801561348b576040519150601f19603f3d011682016040523d82523d6000602084013e613490565b606091505b5080516134af5760405162461bcd60e51b8152600401610cd190614062565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061304d565b506001949350505050565b6060816135005750506040805180820190915260018152600360fc1b602082015290565b8160005b811561352a578061351481614353565b91506135239050600a836142a2565b9150613504565b6000816001600160401b03811115613544576135446143da565b6040519080825280601f01601f19166020018201604052801561356e576020820181803683370190505b5090505b841561304d576135836001836142d5565b9150613590600a8661436e565b61359b90603061428a565b60f81b8183815181106135b0576135b06143c4565b60200101906001600160f81b031916908160001a9053506135d2600a866142a2565b9450613572565b600060016135e684611a4e565b6135f091906142d5565b600083815260076020526040902054909150808214613643576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613688906001906142d5565b600083815260096020526040812054600880549394509092849081106136b0576136b06143c4565b9060005260206000200154905080600883815481106136d1576136d16143c4565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613709576137096143ae565b6001900381819060005260206000200160009055905550505050565b600061373083611a4e565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166137bf5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610cd1565b6137c881612ebd565b156137e55760405162461bcd60e51b8152600401610cd1906140b4565b6137f1600083836132e4565b6001600160a01b038216600090815260036020526040812080546001929061381a90849061428a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839290600080516020614407833981519152908290a45050565b82805461387290614318565b90600052602060002090601f01602090048101928261389457600085556138da565b82601f106138ad57805160ff19168380011785556138da565b828001600101855582156138da579182015b828111156138da5782518255916020019190600101906138bf565b506138e69291506138ea565b5090565b5b808211156138e657600081556001016138eb565b60006001600160401b03831115613918576139186143da565b61392b601f8401601f1916602001614237565b905082815283838301111561393f57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461396d57600080fd5b919050565b600082601f83011261398357600080fd5b8135602061399861399383614267565b614237565b80838252828201915082860187848660051b89010111156139b857600080fd5b60005b858110156139de576139cc82613956565b845292840192908401906001016139bb565b5090979650505050505050565b600082601f8301126139fc57600080fd5b81356020613a0c61399383614267565b80838252828201915082860187848660051b8901011115613a2c57600080fd5b60005b858110156139de57813584529284019290840190600101613a2f565b8035801515811461396d57600080fd5b600060208284031215613a6d57600080fd5b61262882613956565b60008060408385031215613a8957600080fd5b613a9283613956565b9150613aa060208401613956565b90509250929050565b600080600060608486031215613abe57600080fd5b613ac784613956565b9250613ad560208501613956565b9150604084013590509250925092565b60008060008060808587031215613afb57600080fd5b613b0485613956565b9350613b1260208601613956565b92506040850135915060608501356001600160401b03811115613b3457600080fd5b8501601f81018713613b4557600080fd5b613b54878235602084016138ff565b91505092959194509250565b60008060408385031215613b7357600080fd5b613b7c83613956565b9150613aa060208401613a4b565b60008060408385031215613b9d57600080fd5b613ba683613956565b946020939093013593505050565b60008060408385031215613bc757600080fd5b82356001600160401b0380821115613bde57600080fd5b613bea86838701613972565b93506020850135915080821115613c0057600080fd5b50613c0d858286016139eb565b9150509250929050565b60008060408385031215613c2a57600080fd5b82356001600160401b03811115613c4057600080fd5b613c4c85828601613972565b925050613aa060208401613a4b565b60008060408385031215613c6e57600080fd5b82356001600160401b0380821115613c8557600080fd5b613c91868387016139eb565b93506020850135915080821115613ca757600080fd5b50613c0d85828601613972565b600080600060608486031215613cc957600080fd5b83356001600160401b0380821115613ce057600080fd5b613cec878388016139eb565b94506020860135915080821115613d0257600080fd5b613d0e87838801613972565b93506040860135915080821115613d2457600080fd5b50613d31868287016139eb565b9150509250925092565b60008060408385031215613d4e57600080fd5b82356001600160401b0380821115613d6557600080fd5b613bea868387016139eb565b600060208284031215613d8357600080fd5b61262882613a4b565b600060208284031215613d9e57600080fd5b8135612628816143f0565b600060208284031215613dbb57600080fd5b8151612628816143f0565b600060208284031215613dd857600080fd5b81356001600160401b03811115613dee57600080fd5b8201601f81018413613dff57600080fd5b61304d848235602084016138ff565b600060208284031215613e2057600080fd5b5035919050565b600060208284031215613e3957600080fd5b5051919050565b60008060408385031215613e5357600080fd5b8235915060208301356001600160401b03811115613e7057600080fd5b613c0d858286016139eb565b60008151808452613e948160208601602086016142ec565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680613ec257607f831692505b6020808410821415613ee457634e487b7160e01b600052602260045260246000fd5b818015613ef85760018114613f0957613f36565b60ff19861689528489019650613f36565b60008881526020902060005b86811015613f2e5781548b820152908501908301613f15565b505084890196505b50505050505092915050565b60006126288284613ea8565b6000613f5a8286613ea8565b8451613f6a8183602089016142ec565b8451910190613f7d8183602088016142ec565b0195945050505050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613fce90830184613e7c565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561401057835183529284019291840191600101613ff4565b50909695505050505050565b6020815260006126286020830184613e7c565b6020808252601990820152784e65656420746f206d696e74206174206c65617374206f6e6560381b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601c908201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b604082015260600190565b602080825260129082015271125b9d985b1a590811551208105b5bdd5b9d60721b604082015260600190565b602080825260129082015271105c98da1a595d995cc81cdbdb19081bdd5d60721b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260129082015271109d5e481b1a5b5a5d08195e18d95959195960721b604082015260600190565b60208082526023908201527f4e6f206f66206163636f756e7473202620746f6b656e7320646f6e2774206d616040820152620e8c6d60eb1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f191681016001600160401b038111828210171561425f5761425f6143da565b604052919050565b60006001600160401b03821115614280576142806143da565b5060051b60200190565b6000821982111561429d5761429d614382565b500190565b6000826142b1576142b1614398565b500490565b60008160001904831182151516156142d0576142d0614382565b500290565b6000828210156142e7576142e7614382565b500390565b60005b838110156143075781810151838201526020016142ef565b8381111561170b5750506000910152565b600181811c9082168061432c57607f821691505b6020821081141561434d57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561436757614367614382565b5060010190565b60008261437d5761437d614398565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114612da657600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212206e130e74ff3e98a47c72f7c18effa4bfa55870db83fecd3ea9935da29c9c98ce64736f6c63430008070033
Deployed Bytecode
0x6080604052600436106102e25760003560e01c806301ffc9a7146102f157806306fdde0314610326578063081812fc14610348578063095ea7b314610375578063109695231461039757806318160ddd146103b75780631bfac2bb146103d65780631e124a3e146103f6578063233cbbc91461040957806323b872dd146104295780632512d58b146104495780632e70e0e61461045e5780632f745c59146104745780633511014c146104945780633b98b1b3146104aa5780633ccfd60b146104ca57806342842e0e146104df5780634357da58146104ff5780634f6ccce71461051457806353a8b7321461053457806355367ba91461054a57806355dd574c1461055f578063563e7936146105745780635c474f9e146105895780636352211e146105a8578063690cf0d1146105c857806370a08231146105e2578063715018a61461060257806377fa9322146106175780637e7d707c146106475780637f085af91461065d5780638132ef741461067d578063836b3802146106dc5780638da5cb5b146106fc5780638dd6241d1461071157806390834db7146107315780639582b6e51461075157806395d89b411461077157806395fe11be146107865780639a757c2f146107a65780639d54144c14610889578063a22cb465146108a9578063a296b323146108c9578063a42b4816146108e9578063a7b6d64814610909578063ab73f7b51461091f578063ac998f451461094f578063b66a0e5d14610969578063b681976e1461097e578063b88d4fde14610994578063be5065e5146109b4578063c4173d45146109e1578063c87b56dd14610a01578063cb158abd14610a21578063cb774d4714610a41578063cc977e0514610a57578063e0df5b6f14610a6a578063e93f640414610a8a578063e985e9c514610a9d578063eff1074a14610abd578063f1ae28d714610af3578063f2fde38b14610b29578063f4ba311914610b49578063f6fb000e14610b76578063f86107d214610b9657600080fd5b366102ec57600080fd5b600080fd5b3480156102fd57600080fd5b5061031161030c366004613d8c565b610bac565b60405190151581526020015b60405180910390f35b34801561033257600080fd5b5061033b610bd7565b60405161031d919061401c565b34801561035457600080fd5b50610368610363366004613e0e565b610c69565b60405161031d9190613f87565b34801561038157600080fd5b50610395610390366004613b8a565b610cf6565b005b3480156103a357600080fd5b506103956103b2366004613dc6565b610e07565b3480156103c357600080fd5b506008545b60405190815260200161031d565b3480156103e257600080fd5b506103956103f1366004613a5b565b610e4d565b610395610404366004613e40565b610e9e565b34801561041557600080fd5b50610395610424366004613e0e565b6111aa565b34801561043557600080fd5b50610395610444366004613aa9565b6111fd565b34801561045557600080fd5b5061033b61122e565b34801561046a57600080fd5b506103c860115481565b34801561048057600080fd5b506103c861048f366004613b8a565b6112bc565b3480156104a057600080fd5b506103c8600f5481565b3480156104b657600080fd5b506103956104c5366004613d3b565b611352565b3480156104d657600080fd5b50610311611711565b3480156104eb57600080fd5b506103956104fa366004613aa9565b611776565b34801561050b57600080fd5b50610395611791565b34801561052057600080fd5b506103c861052f366004613e0e565b6117d8565b34801561054057600080fd5b506103c8600e5481565b34801561055657600080fd5b5061039561186b565b34801561056b57600080fd5b506103956118e0565b34801561058057600080fd5b506103c8611951565b34801561059557600080fd5b5060145461031190610100900460ff1681565b3480156105b457600080fd5b506103686105c3366004613e0e565b6119d7565b3480156105d457600080fd5b506014546103119060ff1681565b3480156105ee57600080fd5b506103c86105fd366004613a5b565b611a4e565b34801561060e57600080fd5b50610395611ad5565b34801561062357600080fd5b50610311610632366004613a5b565b60176020526000908152604090205460ff1681565b34801561065357600080fd5b506103c860155481565b34801561066957600080fd5b50610395610678366004613cb4565b611b0e565b34801561068957600080fd5b506106bd610698366004613e0e565b601d60205260009081526040902080546001909101546001600160a01b039091169082565b604080516001600160a01b03909316835260208301919091520161031d565b3480156106e857600080fd5b506103956106f7366004613e0e565b611cd4565b34801561070857600080fd5b50610368611d36565b34801561071d57600080fd5b5061039561072c366004613c5b565b611d45565b34801561073d57600080fd5b5061039561074c366004613e0e565b611ebe565b34801561075d57600080fd5b50600b54610368906001600160a01b031681565b34801561077d57600080fd5b5061033b611ef2565b34801561079257600080fd5b506103956107a1366004613bb4565b611f01565b3480156107b257600080fd5b506108276107c1366004613e0e565b601c60205280600052604060002060009150905080600001549080600101549080600201549080600301549080600401549080600501549080600601549080600701549080600801549080600901549080600a01549080600b01549080600c015490508d565b604080519d8e5260208e019c909c529a8c019990995260608b019790975260808a019590955260a089019390935260c088019190915260e08701526101008601526101208501526101408401526101608301526101808201526101a00161031d565b34801561089557600080fd5b506103956108a4366004613bb4565b611ffa565b3480156108b557600080fd5b506103956108c4366004613b60565b612101565b3480156108d557600080fd5b506103956108e4366004613d71565b6121c2565b3480156108f557600080fd5b50610395610904366004613bb4565b612204565b34801561091557600080fd5b506103c861238281565b34801561092b57600080fd5b5061031161093a366004613a5b565b60186020526000908152604090205460ff1681565b34801561095b57600080fd5b506016546103119060ff1681565b34801561097557600080fd5b5061039561230b565b34801561098a57600080fd5b506103c860135481565b3480156109a057600080fd5b506103956109af366004613ae5565b61238f565b3480156109c057600080fd5b506109d46109cf366004613e0e565b6123c1565b60405161031d9190613fd8565b3480156109ed57600080fd5b506103956109fc366004613e0e565b6125a1565b348015610a0d57600080fd5b5061033b610a1c366004613e0e565b6125d5565b348015610a2d57600080fd5b50610395610a3c366004613c17565b61262f565b348015610a4d57600080fd5b506103c860125481565b6109d4610a65366004613e0e565b6126f3565b348015610a7657600080fd5b50610395610a85366004613dc6565b6129e2565b6109d4610a98366004613e0e565b612aae565b348015610aa957600080fd5b50610311610ab8366004613a76565b612cdb565b348015610ac957600080fd5b50610368610ad8366004613e0e565b6019602052600090815260409020546001600160a01b031681565b348015610aff57600080fd5b50610368610b0e366004613e0e565b601a602052600090815260409020546001600160a01b031681565b348015610b3557600080fd5b50610395610b44366004613a5b565b612d09565b348015610b5557600080fd5b506103c8610b64366004613a5b565b601b6020526000908152604090205481565b348015610b8257600080fd5b50610395610b91366004613c17565b612da9565b348015610ba257600080fd5b506103c860105481565b60006001600160e01b0319821663780e9d6360e01b1480610bd15750610bd182612e6d565b92915050565b606060008054610be690614318565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1290614318565b8015610c5f5780601f10610c3457610100808354040283529160200191610c5f565b820191906000526020600020905b815481529060010190602001808311610c4257829003601f168201915b5050505050905090565b6000610c7482612ebd565b610cda5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610d01826119d7565b9050806001600160a01b0316836001600160a01b03161415610d6f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610cd1565b336001600160a01b0382161480610d8b5750610d8b8133612cdb565b610df85760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610cd1565b610e028383612eda565b505050565b33610e10611d36565b6001600160a01b031614610e365760405162461bcd60e51b8152600401610cd190614142565b8051610e4990600c906020840190613866565b5050565b33610e56611d36565b6001600160a01b031614610e7c5760405162461bcd60e51b8152600401610cd190614142565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b610ea6612f48565b33610eb0836119d7565b6001600160a01b031614610f1c5760405162461bcd60e51b815260206004820152602d60248201527f4e65656420746f206265207468652061726368697665206f776e657220746f2060448201526c6368616e67652074726169747360981b6064820152608401610cd1565b8051600a14610f685760405162461bcd60e51b8152602060048201526018602482015277496e76616c6964206e756d626572206f662074726169747360401b6044820152606401610cd1565b604051806101a0016040528082600081518110610f8757610f876143c4565b6020026020010151815260200182600181518110610fa757610fa76143c4565b6020026020010151815260200182600281518110610fc757610fc76143c4565b6020026020010151815260200182600381518110610fe757610fe76143c4565b6020026020010151815260200182600481518110611007576110076143c4565b6020026020010151815260200182600581518110611027576110276143c4565b6020026020010151815260200182600681518110611047576110476143c4565b6020026020010151815260200182600781518110611067576110676143c4565b6020026020010151815260200182600881518110611087576110876143c4565b60200260200101518152602001826009815181106110a7576110a76143c4565b6020026020010151815260200182600a815181106110c7576110c76143c4565b6020026020010151815260200182600b815181106110e7576110e76143c4565b6020026020010151815260200182600c81518110611107576111076143c4565b6020908102919091018101519091526000938452601c815260409384902082518155908201516001820155928101516002840155606081015160038401556080810151600484015560a0810151600584015560c0810151600684015560e0810151600784015561010081015160088401556101208101516009840155610140810151600a840155610160810151600b8401556101800151600c9092019190915550565b336111b3611d36565b6001600160a01b0316146111d95760405162461bcd60e51b8152600401610cd190614142565b60646111ed82670de0b6b3a76400006142b6565b6111f791906142a2565b60105550565b6112073382612f8b565b6112235760405162461bcd60e51b8152600401610cd1906141e6565b610e02838383613055565b600c805461123b90614318565b80601f016020809104026020016040519081016040528092919081815260200182805461126790614318565b80156112b45780601f10611289576101008083540402835291602001916112b4565b820191906000526020600020905b81548152906001019060200180831161129757829003601f168201915b505050505081565b60006112c783611a4e565b82106113295760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610cd1565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b3361135b611d36565b6001600160a01b0316146113815760405162461bcd60e51b8152600401610cd190614142565b8051825161139090600a6142b6565b146113fa5760405162461bcd60e51b815260206004820152603460248201527f4e756d626572206f6620747261697473206d75737420657175616c20746f206e6044820152733ab6b132b91037b3103a37b5b2b7399530ba3a3960611b6064820152608401610cd1565b6000805b835181101561170b57604051806101a00160405280848481518110611425576114256143c4565b6020026020010151815260200184846001611440919061428a565b81518110611450576114506143c4565b602002602001015181526020018484600261146b919061428a565b8151811061147b5761147b6143c4565b6020026020010151815260200184846003611496919061428a565b815181106114a6576114a66143c4565b60200260200101518152602001848460046114c1919061428a565b815181106114d1576114d16143c4565b60200260200101518152602001848460056114ec919061428a565b815181106114fc576114fc6143c4565b6020026020010151815260200184846006611517919061428a565b81518110611527576115276143c4565b6020026020010151815260200184846007611542919061428a565b81518110611552576115526143c4565b602002602001015181526020018484600861156d919061428a565b8151811061157d5761157d6143c4565b6020026020010151815260200184846009611598919061428a565b815181106115a8576115a86143c4565b602002602001015181526020018484600a6115c3919061428a565b815181106115d3576115d36143c4565b602002602001015181526020018484600b6115ee919061428a565b815181106115fe576115fe6143c4565b602002602001015181526020018484600c611619919061428a565b81518110611629576116296143c4565b6020026020010151815250601c600086848151811061164a5761164a6143c4565b60200260200101518152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e082015181600701556101008201518160080155610120820151816009015561014082015181600a015561016082015181600b015561018082015181600c0155905050600a826116f7919061428a565b91508061170381614353565b9150506113fe565b50505050565b60003361171c611d36565b6001600160a01b0316146117425760405162461bcd60e51b8152600401610cd190614142565b60405133904780156108fc02916000818181858888f1935050505015801561176e573d6000803e3d6000fd5b506001905090565b610e028383836040518060200160405280600081525061238f565b3361179a611d36565b6001600160a01b0316146117c05760405162461bcd60e51b8152600401610cd190614142565b60145460ff16156117d6576014805460ff191690555b565b60006117e360085490565b82106118465760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610cd1565b60088281548110611859576118596143c4565b90600052602060002001549050919050565b33611874611d36565b6001600160a01b03161461189a5760405162461bcd60e51b8152600401610cd190614142565b601454610100900460ff16156117d6576014805461ff00191690556040517f8a98cbd0cab14e33b8a5e5710b9b59bceec8af9a5b4b3bb32fb275cf04ea048d90600090a1565b336118e9611d36565b6001600160a01b03161461190f5760405162461bcd60e51b8152600401610cd190614142565b60145460ff166117d6576014805460ff191660011790556040517f8dff4c1d9edc7d20fb38d7de9c46ff9338c28da4309a2ebadc0d8b309b000ff690600090a1565b600b546040516370a0823160e01b81526000916001600160a01b0316906370a0823190611982903390600401613f87565b60206040518083038186803b15801561199a57600080fd5b505afa1580156119ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119d29190613e27565b905090565b6000818152600260205260408120546001600160a01b031680610bd15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610cd1565b60006001600160a01b038216611ab95760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610cd1565b506001600160a01b031660009081526003602052604090205490565b33611ade611d36565b6001600160a01b031614611b045760405162461bcd60e51b8152600401610cd190614142565b6117d660006131ee565b33611b17611d36565b6001600160a01b031614611b3d5760405162461bcd60e51b8152600401610cd190614142565b8151835114611ba45760405162461bcd60e51b815260206004820152602d60248201527f4e756d626572206f6620626f647920706172747320616e64206f776e6572732060448201526c1b5d5cdd08189948195c5d585b609a1b6064820152608401610cd1565b8051835114611c105760405162461bcd60e51b815260206004820152603260248201527f4e756d626572206f6620626f647920706172747320616e6420626f64795365636044820152711d1a5bdb881b5d5cdd08189948195c5d585b60721b6064820152608401610cd1565b60005b835181101561170b576040518060400160405280848381518110611c3957611c396143c4565b60200260200101516001600160a01b03168152602001838381518110611c6157611c616143c4565b6020026020010151815250601d6000868481518110611c8257611c826143c4565b602090810291909101810151825281810192909252604001600020825181546001600160a01b0319166001600160a01b0390911617815591015160019091015580611ccc81614353565b915050611c13565b33611cdd611d36565b6001600160a01b031614611d035760405162461bcd60e51b8152600401610cd190614142565b601281905560405181907f1747b48b6ade85d7dc97c0f523e0e780795930a468c01b18a51546791fdd3ac090600090a250565b600a546001600160a01b031690565b33611d4e611d36565b6001600160a01b031614611d745760405162461bcd60e51b8152600401610cd190614142565b612382611d8060085490565b1115611d9e5760405162461bcd60e51b8152600401610cd190614116565b6000825111611dbf5760405162461bcd60e51b8152600401610cd19061402f565b8051825114611e255760405162461bcd60e51b815260206004820152602c60248201527f4e756d626572206f6620746f6b656e7320616e6420726563656976657273206d60448201526b1d5cdd08189948195c5d585b60a21b6064820152608401610cd1565b60005b8251811015610e0257611e53838281518110611e4657611e466143c4565b6020026020010151612ebd565b15611e705760405162461bcd60e51b8152600401610cd1906140b4565b611eac828281518110611e8557611e856143c4565b6020026020010151848381518110611e9f57611e9f6143c4565b6020026020010151613240565b80611eb681614353565b915050611e28565b33611ec7611d36565b6001600160a01b031614611eed5760405162461bcd60e51b8152600401610cd190614142565b600f55565b606060018054610be690614318565b33611f0a611d36565b6001600160a01b031614611f305760405162461bcd60e51b8152600401610cd190614142565b8051825114611f515760405162461bcd60e51b8152600401610cd1906141a3565b60005b8151811015611fcc57818181518110611f6f57611f6f6143c4565b6020026020010151601b6000858481518110611f8d57611f8d6143c4565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080611fc490614353565b915050611f54565b506040517feafec84fcf285fcede06719a16d83a525eb60bf28144cf7840bf67044dfa1c5790600090a15050565b33612003611d36565b6001600160a01b0316146120295760405162461bcd60e51b8152600401610cd190614142565b805182511461204a5760405162461bcd60e51b8152600401610cd1906141a3565b60005b81518110156120d357828181518110612068576120686143c4565b6020026020010151601a6000848481518110612086576120866143c4565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080806120cb90614353565b91505061204d565b506040517fd2c9065a633f02653daeb0994f3cfeaa60e14fbf2f0187e4bcf26b99deb6c26090600090a15050565b6001600160a01b0382163314156121565760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610cd1565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b336121cb611d36565b6001600160a01b0316146121f15760405162461bcd60e51b8152600401610cd190614142565b600d805460ff1916911515919091179055565b3361220d611d36565b6001600160a01b0316146122335760405162461bcd60e51b8152600401610cd190614142565b80518251146122545760405162461bcd60e51b8152600401610cd1906141a3565b60005b81518110156122dd57828181518110612272576122726143c4565b602002602001015160196000848481518110612290576122906143c4565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080806122d590614353565b915050612257565b506040517ff3096fdf6fe4c21a925560901af8bb6344780023961e759c1058660645987d2a90600090a15050565b33612314611d36565b6001600160a01b03161461233a5760405162461bcd60e51b8152600401610cd190614142565b601454610100900460ff16612382576014805461ff0019166101001790556040517f912ee23dde46ec889d6748212cce445d667f7041597691dc89e8549ad8bc0acb90600090a15b6015546117d65742601555565b6123993383612f8b565b6123b55760405162461bcd60e51b8152600401610cd1906141e6565b61170b8484848461325a565b60606123826123cf60085490565b6012546123dc919061428a565b11156123fa5760405162461bcd60e51b8152600401610cd190614116565b600f5482111561241c5760405162461bcd60e51b8152600401610cd190614177565b6000821161243c5760405162461bcd60e51b8152600401610cd19061402f565b336000908152601b60205260409020548211156124915760405162461bcd60e51b8152602060048201526013602482015272135a5b9d081b1a5b5a5d08195e18d959591959606a1b6044820152606401610cd1565b6000826001600160401b038111156124ab576124ab6143da565b6040519080825280602002602001820160405280156124d4578160200160208202803683370190505b50905060005b838110156125715760006012546124f060085490565b6124fa919061428a565b61250590600161428a565b90506125113382613240565b336000908152601b602052604090205461252d906001906142d5565b336000908152601b602052604090205582518190849084908110612553576125536143c4565b6020908102919091010152508061256981614353565b9150506124da565b506040517febea1c2ed69325ac5b50b5168c44372c66298c10fb38e194c20861263b6b312290600090a192915050565b336125aa611d36565b6001600160a01b0316146125d05760405162461bcd60e51b8152600401610cd190614142565b600e55565b60606125e082612ebd565b61261d5760405162461bcd60e51b815260206004820152600e60248201526d155b9adb9bdddb951bdad95b925960921b6044820152606401610cd1565b60006126288361328d565b9392505050565b33612638611d36565b6001600160a01b03161461265e5760405162461bcd60e51b8152600401610cd190614142565b60005b82518110156126c5578160186000858481518110612681576126816143c4565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806126bd81614353565b915050612661565b506040517f0e1f2c98f38b86837f92e81b36ddfc070a8c83b432b0f841bafc4ac27448193590600090a15050565b60606126fd612f48565b61238261270960085490565b601254612716919061428a565b11156127345760405162461bcd60e51b8152600401610cd190614116565b600e54600854601254612747919061428a565b11156127955760405162461bcd60e51b815260206004820152601d60248201527f417263686965766573206578636565646564207468697320726f756e640000006044820152606401610cd1565b600f548211156127b75760405162461bcd60e51b8152600401610cd190614177565b600082116127d75760405162461bcd60e51b8152600401610cd19061402f565b600b546040516370a0823160e01b81526000916001600160a01b0316906370a0823190612808903390600401613f87565b60206040518083038186803b15801561282057600080fd5b505afa158015612834573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128589190613e27565b118061287357503360009081526018602052604090205460ff165b156128a957348260115461288791906142b6565b146128a45760405162461bcd60e51b8152600401610cd1906140ea565b612901565b34826010546128b891906142b6565b146129015760405162461bcd60e51b8152602060048201526019602482015278496e76616c69642045544820416d6f756e74205075626c696360381b6044820152606401610cd1565b6000826001600160401b0381111561291b5761291b6143da565b604051908082528060200260200182016040528015612944578160200160208202803683370190505b50905060005b838110156129b257600060125461296060085490565b61296a919061428a565b61297590600161428a565b90506129813382613240565b80838381518110612994576129946143c4565b602090810291909101015250806129aa81614353565b91505061294a565b506040517fe93b40d3f6e630afbcd5059199831ac5d347ccc6e0954789a6d56cbe8d3ffb3e90600090a192915050565b336129eb611d36565b6001600160a01b031614612a115760405162461bcd60e51b8152600401610cd190614142565b60165460ff1615612a585760405162461bcd60e51b81526020600482015260116024820152702a37b5b2b72aa924a637b1b5b2b222b93960791b6044820152606401610cd1565b8051612a6b90601e906020840190613866565b50601e604051612a7b9190613f42565b604051908190038120907f5bb111c9b2ad41c6cc1754cdbee2cc303b7becb89d29d2d5f91165fcc0b0a49d90600090a250565b60145460609060ff1615612b20573360009081526017602052604090205460ff16612b1b5760405162461bcd60e51b815260206004820152601f60248201527f596f7520617265206e6f7420696e207468652070726976617465206c697374006044820152606401610cd1565b612b28565b612b28612f48565b612382612b3460085490565b601254612b41919061428a565b1115612b5f5760405162461bcd60e51b8152600401610cd190614116565b336000908152601b6020526040902054600f54612b7c919061428a565b82612b8633611a4e565b612b90919061428a565b1115612bae5760405162461bcd60e51b8152600401610cd190614177565b60008211612bce5760405162461bcd60e51b8152600401610cd19061402f565b3482601154612bdd91906142b6565b14612bfa5760405162461bcd60e51b8152600401610cd1906140ea565b6000826001600160401b03811115612c1457612c146143da565b604051908082528060200260200182016040528015612c3d578160200160208202803683370190505b50905060005b83811015612cab576000601254612c5960085490565b612c63919061428a565b612c6e90600161428a565b9050612c7a3382613240565b80838381518110612c8d57612c8d6143c4565b60209081029190910101525080612ca381614353565b915050612c43565b506040517fe09104290f16b1b80a410aa29fa8fdac7157ea342c8cd05cc74130726912b87790600090a192915050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b33612d12611d36565b6001600160a01b031614612d385760405162461bcd60e51b8152600401610cd190614142565b6001600160a01b038116612d9d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cd1565b612da6816131ee565b50565b33612db2611d36565b6001600160a01b031614612dd85760405162461bcd60e51b8152600401610cd190614142565b60005b8251811015612e3f578160176000858481518110612dfb57612dfb6143c4565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580612e3781614353565b915050612ddb565b506040517fabc7a939fd97c4c51220c6e910ad10c7f1d057a59e819ff619430afd1e82e93790600090a15050565b60006001600160e01b031982166380ac58cd60e01b1480612e9e57506001600160e01b03198216635b5e139f60e01b145b80610bd157506301ffc9a760e01b6001600160e01b0319831614610bd1565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612f0f826119d7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b601454610100900460ff166117d65760405162461bcd60e51b815260206004820152600960248201526829b0b632a737ba27b760b91b6044820152606401610cd1565b6000612f9682612ebd565b612ff75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610cd1565b6000613002836119d7565b9050806001600160a01b0316846001600160a01b0316148061303d5750836001600160a01b031661303284610c69565b6001600160a01b0316145b8061304d575061304d8185612cdb565b949350505050565b826001600160a01b0316613068826119d7565b6001600160a01b0316146130d05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610cd1565b6001600160a01b0382166131325760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610cd1565b61313d8383836132e4565b613148600082612eda565b6001600160a01b03831660009081526003602052604081208054600192906131719084906142d5565b90915550506001600160a01b038216600090815260036020526040812080546001929061319f90849061428a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03868116918217909255915184939187169160008051602061440783398151915291a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610e4982826040518060200160405280600081525061339c565b613265848484613055565b613271848484846133cf565b61170b5760405162461bcd60e51b8152600401610cd190614062565b6060601e604051806040016040528060098152602001686d657461646174612f60b81b8152506132bc846134dc565b6040516020016132ce93929190613f4e565b6040516020818303038152906040529050919050565b6001600160a01b03831661333f5761333a81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613362565b816001600160a01b0316836001600160a01b0316146133625761336283826135d9565b6001600160a01b03821661337957610e0281613676565b826001600160a01b0316826001600160a01b031614610e0257610e028282613725565b6133a68383613769565b6133b360008484846133cf565b610e025760405162461bcd60e51b8152600401610cd190614062565b60006001600160a01b0384163b156134d157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613413903390899088908890600401613f9b565b602060405180830381600087803b15801561342d57600080fd5b505af192505050801561345d575060408051601f3d908101601f1916820190925261345a91810190613da9565b60015b6134b7573d80801561348b576040519150601f19603f3d011682016040523d82523d6000602084013e613490565b606091505b5080516134af5760405162461bcd60e51b8152600401610cd190614062565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061304d565b506001949350505050565b6060816135005750506040805180820190915260018152600360fc1b602082015290565b8160005b811561352a578061351481614353565b91506135239050600a836142a2565b9150613504565b6000816001600160401b03811115613544576135446143da565b6040519080825280601f01601f19166020018201604052801561356e576020820181803683370190505b5090505b841561304d576135836001836142d5565b9150613590600a8661436e565b61359b90603061428a565b60f81b8183815181106135b0576135b06143c4565b60200101906001600160f81b031916908160001a9053506135d2600a866142a2565b9450613572565b600060016135e684611a4e565b6135f091906142d5565b600083815260076020526040902054909150808214613643576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613688906001906142d5565b600083815260096020526040812054600880549394509092849081106136b0576136b06143c4565b9060005260206000200154905080600883815481106136d1576136d16143c4565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613709576137096143ae565b6001900381819060005260206000200160009055905550505050565b600061373083611a4e565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166137bf5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610cd1565b6137c881612ebd565b156137e55760405162461bcd60e51b8152600401610cd1906140b4565b6137f1600083836132e4565b6001600160a01b038216600090815260036020526040812080546001929061381a90849061428a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839290600080516020614407833981519152908290a45050565b82805461387290614318565b90600052602060002090601f01602090048101928261389457600085556138da565b82601f106138ad57805160ff19168380011785556138da565b828001600101855582156138da579182015b828111156138da5782518255916020019190600101906138bf565b506138e69291506138ea565b5090565b5b808211156138e657600081556001016138eb565b60006001600160401b03831115613918576139186143da565b61392b601f8401601f1916602001614237565b905082815283838301111561393f57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461396d57600080fd5b919050565b600082601f83011261398357600080fd5b8135602061399861399383614267565b614237565b80838252828201915082860187848660051b89010111156139b857600080fd5b60005b858110156139de576139cc82613956565b845292840192908401906001016139bb565b5090979650505050505050565b600082601f8301126139fc57600080fd5b81356020613a0c61399383614267565b80838252828201915082860187848660051b8901011115613a2c57600080fd5b60005b858110156139de57813584529284019290840190600101613a2f565b8035801515811461396d57600080fd5b600060208284031215613a6d57600080fd5b61262882613956565b60008060408385031215613a8957600080fd5b613a9283613956565b9150613aa060208401613956565b90509250929050565b600080600060608486031215613abe57600080fd5b613ac784613956565b9250613ad560208501613956565b9150604084013590509250925092565b60008060008060808587031215613afb57600080fd5b613b0485613956565b9350613b1260208601613956565b92506040850135915060608501356001600160401b03811115613b3457600080fd5b8501601f81018713613b4557600080fd5b613b54878235602084016138ff565b91505092959194509250565b60008060408385031215613b7357600080fd5b613b7c83613956565b9150613aa060208401613a4b565b60008060408385031215613b9d57600080fd5b613ba683613956565b946020939093013593505050565b60008060408385031215613bc757600080fd5b82356001600160401b0380821115613bde57600080fd5b613bea86838701613972565b93506020850135915080821115613c0057600080fd5b50613c0d858286016139eb565b9150509250929050565b60008060408385031215613c2a57600080fd5b82356001600160401b03811115613c4057600080fd5b613c4c85828601613972565b925050613aa060208401613a4b565b60008060408385031215613c6e57600080fd5b82356001600160401b0380821115613c8557600080fd5b613c91868387016139eb565b93506020850135915080821115613ca757600080fd5b50613c0d85828601613972565b600080600060608486031215613cc957600080fd5b83356001600160401b0380821115613ce057600080fd5b613cec878388016139eb565b94506020860135915080821115613d0257600080fd5b613d0e87838801613972565b93506040860135915080821115613d2457600080fd5b50613d31868287016139eb565b9150509250925092565b60008060408385031215613d4e57600080fd5b82356001600160401b0380821115613d6557600080fd5b613bea868387016139eb565b600060208284031215613d8357600080fd5b61262882613a4b565b600060208284031215613d9e57600080fd5b8135612628816143f0565b600060208284031215613dbb57600080fd5b8151612628816143f0565b600060208284031215613dd857600080fd5b81356001600160401b03811115613dee57600080fd5b8201601f81018413613dff57600080fd5b61304d848235602084016138ff565b600060208284031215613e2057600080fd5b5035919050565b600060208284031215613e3957600080fd5b5051919050565b60008060408385031215613e5357600080fd5b8235915060208301356001600160401b03811115613e7057600080fd5b613c0d858286016139eb565b60008151808452613e948160208601602086016142ec565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680613ec257607f831692505b6020808410821415613ee457634e487b7160e01b600052602260045260246000fd5b818015613ef85760018114613f0957613f36565b60ff19861689528489019650613f36565b60008881526020902060005b86811015613f2e5781548b820152908501908301613f15565b505084890196505b50505050505092915050565b60006126288284613ea8565b6000613f5a8286613ea8565b8451613f6a8183602089016142ec565b8451910190613f7d8183602088016142ec565b0195945050505050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613fce90830184613e7c565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561401057835183529284019291840191600101613ff4565b50909695505050505050565b6020815260006126286020830184613e7c565b6020808252601990820152784e65656420746f206d696e74206174206c65617374206f6e6560381b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601c908201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b604082015260600190565b602080825260129082015271125b9d985b1a590811551208105b5bdd5b9d60721b604082015260600190565b602080825260129082015271105c98da1a595d995cc81cdbdb19081bdd5d60721b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260129082015271109d5e481b1a5b5a5d08195e18d95959195960721b604082015260600190565b60208082526023908201527f4e6f206f66206163636f756e7473202620746f6b656e7320646f6e2774206d616040820152620e8c6d60eb1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f191681016001600160401b038111828210171561425f5761425f6143da565b604052919050565b60006001600160401b03821115614280576142806143da565b5060051b60200190565b6000821982111561429d5761429d614382565b500190565b6000826142b1576142b1614398565b500490565b60008160001904831182151516156142d0576142d0614382565b500290565b6000828210156142e7576142e7614382565b500390565b60005b838110156143075781810151838201526020016142ef565b8381111561170b5750506000910152565b600181811c9082168061432c57607f821691505b6020821081141561434d57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561436757614367614382565b5060010190565b60008261437d5761437d614398565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114612da657600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212206e130e74ff3e98a47c72f7c18effa4bfa55870db83fecd3ea9935da29c9c98ce64736f6c63430008070033
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.