Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
101 LUH-EPIC
Holders
70
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 LUH-EPICLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
LevelingUpHeroesEpic
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// Author: Eric Gao (@itsoksami, https://github.com/Ericxgao) pragma solidity 0.8.10; import "./BaseDutchAuctionERC721A.sol"; contract LevelingUpHeroesEpic is BaseDutchAuctionERC721A { constructor( address[] memory payees, uint256[] memory shares, string memory name, string memory symbol, uint256 _whitelistMaxMint, uint256 _publicListMaxMint, uint256 _nonReservedMax, uint256 _reservedMax, uint256 _price ) BaseDutchAuctionERC721A(payees, shares, name, symbol, _whitelistMaxMint, _publicListMaxMint, _nonReservedMax, _reservedMax, _price) { } }
// Author: Eric Gao (@itsoksami, https://github.com/Ericxgao) pragma solidity 0.8.10; import "erc721a/contracts/ERC721A.sol"; import "./LinearDutchAuction.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract BaseDutchAuctionERC721A is ERC721A, LinearDutchAuction, ReentrancyGuard { using Strings for uint256; using ECDSA for bytes32; string public prefix = "Leveling Up Heroes Epic Base Verification:"; string public prefixDiscounted = "Leveling Up Heroes Epic Discounted Verification:"; string private baseTokenURI = ''; mapping(address => uint256) private _whitelistClaimed; mapping(address => uint256) private _publicListClaimed; uint256 public whitelistMaxMint; uint256 public publicListMaxMint; uint256 public nonReservedMax; uint256 public reservedMax; uint256 public max; uint256 public nonReservedMinted; uint256 public reservedMinted; uint256 public discountedPrice; PaymentSplitter private _splitter; constructor( address[] memory payees, uint256[] memory shares, string memory name, string memory symbol, uint256 _whitelistMaxMint, uint256 _publicListMaxMint, uint256 _nonReservedMax, uint256 _reservedMax, uint256 _discountedPrice ) ERC721A(name, symbol, 5) LinearDutchAuction( LinearDutchAuction.DutchAuctionConfig({ startPoint: 0, // disabled at deployment startPrice: 5 ether, unit: AuctionIntervalUnit.Time, decreaseInterval: 900, // 15 minutes decreaseSize: 0.5 ether, numDecreases: 9 }), .5 ether ) { whitelistMaxMint = _whitelistMaxMint; publicListMaxMint = _publicListMaxMint; nonReservedMax = _nonReservedMax; reservedMax = _reservedMax; max = nonReservedMax + reservedMax; nonReservedMinted = 0; reservedMinted = 0; discountedPrice = _discountedPrice; _splitter = new PaymentSplitter(payees, shares); } function release(address payable account) external { _splitter.release(account); } function _hash(string memory _prefix, address _address) internal pure returns (bytes32) { return keccak256(abi.encodePacked(_prefix, _address)); } function _verify(bytes32 hash, bytes memory signature) internal view returns (bool) { return (_recover(hash, signature) == owner()); } function _recover(bytes32 hash, bytes memory signature) internal pure returns (address) { return hash.recover(signature); } function setPrefix(string memory _prefix) public onlyOwner { prefix = _prefix; } function setPrefixDiscounted(string memory _prefix) public onlyOwner { prefixDiscounted = _prefix; } function setWhitelistMaxMint(uint256 _whitelistMaxMint) external onlyOwner { whitelistMaxMint = _whitelistMaxMint; } function setPublicListMaxMint(uint256 _publicListMaxMint) external onlyOwner { publicListMaxMint = _publicListMaxMint; } function mintPublic(uint256 numberOfTokens) external payable { require(_publicListClaimed[msg.sender] + _whitelistClaimed[msg.sender] + numberOfTokens <= publicListMaxMint, 'You cannot mint this many.'); _publicListClaimed[msg.sender] += numberOfTokens; _nonReservedMintHelper(numberOfTokens); } function mintWhitelist(bytes32 hash, bytes memory signature, uint256 numberOfTokens) external payable { require(_verify(hash, signature), "This hash's signature is invalid."); require(_hash(prefix, msg.sender) == hash, "The address hash does not match the signed hash."); require(_whitelistClaimed[msg.sender] + numberOfTokens <= whitelistMaxMint, 'You cannot mint this many.'); _whitelistClaimed[msg.sender] += numberOfTokens; _nonReservedMintHelper(numberOfTokens); } function _nonReservedMintHelper(uint256 numberOfTokens) internal nonReentrant { require(totalSupply() + numberOfTokens <= max, "Sold out."); uint256 price = cost(numberOfTokens); require(price <= msg.value, "Invalid amount."); _safeMint(msg.sender, numberOfTokens); if (msg.value > price) { address payable reimburse = payable(_msgSender()); uint256 refund = msg.value - price; // Using Address.sendValue() here would mask the revertMsg upon // reentrancy, but we want to expose it to allow for more precise // testing. This otherwise uses the exact same pattern as // Address.sendValue(). (bool success, bytes memory returnData) = reimburse.call{ value: refund }(""); // Although `returnData` will have a spurious prefix, all we really // care about is that it contains the ReentrancyGuard reversion // message so we can check in the tests. require(success, string(returnData)); } } function splitPayments() public payable onlyOwner { (bool success, ) = payable(_splitter).call{value: address(this).balance}( "" ); require(success); } function mintReserved(uint256 quantity) external onlyOwner { require( totalSupply() + quantity <= reservedMax, "Sold out." ); if (quantity < maxBatchSize) { _safeMint(msg.sender, quantity); } else { require( quantity % maxBatchSize == 0, "Can only mint a multiple of the maxBatchSize." ); uint256 numChunks = quantity / maxBatchSize; for (uint256 i = 0; i < numChunks; i++) { _safeMint(msg.sender, maxBatchSize); } } } function mintWhitelistDiscounted(bytes32 hash, bytes memory signature, uint256 numberOfTokens) external payable { require(_verify(hash, signature), "This hash's signature is invalid."); require(_hash(prefixDiscounted, msg.sender) == hash, "The address hash does not match the signed hash."); require(_whitelistClaimed[msg.sender] + numberOfTokens <= whitelistMaxMint, 'You cannot mint this many.'); require(discountedPrice == msg.value, "Invalid amount."); _whitelistClaimed[msg.sender] += numberOfTokens; _safeMint(msg.sender, numberOfTokens); } function setBaseURI(string memory baseTokenURI_) external onlyOwner { baseTokenURI = baseTokenURI_; } function tokenURI(uint256 tokenId) public view override returns (string memory) { return string(abi.encodePacked(baseTokenURI, tokenId.toString())); } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require(owner != address(0), "ERC721A: number minted query for the zero address"); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require(isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved"); require(prevOwnership.addr == from, "ERC721A: transfer from incorrect owner"); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership(prevOwnership.addr, prevOwnership.startTimestamp); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > currentIndex - 1) { endIndex = currentIndex - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership(ownership.addr, ownership.startTimestamp); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier) pragma solidity >=0.8.0 <0.9.0; import "@openzeppelin/contracts/utils/math/Math.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /// @notice A Seller with a linearly decreasing price. abstract contract LinearDutchAuction is Ownable { /** @param unit The unit of "time" used for decreasing prices, block number or timestamp. NOTE: See the comment on AuctionIntervalUnit re use of Time as a unit. @param startPoint The block or timestamp at which the auction opens. A value of zero disables the auction. See setAuctionStartPoint(). @param startPrice The price at `startPoint`. @param decreaseInterval The number of units to wait before decreasing the price. MUST be non-zero. @param decreaseSize The amount by which price decreases after every `decreaseInterval`. @param numDecreases The maximum number of price decreases before remaining constant. The reserve price is therefore implicit and equal to startPrice-numDecrease*decreaseSize. */ struct DutchAuctionConfig { uint256 startPoint; uint256 startPrice; uint256 decreaseInterval; uint256 decreaseSize; // From https://docs.soliditylang.org/en/v0.8.10/types.html#enums "Enums // cannot have more than 256 members"; presumably they take 8 bits, so // use some of the numDecreases space instead. uint248 numDecreases; AuctionIntervalUnit unit; } /** @notice The unit of "time" along which the cost decreases. @dev If no value is provided then the zero UNSPECIFIED will trigger an error. NOTE: The Block unit is more reliable as it has an explicit progression (simply incrementing). Miners are allowed to have a time drift into the future although which predisposes to unexpected behaviour by which "future" costs are encountered. See the ConsenSys 15-second rule: https://consensys.net/blog/developers/solidity-best-practices-for-smart-contract-security/ */ enum AuctionIntervalUnit { UNSPECIFIED, Block, Time } /// @param expectedReserve See setAuctionConfig(). constructor( DutchAuctionConfig memory config, uint256 expectedReserve ) { setAuctionConfig(config, expectedReserve); } /// @notice Configuration of price changes. DutchAuctionConfig public dutchAuctionConfig; /** @notice Sets the auction config. @param expectedReserve A safety check that the reserve, as calculated from the config, is as expected. */ function setAuctionConfig( DutchAuctionConfig memory config, uint256 expectedReserve ) public onlyOwner { // Underflow might occur is size/num decreases is too large. unchecked { require( config.startPrice - config.decreaseSize * config.numDecreases == expectedReserve, "LinearDutchAuction: incorrect reserve" ); } require( config.unit != AuctionIntervalUnit.UNSPECIFIED, "LinearDutchAuction: unspecified unit" ); require( config.decreaseInterval > 0, "LinearDutchAuction: zero decrease interval" ); dutchAuctionConfig = config; } /** @notice Sets the config startPoint. A startPoint of zero disables the auction. @dev The auction can be toggle on and off with this function, without the cost of having to update the entire config. */ function setAuctionStartPoint(uint256 startPoint) public onlyOwner { dutchAuctionConfig.startPoint = startPoint; } /// @notice Dutch-auction logic cost function. function cost(uint256 n) public view returns (uint256) { DutchAuctionConfig storage cfg = dutchAuctionConfig; return n * (cfg.startPrice - Math.min((block.timestamp - cfg.startPoint) / cfg.decreaseInterval, cfg.numDecreases) * cfg.decreaseSize); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return recover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return recover(hash, r, vs); } else { revert("ECDSA: invalid signature length"); } } /** * @dev Overload of {ECDSA-recover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return recover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. require( uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value" ); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Address.sol"; import "../utils/Context.sol"; import "../utils/math/SafeMath.sol"; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = address(this).balance + _totalReleased; uint256 payment = (totalReceived * _shares[account]) / _totalShares - _released[account]; require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] = _released[account] + payment; _totalReleased = _totalReleased + payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow, so we distribute. return (a / 2) + (b / 2) + (((a % 2) + (b % 2)) / 2); } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"_whitelistMaxMint","type":"uint256"},{"internalType":"uint256","name":"_publicListMaxMint","type":"uint256"},{"internalType":"uint256","name":"_nonReservedMax","type":"uint256"},{"internalType":"uint256","name":"_reservedMax","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"}],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"discountedPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dutchAuctionConfig","outputs":[{"internalType":"uint256","name":"startPoint","type":"uint256"},{"internalType":"uint256","name":"startPrice","type":"uint256"},{"internalType":"uint256","name":"decreaseInterval","type":"uint256"},{"internalType":"uint256","name":"decreaseSize","type":"uint256"},{"internalType":"uint248","name":"numDecreases","type":"uint248"},{"internalType":"enum LinearDutchAuction.AuctionIntervalUnit","name":"unit","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"max","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintWhitelistDiscounted","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nonReservedMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nonReservedMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prefixDiscounted","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicListMaxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reservedMinted","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":"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":[{"components":[{"internalType":"uint256","name":"startPoint","type":"uint256"},{"internalType":"uint256","name":"startPrice","type":"uint256"},{"internalType":"uint256","name":"decreaseInterval","type":"uint256"},{"internalType":"uint256","name":"decreaseSize","type":"uint256"},{"internalType":"uint248","name":"numDecreases","type":"uint248"},{"internalType":"enum LinearDutchAuction.AuctionIntervalUnit","name":"unit","type":"uint8"}],"internalType":"struct LinearDutchAuction.DutchAuctionConfig","name":"config","type":"tuple"},{"internalType":"uint256","name":"expectedReserve","type":"uint256"}],"name":"setAuctionConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startPoint","type":"uint256"}],"name":"setAuctionStartPoint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseTokenURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_prefix","type":"string"}],"name":"setPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_prefix","type":"string"}],"name":"setPrefixDiscounted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicListMaxMint","type":"uint256"}],"name":"setPublicListMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_whitelistMaxMint","type":"uint256"}],"name":"setWhitelistMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"splitPayments","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistMaxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6000808055600755610100604052602a60a08181529062004cc560c03980516200003291600f91602090910190620004c4565b5060405180606001604052806030815260200162004cef6030913980516200006391601091602090910190620004c4565b506040805160208101918290526000908190526200008491601191620004c4565b503480156200009257600080fd5b5060405162004d1f38038062004d1f833981016040819052620000b59162000768565b8888888888888888886040518060c0016040528060008152602001674563918244f40000815260200161038481526020016706f05b59d3b20000815260200160096001600160f81b0316815260200160028081111562000119576200011962000852565b90526706f05b59d3b200008888600562000137565b60405180910390fd5b82516200014c906001906020860190620004c4565b50815162000162906002906020850190620004c4565b50608052506200017490503362000234565b62000180828262000286565b50506001600e556014859055601584905560168390556017829055620001a7828462000868565b60185560006019819055601a55601b81905560405189908990620001cb9062000553565b620001d89291906200088f565b604051809103906000f080158015620001f5573d6000803e3d6000fd5b50601c60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050505050505050505050505050505050505062000954565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6008546001600160a01b03163314620002e25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200012e565b8082608001516001600160f81b0316836060015102836020015103146200035a5760405162461bcd60e51b815260206004820152602560248201527f4c696e656172447574636841756374696f6e3a20696e636f7272656374207265604482015264736572766560d81b60648201526084016200012e565b60008260a00151600281111562000375576200037562000852565b1415620003d15760405162461bcd60e51b8152602060048201526024808201527f4c696e656172447574636841756374696f6e3a20756e737065636966696564206044820152631d5b9a5d60e21b60648201526084016200012e565b60008260400151116200043a5760405162461bcd60e51b815260206004820152602a60248201527f4c696e656172447574636841756374696f6e3a207a65726f206465637265617360448201526919481a5b9d195c9d985b60b21b60648201526084016200012e565b815160099081556020830151600a556040830151600b556060830151600c556080830151600d80547fff00000000000000000000000000000000000000000000000000000000000000166001600160f81b03909216918217815560a0850151859392909190600160f81b836002811115620004b957620004b962000852565b021790555050505050565b828054620004d29062000917565b90600052602060002090601f016020900481019282620004f6576000855562000541565b82601f106200051157805160ff191683800117855562000541565b8280016001018555821562000541579182015b828111156200054157825182559160200191906001019062000524565b506200054f92915062000561565b5090565b610baa806200411b83390190565b5b808211156200054f576000815560010162000562565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620005b957620005b962000578565b604052919050565b60006001600160401b03821115620005dd57620005dd62000578565b5060051b60200190565b600082601f830112620005f957600080fd5b81516020620006126200060c83620005c1565b6200058e565b82815260059290921b840181019181810190868411156200063257600080fd5b8286015b84811015620006665780516001600160a01b0381168114620006585760008081fd5b835291830191830162000636565b509695505050505050565b600082601f8301126200068357600080fd5b81516020620006966200060c83620005c1565b82815260059290921b84018101918181019086841115620006b657600080fd5b8286015b84811015620006665780518352918301918301620006ba565b600082601f830112620006e557600080fd5b81516001600160401b0381111562000701576200070162000578565b602062000717601f8301601f191682016200058e565b82815285828487010111156200072c57600080fd5b60005b838110156200074c5785810183015182820184015282016200072f565b838111156200075e5760008385840101525b5095945050505050565b60008060008060008060008060006101208a8c0312156200078857600080fd5b89516001600160401b0380821115620007a057600080fd5b620007ae8d838e01620005e7565b9a5060208c0151915080821115620007c557600080fd5b620007d38d838e0162000671565b995060408c0151915080821115620007ea57600080fd5b620007f88d838e01620006d3565b985060608c01519150808211156200080f57600080fd5b506200081e8c828d01620006d3565b96505060808a0151945060a08a0151935060c08a0151925060e08a015191506101008a015190509295985092959850929598565b634e487b7160e01b600052602160045260246000fd5b600082198211156200088a57634e487b7160e01b600052601160045260246000fd5b500190565b604080825283519082018190526000906020906060840190828701845b82811015620008d35781516001600160a01b031684529284019290840190600101620008ac565b5050508381038285015284518082528583019183019060005b818110156200090a57835183529284019291840191600101620008ec565b5090979650505050505050565b600181811c908216806200092c57607f821691505b602082108114156200094e57634e487b7160e01b600052602260045260246000fd5b50919050565b6080516137816200099a600039600081816114f101528181611526015281816115c5015281816115fd0152818161235f015281816123890152612a0c01526137816000f3fe6080604052600436106102f25760003560e01c8063722e141d1161018f578063bcf161a2116100e1578063e0c5b0ed1161008a578063ea4194dc11610064578063ea4194dc14610808578063efd0cbf914610828578063f2fde38b1461083b57600080fd5b8063e0c5b0ed1461077f578063e21469631461079f578063e985e9c5146107bf57600080fd5b8063c87b56dd116100bb578063c87b56dd14610733578063d7224ba014610753578063d73b2a6c1461076957600080fd5b8063bcf161a2146106e8578063c85b380d146106fd578063c87881341461071d57600080fd5b80639097548d11610143578063a22cb4651161011d578063a22cb46514610695578063b27a87b0146106b5578063b88d4fde146106c857600080fd5b80639097548d1461064057806395d89b41146106605780639a5d140b1461067557600080fd5b80637bd07f8b116101745780637bd07f8b146105b457806385cb593b146106025780638da5cb5b1461062257600080fd5b8063722e141d1461058957806375dadb321461059f57600080fd5b806342842e0e11610248578063571d34af116101fc578063706c1e6f116101d6578063706c1e6f1461054c57806370a0823114610554578063715018a61461057457600080fd5b8063571d34af146105005780636352211e146105165780636ac5db191461053657600080fd5b80634f6ccce71161022d5780634f6ccce7146104ad57806351b75115146104cd57806355f804b3146104e057600080fd5b806342842e0e146104775780634f297ccc1461049757600080fd5b80630a99c9fe116102aa57806323b872dd1161028457806323b872dd146104175780632f745c591461043757806339a2e6591461045757600080fd5b80630a99c9fe146103cc57806318160ddd146103e257806319165587146103f757600080fd5b8063081812fc116102db578063081812fc1461034e578063095ea7b3146103865780630a23b725146103a857600080fd5b806301ffc9a7146102f757806306fdde031461032c575b600080fd5b34801561030357600080fd5b50610317610312366004612feb565b61085b565b60405190151581526020015b60405180910390f35b34801561033857600080fd5b5061034161092c565b6040516103239190613060565b34801561035a57600080fd5b5061036e610369366004613073565b6109be565b6040516001600160a01b039091168152602001610323565b34801561039257600080fd5b506103a66103a13660046130a1565b610a5e565b005b3480156103b457600080fd5b506103be60195481565b604051908152602001610323565b3480156103d857600080fd5b506103be60165481565b3480156103ee57600080fd5b506000546103be565b34801561040357600080fd5b506103a66104123660046130cd565b610b91565b34801561042357600080fd5b506103a66104323660046130ea565b610c0c565b34801561044357600080fd5b506103be6104523660046130a1565b610c17565b34801561046357600080fd5b506103a6610472366004613073565b610daf565b34801561048357600080fd5b506103a66104923660046130ea565b610dfc565b3480156104a357600080fd5b506103be601a5481565b3480156104b957600080fd5b506103be6104c8366004613073565b610e17565b6103a66104db366004613200565b610e93565b3480156104ec57600080fd5b506103a66104fb366004613250565b6110e7565b34801561050c57600080fd5b506103be60155481565b34801561052257600080fd5b5061036e610531366004613073565b611146565b34801561054257600080fd5b506103be60185481565b6103a6611158565b34801561056057600080fd5b506103be61056f3660046130cd565b611203565b34801561058057600080fd5b506103a66112a6565b34801561059557600080fd5b506103be60145481565b3480156105ab57600080fd5b506103416112fa565b3480156105c057600080fd5b50600954600a54600b54600c54600d546105f094939291906001600160f81b03811690600160f81b900460ff1686565b604051610323969594939291906132af565b34801561060e57600080fd5b506103a661061d366004613250565b611388565b34801561062e57600080fd5b506008546001600160a01b031661036e565b34801561064c57600080fd5b506103be61065b366004613073565b6113e3565b34801561066c57600080fd5b50610341611447565b34801561068157600080fd5b506103a6610690366004613073565b611456565b3480156106a157600080fd5b506103a66106b036600461330a565b611633565b6103a66106c3366004613200565b6116f8565b3480156106d457600080fd5b506103a66106e3366004613348565b611876565b3480156106f457600080fd5b50610341611905565b34801561070957600080fd5b506103a66107183660046133b4565b611912565b34801561072957600080fd5b506103be601b5481565b34801561073f57600080fd5b5061034161074e366004613073565b611b74565b34801561075f57600080fd5b506103be60075481565b34801561077557600080fd5b506103be60175481565b34801561078b57600080fd5b506103a661079a366004613073565b611ba8565b3480156107ab57600080fd5b506103a66107ba366004613073565b611bf5565b3480156107cb57600080fd5b506103176107da366004613445565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561081457600080fd5b506103a6610823366004613250565b611c42565b6103a6610836366004613073565b611c9d565b34801561084757600080fd5b506103a66108563660046130cd565b611d4d565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806108be57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108f257506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b8061092657507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606001805461093b90613473565b80601f016020809104026020016040519081016040528092919081815260200182805461096790613473565b80156109b45780601f10610989576101008083540402835291602001916109b4565b820191906000526020600020905b81548152906001019060200180831161099757829003601f168201915b5050505050905090565b60006109cb826000541190565b610a425760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610a6982611146565b9050806001600160a01b0316836001600160a01b03161415610af35760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610a39565b336001600160a01b0382161480610b0f5750610b0f81336107da565b610b815760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610a39565b610b8c838383611e1a565b505050565b601c546040517f191655870000000000000000000000000000000000000000000000000000000081526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b158015610bf157600080fd5b505af1158015610c05573d6000803e3d6000fd5b5050505050565b610b8c838383611e83565b6000610c2283611203565b8210610c965760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610a39565b600080549080805b83811015610d40576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610cf157805192505b876001600160a01b0316836001600160a01b03161415610d2d5786841415610d1f5750935061092692505050565b83610d29816134c4565b9450505b5080610d38816134c4565b915050610c9e565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610a39565b6008546001600160a01b03163314610df75760405162461bcd60e51b8152602060048201819052602482015260008051602061372c8339815191526044820152606401610a39565b601555565b610b8c83838360405180602001604052806000815250611876565b600080548210610e8f5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610a39565b5090565b610e9d8383612245565b610ef35760405162461bcd60e51b815260206004820152602160248201527f5468697320686173682773207369676e617475726520697320696e76616c69646044820152601760f91b6064820152608401610a39565b82610f8860108054610f0490613473565b80601f0160208091040260200160405190810160405280929190818152602001828054610f3090613473565b8015610f7d5780601f10610f5257610100808354040283529160200191610f7d565b820191906000526020600020905b815481529060010190602001808311610f6057829003601f168201915b50505050503361227d565b14610ffb5760405162461bcd60e51b815260206004820152603060248201527f5468652061646472657373206861736820646f6573206e6f74206d617463682060448201527f746865207369676e656420686173682e000000000000000000000000000000006064820152608401610a39565b601454336000908152601260205260409020546110199083906134df565b11156110675760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e0000000000006044820152606401610a39565b34601b54146110b85760405162461bcd60e51b815260206004820152600f60248201527f496e76616c696420616d6f756e742e00000000000000000000000000000000006044820152606401610a39565b33600090815260126020526040812080548392906110d79084906134df565b90915550610b8c905033826122b0565b6008546001600160a01b0316331461112f5760405162461bcd60e51b8152602060048201819052602482015260008051602061372c8339815191526044820152606401610a39565b8051611142906011906020840190612f45565b5050565b6000611151826122ca565b5192915050565b6008546001600160a01b031633146111a05760405162461bcd60e51b8152602060048201819052602482015260008051602061372c8339815191526044820152606401610a39565b601c546040516000916001600160a01b03169047908381818185875af1925050503d80600081146111ed576040519150601f19603f3d011682016040523d82523d6000602084013e6111f2565b606091505b505090508061120057600080fd5b50565b60006001600160a01b0382166112815760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610a39565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6008546001600160a01b031633146112ee5760405162461bcd60e51b8152602060048201819052602482015260008051602061372c8339815191526044820152606401610a39565b6112f86000612495565b565b600f805461130790613473565b80601f016020809104026020016040519081016040528092919081815260200182805461133390613473565b80156113805780601f1061135557610100808354040283529160200191611380565b820191906000526020600020905b81548152906001019060200180831161136357829003601f168201915b505050505081565b6008546001600160a01b031633146113d05760405162461bcd60e51b8152602060048201819052602482015260008051602061372c8339815191526044820152606401610a39565b805161114290600f906020840190612f45565b600c54600b5460098054600093919261141d9161140090426134f7565b61140a9190613524565b60048401546001600160f81b03166124f4565b6114279190613538565b816001015461143691906134f7565b6114409084613538565b9392505050565b60606002805461093b90613473565b6008546001600160a01b0316331461149e5760405162461bcd60e51b8152602060048201819052602482015260008051602061372c8339815191526044820152606401610a39565b601754816114ab60005490565b6114b591906134df565b11156114ef5760405162461bcd60e51b815260206004820152600960248201526829b7b6321037baba1760b91b6044820152606401610a39565b7f00000000000000000000000000000000000000000000000000000000000000008110156115215761120033826122b0565b61154b7f000000000000000000000000000000000000000000000000000000000000000082613557565b156115be5760405162461bcd60e51b815260206004820152602d60248201527f43616e206f6e6c79206d696e742061206d756c7469706c65206f66207468652060448201527f6d6178426174636853697a652e000000000000000000000000000000000000006064820152608401610a39565b60006115ea7f000000000000000000000000000000000000000000000000000000000000000083613524565b905060005b81811015610b8c57611621337f00000000000000000000000000000000000000000000000000000000000000006122b0565b8061162b816134c4565b9150506115ef565b6001600160a01b03821633141561168c5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610a39565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6117028383612245565b6117585760405162461bcd60e51b815260206004820152602160248201527f5468697320686173682773207369676e617475726520697320696e76616c69646044820152601760f91b6064820152608401610a39565b82611769600f8054610f0490613473565b146117dc5760405162461bcd60e51b815260206004820152603060248201527f5468652061646472657373206861736820646f6573206e6f74206d617463682060448201527f746865207369676e656420686173682e000000000000000000000000000000006064820152608401610a39565b601454336000908152601260205260409020546117fa9083906134df565b11156118485760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e0000000000006044820152606401610a39565b33600090815260126020526040812080548392906118679084906134df565b90915550610b8c90508161250a565b611881848484611e83565b61188d848484846126b8565b6118ff5760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a39565b50505050565b6010805461130790613473565b6008546001600160a01b0316331461195a5760405162461bcd60e51b8152602060048201819052602482015260008051602061372c8339815191526044820152606401610a39565b8082608001516001600160f81b0316836060015102836020015103146119e85760405162461bcd60e51b815260206004820152602560248201527f4c696e656172447574636841756374696f6e3a20696e636f727265637420726560448201527f73657276650000000000000000000000000000000000000000000000000000006064820152608401610a39565b60008260a001516002811115611a0057611a00613299565b1415611a735760405162461bcd60e51b8152602060048201526024808201527f4c696e656172447574636841756374696f6e3a20756e7370656369666965642060448201527f756e6974000000000000000000000000000000000000000000000000000000006064820152608401610a39565b6000826040015111611aed5760405162461bcd60e51b815260206004820152602a60248201527f4c696e656172447574636841756374696f6e3a207a65726f206465637265617360448201527f6520696e74657276616c000000000000000000000000000000000000000000006064820152608401610a39565b815160099081556020830151600a556040830151600b556060830151600c556080830151600d80547fff00000000000000000000000000000000000000000000000000000000000000166001600160f81b03909216918217815560a0850151859392909190600160f81b836002811115611b6957611b69613299565b021790555050505050565b60606011611b818361280d565b604051602001611b92929190613587565b6040516020818303038152906040529050919050565b6008546001600160a01b03163314611bf05760405162461bcd60e51b8152602060048201819052602482015260008051602061372c8339815191526044820152606401610a39565b600955565b6008546001600160a01b03163314611c3d5760405162461bcd60e51b8152602060048201819052602482015260008051602061372c8339815191526044820152606401610a39565b601455565b6008546001600160a01b03163314611c8a5760405162461bcd60e51b8152602060048201819052602482015260008051602061372c8339815191526044820152606401610a39565b8051611142906010906020840190612f45565b601554336000908152601260209081526040808320546013909252909120548391611cc7916134df565b611cd191906134df565b1115611d1f5760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e0000000000006044820152606401610a39565b3360009081526013602052604081208054839290611d3e9084906134df565b9091555061120090508161250a565b6008546001600160a01b03163314611d955760405162461bcd60e51b8152602060048201819052602482015260008051602061372c8339815191526044820152606401610a39565b6001600160a01b038116611e115760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a39565b61120081612495565b600082815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611e8e826122ca565b80519091506000906001600160a01b0316336001600160a01b03161480611ec5575033611eba846109be565b6001600160a01b0316145b80611ed757508151611ed790336107da565b905080611f4c5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610a39565b846001600160a01b031682600001516001600160a01b031614611fd75760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610a39565b6001600160a01b0384166120535760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610a39565b6120636000848460000151611e1a565b6001600160a01b03851660009081526004602052604081208054600192906120959084906001600160801b0316613625565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b038616600090815260046020526040812080546001945090926120e19185911661364d565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b031990911691909216171790556121698460016134df565b6000818152600360205260409020549091506001600160a01b03166121fb57612193816000541190565b156121fb5760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b60006122596008546001600160a01b031690565b6001600160a01b031661226c8484612927565b6001600160a01b0316149392505050565b60008282604051602001612292929190613678565b60405160208183030381529060405280519060200120905092915050565b611142828260405180602001604052806000815250612933565b60408051808201909152600080825260208201526122e9826000541190565b61235b5760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610a39565b60007f000000000000000000000000000000000000000000000000000000000000000083106123bc576123ae7f0000000000000000000000000000000000000000000000000000000000000000846134f7565b6123b99060016134df565b90505b825b818110612426576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561241357949350505050565b508061241e816136af565b9150506123be565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610a39565b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008183106125035781611440565b5090919050565b6002600e54141561255d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a39565b6002600e556018548161256f60005490565b61257991906134df565b11156125b35760405162461bcd60e51b815260206004820152600960248201526829b7b6321037baba1760b91b6044820152606401610a39565b60006125be826113e3565b9050348111156126105760405162461bcd60e51b815260206004820152600f60248201527f496e76616c696420616d6f756e742e00000000000000000000000000000000006044820152606401610a39565b61261a33836122b0565b803411156126af5733600061262f83346134f7565b9050600080836001600160a01b03168360405160006040518083038185875af1925050503d806000811461267f576040519150601f19603f3d011682016040523d82523d6000602084013e612684565b606091505b50915091508181906126a95760405162461bcd60e51b8152600401610a399190613060565b50505050505b50506001600e55565b60006001600160a01b0384163b1561280157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906126fc9033908990889088906004016136c6565b6020604051808303816000875af1925050508015612737575060408051601f3d908101601f19168201909252612734918101906136f8565b60015b6127e7573d808015612765576040519150601f19603f3d011682016040523d82523d6000602084013e61276a565b606091505b5080516127df5760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a39565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612805565b5060015b949350505050565b60608161284d57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156128775780612861816134c4565b91506128709050600a83613524565b9150612851565b60008167ffffffffffffffff8111156128925761289261312b565b6040519080825280601f01601f1916602001820160405280156128bc576020820181803683370190505b5090505b8415612805576128d16001836134f7565b91506128de600a86613557565b6128e99060306134df565b60f81b8183815181106128fe576128fe613715565b60200101906001600160f81b031916908160001a905350612920600a86613524565b94506128c0565b60006114408383612cb5565b6000546001600160a01b0384166129b25760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610a39565b6129bd816000541190565b15612a0a5760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610a39565b7f0000000000000000000000000000000000000000000000000000000000000000831115612aa05760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610a39565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b0380821683527001000000000000000000000000000000009091041691810191909152815180830190925280519091908190612b0990879061364d565b6001600160801b03168152602001858360200151612b27919061364d565b6001600160801b039081169091526001600160a01b03808816600081815260046020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015612caa5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612c1860008884886126b8565b612c8a5760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a39565b81612c94816134c4565b9250508080612ca2906134c4565b915050612bcb565b50600081905561223d565b6000815160411415612ce95760208201516040830151606084015160001a612cdf86828585612d59565b9350505050610926565b815160401415612d115760208201516040830151612d08858383612f02565b92505050610926565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a39565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115612dd65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a39565b8360ff16601b1480612deb57508360ff16601c145b612e425760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a39565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015612e96573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612ef95760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a39565b95945050505050565b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821660ff83901c601b01612f3b86828785612d59565b9695505050505050565b828054612f5190613473565b90600052602060002090601f016020900481019282612f735760008555612fb9565b82601f10612f8c57805160ff1916838001178555612fb9565b82800160010185558215612fb9579182015b82811115612fb9578251825591602001919060010190612f9e565b50610e8f9291505b80821115610e8f5760008155600101612fc1565b6001600160e01b03198116811461120057600080fd5b600060208284031215612ffd57600080fd5b813561144081612fd5565b60005b8381101561302357818101518382015260200161300b565b838111156118ff5750506000910152565b6000815180845261304c816020860160208601613008565b601f01601f19169290920160200192915050565b6020815260006114406020830184613034565b60006020828403121561308557600080fd5b5035919050565b6001600160a01b038116811461120057600080fd5b600080604083850312156130b457600080fd5b82356130bf8161308c565b946020939093013593505050565b6000602082840312156130df57600080fd5b81356114408161308c565b6000806000606084860312156130ff57600080fd5b833561310a8161308c565b9250602084013561311a8161308c565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b60405160c0810167ffffffffffffffff811182821017156131645761316461312b565b60405290565b600067ffffffffffffffff808411156131855761318561312b565b604051601f8501601f19908116603f011681019082821181831017156131ad576131ad61312b565b816040528093508581528686860111156131c657600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126131f157600080fd5b6114408383356020850161316a565b60008060006060848603121561321557600080fd5b83359250602084013567ffffffffffffffff81111561323357600080fd5b61323f868287016131e0565b925050604084013590509250925092565b60006020828403121561326257600080fd5b813567ffffffffffffffff81111561327957600080fd5b8201601f8101841361328a57600080fd5b6128058482356020840161316a565b634e487b7160e01b600052602160045260246000fd5b600060c0820190508782528660208301528560408301528460608301526001600160f81b0384166080830152600383106132f957634e487b7160e01b600052602160045260246000fd5b8260a0830152979650505050505050565b6000806040838503121561331d57600080fd5b82356133288161308c565b91506020830135801515811461333d57600080fd5b809150509250929050565b6000806000806080858703121561335e57600080fd5b84356133698161308c565b935060208501356133798161308c565b925060408501359150606085013567ffffffffffffffff81111561339c57600080fd5b6133a8878288016131e0565b91505092959194509250565b60008082840360e08112156133c857600080fd5b60c08112156133d657600080fd5b506133df613141565b8335815260208401356020820152604084013560408201526060840135606082015260808401356001600160f81b038116811461341b57600080fd5b608082015260a08401356003811061343257600080fd5b60a08201529460c0939093013593505050565b6000806040838503121561345857600080fd5b82356134638161308c565b9150602083013561333d8161308c565b600181811c9082168061348757607f821691505b602082108114156134a857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60006000198214156134d8576134d86134ae565b5060010190565b600082198211156134f2576134f26134ae565b500190565b600082821015613509576135096134ae565b500390565b634e487b7160e01b600052601260045260246000fd5b6000826135335761353361350e565b500490565b6000816000190483118215151615613552576135526134ae565b500290565b6000826135665761356661350e565b500690565b6000815161357d818560208601613008565b9290920192915050565b600080845481600182811c9150808316806135a357607f831692505b60208084108214156135c357634e487b7160e01b86526022600452602486fd5b8180156135d757600181146135e857613615565b60ff19861689528489019650613615565b60008b81526020902060005b8681101561360d5781548b8201529085019083016135f4565b505084890196505b505050505050612ef9818561356b565b60006001600160801b0383811690831681811015613645576136456134ae565b039392505050565b60006001600160801b0380831681851680830382111561366f5761366f6134ae565b01949350505050565b6000835161368a818460208801613008565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b6000816136be576136be6134ae565b506000190190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612f3b6080830184613034565b60006020828403121561370a57600080fd5b815161144081612fd5565b634e487b7160e01b600052603260045260246000fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220f85d7bd53e2981caaca80b9f700e3e2236a3ade5821eeae446087c9e744778c264736f6c634300080a0033608060405260405162000baa38038062000baa83398101604081905262000026916200042e565b8051825114620000985760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620000eb5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200008f565b60005b82518110156200015757620001428382815181106200011157620001116200050c565b60200260200101518383815181106200012e576200012e6200050c565b60200260200101516200016060201b60201c565b806200014e8162000538565b915050620000ee565b50505062000571565b6001600160a01b038216620001cd5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200008f565b600081116200021f5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200008f565b6001600160a01b038216600090815260026020526040902054156200029b5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200008f565b60048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0384169081179091556000908152600260205260408120829055546200030390829062000556565b600055604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200038d576200038d6200034c565b604052919050565b60006001600160401b03821115620003b157620003b16200034c565b5060051b60200190565b600082601f830112620003cd57600080fd5b81516020620003e6620003e08362000395565b62000362565b82815260059290921b840181019181810190868411156200040657600080fd5b8286015b848110156200042357805183529183019183016200040a565b509695505050505050565b600080604083850312156200044257600080fd5b82516001600160401b03808211156200045a57600080fd5b818501915085601f8301126200046f57600080fd5b8151602062000482620003e08362000395565b82815260059290921b84018101918181019089841115620004a257600080fd5b948201945b83861015620004d95785516001600160a01b0381168114620004c95760008081fd5b82529482019490820190620004a7565b91880151919650909350505080821115620004f357600080fd5b506200050285828601620003bb565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156200054f576200054f62000522565b5060010190565b600082198211156200056c576200056c62000522565b500190565b61062980620005816000396000f3fe6080604052600436106100695760003560e01c80639852595c116100435780639852595c14610135578063ce7c2ac21461016b578063e33b7de3146101a157600080fd5b806319165587146100b75780633a98ef39146100d95780638b83209b146100fd57600080fd5b366100b2577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156100c357600080fd5b506100d76100d236600461051a565b6101b6565b005b3480156100e557600080fd5b506000545b6040519081526020015b60405180910390f35b34801561010957600080fd5b5061011d61011836600461053e565b6103b4565b6040516001600160a01b0390911681526020016100f4565b34801561014157600080fd5b506100ea61015036600461051a565b6001600160a01b031660009081526003602052604090205490565b34801561017757600080fd5b506100ea61018636600461051a565b6001600160a01b031660009081526002602052604090205490565b3480156101ad57600080fd5b506001546100ea565b6001600160a01b0381166000908152600260205260409020546102465760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f736861726573000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b600060015447610256919061056d565b6001600160a01b0383166000908152600360209081526040808320548354600290935290832054939450919261028c9085610585565b61029691906105a4565b6102a091906105c6565b9050806103155760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e74000000000000000000000000000000000000000000606482015260840161023d565b6001600160a01b03831660009081526003602052604090205461033990829061056d565b6001600160a01b03841660009081526003602052604090205560015461036090829061056d565b60015561036d83826103e4565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6000600482815481106103c9576103c96105dd565b6000918252602090912001546001600160a01b031692915050565b804710156104345760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161023d565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610481576040519150601f19603f3d011682016040523d82523d6000602084013e610486565b606091505b50509050806104fd5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161023d565b505050565b6001600160a01b038116811461051757600080fd5b50565b60006020828403121561052c57600080fd5b813561053781610502565b9392505050565b60006020828403121561055057600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561058057610580610557565b500190565b600081600019048311821515161561059f5761059f610557565b500290565b6000826105c157634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156105d8576105d8610557565b500390565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220d22c30960490b05e3d25faf49a35cc66fae284a20361a5a3dfaa71d432eb976964736f6c634300080a00334c6576656c696e67205570204865726f65732045706963204261736520566572696669636174696f6e3a4c6576656c696e67205570204865726f6573204570696320446973636f756e74656420566572696669636174696f6e3a0000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013600000000000000000000000000000000000000000000000000000000000000230000000000000000000000000000000000000000000000000a688906bd8b000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000004448d4fd3f76f11ba4605f3c6ca91c14477ed363000000000000000000000000cea95b1d7dd2edee9d6f6a7664598a8cc9052a4400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000055000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000001e4c6576656c696e67205570204865726f6573202d20457069632054696572000000000000000000000000000000000000000000000000000000000000000000084c55482d45504943000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102f25760003560e01c8063722e141d1161018f578063bcf161a2116100e1578063e0c5b0ed1161008a578063ea4194dc11610064578063ea4194dc14610808578063efd0cbf914610828578063f2fde38b1461083b57600080fd5b8063e0c5b0ed1461077f578063e21469631461079f578063e985e9c5146107bf57600080fd5b8063c87b56dd116100bb578063c87b56dd14610733578063d7224ba014610753578063d73b2a6c1461076957600080fd5b8063bcf161a2146106e8578063c85b380d146106fd578063c87881341461071d57600080fd5b80639097548d11610143578063a22cb4651161011d578063a22cb46514610695578063b27a87b0146106b5578063b88d4fde146106c857600080fd5b80639097548d1461064057806395d89b41146106605780639a5d140b1461067557600080fd5b80637bd07f8b116101745780637bd07f8b146105b457806385cb593b146106025780638da5cb5b1461062257600080fd5b8063722e141d1461058957806375dadb321461059f57600080fd5b806342842e0e11610248578063571d34af116101fc578063706c1e6f116101d6578063706c1e6f1461054c57806370a0823114610554578063715018a61461057457600080fd5b8063571d34af146105005780636352211e146105165780636ac5db191461053657600080fd5b80634f6ccce71161022d5780634f6ccce7146104ad57806351b75115146104cd57806355f804b3146104e057600080fd5b806342842e0e146104775780634f297ccc1461049757600080fd5b80630a99c9fe116102aa57806323b872dd1161028457806323b872dd146104175780632f745c591461043757806339a2e6591461045757600080fd5b80630a99c9fe146103cc57806318160ddd146103e257806319165587146103f757600080fd5b8063081812fc116102db578063081812fc1461034e578063095ea7b3146103865780630a23b725146103a857600080fd5b806301ffc9a7146102f757806306fdde031461032c575b600080fd5b34801561030357600080fd5b50610317610312366004612feb565b61085b565b60405190151581526020015b60405180910390f35b34801561033857600080fd5b5061034161092c565b6040516103239190613060565b34801561035a57600080fd5b5061036e610369366004613073565b6109be565b6040516001600160a01b039091168152602001610323565b34801561039257600080fd5b506103a66103a13660046130a1565b610a5e565b005b3480156103b457600080fd5b506103be60195481565b604051908152602001610323565b3480156103d857600080fd5b506103be60165481565b3480156103ee57600080fd5b506000546103be565b34801561040357600080fd5b506103a66104123660046130cd565b610b91565b34801561042357600080fd5b506103a66104323660046130ea565b610c0c565b34801561044357600080fd5b506103be6104523660046130a1565b610c17565b34801561046357600080fd5b506103a6610472366004613073565b610daf565b34801561048357600080fd5b506103a66104923660046130ea565b610dfc565b3480156104a357600080fd5b506103be601a5481565b3480156104b957600080fd5b506103be6104c8366004613073565b610e17565b6103a66104db366004613200565b610e93565b3480156104ec57600080fd5b506103a66104fb366004613250565b6110e7565b34801561050c57600080fd5b506103be60155481565b34801561052257600080fd5b5061036e610531366004613073565b611146565b34801561054257600080fd5b506103be60185481565b6103a6611158565b34801561056057600080fd5b506103be61056f3660046130cd565b611203565b34801561058057600080fd5b506103a66112a6565b34801561059557600080fd5b506103be60145481565b3480156105ab57600080fd5b506103416112fa565b3480156105c057600080fd5b50600954600a54600b54600c54600d546105f094939291906001600160f81b03811690600160f81b900460ff1686565b604051610323969594939291906132af565b34801561060e57600080fd5b506103a661061d366004613250565b611388565b34801561062e57600080fd5b506008546001600160a01b031661036e565b34801561064c57600080fd5b506103be61065b366004613073565b6113e3565b34801561066c57600080fd5b50610341611447565b34801561068157600080fd5b506103a6610690366004613073565b611456565b3480156106a157600080fd5b506103a66106b036600461330a565b611633565b6103a66106c3366004613200565b6116f8565b3480156106d457600080fd5b506103a66106e3366004613348565b611876565b3480156106f457600080fd5b50610341611905565b34801561070957600080fd5b506103a66107183660046133b4565b611912565b34801561072957600080fd5b506103be601b5481565b34801561073f57600080fd5b5061034161074e366004613073565b611b74565b34801561075f57600080fd5b506103be60075481565b34801561077557600080fd5b506103be60175481565b34801561078b57600080fd5b506103a661079a366004613073565b611ba8565b3480156107ab57600080fd5b506103a66107ba366004613073565b611bf5565b3480156107cb57600080fd5b506103176107da366004613445565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561081457600080fd5b506103a6610823366004613250565b611c42565b6103a6610836366004613073565b611c9d565b34801561084757600080fd5b506103a66108563660046130cd565b611d4d565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806108be57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108f257506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b8061092657507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606001805461093b90613473565b80601f016020809104026020016040519081016040528092919081815260200182805461096790613473565b80156109b45780601f10610989576101008083540402835291602001916109b4565b820191906000526020600020905b81548152906001019060200180831161099757829003601f168201915b5050505050905090565b60006109cb826000541190565b610a425760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610a6982611146565b9050806001600160a01b0316836001600160a01b03161415610af35760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610a39565b336001600160a01b0382161480610b0f5750610b0f81336107da565b610b815760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610a39565b610b8c838383611e1a565b505050565b601c546040517f191655870000000000000000000000000000000000000000000000000000000081526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b158015610bf157600080fd5b505af1158015610c05573d6000803e3d6000fd5b5050505050565b610b8c838383611e83565b6000610c2283611203565b8210610c965760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610a39565b600080549080805b83811015610d40576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610cf157805192505b876001600160a01b0316836001600160a01b03161415610d2d5786841415610d1f5750935061092692505050565b83610d29816134c4565b9450505b5080610d38816134c4565b915050610c9e565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610a39565b6008546001600160a01b03163314610df75760405162461bcd60e51b8152602060048201819052602482015260008051602061372c8339815191526044820152606401610a39565b601555565b610b8c83838360405180602001604052806000815250611876565b600080548210610e8f5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610a39565b5090565b610e9d8383612245565b610ef35760405162461bcd60e51b815260206004820152602160248201527f5468697320686173682773207369676e617475726520697320696e76616c69646044820152601760f91b6064820152608401610a39565b82610f8860108054610f0490613473565b80601f0160208091040260200160405190810160405280929190818152602001828054610f3090613473565b8015610f7d5780601f10610f5257610100808354040283529160200191610f7d565b820191906000526020600020905b815481529060010190602001808311610f6057829003601f168201915b50505050503361227d565b14610ffb5760405162461bcd60e51b815260206004820152603060248201527f5468652061646472657373206861736820646f6573206e6f74206d617463682060448201527f746865207369676e656420686173682e000000000000000000000000000000006064820152608401610a39565b601454336000908152601260205260409020546110199083906134df565b11156110675760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e0000000000006044820152606401610a39565b34601b54146110b85760405162461bcd60e51b815260206004820152600f60248201527f496e76616c696420616d6f756e742e00000000000000000000000000000000006044820152606401610a39565b33600090815260126020526040812080548392906110d79084906134df565b90915550610b8c905033826122b0565b6008546001600160a01b0316331461112f5760405162461bcd60e51b8152602060048201819052602482015260008051602061372c8339815191526044820152606401610a39565b8051611142906011906020840190612f45565b5050565b6000611151826122ca565b5192915050565b6008546001600160a01b031633146111a05760405162461bcd60e51b8152602060048201819052602482015260008051602061372c8339815191526044820152606401610a39565b601c546040516000916001600160a01b03169047908381818185875af1925050503d80600081146111ed576040519150601f19603f3d011682016040523d82523d6000602084013e6111f2565b606091505b505090508061120057600080fd5b50565b60006001600160a01b0382166112815760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610a39565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6008546001600160a01b031633146112ee5760405162461bcd60e51b8152602060048201819052602482015260008051602061372c8339815191526044820152606401610a39565b6112f86000612495565b565b600f805461130790613473565b80601f016020809104026020016040519081016040528092919081815260200182805461133390613473565b80156113805780601f1061135557610100808354040283529160200191611380565b820191906000526020600020905b81548152906001019060200180831161136357829003601f168201915b505050505081565b6008546001600160a01b031633146113d05760405162461bcd60e51b8152602060048201819052602482015260008051602061372c8339815191526044820152606401610a39565b805161114290600f906020840190612f45565b600c54600b5460098054600093919261141d9161140090426134f7565b61140a9190613524565b60048401546001600160f81b03166124f4565b6114279190613538565b816001015461143691906134f7565b6114409084613538565b9392505050565b60606002805461093b90613473565b6008546001600160a01b0316331461149e5760405162461bcd60e51b8152602060048201819052602482015260008051602061372c8339815191526044820152606401610a39565b601754816114ab60005490565b6114b591906134df565b11156114ef5760405162461bcd60e51b815260206004820152600960248201526829b7b6321037baba1760b91b6044820152606401610a39565b7f00000000000000000000000000000000000000000000000000000000000000058110156115215761120033826122b0565b61154b7f000000000000000000000000000000000000000000000000000000000000000582613557565b156115be5760405162461bcd60e51b815260206004820152602d60248201527f43616e206f6e6c79206d696e742061206d756c7469706c65206f66207468652060448201527f6d6178426174636853697a652e000000000000000000000000000000000000006064820152608401610a39565b60006115ea7f000000000000000000000000000000000000000000000000000000000000000583613524565b905060005b81811015610b8c57611621337f00000000000000000000000000000000000000000000000000000000000000056122b0565b8061162b816134c4565b9150506115ef565b6001600160a01b03821633141561168c5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610a39565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6117028383612245565b6117585760405162461bcd60e51b815260206004820152602160248201527f5468697320686173682773207369676e617475726520697320696e76616c69646044820152601760f91b6064820152608401610a39565b82611769600f8054610f0490613473565b146117dc5760405162461bcd60e51b815260206004820152603060248201527f5468652061646472657373206861736820646f6573206e6f74206d617463682060448201527f746865207369676e656420686173682e000000000000000000000000000000006064820152608401610a39565b601454336000908152601260205260409020546117fa9083906134df565b11156118485760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e0000000000006044820152606401610a39565b33600090815260126020526040812080548392906118679084906134df565b90915550610b8c90508161250a565b611881848484611e83565b61188d848484846126b8565b6118ff5760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a39565b50505050565b6010805461130790613473565b6008546001600160a01b0316331461195a5760405162461bcd60e51b8152602060048201819052602482015260008051602061372c8339815191526044820152606401610a39565b8082608001516001600160f81b0316836060015102836020015103146119e85760405162461bcd60e51b815260206004820152602560248201527f4c696e656172447574636841756374696f6e3a20696e636f727265637420726560448201527f73657276650000000000000000000000000000000000000000000000000000006064820152608401610a39565b60008260a001516002811115611a0057611a00613299565b1415611a735760405162461bcd60e51b8152602060048201526024808201527f4c696e656172447574636841756374696f6e3a20756e7370656369666965642060448201527f756e6974000000000000000000000000000000000000000000000000000000006064820152608401610a39565b6000826040015111611aed5760405162461bcd60e51b815260206004820152602a60248201527f4c696e656172447574636841756374696f6e3a207a65726f206465637265617360448201527f6520696e74657276616c000000000000000000000000000000000000000000006064820152608401610a39565b815160099081556020830151600a556040830151600b556060830151600c556080830151600d80547fff00000000000000000000000000000000000000000000000000000000000000166001600160f81b03909216918217815560a0850151859392909190600160f81b836002811115611b6957611b69613299565b021790555050505050565b60606011611b818361280d565b604051602001611b92929190613587565b6040516020818303038152906040529050919050565b6008546001600160a01b03163314611bf05760405162461bcd60e51b8152602060048201819052602482015260008051602061372c8339815191526044820152606401610a39565b600955565b6008546001600160a01b03163314611c3d5760405162461bcd60e51b8152602060048201819052602482015260008051602061372c8339815191526044820152606401610a39565b601455565b6008546001600160a01b03163314611c8a5760405162461bcd60e51b8152602060048201819052602482015260008051602061372c8339815191526044820152606401610a39565b8051611142906010906020840190612f45565b601554336000908152601260209081526040808320546013909252909120548391611cc7916134df565b611cd191906134df565b1115611d1f5760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e0000000000006044820152606401610a39565b3360009081526013602052604081208054839290611d3e9084906134df565b9091555061120090508161250a565b6008546001600160a01b03163314611d955760405162461bcd60e51b8152602060048201819052602482015260008051602061372c8339815191526044820152606401610a39565b6001600160a01b038116611e115760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a39565b61120081612495565b600082815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611e8e826122ca565b80519091506000906001600160a01b0316336001600160a01b03161480611ec5575033611eba846109be565b6001600160a01b0316145b80611ed757508151611ed790336107da565b905080611f4c5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610a39565b846001600160a01b031682600001516001600160a01b031614611fd75760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610a39565b6001600160a01b0384166120535760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610a39565b6120636000848460000151611e1a565b6001600160a01b03851660009081526004602052604081208054600192906120959084906001600160801b0316613625565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b038616600090815260046020526040812080546001945090926120e19185911661364d565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b031990911691909216171790556121698460016134df565b6000818152600360205260409020549091506001600160a01b03166121fb57612193816000541190565b156121fb5760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b60006122596008546001600160a01b031690565b6001600160a01b031661226c8484612927565b6001600160a01b0316149392505050565b60008282604051602001612292929190613678565b60405160208183030381529060405280519060200120905092915050565b611142828260405180602001604052806000815250612933565b60408051808201909152600080825260208201526122e9826000541190565b61235b5760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610a39565b60007f000000000000000000000000000000000000000000000000000000000000000583106123bc576123ae7f0000000000000000000000000000000000000000000000000000000000000005846134f7565b6123b99060016134df565b90505b825b818110612426576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561241357949350505050565b508061241e816136af565b9150506123be565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610a39565b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008183106125035781611440565b5090919050565b6002600e54141561255d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a39565b6002600e556018548161256f60005490565b61257991906134df565b11156125b35760405162461bcd60e51b815260206004820152600960248201526829b7b6321037baba1760b91b6044820152606401610a39565b60006125be826113e3565b9050348111156126105760405162461bcd60e51b815260206004820152600f60248201527f496e76616c696420616d6f756e742e00000000000000000000000000000000006044820152606401610a39565b61261a33836122b0565b803411156126af5733600061262f83346134f7565b9050600080836001600160a01b03168360405160006040518083038185875af1925050503d806000811461267f576040519150601f19603f3d011682016040523d82523d6000602084013e612684565b606091505b50915091508181906126a95760405162461bcd60e51b8152600401610a399190613060565b50505050505b50506001600e55565b60006001600160a01b0384163b1561280157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906126fc9033908990889088906004016136c6565b6020604051808303816000875af1925050508015612737575060408051601f3d908101601f19168201909252612734918101906136f8565b60015b6127e7573d808015612765576040519150601f19603f3d011682016040523d82523d6000602084013e61276a565b606091505b5080516127df5760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a39565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612805565b5060015b949350505050565b60608161284d57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156128775780612861816134c4565b91506128709050600a83613524565b9150612851565b60008167ffffffffffffffff8111156128925761289261312b565b6040519080825280601f01601f1916602001820160405280156128bc576020820181803683370190505b5090505b8415612805576128d16001836134f7565b91506128de600a86613557565b6128e99060306134df565b60f81b8183815181106128fe576128fe613715565b60200101906001600160f81b031916908160001a905350612920600a86613524565b94506128c0565b60006114408383612cb5565b6000546001600160a01b0384166129b25760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610a39565b6129bd816000541190565b15612a0a5760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610a39565b7f0000000000000000000000000000000000000000000000000000000000000005831115612aa05760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610a39565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b0380821683527001000000000000000000000000000000009091041691810191909152815180830190925280519091908190612b0990879061364d565b6001600160801b03168152602001858360200151612b27919061364d565b6001600160801b039081169091526001600160a01b03808816600081815260046020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015612caa5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612c1860008884886126b8565b612c8a5760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a39565b81612c94816134c4565b9250508080612ca2906134c4565b915050612bcb565b50600081905561223d565b6000815160411415612ce95760208201516040830151606084015160001a612cdf86828585612d59565b9350505050610926565b815160401415612d115760208201516040830151612d08858383612f02565b92505050610926565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a39565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115612dd65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a39565b8360ff16601b1480612deb57508360ff16601c145b612e425760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a39565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015612e96573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612ef95760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a39565b95945050505050565b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821660ff83901c601b01612f3b86828785612d59565b9695505050505050565b828054612f5190613473565b90600052602060002090601f016020900481019282612f735760008555612fb9565b82601f10612f8c57805160ff1916838001178555612fb9565b82800160010185558215612fb9579182015b82811115612fb9578251825591602001919060010190612f9e565b50610e8f9291505b80821115610e8f5760008155600101612fc1565b6001600160e01b03198116811461120057600080fd5b600060208284031215612ffd57600080fd5b813561144081612fd5565b60005b8381101561302357818101518382015260200161300b565b838111156118ff5750506000910152565b6000815180845261304c816020860160208601613008565b601f01601f19169290920160200192915050565b6020815260006114406020830184613034565b60006020828403121561308557600080fd5b5035919050565b6001600160a01b038116811461120057600080fd5b600080604083850312156130b457600080fd5b82356130bf8161308c565b946020939093013593505050565b6000602082840312156130df57600080fd5b81356114408161308c565b6000806000606084860312156130ff57600080fd5b833561310a8161308c565b9250602084013561311a8161308c565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b60405160c0810167ffffffffffffffff811182821017156131645761316461312b565b60405290565b600067ffffffffffffffff808411156131855761318561312b565b604051601f8501601f19908116603f011681019082821181831017156131ad576131ad61312b565b816040528093508581528686860111156131c657600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126131f157600080fd5b6114408383356020850161316a565b60008060006060848603121561321557600080fd5b83359250602084013567ffffffffffffffff81111561323357600080fd5b61323f868287016131e0565b925050604084013590509250925092565b60006020828403121561326257600080fd5b813567ffffffffffffffff81111561327957600080fd5b8201601f8101841361328a57600080fd5b6128058482356020840161316a565b634e487b7160e01b600052602160045260246000fd5b600060c0820190508782528660208301528560408301528460608301526001600160f81b0384166080830152600383106132f957634e487b7160e01b600052602160045260246000fd5b8260a0830152979650505050505050565b6000806040838503121561331d57600080fd5b82356133288161308c565b91506020830135801515811461333d57600080fd5b809150509250929050565b6000806000806080858703121561335e57600080fd5b84356133698161308c565b935060208501356133798161308c565b925060408501359150606085013567ffffffffffffffff81111561339c57600080fd5b6133a8878288016131e0565b91505092959194509250565b60008082840360e08112156133c857600080fd5b60c08112156133d657600080fd5b506133df613141565b8335815260208401356020820152604084013560408201526060840135606082015260808401356001600160f81b038116811461341b57600080fd5b608082015260a08401356003811061343257600080fd5b60a08201529460c0939093013593505050565b6000806040838503121561345857600080fd5b82356134638161308c565b9150602083013561333d8161308c565b600181811c9082168061348757607f821691505b602082108114156134a857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60006000198214156134d8576134d86134ae565b5060010190565b600082198211156134f2576134f26134ae565b500190565b600082821015613509576135096134ae565b500390565b634e487b7160e01b600052601260045260246000fd5b6000826135335761353361350e565b500490565b6000816000190483118215151615613552576135526134ae565b500290565b6000826135665761356661350e565b500690565b6000815161357d818560208601613008565b9290920192915050565b600080845481600182811c9150808316806135a357607f831692505b60208084108214156135c357634e487b7160e01b86526022600452602486fd5b8180156135d757600181146135e857613615565b60ff19861689528489019650613615565b60008b81526020902060005b8681101561360d5781548b8201529085019083016135f4565b505084890196505b505050505050612ef9818561356b565b60006001600160801b0383811690831681811015613645576136456134ae565b039392505050565b60006001600160801b0380831681851680830382111561366f5761366f6134ae565b01949350505050565b6000835161368a818460208801613008565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b6000816136be576136be6134ae565b506000190190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612f3b6080830184613034565b60006020828403121561370a57600080fd5b815161144081612fd5565b634e487b7160e01b600052603260045260246000fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220f85d7bd53e2981caaca80b9f700e3e2236a3ade5821eeae446087c9e744778c264736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013600000000000000000000000000000000000000000000000000000000000000230000000000000000000000000000000000000000000000000a688906bd8b000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000004448d4fd3f76f11ba4605f3c6ca91c14477ed363000000000000000000000000cea95b1d7dd2edee9d6f6a7664598a8cc9052a4400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000055000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000001e4c6576656c696e67205570204865726f6573202d20457069632054696572000000000000000000000000000000000000000000000000000000000000000000084c55482d45504943000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : payees (address[]): 0x4448d4FD3f76F11BA4605f3C6ca91c14477Ed363,0xCEa95B1d7Dd2EdeE9D6f6a7664598a8cC9052A44
Arg [1] : shares (uint256[]): 85,15
Arg [2] : name (string): Leveling Up Heroes - Epic Tier
Arg [3] : symbol (string): LUH-EPIC
Arg [4] : _whitelistMaxMint (uint256): 1
Arg [5] : _publicListMaxMint (uint256): 0
Arg [6] : _nonReservedMax (uint256): 310
Arg [7] : _reservedMax (uint256): 35
Arg [8] : _price (uint256): 750000000000000000
-----Encoded View---------------
19 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000136
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [8] : 0000000000000000000000000000000000000000000000000a688906bd8b0000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [10] : 0000000000000000000000004448d4fd3f76f11ba4605f3c6ca91c14477ed363
Arg [11] : 000000000000000000000000cea95b1d7dd2edee9d6f6a7664598a8cc9052a44
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000055
Arg [14] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [15] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [16] : 4c6576656c696e67205570204865726f6573202d204570696320546965720000
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [18] : 4c55482d45504943000000000000000000000000000000000000000000000000
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.