Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
5,550 HHoS
Holders
226
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
HitchHikerOfStar
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.13; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@erc721a/contracts/ERC721A.sol"; interface IERC721Like { function ownerOf(uint256) external view returns (address); function balanceOf(address) external view returns (uint256); } interface ICryptoPunks { function punkIndexToAddress(uint256) external returns (address); } contract HitchHikerOfStar is ERC721A, Ownable { uint256 public blocksPerHalfHour; uint256 public freeMintMaxAmount; uint256 public dutchAuctionMintMaxAmount; uint256 public whiteListMintMaxAmount; uint256 public remainingAmount; uint256 public preMintAmount; uint256 public preMintRemaining; uint256 public decayFactor; address[] public freeMintCriteria; address public cryptoPunksAddress; mapping(address => bool) public isFreeMintCriteria; mapping(bytes32 => bool) public freeMintClaimed; mapping(address => uint256) public totalClaimed; mapping(address => bool) public whiteListClaimed; mapping(address => bool) public isFreeWhiteList; uint256 public freeMinted; uint256 public dutchAuctionMinted; uint256 public whiteListMinted; bytes32 public merkleRoot; uint256 public whiteListMintPrice; uint256 public freeMintEndTime; uint256 public dutchAuctionMintEndTime; uint256 public whiteListMintEndTime; uint256 public dutchAuctionInitialPrice; uint256 public dutchAuctionFloorPrice; uint256 public dutchAuctionStartBlockNumber; string public placeholderTokenURI; string public freeMintBaseTokenURI; string public dutchAuctionBaseTokenURI; string public whiteListMintBaseTokenURI; //////////////////////////////////////////////////////////// /// custom errors ///////////////////////////////////////////////////////////// error Error_AlreadyClaimed(); error Error_InvalidMintTime(); error Error_InvalidMerkleProof(); error Error_InsufficientFunds(); error Error_MintExcessAllowance(); error Error_MintCriteriaNotSet(); error Error_InvalidAsset(); error Error_NotOwner(); constructor(string memory name, string memory symbol) ERC721A(name, symbol) {} function freeMint(address to, address asset, uint256 tokenId) external { if (freeMintEndTime == 0 || freeMintEndTime < block.timestamp) { revert Error_InvalidMintTime(); } bytes32 key = keccak256(abi.encode(asset, tokenId)); if (freeMintClaimed[key]) { revert Error_AlreadyClaimed(); } if (freeMinted >= freeMintMaxAmount) { revert Error_MintExcessAllowance(); } if (!isFreeMintCriteria[asset]) { revert Error_InvalidAsset(); } if (asset == cryptoPunksAddress) { if (ICryptoPunks(asset).punkIndexToAddress(tokenId) != to) revert Error_NotOwner(); } else { if (IERC721Like(asset).ownerOf(tokenId) != to) revert Error_NotOwner(); } freeMinted += 1; totalClaimed[to] += 1; freeMintClaimed[key] = true; _safeMint(to, 1); } function dutchAuctionMint(address to, uint256 amount) external payable { if (dutchAuctionMintEndTime == 0 || dutchAuctionMintEndTime < block.timestamp) { revert Error_InvalidMintTime(); } if (dutchAuctionMinted + amount > dutchAuctionMintMaxAmount) { revert Error_MintExcessAllowance(); } uint256 mintPrice = getDutchMintPrice(); uint256 expectedEther = mintPrice * amount; if (expectedEther > msg.value) { revert Error_InsufficientFunds(); } if (expectedEther < msg.value) { payable(msg.sender).transfer(msg.value - expectedEther); } dutchAuctionMinted += amount; _safeMint(to, amount); } function whiteListMint( address to, uint256 amount, bytes32[] calldata merkleProof ) external payable { if (whiteListMintEndTime == 0 || whiteListMintEndTime < block.timestamp) { revert Error_InvalidMintTime(); } if (whiteListClaimed[to]) { revert Error_AlreadyClaimed(); } if (whiteListMinted + amount > whiteListMintMaxAmount) { revert Error_MintExcessAllowance(); } uint256 expectedEther; if (!isFreeWhiteList[to]) { expectedEther = amount * whiteListMintPrice; } if (expectedEther > msg.value) { revert Error_InsufficientFunds(); } if (expectedEther < msg.value) { payable(msg.sender).transfer(msg.value - expectedEther); } bytes32 leaf = keccak256(abi.encode(to, amount)); if (!MerkleProof.verify(merkleProof, merkleRoot, leaf)) { revert Error_InvalidMerkleProof(); } whiteListClaimed[to] = true; whiteListMinted += amount; _safeMint(to, amount); } //////////////////////////////////////////////////////////// /// admin functions ///////////////////////////////////////////////////////////// function setFreeMintMaxAmount(uint256 amount) external onlyOwner { freeMintMaxAmount = amount; } function setDutchAuctionMintMaxAmount(uint256 amount) external onlyOwner { dutchAuctionMintMaxAmount = amount; } function setWhiteListMintMaxAmount(uint256 amount) external onlyOwner { whiteListMintMaxAmount = amount; } function setPreMintAmount(uint256 amount) public onlyOwner { preMintAmount = amount; } function preMint(address to, uint256 amount) public onlyOwner { if (preMintRemaining + amount > preMintAmount) { revert Error_MintExcessAllowance(); } preMintRemaining += amount; _safeMint(to, amount); } // called when three phases have been finished. function mintRemaining(address to, uint256 amount) external onlyOwner { uint256 remaining = maxMintAmount() - totalMinted(); if (remainingAmount + amount > remaining) { revert Error_MintExcessAllowance(); } remainingAmount += amount; _safeMint(to, amount); } function setFreeWhiteList(address[] calldata list) external onlyOwner { for (uint256 i; i < list.length; ++i) { isFreeWhiteList[list[i]] = true; } } function setBlocksPerHalfHour(uint256 blocks) external onlyOwner { blocksPerHalfHour = blocks; } function setDecayFactor(uint256 factor) external onlyOwner { decayFactor = factor; } function startFreeMint(uint256 duration) external onlyOwner { freeMintEndTime = block.timestamp + duration; } function addFreeMintCriteria(address[] memory criteria) external onlyOwner { for (uint256 i; i < criteria.length; ++i) { freeMintCriteria.push(criteria[i]); isFreeMintCriteria[criteria[i]] = true; } } function delFreeMintCriteria(uint256 index) external onlyOwner { uint256 len = freeMintCriteria.length; for (uint256 i; i < len; ++i) { if (i == index) { freeMintCriteria[i] = freeMintCriteria[len - 1]; isFreeMintCriteria[freeMintCriteria[i]] = false; freeMintCriteria.pop(); break; } } } function setCryptoPunksAddress(address _cryptoPunksAddress) external onlyOwner { cryptoPunksAddress = _cryptoPunksAddress; freeMintCriteria.push(_cryptoPunksAddress); isFreeMintCriteria[_cryptoPunksAddress] = true; } function startDutchAuctionMint( uint256 duration, uint256 initialPrice, uint256 floorPrice ) external onlyOwner { dutchAuctionMintEndTime = block.timestamp + duration; dutchAuctionStartBlockNumber = block.number; dutchAuctionInitialPrice = initialPrice; dutchAuctionFloorPrice = floorPrice; } function startWhiteListMint( uint256 duration, uint256 mintPrice, bytes32 _merkleRoot ) external onlyOwner { whiteListMintEndTime = block.timestamp + duration; whiteListMintPrice = mintPrice; merkleRoot = _merkleRoot; } function withdraw(address to, uint256 amount) external onlyOwner { payable(to).transfer(amount); } function setPlaceholderTokenURI(string memory placeholder) public onlyOwner { placeholderTokenURI = placeholder; } function setFreeMintBaseTokenURI(string memory _baseUri) public onlyOwner { freeMintBaseTokenURI = _baseUri; } function setDutchAuctionBaseTokenURI(string memory _baseUri) public onlyOwner { dutchAuctionBaseTokenURI = _baseUri; } function setWhiteListMintBaseTokenURI(string memory _baseUri) public onlyOwner { whiteListMintBaseTokenURI = _baseUri; } //////////////////////////////////////////////////////////// /// view functions ///////////////////////////////////////////////////////////// function totalMinted() public view returns (uint256) { return freeMinted + dutchAuctionMinted + whiteListMinted; } function maxMintAmount() public view returns (uint256) { return freeMintMaxAmount + dutchAuctionMintMaxAmount + whiteListMintMaxAmount; } function getDutchMintPrice() public view returns (uint256 mintPrice) { uint256 declinedPrice = (block.number - dutchAuctionStartBlockNumber) / blocksPerHalfHour * decayFactor; if (dutchAuctionInitialPrice > declinedPrice) { mintPrice = dutchAuctionInitialPrice - declinedPrice; } if (mintPrice < dutchAuctionFloorPrice) { mintPrice = dutchAuctionFloorPrice; } } function getFreeMintCriteria() external view returns (address[] memory) { return freeMintCriteria; } function getFreeMintRemaining(address who) external view returns (uint256) { uint256 total; uint256 len = freeMintCriteria.length; for (uint256 i; i < len; ++i) { total += IERC721Like(freeMintCriteria[i]).balanceOf(who); } return total - totalClaimed[who]; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseUri = getBaseURI(tokenId); return bytes(baseUri).length > 0 ? string.concat(baseUri, Strings.toString(tokenId)) : placeholderTokenURI; } //////////////////////////////////////////////////////////// /// internal functions ///////////////////////////////////////////////////////////// function _startTokenId() internal pure override returns (uint256) { return 1; } function getBaseURI(uint256 tokenId) internal view returns (string memory baseUri) { if (tokenId > 0 && tokenId <= preMintAmount) { return freeMintBaseTokenURI; } tokenId = tokenId - preMintAmount; if (tokenId > 0 && tokenId <= freeMinted) { baseUri = freeMintBaseTokenURI; } else if (tokenId > freeMinted && tokenId <= freeMinted + dutchAuctionMinted) { baseUri = dutchAuctionBaseTokenURI; } else if ( tokenId > freeMinted + dutchAuctionMinted && tokenId <= freeMinted + dutchAuctionMinted + whiteListMinted ) { baseUri = whiteListMintBaseTokenURI; } else { baseUri = ""; } } //////////////////////////////////////////////////////////// /// Used for test ///////////////////////////////////////////////////////////// function setPhaseOneMinted(uint256 amount) internal { freeMinted = amount; } function setPhaseTwoMinted(uint256 amount) internal { dutchAuctionMinted = amount; } function setPhaseThreeMinted(uint256 amount) internal { whiteListMinted = amount; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721A { using Address for address; using Strings for uint256; // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A is IERC721, IERC721Metadata { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "remappings": [ "@erc721a/=lib/ERC721A/", "@openzeppelin/=lib/openzeppelin-contracts/", "@solmate/=lib/solmate/src/", "@std/=lib/forge-std/src/", "ERC721A/=lib/ERC721A/contracts/", "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "solmate/=lib/solmate/src/", "weird-erc20/=lib/solmate/lib/weird-erc20/src/", "src/=src/", "script/=script/" ], "optimizer": { "enabled": true, "runs": 1000 }, "metadata": { "bytecodeHash": "ipfs" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"Error_AlreadyClaimed","type":"error"},{"inputs":[],"name":"Error_InsufficientFunds","type":"error"},{"inputs":[],"name":"Error_InvalidAsset","type":"error"},{"inputs":[],"name":"Error_InvalidMerkleProof","type":"error"},{"inputs":[],"name":"Error_InvalidMintTime","type":"error"},{"inputs":[],"name":"Error_MintCriteriaNotSet","type":"error"},{"inputs":[],"name":"Error_MintExcessAllowance","type":"error"},{"inputs":[],"name":"Error_NotOwner","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address[]","name":"criteria","type":"address[]"}],"name":"addFreeMintCriteria","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blocksPerHalfHour","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cryptoPunksAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decayFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"delFreeMintCriteria","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dutchAuctionBaseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dutchAuctionFloorPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dutchAuctionInitialPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"dutchAuctionMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"dutchAuctionMintEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dutchAuctionMintMaxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dutchAuctionMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dutchAuctionStartBlockNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeMintBaseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"freeMintClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"freeMintCriteria","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMintEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMintMaxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDutchMintPrice","outputs":[{"internalType":"uint256","name":"mintPrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFreeMintCriteria","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"getFreeMintRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isFreeMintCriteria","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isFreeWhiteList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintRemaining","outputs":[],"stateMutability":"nonpayable","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":"placeholderTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"preMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"preMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preMintRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remainingAmount","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"blocks","type":"uint256"}],"name":"setBlocksPerHalfHour","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_cryptoPunksAddress","type":"address"}],"name":"setCryptoPunksAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"factor","type":"uint256"}],"name":"setDecayFactor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"setDutchAuctionBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setDutchAuctionMintMaxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"setFreeMintBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setFreeMintMaxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"list","type":"address[]"}],"name":"setFreeWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"placeholder","type":"string"}],"name":"setPlaceholderTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setPreMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"setWhiteListMintBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setWhiteListMintMaxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"initialPrice","type":"uint256"},{"internalType":"uint256","name":"floorPrice","type":"uint256"}],"name":"startDutchAuctionMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"startFreeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"startWhiteListMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whiteListClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"whiteListMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whiteListMintBaseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whiteListMintEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whiteListMintMaxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whiteListMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whiteListMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162003c7a38038062003c7a833981016040819052620000349162000243565b8151829082906200004d906002906020850190620000d0565b50805162000063906003906020840190620000d0565b505060016000555062000076336200007e565b5050620002e9565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620000de90620002ad565b90600052602060002090601f0160209004810192826200010257600085556200014d565b82601f106200011d57805160ff19168380011785556200014d565b828001600101855582156200014d579182015b828111156200014d57825182559160200191906001019062000130565b506200015b9291506200015f565b5090565b5b808211156200015b576000815560010162000160565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200019e57600080fd5b81516001600160401b0380821115620001bb57620001bb62000176565b604051601f8301601f19908116603f01168101908282118183101715620001e657620001e662000176565b816040528381526020925086838588010111156200020357600080fd5b600091505b8382101562000227578582018301518183018401529082019062000208565b83821115620002395760008385830101525b9695505050505050565b600080604083850312156200025757600080fd5b82516001600160401b03808211156200026f57600080fd5b6200027d868387016200018c565b935060208501519150808211156200029457600080fd5b50620002a3858286016200018c565b9150509250929050565b600181811c90821680620002c257607f821691505b602082108103620002e357634e487b7160e01b600052602260045260246000fd5b50919050565b61398180620002f96000396000f3fe6080604052600436106104ec5760003560e01c80636f42d63e11610294578063b3f9e6f61161015e578063cd33ea47116100d6578063ef5d9ae81161008a578063f3fef3a31161006f578063f3fef3a314610d70578063f6c9550d14610d90578063fffb21d614610da657600080fd5b8063ef5d9ae814610d23578063f2fde38b14610d5057600080fd5b8063e8b2aea0116100bb578063e8b2aea014610caf578063e9027f3a14610cc5578063e985e9c514610cda57600080fd5b8063cd33ea4714610c83578063d10a1a2b14610c9957600080fd5b8063c2a35b981161012d578063c87b56dd11610112578063c87b56dd14610c2e578063c8a6ecb314610c4e578063cbe863a314610c6357600080fd5b8063c2a35b9814610c02578063c76843e814610c1857600080fd5b8063b3f9e6f614610b96578063b88d4fde14610bac578063b8c9059d14610bcc578063bf97ef1e14610bec57600080fd5b806395d89b411161020c578063a50a1fe6116101c0578063a9f1b893116101a5578063a9f1b89314610b41578063b03e7c9f14610b56578063b1ed077e14610b7657600080fd5b8063a50a1fe614610b15578063a5c3fdae14610b2b57600080fd5b80639b2654b2116101f15780639b2654b214610acd578063a22cb46514610ae0578063a2309ff814610b0057600080fd5b806395d89b4114610aa35780639958da2414610ab857600080fd5b806383766aba116102635780638920c3f2116102485780638920c3f214610a505780638da5cb5b14610a705780638ecc808314610a8e57600080fd5b806383766aba14610a1a57806384b9f5b314610a3057600080fd5b80636f42d63e146109a557806370a08231146109c5578063715018a6146109e557806379f3dc04146109fa57600080fd5b806323b872dd116103d557806355c4989c1161034d5780635fbdbcf0116103015780636352211e116102e65780636352211e146109595780636584cce9146109795780636de23af41461098f57600080fd5b80635fbdbcf01461091957806362fe1b241461093957600080fd5b80635a3ede8d116103325780635a3ede8d146108a95780635c3de6c7146108c95780635f37f620146108e957600080fd5b806355c4989c14610863578063579428e01461089357600080fd5b80632eb4a7ab116103a45780633cf8c233116103895780633cf8c2331461080d57806342842e0e1461082d5780634a90604c1461084d57600080fd5b80632eb4a7ab146107d75780632efd3cb9146107ed57600080fd5b806323b872dd1461075757806324fee95014610777578063290c292d146107975780632a43437e146107b757600080fd5b8063124b5a001161046857806320f212ce11610437578063233171001161041c57806323317100146106fc5780632333f3c414610712578063239c70ae1461074257600080fd5b806320f212ce146106c657806320fb3016146106e657600080fd5b8063124b5a001461065357806312cdee5914610673578063148829f51461069357806318160ddd146106a957600080fd5b8063095ea7b3116104bf5780630c3434f5116104a45780630c3434f5146105d55780630ece22941461060357806310d17dcb1461063357600080fd5b8063095ea7b3146105a25780630b19b173146105c257600080fd5b806301ffc9a7146104f1578063063ca0001461052657806306fdde0314610548578063081812fc1461056a575b600080fd5b3480156104fd57600080fd5b5061051161050c366004613223565b610dc8565b60405190151581526020015b60405180910390f35b34801561053257600080fd5b5061054661054136600461329c565b610e65565b005b34801561055457600080fd5b5061055d610f6c565b60405161051d91906133a6565b34801561057657600080fd5b5061058a6105853660046133b9565b610ffe565b6040516001600160a01b03909116815260200161051d565b3480156105ae57600080fd5b506105466105bd3660046133d2565b61105b565b6105466105d03660046133d2565b61115f565b3480156105e157600080fd5b506105f56105f03660046133fe565b611260565b60405190815260200161051d565b34801561060f57600080fd5b5061051161061e3660046133b9565b60146020526000908152604090205460ff1681565b34801561063f57600080fd5b5061054661064e366004613473565b61135d565b34801561065f57600080fd5b5061054661066e3660046134bc565b6113b8565b34801561067f57600080fd5b5061054661068e366004613473565b611419565b34801561069f57600080fd5b506105f5600e5481565b3480156106b557600080fd5b5060015460005403600019016105f5565b3480156106d257600080fd5b5061058a6106e13660046133b9565b611474565b3480156106f257600080fd5b506105f560105481565b34801561070857600080fd5b506105f5600b5481565b34801561071e57600080fd5b5061051161072d3660046133fe565b60166020526000908152604090205460ff1681565b34801561074e57600080fd5b506105f561149e565b34801561076357600080fd5b506105466107723660046134e8565b6114c2565b34801561078357600080fd5b50610546610792366004613473565b6114d2565b3480156107a357600080fd5b506105466107b23660046133d2565b61152d565b3480156107c357600080fd5b506105466107d23660046133b9565b6115c7565b3480156107e357600080fd5b506105f5601b5481565b3480156107f957600080fd5b506105466108083660046133b9565b611730565b34801561081957600080fd5b506105466108283660046133b9565b611788565b34801561083957600080fd5b506105466108483660046134e8565b6117d5565b34801561085957600080fd5b506105f5601d5481565b34801561086f57600080fd5b5061051161087e3660046133fe565b60136020526000908152604090205460ff1681565b34801561089f57600080fd5b506105f5601f5481565b3480156108b557600080fd5b506105466108c4366004613575565b6117f0565b3480156108d557600080fd5b506105466108e43660046133b9565b6118a8565b3480156108f557600080fd5b506105116109043660046133fe565b60176020526000908152604090205460ff1681565b34801561092557600080fd5b506105466109343660046133b9565b6118f5565b34801561094557600080fd5b506105466109543660046134bc565b611942565b34801561096557600080fd5b5061058a6109743660046133b9565b6119a7565b34801561098557600080fd5b506105f5600f5481565b34801561099b57600080fd5b506105f560095481565b3480156109b157600080fd5b506105466109c03660046134e8565b6119b9565b3480156109d157600080fd5b506105f56109e03660046133fe565b611cab565b3480156109f157600080fd5b50610546611d13565b348015610a0657600080fd5b50610546610a15366004613473565b611d67565b348015610a2657600080fd5b506105f560195481565b348015610a3c57600080fd5b50610546610a4b3660046133fe565b611dc2565b348015610a5c57600080fd5b50610546610a6b3660046133d2565b611e7d565b348015610a7c57600080fd5b506008546001600160a01b031661058a565b348015610a9a57600080fd5b5061055d611f33565b348015610aaf57600080fd5b5061055d611fc1565b348015610ac457600080fd5b5061055d611fd0565b610546610adb3660046135b7565b611fdd565b348015610aec57600080fd5b50610546610afb366004613613565b612201565b348015610b0c57600080fd5b506105f56122af565b348015610b2157600080fd5b506105f5600d5481565b348015610b3757600080fd5b506105f5600c5481565b348015610b4d57600080fd5b506105f56122c4565b348015610b6257600080fd5b50610546610b713660046133b9565b612320565b348015610b8257600080fd5b50610546610b913660046133b9565b61236d565b348015610ba257600080fd5b506105f5600a5481565b348015610bb857600080fd5b50610546610bc7366004613651565b6123ba565b348015610bd857600080fd5b50610546610be73660046133b9565b6123fe565b348015610bf857600080fd5b506105f5601c5481565b348015610c0e57600080fd5b506105f5601a5481565b348015610c2457600080fd5b506105f560205481565b348015610c3a57600080fd5b5061055d610c493660046133b9565b61244b565b348015610c5a57600080fd5b5061055d612564565b348015610c6f57600080fd5b5060125461058a906001600160a01b031681565b348015610c8f57600080fd5b506105f560225481565b348015610ca557600080fd5b506105f560185481565b348015610cbb57600080fd5b506105f560215481565b348015610cd157600080fd5b5061055d612571565b348015610ce657600080fd5b50610511610cf53660046136d1565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610d2f57600080fd5b506105f5610d3e3660046133fe565b60156020526000908152604090205481565b348015610d5c57600080fd5b50610546610d6b3660046133fe565b61257e565b348015610d7c57600080fd5b50610546610d8b3660046133d2565b61264e565b348015610d9c57600080fd5b506105f5601e5481565b348015610db257600080fd5b50610dbb6126cc565b60405161051d91906136ff565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610e2b57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610e5f57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6008546001600160a01b03163314610eb25760405162461bcd60e51b8152602060048201819052602482015260008051602061392c83398151915260448201526064015b60405180910390fd5b60005b8151811015610f68576011828281518110610ed257610ed261374c565b60209081029190910181015182546001808201855560009485529284200180546001600160a01b0319166001600160a01b0390921691909117905583519091601391859085908110610f2657610f2661374c565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055610f6181613778565b9050610eb5565b5050565b606060028054610f7b90613791565b80601f0160208091040260200160405190810160405280929190818152602001828054610fa790613791565b8015610ff45780601f10610fc957610100808354040283529160200191610ff4565b820191906000526020600020905b815481529060010190602001808311610fd757829003601f168201915b5050505050905090565b60006110098261272d565b61103f576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000611066826119a7565b9050806001600160a01b0316836001600160a01b0316036110b3576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614611103576110cd8133610cf5565b611103576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b601e54158061116f575042601e54105b1561118d57604051630fbf226360e01b815260040160405180910390fd5b600b548160195461119e91906137cb565b11156111bd576040516361ece0e360e11b815260040160405180910390fd5b60006111c76122c4565b905060006111d583836137e3565b9050348111156111f857604051634f8d8b5760e11b815260040160405180910390fd5b3481101561123857336108fc61120e8334613802565b6040518115909202916000818181858888f19350505050158015611236573d6000803e3d6000fd5b505b826019600082825461124a91906137cb565b9091555061125a90508484612766565b50505050565b6011546000908190815b8181101561133157601181815481106112855761128561374c565b6000918252602090912001546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038781166004830152909116906370a0823190602401602060405180830381865afa1580156112f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113159190613819565b61131f90846137cb565b925061132a81613778565b905061126a565b506001600160a01b0384166000908152601560205260409020546113559083613802565b949350505050565b6008546001600160a01b031633146113a55760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b8051610f6890602690602084019061317d565b6008546001600160a01b031633146114005760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b61140a83426137cb565b601f55601c91909155601b5550565b6008546001600160a01b031633146114615760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b8051610f6890602390602084019061317d565b6011818154811061148457600080fd5b6000918252602090912001546001600160a01b0316905081565b6000600c54600b54600a546114b391906137cb565b6114bd91906137cb565b905090565b6114cd838383612780565b505050565b6008546001600160a01b0316331461151a5760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b8051610f6890602590602084019061317d565b6008546001600160a01b031633146115755760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b600e5481600f5461158691906137cb565b11156115a5576040516361ece0e360e11b815260040160405180910390fd5b80600f60008282546115b791906137cb565b90915550610f6890508282612766565b6008546001600160a01b0316331461160f5760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b60115460005b818110156114cd57828103611720576011611631600184613802565b815481106116415761164161374c565b600091825260209091200154601180546001600160a01b03909216918390811061166d5761166d61374c565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600060136000601184815481106116b4576116b461374c565b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff191691151591909117905560118054806116f9576116f9613832565b600082815260209020810160001990810180546001600160a01b0319169055019055505050565b61172981613778565b9050611615565b6008546001600160a01b031633146117785760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b61178281426137cb565b601d5550565b6008546001600160a01b031633146117d05760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b600a55565b6114cd838383604051806020016040528060008152506123ba565b6008546001600160a01b031633146118385760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b60005b818110156114cd5760016017600085858581811061185b5761185b61374c565b905060200201602081019061187091906133fe565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790556118a181613778565b905061183b565b6008546001600160a01b031633146118f05760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b600b55565b6008546001600160a01b0316331461193d5760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b600955565b6008546001600160a01b0316331461198a5760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b61199483426137cb565b601e554360225560209190915560215550565b60006119b2826129ca565b5192915050565b601d5415806119c9575042601d54105b156119e757604051630fbf226360e01b815260040160405180910390fd5b604080516001600160a01b038416602082015290810182905260009060600160408051601f1981840301815291815281516020928301206000818152601490935291205490915060ff1615611a4f5760405163c67a3cb360e01b815260040160405180910390fd5b600a5460185410611a73576040516361ece0e360e11b815260040160405180910390fd5b6001600160a01b03831660009081526013602052604090205460ff16611ac5576040517f441134bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6012546001600160a01b0390811690841603611b90576040517f58178168000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b0380861691908516906358178168906024016020604051808303816000875af1158015611b40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b649190613848565b6001600160a01b031614611b8b57604051630238211560e21b815260040160405180910390fd5b611c3e565b6040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b038086169190851690636352211e90602401602060405180830381865afa158015611bf3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c179190613848565b6001600160a01b031614611c3e57604051630238211560e21b815260040160405180910390fd5b600160186000828254611c5191906137cb565b90915550506001600160a01b0384166000908152601560205260408120805460019290611c7f9084906137cb565b90915550506000818152601460205260409020805460ff1916600190811790915561125a908590612766565b60006001600160a01b038216611ced576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314611d5b5760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b611d656000612b07565b565b6008546001600160a01b03163314611daf5760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b8051610f6890602490602084019061317d565b6008546001600160a01b03163314611e0a5760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b601280546001600160a01b039092166001600160a01b031992831681179091556011805460018181019092557f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6801805490931682179092556000908152601360205260409020805460ff19169091179055565b6008546001600160a01b03163314611ec55760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b6000611ecf6122af565b611ed761149e565b611ee19190613802565b90508082600d54611ef291906137cb565b1115611f11576040516361ece0e360e11b815260040160405180910390fd5b81600d6000828254611f2391906137cb565b909155506114cd90508383612766565b60238054611f4090613791565b80601f0160208091040260200160405190810160405280929190818152602001828054611f6c90613791565b8015611fb95780601f10611f8e57610100808354040283529160200191611fb9565b820191906000526020600020905b815481529060010190602001808311611f9c57829003601f168201915b505050505081565b606060038054610f7b90613791565b60248054611f4090613791565b601f541580611fed575042601f54105b1561200b57604051630fbf226360e01b815260040160405180910390fd5b6001600160a01b03841660009081526016602052604090205460ff16156120455760405163c67a3cb360e01b815260040160405180910390fd5b600c5483601a5461205691906137cb565b1115612075576040516361ece0e360e11b815260040160405180910390fd5b6001600160a01b03841660009081526017602052604081205460ff166120a557601c546120a290856137e3565b90505b348111156120c657604051634f8d8b5760e11b815260040160405180910390fd5b3481101561210657336108fc6120dc8334613802565b6040518115909202916000818181858888f19350505050158015612104573d6000803e3d6000fd5b505b604080516001600160a01b038716602082015290810185905260009060600160405160208183030381529060405280519060200120905061217e84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601b549150849050612b59565b6121b4576040517f5f88cefb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0386166000908152601660205260408120805460ff19166001179055601a80548792906121e99084906137cb565b909155506121f990508686612766565b505050505050565b336001600160a01b03831603612243576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000601a546019546018546114b391906137cb565b600080601054600954602254436122db9190613802565b6122e5919061387b565b6122ef91906137e3565b905080602054111561230c57806020546123099190613802565b91505b60215482101561231c5760215491505b5090565b6008546001600160a01b031633146123685760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b600e55565b6008546001600160a01b031633146123b55760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b600c55565b6123c5848484612780565b6001600160a01b0383163b1561125a576123e184848484612b6f565b61125a576040516368d2bf6b60e11b815260040160405180910390fd5b6008546001600160a01b031633146124465760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b601055565b60606124568261272d565b61248c576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061249783612c5a565b9050600081511161253257602380546124af90613791565b80601f01602080910402602001604051908101604052809291908181526020018280546124db90613791565b80156125285780601f106124fd57610100808354040283529160200191612528565b820191906000526020600020905b81548152906001019060200180831161250b57829003601f168201915b505050505061255d565b8061253c84612dca565b60405160200161254d92919061388f565b6040516020818303038152906040525b9392505050565b60258054611f4090613791565b60268054611f4090613791565b6008546001600160a01b031633146125c65760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b6001600160a01b0381166126425760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ea9565b61264b81612b07565b50565b6008546001600160a01b031633146126965760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156114cd573d6000803e3d6000fd5b60606011805480602002602001604051908101604052809291908181526020018280548015610ff457602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612706575050505050905090565b600081600111158015612741575060005482105b8015610e5f575050600090815260046020526040902054600160e01b900460ff161590565b610f68828260405180602001604052806000815250612eff565b600061278b826129ca565b9050836001600160a01b031681600001516001600160a01b0316146127dc576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b03861614806127fa57506127fa8533610cf5565b8061281557503361280a84610ffe565b6001600160a01b0316145b90508061284e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03841661288e576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b03888116845260058352818420805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898316808752848720805493841693831660019081018416949094179055898752600490955283862080546001600160e01b031916909517600160a01b429092169190910217845587018085529190932080549293919290911661297f57600054821461297f578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b60408051606081018252600080825260208201819052918101919091528180600111612ad557600054811015612ad557600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290612ad35780516001600160a01b031615612a69579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612ace579392505050565b612a69565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600082612b668584613109565b14949350505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612ba49033908990889088906004016138be565b6020604051808303816000875af1925050508015612bdf575060408051601f3d908101601f19168201909252612bdc918101906138fa565b60015b612c3d573d808015612c0d576040519150601f19603f3d011682016040523d82523d6000602084013e612c12565b606091505b508051600003612c35576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600082118015612c6e5750600e548211155b15612d055760248054612c8090613791565b80601f0160208091040260200160405190810160405280929190818152602001828054612cac90613791565b8015612cf95780601f10612cce57610100808354040283529160200191612cf9565b820191906000526020600020905b815481529060010190602001808311612cdc57829003601f168201915b50505050509050919050565b600e54612d129083613802565b9150600082118015612d2657506018548211155b15612d385760248054612c8090613791565b60185482118015612d585750601954601854612d5491906137cb565b8211155b15612d6a5760258054612c8090613791565b601954601854612d7a91906137cb565b82118015612da45750601a54601954601854612d9691906137cb565b612da091906137cb565b8211155b15612db65760268054612c8090613791565b505060408051602081019091526000815290565b606081600003612e0d57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612e375780612e2181613778565b9150612e309050600a8361387b565b9150612e11565b60008167ffffffffffffffff811115612e5257612e52613240565b6040519080825280601f01601f191660200182016040528015612e7c576020820181803683370190505b5090505b841561135557612e91600183613802565b9150612e9e600a86613917565b612ea99060306137cb565b60f81b818381518110612ebe57612ebe61374c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612ef8600a8661387b565b9450612e80565b6000546001600160a01b038416612f42576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600003612f7c576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b156130b4575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461307d6000878480600101955087612b6f565b61309a576040516368d2bf6b60e11b815260040160405180910390fd5b8082106130325782600054146130af57600080fd5b6130f9565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106130b5575b50600090815561125a9085838684565b600081815b845181101561317557600085828151811061312b5761312b61374c565b602002602001015190508083116131515760008381526020829052604090209250613162565b600081815260208490526040902092505b508061316d81613778565b91505061310e565b509392505050565b82805461318990613791565b90600052602060002090601f0160209004810192826131ab57600085556131f1565b82601f106131c457805160ff19168380011785556131f1565b828001600101855582156131f1579182015b828111156131f15782518255916020019190600101906131d6565b5061231c9291505b8082111561231c57600081556001016131f9565b6001600160e01b03198116811461264b57600080fd5b60006020828403121561323557600080fd5b813561255d8161320d565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561327f5761327f613240565b604052919050565b6001600160a01b038116811461264b57600080fd5b600060208083850312156132af57600080fd5b823567ffffffffffffffff808211156132c757600080fd5b818501915085601f8301126132db57600080fd5b8135818111156132ed576132ed613240565b8060051b91506132fe848301613256565b818152918301840191848101908884111561331857600080fd5b938501935b83851015613342578435925061333283613287565b828252938501939085019061331d565b98975050505050505050565b60005b83811015613369578181015183820152602001613351565b8381111561125a5750506000910152565b6000815180845261339281602086016020860161334e565b601f01601f19169290920160200192915050565b60208152600061255d602083018461337a565b6000602082840312156133cb57600080fd5b5035919050565b600080604083850312156133e557600080fd5b82356133f081613287565b946020939093013593505050565b60006020828403121561341057600080fd5b813561255d81613287565b600067ffffffffffffffff83111561343557613435613240565b613448601f8401601f1916602001613256565b905082815283838301111561345c57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561348557600080fd5b813567ffffffffffffffff81111561349c57600080fd5b8201601f810184136134ad57600080fd5b6113558482356020840161341b565b6000806000606084860312156134d157600080fd5b505081359360208301359350604090920135919050565b6000806000606084860312156134fd57600080fd5b833561350881613287565b9250602084013561351881613287565b929592945050506040919091013590565b60008083601f84011261353b57600080fd5b50813567ffffffffffffffff81111561355357600080fd5b6020830191508360208260051b850101111561356e57600080fd5b9250929050565b6000806020838503121561358857600080fd5b823567ffffffffffffffff81111561359f57600080fd5b6135ab85828601613529565b90969095509350505050565b600080600080606085870312156135cd57600080fd5b84356135d881613287565b935060208501359250604085013567ffffffffffffffff8111156135fb57600080fd5b61360787828801613529565b95989497509550505050565b6000806040838503121561362657600080fd5b823561363181613287565b91506020830135801515811461364657600080fd5b809150509250929050565b6000806000806080858703121561366757600080fd5b843561367281613287565b9350602085013561368281613287565b925060408501359150606085013567ffffffffffffffff8111156136a557600080fd5b8501601f810187136136b657600080fd5b6136c58782356020840161341b565b91505092959194509250565b600080604083850312156136e457600080fd5b82356136ef81613287565b9150602083013561364681613287565b6020808252825182820181905260009190848201906040850190845b818110156137405783516001600160a01b03168352928401929184019160010161371b565b50909695505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161378a5761378a613762565b5060010190565b600181811c908216806137a557607f821691505b6020821081036137c557634e487b7160e01b600052602260045260246000fd5b50919050565b600082198211156137de576137de613762565b500190565b60008160001904831182151516156137fd576137fd613762565b500290565b60008282101561381457613814613762565b500390565b60006020828403121561382b57600080fd5b5051919050565b634e487b7160e01b600052603160045260246000fd5b60006020828403121561385a57600080fd5b815161255d81613287565b634e487b7160e01b600052601260045260246000fd5b60008261388a5761388a613865565b500490565b600083516138a181846020880161334e565b8351908301906138b581836020880161334e565b01949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526138f0608083018461337a565b9695505050505050565b60006020828403121561390c57600080fd5b815161255d8161320d565b60008261392657613926613865565b50069056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220ea4b735d17dc995a2f666243de816745406063f64784eefab8b420c23424585564736f6c634300080d003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001348697463682048696b6572206f66205374617200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000448486f5300000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106104ec5760003560e01c80636f42d63e11610294578063b3f9e6f61161015e578063cd33ea47116100d6578063ef5d9ae81161008a578063f3fef3a31161006f578063f3fef3a314610d70578063f6c9550d14610d90578063fffb21d614610da657600080fd5b8063ef5d9ae814610d23578063f2fde38b14610d5057600080fd5b8063e8b2aea0116100bb578063e8b2aea014610caf578063e9027f3a14610cc5578063e985e9c514610cda57600080fd5b8063cd33ea4714610c83578063d10a1a2b14610c9957600080fd5b8063c2a35b981161012d578063c87b56dd11610112578063c87b56dd14610c2e578063c8a6ecb314610c4e578063cbe863a314610c6357600080fd5b8063c2a35b9814610c02578063c76843e814610c1857600080fd5b8063b3f9e6f614610b96578063b88d4fde14610bac578063b8c9059d14610bcc578063bf97ef1e14610bec57600080fd5b806395d89b411161020c578063a50a1fe6116101c0578063a9f1b893116101a5578063a9f1b89314610b41578063b03e7c9f14610b56578063b1ed077e14610b7657600080fd5b8063a50a1fe614610b15578063a5c3fdae14610b2b57600080fd5b80639b2654b2116101f15780639b2654b214610acd578063a22cb46514610ae0578063a2309ff814610b0057600080fd5b806395d89b4114610aa35780639958da2414610ab857600080fd5b806383766aba116102635780638920c3f2116102485780638920c3f214610a505780638da5cb5b14610a705780638ecc808314610a8e57600080fd5b806383766aba14610a1a57806384b9f5b314610a3057600080fd5b80636f42d63e146109a557806370a08231146109c5578063715018a6146109e557806379f3dc04146109fa57600080fd5b806323b872dd116103d557806355c4989c1161034d5780635fbdbcf0116103015780636352211e116102e65780636352211e146109595780636584cce9146109795780636de23af41461098f57600080fd5b80635fbdbcf01461091957806362fe1b241461093957600080fd5b80635a3ede8d116103325780635a3ede8d146108a95780635c3de6c7146108c95780635f37f620146108e957600080fd5b806355c4989c14610863578063579428e01461089357600080fd5b80632eb4a7ab116103a45780633cf8c233116103895780633cf8c2331461080d57806342842e0e1461082d5780634a90604c1461084d57600080fd5b80632eb4a7ab146107d75780632efd3cb9146107ed57600080fd5b806323b872dd1461075757806324fee95014610777578063290c292d146107975780632a43437e146107b757600080fd5b8063124b5a001161046857806320f212ce11610437578063233171001161041c57806323317100146106fc5780632333f3c414610712578063239c70ae1461074257600080fd5b806320f212ce146106c657806320fb3016146106e657600080fd5b8063124b5a001461065357806312cdee5914610673578063148829f51461069357806318160ddd146106a957600080fd5b8063095ea7b3116104bf5780630c3434f5116104a45780630c3434f5146105d55780630ece22941461060357806310d17dcb1461063357600080fd5b8063095ea7b3146105a25780630b19b173146105c257600080fd5b806301ffc9a7146104f1578063063ca0001461052657806306fdde0314610548578063081812fc1461056a575b600080fd5b3480156104fd57600080fd5b5061051161050c366004613223565b610dc8565b60405190151581526020015b60405180910390f35b34801561053257600080fd5b5061054661054136600461329c565b610e65565b005b34801561055457600080fd5b5061055d610f6c565b60405161051d91906133a6565b34801561057657600080fd5b5061058a6105853660046133b9565b610ffe565b6040516001600160a01b03909116815260200161051d565b3480156105ae57600080fd5b506105466105bd3660046133d2565b61105b565b6105466105d03660046133d2565b61115f565b3480156105e157600080fd5b506105f56105f03660046133fe565b611260565b60405190815260200161051d565b34801561060f57600080fd5b5061051161061e3660046133b9565b60146020526000908152604090205460ff1681565b34801561063f57600080fd5b5061054661064e366004613473565b61135d565b34801561065f57600080fd5b5061054661066e3660046134bc565b6113b8565b34801561067f57600080fd5b5061054661068e366004613473565b611419565b34801561069f57600080fd5b506105f5600e5481565b3480156106b557600080fd5b5060015460005403600019016105f5565b3480156106d257600080fd5b5061058a6106e13660046133b9565b611474565b3480156106f257600080fd5b506105f560105481565b34801561070857600080fd5b506105f5600b5481565b34801561071e57600080fd5b5061051161072d3660046133fe565b60166020526000908152604090205460ff1681565b34801561074e57600080fd5b506105f561149e565b34801561076357600080fd5b506105466107723660046134e8565b6114c2565b34801561078357600080fd5b50610546610792366004613473565b6114d2565b3480156107a357600080fd5b506105466107b23660046133d2565b61152d565b3480156107c357600080fd5b506105466107d23660046133b9565b6115c7565b3480156107e357600080fd5b506105f5601b5481565b3480156107f957600080fd5b506105466108083660046133b9565b611730565b34801561081957600080fd5b506105466108283660046133b9565b611788565b34801561083957600080fd5b506105466108483660046134e8565b6117d5565b34801561085957600080fd5b506105f5601d5481565b34801561086f57600080fd5b5061051161087e3660046133fe565b60136020526000908152604090205460ff1681565b34801561089f57600080fd5b506105f5601f5481565b3480156108b557600080fd5b506105466108c4366004613575565b6117f0565b3480156108d557600080fd5b506105466108e43660046133b9565b6118a8565b3480156108f557600080fd5b506105116109043660046133fe565b60176020526000908152604090205460ff1681565b34801561092557600080fd5b506105466109343660046133b9565b6118f5565b34801561094557600080fd5b506105466109543660046134bc565b611942565b34801561096557600080fd5b5061058a6109743660046133b9565b6119a7565b34801561098557600080fd5b506105f5600f5481565b34801561099b57600080fd5b506105f560095481565b3480156109b157600080fd5b506105466109c03660046134e8565b6119b9565b3480156109d157600080fd5b506105f56109e03660046133fe565b611cab565b3480156109f157600080fd5b50610546611d13565b348015610a0657600080fd5b50610546610a15366004613473565b611d67565b348015610a2657600080fd5b506105f560195481565b348015610a3c57600080fd5b50610546610a4b3660046133fe565b611dc2565b348015610a5c57600080fd5b50610546610a6b3660046133d2565b611e7d565b348015610a7c57600080fd5b506008546001600160a01b031661058a565b348015610a9a57600080fd5b5061055d611f33565b348015610aaf57600080fd5b5061055d611fc1565b348015610ac457600080fd5b5061055d611fd0565b610546610adb3660046135b7565b611fdd565b348015610aec57600080fd5b50610546610afb366004613613565b612201565b348015610b0c57600080fd5b506105f56122af565b348015610b2157600080fd5b506105f5600d5481565b348015610b3757600080fd5b506105f5600c5481565b348015610b4d57600080fd5b506105f56122c4565b348015610b6257600080fd5b50610546610b713660046133b9565b612320565b348015610b8257600080fd5b50610546610b913660046133b9565b61236d565b348015610ba257600080fd5b506105f5600a5481565b348015610bb857600080fd5b50610546610bc7366004613651565b6123ba565b348015610bd857600080fd5b50610546610be73660046133b9565b6123fe565b348015610bf857600080fd5b506105f5601c5481565b348015610c0e57600080fd5b506105f5601a5481565b348015610c2457600080fd5b506105f560205481565b348015610c3a57600080fd5b5061055d610c493660046133b9565b61244b565b348015610c5a57600080fd5b5061055d612564565b348015610c6f57600080fd5b5060125461058a906001600160a01b031681565b348015610c8f57600080fd5b506105f560225481565b348015610ca557600080fd5b506105f560185481565b348015610cbb57600080fd5b506105f560215481565b348015610cd157600080fd5b5061055d612571565b348015610ce657600080fd5b50610511610cf53660046136d1565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610d2f57600080fd5b506105f5610d3e3660046133fe565b60156020526000908152604090205481565b348015610d5c57600080fd5b50610546610d6b3660046133fe565b61257e565b348015610d7c57600080fd5b50610546610d8b3660046133d2565b61264e565b348015610d9c57600080fd5b506105f5601e5481565b348015610db257600080fd5b50610dbb6126cc565b60405161051d91906136ff565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610e2b57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610e5f57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6008546001600160a01b03163314610eb25760405162461bcd60e51b8152602060048201819052602482015260008051602061392c83398151915260448201526064015b60405180910390fd5b60005b8151811015610f68576011828281518110610ed257610ed261374c565b60209081029190910181015182546001808201855560009485529284200180546001600160a01b0319166001600160a01b0390921691909117905583519091601391859085908110610f2657610f2661374c565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055610f6181613778565b9050610eb5565b5050565b606060028054610f7b90613791565b80601f0160208091040260200160405190810160405280929190818152602001828054610fa790613791565b8015610ff45780601f10610fc957610100808354040283529160200191610ff4565b820191906000526020600020905b815481529060010190602001808311610fd757829003601f168201915b5050505050905090565b60006110098261272d565b61103f576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000611066826119a7565b9050806001600160a01b0316836001600160a01b0316036110b3576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614611103576110cd8133610cf5565b611103576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b601e54158061116f575042601e54105b1561118d57604051630fbf226360e01b815260040160405180910390fd5b600b548160195461119e91906137cb565b11156111bd576040516361ece0e360e11b815260040160405180910390fd5b60006111c76122c4565b905060006111d583836137e3565b9050348111156111f857604051634f8d8b5760e11b815260040160405180910390fd5b3481101561123857336108fc61120e8334613802565b6040518115909202916000818181858888f19350505050158015611236573d6000803e3d6000fd5b505b826019600082825461124a91906137cb565b9091555061125a90508484612766565b50505050565b6011546000908190815b8181101561133157601181815481106112855761128561374c565b6000918252602090912001546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038781166004830152909116906370a0823190602401602060405180830381865afa1580156112f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113159190613819565b61131f90846137cb565b925061132a81613778565b905061126a565b506001600160a01b0384166000908152601560205260409020546113559083613802565b949350505050565b6008546001600160a01b031633146113a55760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b8051610f6890602690602084019061317d565b6008546001600160a01b031633146114005760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b61140a83426137cb565b601f55601c91909155601b5550565b6008546001600160a01b031633146114615760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b8051610f6890602390602084019061317d565b6011818154811061148457600080fd5b6000918252602090912001546001600160a01b0316905081565b6000600c54600b54600a546114b391906137cb565b6114bd91906137cb565b905090565b6114cd838383612780565b505050565b6008546001600160a01b0316331461151a5760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b8051610f6890602590602084019061317d565b6008546001600160a01b031633146115755760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b600e5481600f5461158691906137cb565b11156115a5576040516361ece0e360e11b815260040160405180910390fd5b80600f60008282546115b791906137cb565b90915550610f6890508282612766565b6008546001600160a01b0316331461160f5760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b60115460005b818110156114cd57828103611720576011611631600184613802565b815481106116415761164161374c565b600091825260209091200154601180546001600160a01b03909216918390811061166d5761166d61374c565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600060136000601184815481106116b4576116b461374c565b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff191691151591909117905560118054806116f9576116f9613832565b600082815260209020810160001990810180546001600160a01b0319169055019055505050565b61172981613778565b9050611615565b6008546001600160a01b031633146117785760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b61178281426137cb565b601d5550565b6008546001600160a01b031633146117d05760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b600a55565b6114cd838383604051806020016040528060008152506123ba565b6008546001600160a01b031633146118385760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b60005b818110156114cd5760016017600085858581811061185b5761185b61374c565b905060200201602081019061187091906133fe565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790556118a181613778565b905061183b565b6008546001600160a01b031633146118f05760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b600b55565b6008546001600160a01b0316331461193d5760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b600955565b6008546001600160a01b0316331461198a5760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b61199483426137cb565b601e554360225560209190915560215550565b60006119b2826129ca565b5192915050565b601d5415806119c9575042601d54105b156119e757604051630fbf226360e01b815260040160405180910390fd5b604080516001600160a01b038416602082015290810182905260009060600160408051601f1981840301815291815281516020928301206000818152601490935291205490915060ff1615611a4f5760405163c67a3cb360e01b815260040160405180910390fd5b600a5460185410611a73576040516361ece0e360e11b815260040160405180910390fd5b6001600160a01b03831660009081526013602052604090205460ff16611ac5576040517f441134bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6012546001600160a01b0390811690841603611b90576040517f58178168000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b0380861691908516906358178168906024016020604051808303816000875af1158015611b40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b649190613848565b6001600160a01b031614611b8b57604051630238211560e21b815260040160405180910390fd5b611c3e565b6040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b038086169190851690636352211e90602401602060405180830381865afa158015611bf3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c179190613848565b6001600160a01b031614611c3e57604051630238211560e21b815260040160405180910390fd5b600160186000828254611c5191906137cb565b90915550506001600160a01b0384166000908152601560205260408120805460019290611c7f9084906137cb565b90915550506000818152601460205260409020805460ff1916600190811790915561125a908590612766565b60006001600160a01b038216611ced576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314611d5b5760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b611d656000612b07565b565b6008546001600160a01b03163314611daf5760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b8051610f6890602490602084019061317d565b6008546001600160a01b03163314611e0a5760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b601280546001600160a01b039092166001600160a01b031992831681179091556011805460018181019092557f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6801805490931682179092556000908152601360205260409020805460ff19169091179055565b6008546001600160a01b03163314611ec55760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b6000611ecf6122af565b611ed761149e565b611ee19190613802565b90508082600d54611ef291906137cb565b1115611f11576040516361ece0e360e11b815260040160405180910390fd5b81600d6000828254611f2391906137cb565b909155506114cd90508383612766565b60238054611f4090613791565b80601f0160208091040260200160405190810160405280929190818152602001828054611f6c90613791565b8015611fb95780601f10611f8e57610100808354040283529160200191611fb9565b820191906000526020600020905b815481529060010190602001808311611f9c57829003601f168201915b505050505081565b606060038054610f7b90613791565b60248054611f4090613791565b601f541580611fed575042601f54105b1561200b57604051630fbf226360e01b815260040160405180910390fd5b6001600160a01b03841660009081526016602052604090205460ff16156120455760405163c67a3cb360e01b815260040160405180910390fd5b600c5483601a5461205691906137cb565b1115612075576040516361ece0e360e11b815260040160405180910390fd5b6001600160a01b03841660009081526017602052604081205460ff166120a557601c546120a290856137e3565b90505b348111156120c657604051634f8d8b5760e11b815260040160405180910390fd5b3481101561210657336108fc6120dc8334613802565b6040518115909202916000818181858888f19350505050158015612104573d6000803e3d6000fd5b505b604080516001600160a01b038716602082015290810185905260009060600160405160208183030381529060405280519060200120905061217e84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601b549150849050612b59565b6121b4576040517f5f88cefb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0386166000908152601660205260408120805460ff19166001179055601a80548792906121e99084906137cb565b909155506121f990508686612766565b505050505050565b336001600160a01b03831603612243576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000601a546019546018546114b391906137cb565b600080601054600954602254436122db9190613802565b6122e5919061387b565b6122ef91906137e3565b905080602054111561230c57806020546123099190613802565b91505b60215482101561231c5760215491505b5090565b6008546001600160a01b031633146123685760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b600e55565b6008546001600160a01b031633146123b55760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b600c55565b6123c5848484612780565b6001600160a01b0383163b1561125a576123e184848484612b6f565b61125a576040516368d2bf6b60e11b815260040160405180910390fd5b6008546001600160a01b031633146124465760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b601055565b60606124568261272d565b61248c576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061249783612c5a565b9050600081511161253257602380546124af90613791565b80601f01602080910402602001604051908101604052809291908181526020018280546124db90613791565b80156125285780601f106124fd57610100808354040283529160200191612528565b820191906000526020600020905b81548152906001019060200180831161250b57829003601f168201915b505050505061255d565b8061253c84612dca565b60405160200161254d92919061388f565b6040516020818303038152906040525b9392505050565b60258054611f4090613791565b60268054611f4090613791565b6008546001600160a01b031633146125c65760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b6001600160a01b0381166126425760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ea9565b61264b81612b07565b50565b6008546001600160a01b031633146126965760405162461bcd60e51b8152602060048201819052602482015260008051602061392c8339815191526044820152606401610ea9565b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156114cd573d6000803e3d6000fd5b60606011805480602002602001604051908101604052809291908181526020018280548015610ff457602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612706575050505050905090565b600081600111158015612741575060005482105b8015610e5f575050600090815260046020526040902054600160e01b900460ff161590565b610f68828260405180602001604052806000815250612eff565b600061278b826129ca565b9050836001600160a01b031681600001516001600160a01b0316146127dc576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b03861614806127fa57506127fa8533610cf5565b8061281557503361280a84610ffe565b6001600160a01b0316145b90508061284e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03841661288e576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b03888116845260058352818420805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898316808752848720805493841693831660019081018416949094179055898752600490955283862080546001600160e01b031916909517600160a01b429092169190910217845587018085529190932080549293919290911661297f57600054821461297f578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b60408051606081018252600080825260208201819052918101919091528180600111612ad557600054811015612ad557600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290612ad35780516001600160a01b031615612a69579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612ace579392505050565b612a69565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600082612b668584613109565b14949350505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612ba49033908990889088906004016138be565b6020604051808303816000875af1925050508015612bdf575060408051601f3d908101601f19168201909252612bdc918101906138fa565b60015b612c3d573d808015612c0d576040519150601f19603f3d011682016040523d82523d6000602084013e612c12565b606091505b508051600003612c35576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600082118015612c6e5750600e548211155b15612d055760248054612c8090613791565b80601f0160208091040260200160405190810160405280929190818152602001828054612cac90613791565b8015612cf95780601f10612cce57610100808354040283529160200191612cf9565b820191906000526020600020905b815481529060010190602001808311612cdc57829003601f168201915b50505050509050919050565b600e54612d129083613802565b9150600082118015612d2657506018548211155b15612d385760248054612c8090613791565b60185482118015612d585750601954601854612d5491906137cb565b8211155b15612d6a5760258054612c8090613791565b601954601854612d7a91906137cb565b82118015612da45750601a54601954601854612d9691906137cb565b612da091906137cb565b8211155b15612db65760268054612c8090613791565b505060408051602081019091526000815290565b606081600003612e0d57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612e375780612e2181613778565b9150612e309050600a8361387b565b9150612e11565b60008167ffffffffffffffff811115612e5257612e52613240565b6040519080825280601f01601f191660200182016040528015612e7c576020820181803683370190505b5090505b841561135557612e91600183613802565b9150612e9e600a86613917565b612ea99060306137cb565b60f81b818381518110612ebe57612ebe61374c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612ef8600a8661387b565b9450612e80565b6000546001600160a01b038416612f42576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600003612f7c576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b156130b4575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461307d6000878480600101955087612b6f565b61309a576040516368d2bf6b60e11b815260040160405180910390fd5b8082106130325782600054146130af57600080fd5b6130f9565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106130b5575b50600090815561125a9085838684565b600081815b845181101561317557600085828151811061312b5761312b61374c565b602002602001015190508083116131515760008381526020829052604090209250613162565b600081815260208490526040902092505b508061316d81613778565b91505061310e565b509392505050565b82805461318990613791565b90600052602060002090601f0160209004810192826131ab57600085556131f1565b82601f106131c457805160ff19168380011785556131f1565b828001600101855582156131f1579182015b828111156131f15782518255916020019190600101906131d6565b5061231c9291505b8082111561231c57600081556001016131f9565b6001600160e01b03198116811461264b57600080fd5b60006020828403121561323557600080fd5b813561255d8161320d565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561327f5761327f613240565b604052919050565b6001600160a01b038116811461264b57600080fd5b600060208083850312156132af57600080fd5b823567ffffffffffffffff808211156132c757600080fd5b818501915085601f8301126132db57600080fd5b8135818111156132ed576132ed613240565b8060051b91506132fe848301613256565b818152918301840191848101908884111561331857600080fd5b938501935b83851015613342578435925061333283613287565b828252938501939085019061331d565b98975050505050505050565b60005b83811015613369578181015183820152602001613351565b8381111561125a5750506000910152565b6000815180845261339281602086016020860161334e565b601f01601f19169290920160200192915050565b60208152600061255d602083018461337a565b6000602082840312156133cb57600080fd5b5035919050565b600080604083850312156133e557600080fd5b82356133f081613287565b946020939093013593505050565b60006020828403121561341057600080fd5b813561255d81613287565b600067ffffffffffffffff83111561343557613435613240565b613448601f8401601f1916602001613256565b905082815283838301111561345c57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561348557600080fd5b813567ffffffffffffffff81111561349c57600080fd5b8201601f810184136134ad57600080fd5b6113558482356020840161341b565b6000806000606084860312156134d157600080fd5b505081359360208301359350604090920135919050565b6000806000606084860312156134fd57600080fd5b833561350881613287565b9250602084013561351881613287565b929592945050506040919091013590565b60008083601f84011261353b57600080fd5b50813567ffffffffffffffff81111561355357600080fd5b6020830191508360208260051b850101111561356e57600080fd5b9250929050565b6000806020838503121561358857600080fd5b823567ffffffffffffffff81111561359f57600080fd5b6135ab85828601613529565b90969095509350505050565b600080600080606085870312156135cd57600080fd5b84356135d881613287565b935060208501359250604085013567ffffffffffffffff8111156135fb57600080fd5b61360787828801613529565b95989497509550505050565b6000806040838503121561362657600080fd5b823561363181613287565b91506020830135801515811461364657600080fd5b809150509250929050565b6000806000806080858703121561366757600080fd5b843561367281613287565b9350602085013561368281613287565b925060408501359150606085013567ffffffffffffffff8111156136a557600080fd5b8501601f810187136136b657600080fd5b6136c58782356020840161341b565b91505092959194509250565b600080604083850312156136e457600080fd5b82356136ef81613287565b9150602083013561364681613287565b6020808252825182820181905260009190848201906040850190845b818110156137405783516001600160a01b03168352928401929184019160010161371b565b50909695505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161378a5761378a613762565b5060010190565b600181811c908216806137a557607f821691505b6020821081036137c557634e487b7160e01b600052602260045260246000fd5b50919050565b600082198211156137de576137de613762565b500190565b60008160001904831182151516156137fd576137fd613762565b500290565b60008282101561381457613814613762565b500390565b60006020828403121561382b57600080fd5b5051919050565b634e487b7160e01b600052603160045260246000fd5b60006020828403121561385a57600080fd5b815161255d81613287565b634e487b7160e01b600052601260045260246000fd5b60008261388a5761388a613865565b500490565b600083516138a181846020880161334e565b8351908301906138b581836020880161334e565b01949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526138f0608083018461337a565b9695505050505050565b60006020828403121561390c57600080fd5b815161255d8161320d565b60008261392657613926613865565b50069056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220ea4b735d17dc995a2f666243de816745406063f64784eefab8b420c23424585564736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001348697463682048696b6572206f66205374617200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000448486f5300000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): Hitch Hiker of Star
Arg [1] : symbol (string): HHoS
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000013
Arg [3] : 48697463682048696b6572206f66205374617200000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [5] : 48486f5300000000000000000000000000000000000000000000000000000000
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.