ERC-721
Overview
Max Total Supply
6,011 Ant
Holders
282
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 AntLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AntERC721
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; interface RefCode { function getCodeIdx(string memory group, string memory code) external view returns (int16[2] memory) ; function validateCodeIdx(string memory group, string memory code, uint16 groupIdx, uint16 codeIdx) external view returns (bool); } contract AntERC721 is ERC721, ERC2981, Ownable { event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId); bool mint_allowed = false; uint8 special_minted; uint8 reveal_state = REVEAL_LOCKED; uint16 last_nft_id; uint8 public MAX_CNT_PER_MINT = 3; uint32 public LOCK_PERIOD = 86400 * 7; uint16[3] nftPool; uint256 public mintPrice = (1 ether / 100); uint256[3] first_nft_price = [0, (1 ether / 1000 * 5), (1 ether / 100)]; address[2] refCodesContract; bool[8500] private single_codes_used; bool[6100] is_guardian; bool[6100] is_collector; uint16[6100] nft_family_idx; mapping(address => uint8) public cnt_minted; mapping(uint16 => uint32) public locked_until; mapping(uint16 => uint32) public last_transfered; mapping(uint16 => address) public owners; mapping(address => uint16[]) public owned; string initialMetadata; string preRevealMetadata; string revealMetadata; string contractUri; // admin entered + user autogenerated mapping(bytes18 => int16) public coupons; // guardians, miners, collectors uint8 public constant CNT_SPECIAL = 12; uint8 public constant fam_guardians = 0; uint8 public constant fam_collectors = 1; uint8 public constant fam_miners = 2; uint8 public constant REVEAL_LOCKED = 0; uint8 public constant REVEAL_EARLY = 1; uint8 public constant REVEAL_OPEN = 2; struct NFT { bool isRevealed; bool isGuardian; bool isMiner; bool isCollector; uint16 id; } constructor( address[2] memory refCodes, uint16[3] memory nftCounts, string memory name_, string memory symbol_) ERC721(name_, symbol_) { refCodesContract = refCodes; nftPool = nftCounts; _setDefaultRoyalty(msg.sender, 100); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } function mintCustom() onlyOwner external { require(!mint_allowed, "Mint already started"); require(last_nft_id == 0, "Something already minted"); for (uint256 j = 1; j <= CNT_SPECIAL; j = j + 1) { last_nft_id++; _mint(msg.sender, last_nft_id); owners[last_nft_id] = msg.sender; } special_minted = CNT_SPECIAL; } function setMaxCountPerMint(uint8 cnt) onlyOwner external { MAX_CNT_PER_MINT = cnt; } function setLockPeriod(uint32 sec) onlyOwner external { LOCK_PERIOD = sec; } function setContractUri(string memory uri) onlyOwner external { contractUri = uri; emit BatchMetadataUpdate(0, last_nft_id); } function setInitialMetadataUri(string memory uri) onlyOwner external { initialMetadata = uri; emit BatchMetadataUpdate(0, last_nft_id); } function setPreRevealMetadataUri(string memory uri) onlyOwner external { preRevealMetadata = uri; emit BatchMetadataUpdate(0, last_nft_id); } function setRevealMetadataUri(string memory uri) onlyOwner external { revealMetadata = uri; emit BatchMetadataUpdate(0, last_nft_id); } function setCodesContract(address[2] memory addr) onlyOwner external { refCodesContract = addr; } function handleMint(address to, uint8 cnt) private { uint256 familyIdx = rand() % 3; uint32 ts = uint32(block.timestamp % 2**32); for (uint256 j = 1; j <= cnt; j = j + 1) { last_nft_id++; uint256 b; for (b = 0; b < 4; b = b + 1) { if (b == 3) { revert("No NFTs left"); } familyIdx = (familyIdx + 1) % 3; if (nftPool[familyIdx] > 0) { _mint(to, last_nft_id); is_guardian[last_nft_id] = familyIdx == fam_guardians; is_collector[last_nft_id] = familyIdx == fam_collectors; nft_family_idx[last_nft_id] = nftPool[familyIdx]; nftPool[familyIdx]--; if (b == 0 && (owned[to].length == 0)) { // lock the first NFT for 7 days locked_until[last_nft_id] = ts + LOCK_PERIOD; // set up user's own coupon code bytes18 code = _calcCouponCode(to); // unlimited mints coupons[code] = -1; } owners[last_nft_id] = to; owned[to].push(last_nft_id); break; } } } cnt_minted[to] += cnt; } function mint(uint8 cnt, bytes18 coupon) external payable { address to = msg.sender; require(mint_allowed, "Mint not started"); require(cnt >= 1 && (cnt + cnt_minted[to]) <= MAX_CNT_PER_MINT, "Wrong quantity"); require(isCouponValid(coupon, cnt), "Invalid coupon"); uint8 priceLevel = 1; for (uint8 j = 17; j > 0; j--) { bytes1 currentByte = coupon[j]; if (currentByte != 0) { priceLevel = getCodePriceLevel(currentByte); break; } } require(msg.value == getNFTEthPrice(to, cnt, priceLevel), "Not enough ETH"); handleMint(to, cnt); coupons[coupon] = coupons[coupon] - int16(int8(cnt)); } function mintWithSingleUseCode(uint8 cnt, string memory group, string memory code, uint16 groupIdx, uint16 codeIdx, uint8 setIdx) external payable { address to = msg.sender; require(mint_allowed, "Mint not started"); require(cnt >= 1 && (cnt + cnt_minted[to]) <= MAX_CNT_PER_MINT, "Wrong quantity"); uint8 priceLevel = getStringCodePriceLevel(group); bool isValid = RefCode(refCodesContract[setIdx]).validateCodeIdx(group, code, groupIdx, codeIdx); require(isValid, "Validation failed"); require(!single_codes_used[codeIdx], "Code used"); require(msg.value == getNFTEthPrice(to, cnt, priceLevel), "Not enough ETH"); single_codes_used[codeIdx] = true; handleMint(to, cnt); } function ownerMint(address to, uint8 cnt) onlyOwner external { // require(!mint_allowed, "Mint already started"); handleMint(to, cnt); } function bulkMint(address[] memory to, uint8[] memory cnt) onlyOwner external { for (uint16 j = 0; j < to.length; j++) { handleMint(to[j], cnt[j]); } } function rand() private view returns(uint256) { uint256 seed = uint256(keccak256(abi.encodePacked( block.timestamp + block.prevrandao + ((uint256(keccak256(abi.encodePacked(block.coinbase)))) / (block.timestamp)) + block.gaslimit + ((uint256(keccak256(abi.encodePacked(msg.sender)))) / (block.timestamp)) + block.number ))); return (seed - ((seed / 1000) * 1000)); } function burn(uint16 tokenId) external { require(owners[tokenId] == msg.sender, "Not an owner"); require(tokenId <= special_minted, "Can't burn this NFT"); _burn(tokenId); } function earlyReveal() onlyOwner external { reveal_state = REVEAL_EARLY; } function fullReveal() onlyOwner external { reveal_state = REVEAL_OPEN; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { if (owners[uint16(_tokenId)] == address(0)) { return string.concat(initialMetadata, "default.json") ; } if (_tokenId <= special_minted) { return string.concat(reveal_state == REVEAL_LOCKED ? initialMetadata : (reveal_state == REVEAL_EARLY ? preRevealMetadata : revealMetadata), Strings.toString(_tokenId), ".json") ; } // generic cocoon image before early reveal NFT memory nft = getNFT(uint16(_tokenId)); if (reveal_state == REVEAL_LOCKED || !nft.isRevealed) { return string.concat(initialMetadata, "default.json") ; } string memory fileName = string.concat(is_collector[_tokenId] ? "1-" : (is_guardian[_tokenId] ? "2-" : "3-"), Strings.toString(nft_family_idx[_tokenId])); return string.concat(reveal_state == REVEAL_EARLY ? preRevealMetadata : revealMetadata, fileName, ".json"); } function contractURI() public view returns (string memory) { return contractUri; } function setFirstNFTPrice(uint256 idx, uint256 price) onlyOwner external { first_nft_price[idx] = price; } function setMintStatus(bool isAllowed) onlyOwner external { mint_allowed = isAllowed; } function setMintPrice(uint256 price) onlyOwner external { mintPrice = price; } function registerCoupon(bytes18 coupon, int16 limit) onlyOwner external { coupons[coupon] = limit; } function registerBulkCoupons(bytes18[] memory cpns, int16[] memory limit) onlyOwner external { for (uint i = 0; i < cpns.length; i++) { coupons[cpns[i]] = limit[i]; } } function isCouponValid(bytes18 coupon, uint8 cnt) view public returns (bool) { require(mint_allowed, "Mint not started"); require(cnt >= 1 && cnt <= MAX_CNT_PER_MINT, "Wrong quantity"); int16 remaining = coupons[coupon]; return ((remaining > 0) && (remaining - int16(int8((cnt))) >= 0)) || (remaining < 0); } function getCodeIdx(string calldata group, string calldata code) public view returns (int16[3] memory) { for (int16 i = 0; i < 2; i++) { int16[2] memory idx = RefCode(refCodesContract[uint256(uint16(i))]).getCodeIdx(group, code); if (idx[0] > -1 && idx[1] > -1) { return [idx[0], idx[1], i]; } } return [int16(-1), int16(-1), int16(-1)]; } function transferFrom(address from, address to, uint256 tokenId) public override { safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public override { uint32 ts = uint32(block.timestamp % 2**32); uint16 safeId = uint16(tokenId); require (locked_until[safeId] < ts, "Locked"); super.safeTransferFrom(from, to, safeId); owned[to].push(safeId); owners[safeId] = to; // remove the NFT from the owned list of the previous owner for (uint i = 0; i < owned[from].length; i++) { if (owned[from][i] == safeId) { owned[from][i] = 0; } } while (owned[from].length > 0 && (owned[from][owned[from].length - 1] == 0)) { owned[from].pop(); } last_transfered[safeId] = ts; } function availableSupply() view public returns (uint256) { return nftPool[0] + nftPool[1] + nftPool[2]; } function totalSupply() view public returns (uint256) { return last_nft_id + availableSupply(); } function getStringCodePriceLevel(string memory coupon) pure public returns (uint8) { uint256 end = bytes(coupon).length - 1; return getCodePriceLevel(bytes(coupon)[end]); } function getCodePriceLevel(bytes1 coupon) pure public returns (uint8) { bytes32 last = keccak256(abi.encodePacked(coupon)); if (keccak256(abi.encodePacked("a")) == last) { return 0; } else if (keccak256(abi.encodePacked("b")) == last) { return 1; } else if (keccak256(abi.encodePacked("c")) == last) { return 2; } else { return 1; } } function getNFTEthPrice(address to, uint256 count, uint256 priceLevel) view public returns (uint256) { bool firstMinted = owned[to].length > 0; uint256 price = ((mintPrice * count) - ((firstMinted ? 0 : 1) * mintPrice)) + (firstMinted ? 0 : first_nft_price[priceLevel]); if (count == 4) { price = (price * 9) / 10; } return price; } function isEligibleForEarlyReveal(address to) view public returns (bool) { return coupons[getCouponCode(to)] < -1; } function getMintPrice() view public returns (uint256) { return mintPrice; } function getFirstNftPrice(uint256 idx) view public returns (uint256) { return first_nft_price[idx]; } function getAllPriceLevels() view public returns (uint256[3] memory) { return first_nft_price; } function getNFTs(address to) view public returns (NFT[] memory) { NFT[] memory userNfts = new NFT[](owned[to].length); uint16 idx = 0; for (uint16 i = 0; i < owned[to].length; i++) { if (owned[to][i] != 0) { userNfts[idx] = getNFT(owned[to][i]); idx++; } } return userNfts; } function getNFT(uint16 id) view public returns (NFT memory) { NFT memory nft = NFT({ id: id, isRevealed: isRevealed(id), isGuardian: isGuardian(id), isMiner: isMiner(id), isCollector: isCollector(id) }); return nft; } function isRevealed(uint16 id) view internal returns (bool) { return (reveal_state == REVEAL_OPEN) || ((reveal_state == REVEAL_EARLY) && (last_transfered[id] == 0) && isEligibleForEarlyReveal(owners[id])); } function isGuardian(uint16 id) view internal returns (bool) { return isRevealed(id) && is_guardian[id]; } function isCollector(uint16 id) view internal returns (bool) { return isRevealed(id) && is_collector[id]; } function isMiner(uint16 id) view internal returns (bool) { return isRevealed(id) && !is_collector[id] && !is_guardian[id]; } function getSliceBytes(bytes32 text, uint256 begin, uint256 end) internal pure returns (bytes memory) { if (end > text.length) { end = text.length; } bytes memory a = new bytes(end - begin + 1); for(uint i = 0; i <= end - begin; i++) { unchecked { a[i] = text[i + begin - 1]; } } return a; } function _calcCouponCode(address to) internal pure returns (bytes18) { bytes32 addressHashBytes = sha256(abi.encodePacked(to, 'antrep')); return iToHex(getSliceBytes(addressHashBytes, 1, 4)); } function iToHex(bytes memory buffer) public pure returns (bytes18) { // Fixed buffer size for hexadecimal convertion bytes memory converted = new bytes(buffer.length * 2); bytes memory _base = "0123456789defghijklmnopqrstuvwxyz"; for (uint256 i = 0; i < buffer.length; i++) { converted[i * 2] = _base[uint8(buffer[i]) / _base.length]; converted[i * 2 + 1] = _base[uint8(buffer[i]) % _base.length]; } return bytes10(abi.encodePacked(converted)); } function getCouponCode(address to) internal view returns (bytes18) { bytes18 code = _calcCouponCode(to); if (coupons[code] < 0) { return code; } else { return ""; } } function getMyCouponCode() public view returns (bytes18) { return getCouponCode(msg.sender); } function setDefaultRoyalty(address receiver, uint96 feeNumerator) onlyOwner external { _setDefaultRoyalty(receiver, feeNumerator); } function deleteDefaultRoyalty() onlyOwner external { _deleteDefaultRoyalty(); } function setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) onlyOwner external { _setTokenRoyalty(tokenId, receiver, feeNumerator); } function resetTokenRoyalty(uint256 tokenId) onlyOwner external { _resetTokenRoyalty(tokenId); } function withdraw(address to) public onlyOwner { uint256 amount = address(this).balance; require(amount > 0, "Nothing to withdraw; contract balance empty"); (bool sent, ) = to.call{value: amount}(""); require(sent, "Failed to send Ether"); } // Function to receive Ether. msg.data must be empty receive() external payable {} // Fallback function is called when msg.data is not empty fallback() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.2) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); 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 overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @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.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * 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; /** * @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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * 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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @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. return (a & b) + (a ^ b) / 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 == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address[2]","name":"refCodes","type":"address[2]"},{"internalType":"uint16[3]","name":"nftCounts","type":"uint16[3]"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"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":false,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"CNT_SPECIAL","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LOCK_PERIOD","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_CNT_PER_MINT","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REVEAL_EARLY","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REVEAL_LOCKED","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REVEAL_OPEN","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"availableSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint8[]","name":"cnt","type":"uint8[]"}],"name":"bulkMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"cnt_minted","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes18","name":"","type":"bytes18"}],"name":"coupons","outputs":[{"internalType":"int16","name":"","type":"int16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"earlyReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fam_collectors","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fam_guardians","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fam_miners","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fullReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllPriceLevels","outputs":[{"internalType":"uint256[3]","name":"","type":"uint256[3]"}],"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":"string","name":"group","type":"string"},{"internalType":"string","name":"code","type":"string"}],"name":"getCodeIdx","outputs":[{"internalType":"int16[3]","name":"","type":"int16[3]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes1","name":"coupon","type":"bytes1"}],"name":"getCodePriceLevel","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"idx","type":"uint256"}],"name":"getFirstNftPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMyCouponCode","outputs":[{"internalType":"bytes18","name":"","type":"bytes18"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"id","type":"uint16"}],"name":"getNFT","outputs":[{"components":[{"internalType":"bool","name":"isRevealed","type":"bool"},{"internalType":"bool","name":"isGuardian","type":"bool"},{"internalType":"bool","name":"isMiner","type":"bool"},{"internalType":"bool","name":"isCollector","type":"bool"},{"internalType":"uint16","name":"id","type":"uint16"}],"internalType":"struct AntERC721.NFT","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"uint256","name":"priceLevel","type":"uint256"}],"name":"getNFTEthPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"getNFTs","outputs":[{"components":[{"internalType":"bool","name":"isRevealed","type":"bool"},{"internalType":"bool","name":"isGuardian","type":"bool"},{"internalType":"bool","name":"isMiner","type":"bool"},{"internalType":"bool","name":"isCollector","type":"bool"},{"internalType":"uint16","name":"id","type":"uint16"}],"internalType":"struct AntERC721.NFT[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"coupon","type":"string"}],"name":"getStringCodePriceLevel","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes","name":"buffer","type":"bytes"}],"name":"iToHex","outputs":[{"internalType":"bytes18","name":"","type":"bytes18"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes18","name":"coupon","type":"bytes18"},{"internalType":"uint8","name":"cnt","type":"uint8"}],"name":"isCouponValid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"isEligibleForEarlyReveal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"last_transfered","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"locked_until","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"cnt","type":"uint8"},{"internalType":"bytes18","name":"coupon","type":"bytes18"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintCustom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"cnt","type":"uint8"},{"internalType":"string","name":"group","type":"string"},{"internalType":"string","name":"code","type":"string"},{"internalType":"uint16","name":"groupIdx","type":"uint16"},{"internalType":"uint16","name":"codeIdx","type":"uint16"},{"internalType":"uint8","name":"setIdx","type":"uint8"}],"name":"mintWithSingleUseCode","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"owned","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint8","name":"cnt","type":"uint8"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"owners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes18[]","name":"cpns","type":"bytes18[]"},{"internalType":"int16[]","name":"limit","type":"int16[]"}],"name":"registerBulkCoupons","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes18","name":"coupon","type":"bytes18"},{"internalType":"int16","name":"limit","type":"int16"}],"name":"registerCoupon","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"resetTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":[{"internalType":"address[2]","name":"addr","type":"address[2]"}],"name":"setCodesContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setContractUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"idx","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setFirstNFTPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setInitialMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"sec","type":"uint32"}],"name":"setLockPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"cnt","type":"uint8"}],"name":"setMaxCountPerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isAllowed","type":"bool"}],"name":"setMintStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setPreRevealMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setRevealMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6008805469ffffffffff0000ff00ff60a01b191663093a800360c81b179055662386f26fc10000600a81905560e0604052600060809081526611c37937e0800060a05260c0919091526200005890600b90600362000257565b503480156200006657600080fd5b506040516200594f3803806200594f833981016040819052620000899162000521565b818160006200009983826200069a565b506001620000a882826200069a565b505050620000c5620000bf620000fc60201b60201c565b62000100565b620000d4600e856002620002a5565b50620000e46009846003620002f0565b50620000f233606462000152565b5050505062000766565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115620001c65760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b0382166200021e5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620001bd565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b826003810192821562000293579160200282015b8281111562000293578251829066ffffffffffffff169055916020019190600101906200026b565b50620002a192915062000383565b5090565b826002810192821562000293579160200282015b828111156200029357825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620002b9565b600183019183908215620002935791602002820160005b838211156200034957835183826101000a81548161ffff021916908361ffff160217905550926020019260020160208160010104928301926001030262000307565b8015620003795782816101000a81549061ffff021916905560020160208160010104928301926001030262000349565b5050620002a19291505b5b80821115620002a1576000815560010162000384565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715620003d557620003d56200039a565b60405290565b604051601f8201601f191681016001600160401b03811182821017156200040657620004066200039a565b604052919050565b600082601f8301126200042057600080fd5b604051606081016001600160401b03811182821017156200044557620004456200039a565b6040528060608401858111156200045b57600080fd5b845b818110156200048957805161ffff811681146200047a5760008081fd5b8352602092830192016200045d565b509195945050505050565b600082601f830112620004a657600080fd5b81516001600160401b03811115620004c257620004c26200039a565b6020620004d8601f8301601f19168201620003db565b8281528582848701011115620004ed57600080fd5b60005b838110156200050d578581018301518282018401528201620004f0565b506000928101909101919091529392505050565b60008060008060e085870312156200053857600080fd5b85601f8601126200054857600080fd5b62000552620003b0565b8060408701888111156200056557600080fd5b875b81811015620005985780516001600160a01b0381168114620005895760008081fd5b84526020938401930162000567565b50819650620005a889826200040e565b60a089015190965092506001600160401b0391505080821115620005cb57600080fd5b620005d98883890162000494565b935060c0870151915080821115620005f057600080fd5b50620005ff8782880162000494565b91505092959194509250565b600181811c908216806200062057607f821691505b6020821081036200064157634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200069557600081815260208120601f850160051c81016020861015620006705750805b601f850160051c820191505b8181101562000691578281556001016200067c565b5050505b505050565b81516001600160401b03811115620006b657620006b66200039a565b620006ce81620006c784546200060b565b8462000647565b602080601f831160018114620007065760008415620006ed5750858301515b600019600386901b1c1916600185901b17855562000691565b600085815260208120601f198616915b82811015620007375788860151825594840194600190910190840162000716565b5085821015620007565787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6151d980620007766000396000f3fe6080604052600436106104055760003560e01c80637d0a489b11610211578063b88d4fde11610122578063e47b1500116100b0578063f127543211610077578063f127543214610ce9578063f2fde38b14610d09578063f489f23b14610d29578063f4a0a52814610d49578063fe57f42614610d6957005b8063e47b150014610c22578063e5061bdb14610c37578063e87e477714610c57578063e8a3d48514610c8b578063e985e9c514610ca057005b8063c52fef84116100f4578063c52fef8414610a33578063c87b56dd14610ba2578063cb62e26d14610bc2578063ccb4807b14610be2578063e1e0779814610c0257005b8063b88d4fde14610b0b578063bd31b71114610b2b578063c15d25b114610b4b578063c515d86714610b8257005b806395d89b411161019f578063a82329c711610171578063a82329c714610a7d578063aa1b103f14610a90578063aed15f2414610aa5578063b1eead1814610ad6578063b4c511fe14610af657005b806395d89b4114610a1e578063a067c44a14610a33578063a22cb46514610a48578063a7f93ebd14610a6857005b8063871dd70e116101e3578063871dd70e1461097e5780638a616bc01461099e5780638da5cb5b146109be5780638dc9ffe4146109dc5780638dfaec1314610a0957005b80637d0a489b146106645780637ecc2b561461091a5780637ee338c01461092f57806382183fb01461095157005b80633828e4511161031657806358104fe1116102a4578063671ff7861161026b578063671ff786146108695780636817c76c146108a257806370a08231146108b8578063715018a6146108d85780637bd4d5ad146108ed57005b806358104fe1146107c05780635944c753146107e15780635b3ebe3c146108015780636352211e1461081657806365b5e52f1461083657005b80634fe592c1116102e85780634fe592c11461074d57806351cff8d91461076057806352c6b4d21461078057806353a700861461071857806353bde9cf146107a057005b80633828e451146106d85780633855c60d146106f85780633c461d911461071857806342842e0e1461072d57005b806318160ddd116103935780631f85e3ca116103655780631f85e3ca1461062457806323b872dd1461064457806323bc4472146106645780632a55205a14610679578063378dc0b7146106b857005b806318160ddd146105845780631820cabb1461059957806319ac6f69146105d25780631b4458cb146105f257005b8063095ea7b3116103d7578063095ea7b3146104bd5780630ad5a748146104dd57806310853d46146104f2578063141b58311461053657806316a05ed71461055657005b806301ffc9a71461040e57806304634d8d1461044357806306fdde0314610463578063081812fc1461048557005b3661040c57005b005b34801561041a57600080fd5b5061042e610429366004613f85565b610d9d565b60405190151581526020015b60405180910390f35b34801561044f57600080fd5b5061040c61045e366004613fd5565b610dae565b34801561046f57600080fd5b50610478610dc4565b60405161043a9190614058565b34801561049157600080fd5b506104a56104a036600461406b565b610e56565b6040516001600160a01b03909116815260200161043a565b3480156104c957600080fd5b5061040c6104d8366004614084565b610e7d565b3480156104e957600080fd5b5061040c610f97565b3480156104fe57600080fd5b5061052361050d3660046140c6565b61041f6020526000908152604090205460010b81565b60405160019190910b815260200161043a565b34801561054257600080fd5b5061040c6105513660046141be565b610fb4565b34801561056257600080fd5b5061057661057136600461406b565b611014565b60405190815260200161043a565b34801561059057600080fd5b50610576611031565b3480156105a557600080fd5b506008546105bd90600160d01b900463ffffffff1681565b60405163ffffffff909116815260200161043a565b3480156105de57600080fd5b5061040c6105ed366004614204565b611058565b3480156105fe57600080fd5b5061061261060d36600461421f565b611119565b60405160ff909116815260200161043a565b34801561063057600080fd5b5061040c61063f366004614257565b611203565b34801561065057600080fd5b5061040c61065f366004614274565b611229565b34801561067057600080fd5b50610612600181565b34801561068557600080fd5b506106996106943660046142b0565b611234565b604080516001600160a01b03909316835260208301919091520161043a565b3480156106c457600080fd5b5061040c6106d33660046142b0565b6112e2565b3480156106e457600080fd5b5061040c6106f33660046142d2565b611304565b34801561070457600080fd5b5061040c61071336600461434a565b611319565b34801561072457600080fd5b50610612600081565b34801561073957600080fd5b5061040c610748366004614274565b61132b565b61040c61075b366004614374565b611609565b34801561076c57600080fd5b5061040c61077b36600461439e565b6117fb565b34801561078c57600080fd5b5061057661079b3660046143b9565b6118ff565b3480156107ac57600080fd5b5061040c6107bb366004614492565b6119ac565b3480156107cc57600080fd5b5060085461061290600160c81b900460ff1681565b3480156107ed57600080fd5b5061040c6107fc366004614551565b611a3b565b34801561080d57600080fd5b5061040c611a4e565b34801561082257600080fd5b506104a561083136600461406b565b611bb7565b34801561084257600080fd5b50610856610851366004614084565b611c17565b60405161ffff909116815260200161043a565b34801561087557600080fd5b506108896108843660046141be565b611c5f565b6040516001600160701b0319909116815260200161043a565b3480156108ae57600080fd5b50610576600a5481565b3480156108c457600080fd5b506105766108d336600461439e565b611e28565b3480156108e457600080fd5b5061040c611eae565b3480156108f957600080fd5b5061090d610908366004614204565b611ec2565b60405161043a919061458d565b34801561092657600080fd5b50610576611f4d565b34801561093b57600080fd5b50610944611f87565b60405161043a91906145d2565b34801561095d57600080fd5b5061097161096c36600461439e565b611fc2565b60405161043a9190614603565b34801561098a57600080fd5b5061042e610999366004614688565b61217a565b3480156109aa57600080fd5b5061040c6109b936600461406b565b612238565b3480156109ca57600080fd5b506008546001600160a01b03166104a5565b3480156109e857600080fd5b506109fc6109f73660046146e5565b612251565b60405161043a9190614750565b348015610a1557600080fd5b5061040c61238f565b348015610a2a57600080fd5b506104786123ac565b348015610a3f57600080fd5b50610612600281565b348015610a5457600080fd5b5061040c610a6336600461477b565b6123bb565b348015610a7457600080fd5b50600a54610576565b61040c610a8b3660046147b2565b6123c6565b348015610a9c57600080fd5b5061040c61263a565b348015610ab157600080fd5b50610612610ac036600461439e565b6104166020526000908152604090205460ff1681565b348015610ae257600080fd5b50610612610af13660046141be565b61264c565b348015610b0257600080fd5b50610612600c81565b348015610b1757600080fd5b5061040c610b26366004614856565b61268f565b348015610b3757600080fd5b5061040c610b4636600461491f565b61270d565b348015610b5757600080fd5b506104a5610b66366004614204565b610419602052600090815260409020546001600160a01b031681565b348015610b8e57600080fd5b5061040c610b9d3660046141be565b61277b565b348015610bae57600080fd5b50610478610bbd36600461406b565b612790565b348015610bce57600080fd5b5061040c610bdd3660046141be565b6129ff565b348015610bee57600080fd5b5061040c610bfd3660046141be565b612a14565b348015610c0e57600080fd5b5061042e610c1d36600461439e565b612a29565b348015610c2e57600080fd5b50610889612a61565b348015610c4357600080fd5b5061040c610c523660046149d4565b612a6c565b348015610c6357600080fd5b506105bd610c72366004614204565b6104186020526000908152604090205463ffffffff1681565b348015610c9757600080fd5b50610478612a94565b348015610cac57600080fd5b5061042e610cbb3660046149ef565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610cf557600080fd5b5061040c610d04366004614a19565b612aa4565b348015610d1557600080fd5b5061040c610d2436600461439e565b612add565b348015610d3557600080fd5b5061040c610d44366004614a45565b612b53565b348015610d5557600080fd5b5061040c610d6436600461406b565b612b81565b348015610d7557600080fd5b506105bd610d84366004614204565b6104176020526000908152604090205463ffffffff1681565b6000610da882612b8e565b92915050565b610db6612bb3565b610dc08282612c0d565b5050565b606060008054610dd390614a6b565b80601f0160208091040260200160405190810160405280929190818152602001828054610dff90614a6b565b8015610e4c5780601f10610e2157610100808354040283529160200191610e4c565b820191906000526020600020905b815481529060010190602001808311610e2f57829003601f168201915b5050505050905090565b6000610e6182612cc7565b506000908152600460205260409020546001600160a01b031690565b6000610e8882611bb7565b9050806001600160a01b0316836001600160a01b031603610efa5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610f165750610f168133610cbb565b610f885760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610ef1565b610f928383612d26565b505050565b610f9f612bb3565b6008805460ff60b01b1916600160b01b179055565b610fbc612bb3565b61041c610fc98282614aed565b506008546040805160008152600160b81b90920461ffff1660208301527f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c910160405180910390a150565b6000600b826003811061102957611029614bac565b015492915050565b600061103b611f4d565b6008546110539190600160b81b900461ffff16614bd8565b905090565b61ffff8116600090815261041960205260409020546001600160a01b031633146110b35760405162461bcd60e51b815260206004820152600c60248201526b2737ba1030b71037bbb732b960a11b6044820152606401610ef1565b600854600160a81b900460ff1661ffff821611156111095760405162461bcd60e51b815260206004820152601360248201527210d85b89dd08189d5c9b881d1a1a5cc8139195606a1b6044820152606401610ef1565b6111168161ffff16612d94565b50565b6040516001600160f81b03198216602082015260009081906021016040516020818303038152906040528051906020012090508060405160200161116490606160f81b815260010190565b60405160208183030381529060405280519060200120036111885750600092915050565b604051603160f91b6020820152819060210160405160208183030381529060405280519060200120036111be5750600192915050565b604051606360f81b6020820152819060210160405160208183030381529060405280519060200120036111f45750600292915050565b50600192915050565b50919050565b61120b612bb3565b60088054911515600160a01b0260ff60a01b19909216919091179055565b610f9283838361132b565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916112a95750604080518082019091526006546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906112c8906001600160601b031687614beb565b6112d29190614c18565b91519350909150505b9250929050565b6112ea612bb3565b80600b83600381106112fe576112fe614bac565b01555050565b61130c612bb3565b610dc0600e826002613ee4565b611321612bb3565b610dc08282612e29565b600061133c64010000000042614c2c565b61ffff831660009081526104176020526040902054909150829063ffffffff8084169116106113965760405162461bcd60e51b8152602060048201526006602482015265131bd8dad95960d21b6044820152606401610ef1565b6113a585858361ffff1661324f565b6001600160a01b038416600081815261041a6020908152604080832080546001810182559084528284206010820401805461ffff8089166002600f909516949094026101000a8481029102199091161790558352610419909152812080546001600160a01b0319169092179091555b6001600160a01b038616600090815261041a60205260409020548110156114fb576001600160a01b038616600090815261041a60205260409020805461ffff841691908390811061146757611467614bac565b60009182526020909120601082040154600f9091166002026101000a900461ffff16036114e9576001600160a01b038616600090815261041a602052604081208054839081106114b9576114b9614bac565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055505b806114f381614c40565b915050611414565b505b6001600160a01b038516600090815261041a60205260409020541580159061157b57506001600160a01b038516600090815261041a60205260409020805461154790600190614c59565b8154811061155757611557614bac565b60009182526020909120601082040154600f9091166002026101000a900461ffff16155b156115d9576001600160a01b038516600090815261041a602052604090208054806115a8576115a8614c6c565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a021916905590556114fd565b61ffff16600090815261041860205260409020805463ffffffff191663ffffffff92909216919091179055505050565b6008543390600160a01b900460ff166116345760405162461bcd60e51b8152600401610ef190614c82565b60018360ff161015801561167e57506008546001600160a01b0382166000908152610416602052604090205460ff600160c81b909204821691611678911685614cac565b60ff1611155b61169a5760405162461bcd60e51b8152600401610ef190614cc5565b6116a4828461217a565b6116e15760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b21031b7bab837b760911b6044820152606401610ef1565b600160115b60ff811615611740576000848260ff166012811061170657611706614bac565b1a60f81b90506001600160f81b031981161561172d5761172581611119565b925050611740565b508061173881614ced565b9150506116e6565b50611752828560ff168360ff166118ff565b34146117915760405162461bcd60e51b815260206004820152600e60248201526d09cdee840cadcdeeaced0408aa8960931b6044820152606401610ef1565b61179b8285612e29565b6001600160701b03198316600090815261041f60205260408120546117c69186900b9060010b614d0a565b6001600160701b031993909316600090815261041f60205260409020805461ffff191661ffff90941693909317909255505050565b611803612bb3565b47806118655760405162461bcd60e51b815260206004820152602b60248201527f4e6f7468696e6720746f2077697468647261773b20636f6e747261637420626160448201526a6c616e636520656d70747960a81b6064820152608401610ef1565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146118b2576040519150601f19603f3d011682016040523d82523d6000602084013e6118b7565b606091505b5050905080610f925760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610ef1565b6001600160a01b038316600090815261041a60205260408120541515818161193b57600b846003811061193457611934614bac565b015461193e565b60005b600a548361194d576001611950565b60005b60ff1661195d9190614beb565b86600a5461196b9190614beb565b6119759190614c59565b61197f9190614bd8565b9050846004036119a357600a611996826009614beb565b6119a09190614c18565b90505b95945050505050565b6119b4612bb3565b60005b8251811015610f92578181815181106119d2576119d2614bac565b602002602001015161041f60008584815181106119f1576119f1614bac565b6020908102919091018101516001600160701b0319168252810191909152604001600020805461ffff191661ffff9290921691909117905580611a3381614c40565b9150506119b7565b611a43612bb3565b610f9283838361326a565b611a56612bb3565b600854600160a01b900460ff1615611aa75760405162461bcd60e51b8152602060048201526014602482015273135a5b9d08185b1c9958591e481cdd185c9d195960621b6044820152606401610ef1565b600854600160b81b900461ffff1615611b025760405162461bcd60e51b815260206004820152601860248201527f536f6d657468696e6720616c7265616479206d696e74656400000000000000006044820152606401610ef1565b60015b600c8111611ba15760088054600160b81b900461ffff16906017611b2883614d2d565b91906101000a81548161ffff021916908361ffff16021790555050611b6133600860179054906101000a900461ffff1661ffff16613335565b60085461ffff600160b81b9091041660009081526104196020526040902080546001600160a01b03191633179055611b9a816001614bd8565b9050611b05565b506008805460ff60a81b1916600360aa1b179055565b6000818152600260205260408120546001600160a01b031680610da85760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610ef1565b61041a6020528160005260406000208181548110611c3457600080fd5b9060005260206000209060109182820401919006600202915091509054906101000a900461ffff1681565b60008082516002611c709190614beb565b6001600160401b03811115611c8757611c876140e1565b6040519080825280601f01601f191660200182016040528015611cb1576020820181803683370190505b509050600060405180606001604052806021815260200161518360219139905060005b8451811015611dec57818251868381518110611cf257611cf2614bac565b0160200151611d04919060f81c614c18565b81518110611d1457611d14614bac565b01602001516001600160f81b03191683611d2f836002614beb565b81518110611d3f57611d3f614bac565b60200101906001600160f81b031916908160001a905350818251868381518110611d6b57611d6b614bac565b0160200151611d7d919060f81c614c2c565b81518110611d8d57611d8d614bac565b01602001516001600160f81b03191683611da8836002614beb565b611db3906001614bd8565b81518110611dc357611dc3614bac565b60200101906001600160f81b031916908160001a90535080611de481614c40565b915050611cd4565b5081604051602001611dfe9190614d4e565b604051602081830303815290604052611e1690614d6a565b6001600160b01b031916949350505050565b60006001600160a01b038216611e925760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610ef1565b506001600160a01b031660009081526003602052604090205490565b611eb6612bb3565b611ec060006134c0565b565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915260006040518060a00160405280611f0385613512565b15158152602001611f138561358d565b15158152602001611f23856135d4565b15158152602001611f3385613654565b151581526020018461ffff16815250905080915050919050565b60095460009061ffff6401000000008204811691611f749162010000820481169116614da1565b611f7e9190614da1565b61ffff16905090565b611f8f613f3c565b60408051606081019182905290600b9060039082845b815481526020019060010190808311611fa5575050505050905090565b6001600160a01b038116600090815261041a6020526040812054606091906001600160401b03811115611ff757611ff76140e1565b60405190808252806020026020018201604052801561205057816020015b6040805160a0810182526000808252602080830182905292820181905260608201819052608082015282526000199092019101816120155790505b5090506000805b6001600160a01b038516600090815261041a602052604090205461ffff82161015612171576001600160a01b038516600090815261041a60205260409020805461ffff83169081106120ab576120ab614bac565b60009182526020909120601082040154600f9091166002026101000a900461ffff161561215f576001600160a01b038516600090815261041a60205260409020805461212f919061ffff841690811061210657612106614bac565b90600052602060002090601091828204019190066002029054906101000a900461ffff16611ec2565b838361ffff168151811061214557612145614bac565b6020026020010181905250818061215b90614d2d565b9250505b8061216981614d2d565b915050612057565b50909392505050565b600854600090600160a01b900460ff166121a65760405162461bcd60e51b8152600401610ef190614c82565b60018260ff16101580156121ca575060085460ff600160c81b909104811690831611155b6121e65760405162461bcd60e51b8152600401610ef190614cc5565b6001600160701b03198316600090815261041f602052604081205460010b90811380156122225750600061221c84820b83614d0a565b60010b12155b80612230575060008160010b125b949350505050565b612240612bb3565b600090815260076020526040812055565b612259613f3c565b60005b60028160010b1215612367576000600e8261ffff166002811061228157612281614bac565b01546040516323727ff960e21b81526001600160a01b0390911690638dc9ffe4906122b6908a908a908a908a90600401614dec565b6040805180830381865afa1580156122d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122f69190614e1e565b9050600019816000602002015160010b13801561231e5750600019816001602002015160010b135b1561235457604080516060810182528251600190810b8252602093840151810b938201939093529290910b908201529050612230565b508061235f81614e7c565b91505061225c565b5050604080516060810182526000198082526020820181905291810191909152949350505050565b612397612bb3565b6008805460ff60b01b1916600160b11b179055565b606060018054610dd390614a6b565b610dc033838361367f565b6008543390600160a01b900460ff166123f15760405162461bcd60e51b8152600401610ef190614c82565b60018760ff161015801561243b57506008546001600160a01b0382166000908152610416602052604090205460ff600160c81b909204821691612435911689614cac565b60ff1611155b6124575760405162461bcd60e51b8152600401610ef190614cc5565b60006124628761264c565b90506000600e8460ff166002811061247c5761247c614bac565b01546040516315487e8360e01b81526001600160a01b03909116906315487e83906124b1908b908b908b908b90600401614e9c565b602060405180830381865afa1580156124ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124f29190614ee1565b9050806125355760405162461bcd60e51b815260206004820152601160248201527015985b1a59185d1a5bdb8819985a5b1959607a1b6044820152606401610ef1565b60108561ffff16612134811061254d5761254d614bac565b602081049091015460ff601f9092166101000a9004161561259c5760405162461bcd60e51b815260206004820152600960248201526810dbd919481d5cd95960ba1b6044820152606401610ef1565b6125ad838a60ff168460ff166118ff565b34146125ec5760405162461bcd60e51b815260206004820152600e60248201526d09cdee840cadcdeeaced0408aa8960931b6044820152606401610ef1565b600160108661ffff16612134811061260657612606614bac565b602091828204019190066101000a81548160ff02191690831515021790555061262f838a612e29565b505050505050505050565b612642612bb3565b611ec06000600655565b6000806001835161265d9190614c59565b905061268883828151811061267457612674614bac565b01602001516001600160f81b031916611119565b9392505050565b612699338361374d565b6126fb5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608401610ef1565b612707848484846137cb565b50505050565b612715612bb3565b60005b82518161ffff161015610f9257612769838261ffff168151811061273e5761273e614bac565b6020026020010151838361ffff168151811061275c5761275c614bac565b6020026020010151612e29565b8061277381614d2d565b915050612718565b612783612bb3565b61041b610fc98282614aed565b61ffff8116600090815261041960205260409020546060906001600160a01b03166127de5761041b6040516020016127c89190614f71565b6040516020818303038152906040529050919050565b600854600160a81b900460ff16821161284557600854600160b01b900460ff161561282757600854600160b01b900460ff1660011461281f5761041d61282b565b61041c61282b565b61041b5b612834836137fe565b6040516020016127c8929190614f99565b600061285083611ec2565b600854909150600160b01b900460ff16158061286b57508051155b1561289a5761041b6040516020016128839190614f71565b604051602081830303815290604052915050919050565b60006101d9846117d481106128b1576128b1614bac565b602081049091015460ff601f9092166101000a90041661293a5761011a846117d481106128e0576128e0614bac565b602081049091015460ff601f9092166101000a90041661291a5760405180604001604052806002815260200161332d60f01b815250612956565b60405180604001604052806002815260200161322d60f01b815250612956565b60405180604001604052806002815260200161312d60f01b8152505b612991610298866117d4811061296e5761296e614bac565b601091828204019190066002029054906101000a900461ffff1661ffff166137fe565b6040516020016129a2929190614fce565b60408051601f19818403018152919052600854909150600160b01b900460ff166001146129d15761041d6129d5565b61041c5b816040516020016129e7929190614f99565b60405160208183030381529060405292505050919050565b612a07612bb3565b61041d610fc98282614aed565b612a1c612bb3565b61041e610fc98282614aed565b600060001961041f6000612a3c85613890565b6001600160701b031916815260208101919091526040016000205460010b1292915050565b600061105333613890565b612a74612bb3565b6008805460ff909216600160c81b0260ff60c81b19909216919091179055565b606061041e8054610dd390614a6b565b612aac612bb3565b6001600160701b031991909116600090815261041f60205260409020805461ffff191661ffff909216919091179055565b612ae5612bb3565b6001600160a01b038116612b4a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ef1565b611116816134c0565b612b5b612bb3565b6008805463ffffffff909216600160d01b0263ffffffff60d01b19909216919091179055565b612b89612bb3565b600a55565b60006001600160e01b0319821663152a902d60e11b1480610da85750610da8826138d5565b6008546001600160a01b03163314611ec05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef1565b6127106001600160601b0382161115612c385760405162461bcd60e51b8152600401610ef190614ffd565b6001600160a01b038216612c8e5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610ef1565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b6000818152600260205260409020546001600160a01b03166111165760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610ef1565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612d5b82611bb7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612d9f82611bb7565b9050612daa82611bb7565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006003612e35613925565b612e3f9190614c2c565b90506000612e5264010000000042614c2c565b905060015b8360ff1681116132045760088054600160b81b900461ffff16906017612e7c83614d2d565b91906101000a81548161ffff021916908361ffff1602179055505060005b60048110156131f15780600303612ee25760405162461bcd60e51b815260206004820152600c60248201526b139bc81391951cc81b19599d60a21b6044820152606401610ef1565b6003612eef856001614bd8565b612ef99190614c2c565b9350600060098560038110612f1057612f10614bac565b601091828204019190066002029054906101000a900461ffff1661ffff1611156131df57600854612f4d908790600160b81b900461ffff16613335565b60085484159061011a90600160b81b900461ffff166117d48110612f7357612f73614bac565b602081049091018054921515601f9092166101000a91820260ff9092021990921617905560085460018514906101d99061ffff600160b81b909104166117d48110612fc057612fc0614bac565b602091828204019190066101000a81548160ff02191690831515021790555060098460038110612ff257612ff2614bac565b601081049190910154600854600f9092166002026101000a900461ffff9081169161029891600160b81b909104166117d4811061303157613031614bac565b601091828204019190066002026101000a81548161ffff021916908361ffff1602179055506009846003811061306957613069614bac565b6010918282040191900660020281819054906101000a900461ffff168092919061309290615047565b91906101000a81548161ffff021916908361ffff160217905550508060001480156130d457506001600160a01b038616600090815261041a6020526040902054155b1561315a576008546130f390600160d01b900463ffffffff168461505b565b600854600160b81b900461ffff16600090815261041760205260408120805463ffffffff191663ffffffff939093169290921790915561313287613a30565b6001600160701b031916600090815261041f60205260409020805461ffff191661ffff179055505b60088054600160b81b9081900461ffff90811660009081526104196020908152604080832080546001600160a01b0319166001600160a01b038e16908117909155835261041a8252822094548554600181018755958352912060108504018054600f9095166002026101000a80840219909516939091049091169092021790556131f1565b6131ea816001614bd8565b9050612e9a565b506131fd816001614bd8565b9050612e57565b506001600160a01b038416600090815261041660205260408120805485929061323190849060ff16614cac565b92506101000a81548160ff021916908360ff16021790555050505050565b610f928383836040518060200160405280600081525061268f565b6127106001600160601b03821611156132955760405162461bcd60e51b8152600401610ef190614ffd565b6001600160a01b0382166132eb5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610ef1565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600790529190942093519051909116600160a01b029116179055565b6001600160a01b03821661338b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ef1565b6000818152600260205260409020546001600160a01b0316156133f05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ef1565b6000818152600260205260409020546001600160a01b0316156134555760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ef1565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600854600090600160b01b900460ff1660021480610da85750600854600160b01b900460ff16600114801561355f575061ffff82166000908152610418602052604090205463ffffffff16155b8015610da8575061ffff821660009081526104196020526040902054610da8906001600160a01b0316612a29565b600061359882613512565b8015610da8575061011a8261ffff166117d481106135b8576135b8614bac565b602081049091015460ff601f9092166101000a90041692915050565b60006135df82613512565b801561361757506101d98261ffff166117d481106135ff576135ff614bac565b602081049091015460ff601f9092166101000a900416155b8015610da8575061011a8261ffff166117d4811061363757613637614bac565b602081049091015460ff601f9092166101000a9004161592915050565b600061365f82613512565b8015610da857506101d98261ffff166117d481106135b8576135b8614bac565b816001600160a01b0316836001600160a01b0316036136e05760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ef1565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60008061375983611bb7565b9050806001600160a01b0316846001600160a01b031614806137a057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806122305750836001600160a01b03166137b984610e56565b6001600160a01b031614949350505050565b6137d6848484613acd565b6137e284848484613c31565b6127075760405162461bcd60e51b8152600401610ef190615078565b6060600061380b83613d2f565b60010190506000816001600160401b0381111561382a5761382a6140e1565b6040519080825280601f01601f191660200182016040528015613854576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461385e57509392505050565b60008061389c83613a30565b6001600160701b03198116600090815261041f602052604081205491925060019190910b12156138cc5792915050565b50600092915050565b60006001600160e01b031982166380ac58cd60e01b148061390657506001600160e01b03198216635b5e139f60e01b145b80610da857506301ffc9a760e01b6001600160e01b0319831614610da8565b6040516001600160601b03193360601b1660208201526000908190439042906034016040516020818303038152906040528051906020012060001c61396a9190614c18565b6040516001600160601b03194160601b166020820152459042906034016040516020818303038152906040528051906020012060001c6139aa9190614c18565b6139b44442614bd8565b6139be9190614bd8565b6139c89190614bd8565b6139d29190614bd8565b6139dc9190614bd8565b6040516020016139ee91815260200190565b60408051601f1981840301815291905280516020909101209050613a146103e882614c18565b613a20906103e8614beb565b613a2a9082614c59565b91505090565b6040516001600160601b0319606083901b166020820152650616e747265760d41b60348201526000908190600290603a0160408051601f1981840301815290829052613a7b91614d4e565b602060405180830381855afa158015613a98573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190613abb91906150ca565b90506126886108848260016004613e07565b826001600160a01b0316613ae082611bb7565b6001600160a01b031614613b065760405162461bcd60e51b8152600401610ef1906150e3565b6001600160a01b038216613b685760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610ef1565b826001600160a01b0316613b7b82611bb7565b6001600160a01b031614613ba15760405162461bcd60e51b8152600401610ef1906150e3565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006001600160a01b0384163b15613d2757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613c75903390899088908890600401615128565b6020604051808303816000875af1925050508015613cb0575060408051601f3d908101601f19168201909252613cad91810190615165565b60015b613d0d573d808015613cde576040519150601f19603f3d011682016040523d82523d6000602084013e613ce3565b606091505b508051600003613d055760405162461bcd60e51b8152600401610ef190615078565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612230565b506001612230565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310613d6e5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310613d9a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310613db857662386f26fc10000830492506010015b6305f5e1008310613dd0576305f5e100830492506008015b6127108310613de457612710830492506004015b60648310613df6576064830492506002015b600a8310610da85760010192915050565b60606020821115613e1757602091505b6000613e238484614c59565b613e2e906001614bd8565b6001600160401b03811115613e4557613e456140e1565b6040519080825280601f01601f191660200182016040528015613e6f576020820181803683370190505b50905060005b613e7f8585614c59565b8111613edb578560018683010360208110613e9c57613e9c614bac565b1a60f81b828281518110613eb257613eb2614bac565b60200101906001600160f81b031916908160001a90535080613ed381614c40565b915050613e75565b50949350505050565b8260028101928215613f2c579160200282015b82811115613f2c57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190613ef7565b50613f38929150613f5a565b5090565b60405180606001604052806003906020820280368337509192915050565b5b80821115613f385760008155600101613f5b565b6001600160e01b03198116811461111657600080fd5b600060208284031215613f9757600080fd5b813561268881613f6f565b80356001600160a01b0381168114613fb957600080fd5b919050565b80356001600160601b0381168114613fb957600080fd5b60008060408385031215613fe857600080fd5b613ff183613fa2565b9150613fff60208401613fbe565b90509250929050565b60005b8381101561402357818101518382015260200161400b565b50506000910152565b60008151808452614044816020860160208601614008565b601f01601f19169290920160200192915050565b602081526000612688602083018461402c565b60006020828403121561407d57600080fd5b5035919050565b6000806040838503121561409757600080fd5b6140a083613fa2565b946020939093013593505050565b80356001600160701b031981168114613fb957600080fd5b6000602082840312156140d857600080fd5b612688826140ae565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715614119576141196140e1565b60405290565b604051601f8201601f191681016001600160401b0381118282101715614147576141476140e1565b604052919050565b600082601f83011261416057600080fd5b81356001600160401b03811115614179576141796140e1565b61418c601f8201601f191660200161411f565b8181528460208386010111156141a157600080fd5b816020850160208301376000918101602001919091529392505050565b6000602082840312156141d057600080fd5b81356001600160401b038111156141e657600080fd5b6122308482850161414f565b803561ffff81168114613fb957600080fd5b60006020828403121561421657600080fd5b612688826141f2565b60006020828403121561423157600080fd5b81356001600160f81b03198116811461268857600080fd5b801515811461111657600080fd5b60006020828403121561426957600080fd5b813561268881614249565b60008060006060848603121561428957600080fd5b61429284613fa2565b92506142a060208501613fa2565b9150604084013590509250925092565b600080604083850312156142c357600080fd5b50508035926020909101359150565b6000604082840312156142e457600080fd5b82601f8301126142f357600080fd5b6142fb6140f7565b80604084018581111561430d57600080fd5b845b8181101561432e5761432081613fa2565b84526020938401930161430f565b509095945050505050565b803560ff81168114613fb957600080fd5b6000806040838503121561435d57600080fd5b61436683613fa2565b9150613fff60208401614339565b6000806040838503121561438757600080fd5b61439083614339565b9150613fff602084016140ae565b6000602082840312156143b057600080fd5b61268882613fa2565b6000806000606084860312156143ce57600080fd5b6143d784613fa2565b95602085013595506040909401359392505050565b60006001600160401b03821115614405576144056140e1565b5060051b60200190565b8060010b811461111657600080fd5b600082601f83011261442f57600080fd5b8135602061444461443f836143ec565b61411f565b82815260059290921b8401810191818101908684111561446357600080fd5b8286015b8481101561448757803561447a8161440f565b8352918301918301614467565b509695505050505050565b600080604083850312156144a557600080fd5b82356001600160401b03808211156144bc57600080fd5b818501915085601f8301126144d057600080fd5b813560206144e061443f836143ec565b82815260059290921b840181019181810190898411156144ff57600080fd5b948201945b8386101561452457614515866140ae565b82529482019490820190614504565b9650508601359250508082111561453a57600080fd5b506145478582860161441e565b9150509250929050565b60008060006060848603121561456657600080fd5b8335925061457660208501613fa2565b915061458460408501613fbe565b90509250925092565b60a08101610da8828480511515825260208101511515602083015260408101511515604083015260608101511515606083015261ffff60808201511660808301525050565b60608101818360005b60038110156145fa5781518352602092830192909101906001016145db565b50505092915050565b6020808252825182820181905260009190848201906040850190845b8181101561467c5761466983855180511515825260208101511515602083015260408101511515604083015260608101511515606083015261ffff60808201511660808301525050565b9284019260a0929092019160010161461f565b50909695505050505050565b6000806040838503121561469b57600080fd5b614366836140ae565b60008083601f8401126146b657600080fd5b5081356001600160401b038111156146cd57600080fd5b6020830191508360208285010111156112db57600080fd5b600080600080604085870312156146fb57600080fd5b84356001600160401b038082111561471257600080fd5b61471e888389016146a4565b9096509450602087013591508082111561473757600080fd5b50614744878288016146a4565b95989497509550505050565b60608101818360005b60038110156145fa578151600190810b84526020938401939092019101614759565b6000806040838503121561478e57600080fd5b61479783613fa2565b915060208301356147a781614249565b809150509250929050565b60008060008060008060c087890312156147cb57600080fd5b6147d487614339565b955060208701356001600160401b03808211156147f057600080fd5b6147fc8a838b0161414f565b9650604089013591508082111561481257600080fd5b5061481f89828a0161414f565b94505061482e606088016141f2565b925061483c608088016141f2565b915061484a60a08801614339565b90509295509295509295565b6000806000806080858703121561486c57600080fd5b61487585613fa2565b935061488360208601613fa2565b92506040850135915060608501356001600160401b038111156148a557600080fd5b6148b18782880161414f565b91505092959194509250565b600082601f8301126148ce57600080fd5b813560206148de61443f836143ec565b82815260059290921b840181019181810190868411156148fd57600080fd5b8286015b848110156144875761491281614339565b8352918301918301614901565b6000806040838503121561493257600080fd5b82356001600160401b038082111561494957600080fd5b818501915085601f83011261495d57600080fd5b8135602061496d61443f836143ec565b82815260059290921b8401810191818101908984111561498c57600080fd5b948201945b838610156149b1576149a286613fa2565b82529482019490820190614991565b965050860135925050808211156149c757600080fd5b50614547858286016148bd565b6000602082840312156149e657600080fd5b61268882614339565b60008060408385031215614a0257600080fd5b614a0b83613fa2565b9150613fff60208401613fa2565b60008060408385031215614a2c57600080fd5b614a35836140ae565b915060208301356147a78161440f565b600060208284031215614a5757600080fd5b813563ffffffff8116811461268857600080fd5b600181811c90821680614a7f57607f821691505b6020821081036111fd57634e487b7160e01b600052602260045260246000fd5b601f821115610f9257600081815260208120601f850160051c81016020861015614ac65750805b601f850160051c820191505b81811015614ae557828155600101614ad2565b505050505050565b81516001600160401b03811115614b0657614b066140e1565b614b1a81614b148454614a6b565b84614a9f565b602080601f831160018114614b4f5760008415614b375750858301515b600019600386901b1c1916600185901b178555614ae5565b600085815260208120601f198616915b82811015614b7e57888601518255948401946001909101908401614b5f565b5085821015614b9c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610da857610da8614bc2565b8082028115828204841417610da857610da8614bc2565b634e487b7160e01b600052601260045260246000fd5b600082614c2757614c27614c02565b500490565b600082614c3b57614c3b614c02565b500690565b600060018201614c5257614c52614bc2565b5060010190565b81810381811115610da857610da8614bc2565b634e487b7160e01b600052603160045260246000fd5b60208082526010908201526f135a5b9d081b9bdd081cdd185c9d195960821b604082015260600190565b60ff8181168382160190811115610da857610da8614bc2565b6020808252600e908201526d57726f6e67207175616e7469747960901b604082015260600190565b600060ff821680614d0057614d00614bc2565b6000190192915050565b600182810b9082900b03617fff198112617fff82131715610da857610da8614bc2565b600061ffff808316818103614d4457614d44614bc2565b6001019392505050565b60008251614d60818460208701614008565b9190910192915050565b805160208201516001600160b01b0319808216929190600a831015614d9957808184600a0360031b1b83161693505b505050919050565b61ffff818116838216019080821115614dbc57614dbc614bc2565b5092915050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b604081526000614e00604083018688614dc3565b8281036020840152614e13818587614dc3565b979650505050505050565b600060408284031215614e3057600080fd5b82601f830112614e3f57600080fd5b614e476140f7565b806040840185811115614e5957600080fd5b845b8181101561432e578051614e6e8161440f565b845260209384019301614e5b565b60008160010b617fff8103614e9357614e93614bc2565b60010192915050565b608081526000614eaf608083018761402c565b8281036020840152614ec1818761402c565b91505061ffff808516604084015280841660608401525095945050505050565b600060208284031215614ef357600080fd5b815161268881614249565b60008154614f0b81614a6b565b60018281168015614f235760018114614f3857614f67565b60ff1984168752821515830287019450614f67565b8560005260208060002060005b85811015614f5e5781548a820152908401908201614f45565b50505082870194505b5050505092915050565b6000614f7d8284614efe565b6b3232b330bab63a173539b7b760a11b8152600c019392505050565b6000614fa58285614efe565b8351614fb5818360208801614008565b64173539b7b760d91b9101908152600501949350505050565b60008351614fe0818460208801614008565b835190830190614ff4818360208801614008565b01949350505050565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b600061ffff821680614d0057614d00614bc2565b63ffffffff818116838216019080821115614dbc57614dbc614bc2565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000602082840312156150dc57600080fd5b5051919050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061515b9083018461402c565b9695505050505050565b60006020828403121561517757600080fd5b815161268881613f6f56fe303132333435363738396465666768696a6b6c6d6e6f707172737475767778797aa2646970667358221220c49767b713cdaf1a23c53c9258c1ebd62cbecb6414c48427f6993c9ee25c3b3e64736f6c63430008120033000000000000000000000000081757cf3c16a0ab9ce2cb33bad1b28451f79cee000000000000000000000000817e09a4004ff64c573ce40561067f53b480a4770000000000000000000000000000000000000000000000000000000000000995000000000000000000000000000000000000000000000000000000000000073e000000000000000000000000000000000000000000000000000000000000069c00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000001054686520416e742052657075626c6963000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003416e740000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106104055760003560e01c80637d0a489b11610211578063b88d4fde11610122578063e47b1500116100b0578063f127543211610077578063f127543214610ce9578063f2fde38b14610d09578063f489f23b14610d29578063f4a0a52814610d49578063fe57f42614610d6957005b8063e47b150014610c22578063e5061bdb14610c37578063e87e477714610c57578063e8a3d48514610c8b578063e985e9c514610ca057005b8063c52fef84116100f4578063c52fef8414610a33578063c87b56dd14610ba2578063cb62e26d14610bc2578063ccb4807b14610be2578063e1e0779814610c0257005b8063b88d4fde14610b0b578063bd31b71114610b2b578063c15d25b114610b4b578063c515d86714610b8257005b806395d89b411161019f578063a82329c711610171578063a82329c714610a7d578063aa1b103f14610a90578063aed15f2414610aa5578063b1eead1814610ad6578063b4c511fe14610af657005b806395d89b4114610a1e578063a067c44a14610a33578063a22cb46514610a48578063a7f93ebd14610a6857005b8063871dd70e116101e3578063871dd70e1461097e5780638a616bc01461099e5780638da5cb5b146109be5780638dc9ffe4146109dc5780638dfaec1314610a0957005b80637d0a489b146106645780637ecc2b561461091a5780637ee338c01461092f57806382183fb01461095157005b80633828e4511161031657806358104fe1116102a4578063671ff7861161026b578063671ff786146108695780636817c76c146108a257806370a08231146108b8578063715018a6146108d85780637bd4d5ad146108ed57005b806358104fe1146107c05780635944c753146107e15780635b3ebe3c146108015780636352211e1461081657806365b5e52f1461083657005b80634fe592c1116102e85780634fe592c11461074d57806351cff8d91461076057806352c6b4d21461078057806353a700861461071857806353bde9cf146107a057005b80633828e451146106d85780633855c60d146106f85780633c461d911461071857806342842e0e1461072d57005b806318160ddd116103935780631f85e3ca116103655780631f85e3ca1461062457806323b872dd1461064457806323bc4472146106645780632a55205a14610679578063378dc0b7146106b857005b806318160ddd146105845780631820cabb1461059957806319ac6f69146105d25780631b4458cb146105f257005b8063095ea7b3116103d7578063095ea7b3146104bd5780630ad5a748146104dd57806310853d46146104f2578063141b58311461053657806316a05ed71461055657005b806301ffc9a71461040e57806304634d8d1461044357806306fdde0314610463578063081812fc1461048557005b3661040c57005b005b34801561041a57600080fd5b5061042e610429366004613f85565b610d9d565b60405190151581526020015b60405180910390f35b34801561044f57600080fd5b5061040c61045e366004613fd5565b610dae565b34801561046f57600080fd5b50610478610dc4565b60405161043a9190614058565b34801561049157600080fd5b506104a56104a036600461406b565b610e56565b6040516001600160a01b03909116815260200161043a565b3480156104c957600080fd5b5061040c6104d8366004614084565b610e7d565b3480156104e957600080fd5b5061040c610f97565b3480156104fe57600080fd5b5061052361050d3660046140c6565b61041f6020526000908152604090205460010b81565b60405160019190910b815260200161043a565b34801561054257600080fd5b5061040c6105513660046141be565b610fb4565b34801561056257600080fd5b5061057661057136600461406b565b611014565b60405190815260200161043a565b34801561059057600080fd5b50610576611031565b3480156105a557600080fd5b506008546105bd90600160d01b900463ffffffff1681565b60405163ffffffff909116815260200161043a565b3480156105de57600080fd5b5061040c6105ed366004614204565b611058565b3480156105fe57600080fd5b5061061261060d36600461421f565b611119565b60405160ff909116815260200161043a565b34801561063057600080fd5b5061040c61063f366004614257565b611203565b34801561065057600080fd5b5061040c61065f366004614274565b611229565b34801561067057600080fd5b50610612600181565b34801561068557600080fd5b506106996106943660046142b0565b611234565b604080516001600160a01b03909316835260208301919091520161043a565b3480156106c457600080fd5b5061040c6106d33660046142b0565b6112e2565b3480156106e457600080fd5b5061040c6106f33660046142d2565b611304565b34801561070457600080fd5b5061040c61071336600461434a565b611319565b34801561072457600080fd5b50610612600081565b34801561073957600080fd5b5061040c610748366004614274565b61132b565b61040c61075b366004614374565b611609565b34801561076c57600080fd5b5061040c61077b36600461439e565b6117fb565b34801561078c57600080fd5b5061057661079b3660046143b9565b6118ff565b3480156107ac57600080fd5b5061040c6107bb366004614492565b6119ac565b3480156107cc57600080fd5b5060085461061290600160c81b900460ff1681565b3480156107ed57600080fd5b5061040c6107fc366004614551565b611a3b565b34801561080d57600080fd5b5061040c611a4e565b34801561082257600080fd5b506104a561083136600461406b565b611bb7565b34801561084257600080fd5b50610856610851366004614084565b611c17565b60405161ffff909116815260200161043a565b34801561087557600080fd5b506108896108843660046141be565b611c5f565b6040516001600160701b0319909116815260200161043a565b3480156108ae57600080fd5b50610576600a5481565b3480156108c457600080fd5b506105766108d336600461439e565b611e28565b3480156108e457600080fd5b5061040c611eae565b3480156108f957600080fd5b5061090d610908366004614204565b611ec2565b60405161043a919061458d565b34801561092657600080fd5b50610576611f4d565b34801561093b57600080fd5b50610944611f87565b60405161043a91906145d2565b34801561095d57600080fd5b5061097161096c36600461439e565b611fc2565b60405161043a9190614603565b34801561098a57600080fd5b5061042e610999366004614688565b61217a565b3480156109aa57600080fd5b5061040c6109b936600461406b565b612238565b3480156109ca57600080fd5b506008546001600160a01b03166104a5565b3480156109e857600080fd5b506109fc6109f73660046146e5565b612251565b60405161043a9190614750565b348015610a1557600080fd5b5061040c61238f565b348015610a2a57600080fd5b506104786123ac565b348015610a3f57600080fd5b50610612600281565b348015610a5457600080fd5b5061040c610a6336600461477b565b6123bb565b348015610a7457600080fd5b50600a54610576565b61040c610a8b3660046147b2565b6123c6565b348015610a9c57600080fd5b5061040c61263a565b348015610ab157600080fd5b50610612610ac036600461439e565b6104166020526000908152604090205460ff1681565b348015610ae257600080fd5b50610612610af13660046141be565b61264c565b348015610b0257600080fd5b50610612600c81565b348015610b1757600080fd5b5061040c610b26366004614856565b61268f565b348015610b3757600080fd5b5061040c610b4636600461491f565b61270d565b348015610b5757600080fd5b506104a5610b66366004614204565b610419602052600090815260409020546001600160a01b031681565b348015610b8e57600080fd5b5061040c610b9d3660046141be565b61277b565b348015610bae57600080fd5b50610478610bbd36600461406b565b612790565b348015610bce57600080fd5b5061040c610bdd3660046141be565b6129ff565b348015610bee57600080fd5b5061040c610bfd3660046141be565b612a14565b348015610c0e57600080fd5b5061042e610c1d36600461439e565b612a29565b348015610c2e57600080fd5b50610889612a61565b348015610c4357600080fd5b5061040c610c523660046149d4565b612a6c565b348015610c6357600080fd5b506105bd610c72366004614204565b6104186020526000908152604090205463ffffffff1681565b348015610c9757600080fd5b50610478612a94565b348015610cac57600080fd5b5061042e610cbb3660046149ef565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610cf557600080fd5b5061040c610d04366004614a19565b612aa4565b348015610d1557600080fd5b5061040c610d2436600461439e565b612add565b348015610d3557600080fd5b5061040c610d44366004614a45565b612b53565b348015610d5557600080fd5b5061040c610d6436600461406b565b612b81565b348015610d7557600080fd5b506105bd610d84366004614204565b6104176020526000908152604090205463ffffffff1681565b6000610da882612b8e565b92915050565b610db6612bb3565b610dc08282612c0d565b5050565b606060008054610dd390614a6b565b80601f0160208091040260200160405190810160405280929190818152602001828054610dff90614a6b565b8015610e4c5780601f10610e2157610100808354040283529160200191610e4c565b820191906000526020600020905b815481529060010190602001808311610e2f57829003601f168201915b5050505050905090565b6000610e6182612cc7565b506000908152600460205260409020546001600160a01b031690565b6000610e8882611bb7565b9050806001600160a01b0316836001600160a01b031603610efa5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610f165750610f168133610cbb565b610f885760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610ef1565b610f928383612d26565b505050565b610f9f612bb3565b6008805460ff60b01b1916600160b01b179055565b610fbc612bb3565b61041c610fc98282614aed565b506008546040805160008152600160b81b90920461ffff1660208301527f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c910160405180910390a150565b6000600b826003811061102957611029614bac565b015492915050565b600061103b611f4d565b6008546110539190600160b81b900461ffff16614bd8565b905090565b61ffff8116600090815261041960205260409020546001600160a01b031633146110b35760405162461bcd60e51b815260206004820152600c60248201526b2737ba1030b71037bbb732b960a11b6044820152606401610ef1565b600854600160a81b900460ff1661ffff821611156111095760405162461bcd60e51b815260206004820152601360248201527210d85b89dd08189d5c9b881d1a1a5cc8139195606a1b6044820152606401610ef1565b6111168161ffff16612d94565b50565b6040516001600160f81b03198216602082015260009081906021016040516020818303038152906040528051906020012090508060405160200161116490606160f81b815260010190565b60405160208183030381529060405280519060200120036111885750600092915050565b604051603160f91b6020820152819060210160405160208183030381529060405280519060200120036111be5750600192915050565b604051606360f81b6020820152819060210160405160208183030381529060405280519060200120036111f45750600292915050565b50600192915050565b50919050565b61120b612bb3565b60088054911515600160a01b0260ff60a01b19909216919091179055565b610f9283838361132b565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916112a95750604080518082019091526006546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906112c8906001600160601b031687614beb565b6112d29190614c18565b91519350909150505b9250929050565b6112ea612bb3565b80600b83600381106112fe576112fe614bac565b01555050565b61130c612bb3565b610dc0600e826002613ee4565b611321612bb3565b610dc08282612e29565b600061133c64010000000042614c2c565b61ffff831660009081526104176020526040902054909150829063ffffffff8084169116106113965760405162461bcd60e51b8152602060048201526006602482015265131bd8dad95960d21b6044820152606401610ef1565b6113a585858361ffff1661324f565b6001600160a01b038416600081815261041a6020908152604080832080546001810182559084528284206010820401805461ffff8089166002600f909516949094026101000a8481029102199091161790558352610419909152812080546001600160a01b0319169092179091555b6001600160a01b038616600090815261041a60205260409020548110156114fb576001600160a01b038616600090815261041a60205260409020805461ffff841691908390811061146757611467614bac565b60009182526020909120601082040154600f9091166002026101000a900461ffff16036114e9576001600160a01b038616600090815261041a602052604081208054839081106114b9576114b9614bac565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055505b806114f381614c40565b915050611414565b505b6001600160a01b038516600090815261041a60205260409020541580159061157b57506001600160a01b038516600090815261041a60205260409020805461154790600190614c59565b8154811061155757611557614bac565b60009182526020909120601082040154600f9091166002026101000a900461ffff16155b156115d9576001600160a01b038516600090815261041a602052604090208054806115a8576115a8614c6c565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a021916905590556114fd565b61ffff16600090815261041860205260409020805463ffffffff191663ffffffff92909216919091179055505050565b6008543390600160a01b900460ff166116345760405162461bcd60e51b8152600401610ef190614c82565b60018360ff161015801561167e57506008546001600160a01b0382166000908152610416602052604090205460ff600160c81b909204821691611678911685614cac565b60ff1611155b61169a5760405162461bcd60e51b8152600401610ef190614cc5565b6116a4828461217a565b6116e15760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b21031b7bab837b760911b6044820152606401610ef1565b600160115b60ff811615611740576000848260ff166012811061170657611706614bac565b1a60f81b90506001600160f81b031981161561172d5761172581611119565b925050611740565b508061173881614ced565b9150506116e6565b50611752828560ff168360ff166118ff565b34146117915760405162461bcd60e51b815260206004820152600e60248201526d09cdee840cadcdeeaced0408aa8960931b6044820152606401610ef1565b61179b8285612e29565b6001600160701b03198316600090815261041f60205260408120546117c69186900b9060010b614d0a565b6001600160701b031993909316600090815261041f60205260409020805461ffff191661ffff90941693909317909255505050565b611803612bb3565b47806118655760405162461bcd60e51b815260206004820152602b60248201527f4e6f7468696e6720746f2077697468647261773b20636f6e747261637420626160448201526a6c616e636520656d70747960a81b6064820152608401610ef1565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146118b2576040519150601f19603f3d011682016040523d82523d6000602084013e6118b7565b606091505b5050905080610f925760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610ef1565b6001600160a01b038316600090815261041a60205260408120541515818161193b57600b846003811061193457611934614bac565b015461193e565b60005b600a548361194d576001611950565b60005b60ff1661195d9190614beb565b86600a5461196b9190614beb565b6119759190614c59565b61197f9190614bd8565b9050846004036119a357600a611996826009614beb565b6119a09190614c18565b90505b95945050505050565b6119b4612bb3565b60005b8251811015610f92578181815181106119d2576119d2614bac565b602002602001015161041f60008584815181106119f1576119f1614bac565b6020908102919091018101516001600160701b0319168252810191909152604001600020805461ffff191661ffff9290921691909117905580611a3381614c40565b9150506119b7565b611a43612bb3565b610f9283838361326a565b611a56612bb3565b600854600160a01b900460ff1615611aa75760405162461bcd60e51b8152602060048201526014602482015273135a5b9d08185b1c9958591e481cdd185c9d195960621b6044820152606401610ef1565b600854600160b81b900461ffff1615611b025760405162461bcd60e51b815260206004820152601860248201527f536f6d657468696e6720616c7265616479206d696e74656400000000000000006044820152606401610ef1565b60015b600c8111611ba15760088054600160b81b900461ffff16906017611b2883614d2d565b91906101000a81548161ffff021916908361ffff16021790555050611b6133600860179054906101000a900461ffff1661ffff16613335565b60085461ffff600160b81b9091041660009081526104196020526040902080546001600160a01b03191633179055611b9a816001614bd8565b9050611b05565b506008805460ff60a81b1916600360aa1b179055565b6000818152600260205260408120546001600160a01b031680610da85760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610ef1565b61041a6020528160005260406000208181548110611c3457600080fd5b9060005260206000209060109182820401919006600202915091509054906101000a900461ffff1681565b60008082516002611c709190614beb565b6001600160401b03811115611c8757611c876140e1565b6040519080825280601f01601f191660200182016040528015611cb1576020820181803683370190505b509050600060405180606001604052806021815260200161518360219139905060005b8451811015611dec57818251868381518110611cf257611cf2614bac565b0160200151611d04919060f81c614c18565b81518110611d1457611d14614bac565b01602001516001600160f81b03191683611d2f836002614beb565b81518110611d3f57611d3f614bac565b60200101906001600160f81b031916908160001a905350818251868381518110611d6b57611d6b614bac565b0160200151611d7d919060f81c614c2c565b81518110611d8d57611d8d614bac565b01602001516001600160f81b03191683611da8836002614beb565b611db3906001614bd8565b81518110611dc357611dc3614bac565b60200101906001600160f81b031916908160001a90535080611de481614c40565b915050611cd4565b5081604051602001611dfe9190614d4e565b604051602081830303815290604052611e1690614d6a565b6001600160b01b031916949350505050565b60006001600160a01b038216611e925760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610ef1565b506001600160a01b031660009081526003602052604090205490565b611eb6612bb3565b611ec060006134c0565b565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915260006040518060a00160405280611f0385613512565b15158152602001611f138561358d565b15158152602001611f23856135d4565b15158152602001611f3385613654565b151581526020018461ffff16815250905080915050919050565b60095460009061ffff6401000000008204811691611f749162010000820481169116614da1565b611f7e9190614da1565b61ffff16905090565b611f8f613f3c565b60408051606081019182905290600b9060039082845b815481526020019060010190808311611fa5575050505050905090565b6001600160a01b038116600090815261041a6020526040812054606091906001600160401b03811115611ff757611ff76140e1565b60405190808252806020026020018201604052801561205057816020015b6040805160a0810182526000808252602080830182905292820181905260608201819052608082015282526000199092019101816120155790505b5090506000805b6001600160a01b038516600090815261041a602052604090205461ffff82161015612171576001600160a01b038516600090815261041a60205260409020805461ffff83169081106120ab576120ab614bac565b60009182526020909120601082040154600f9091166002026101000a900461ffff161561215f576001600160a01b038516600090815261041a60205260409020805461212f919061ffff841690811061210657612106614bac565b90600052602060002090601091828204019190066002029054906101000a900461ffff16611ec2565b838361ffff168151811061214557612145614bac565b6020026020010181905250818061215b90614d2d565b9250505b8061216981614d2d565b915050612057565b50909392505050565b600854600090600160a01b900460ff166121a65760405162461bcd60e51b8152600401610ef190614c82565b60018260ff16101580156121ca575060085460ff600160c81b909104811690831611155b6121e65760405162461bcd60e51b8152600401610ef190614cc5565b6001600160701b03198316600090815261041f602052604081205460010b90811380156122225750600061221c84820b83614d0a565b60010b12155b80612230575060008160010b125b949350505050565b612240612bb3565b600090815260076020526040812055565b612259613f3c565b60005b60028160010b1215612367576000600e8261ffff166002811061228157612281614bac565b01546040516323727ff960e21b81526001600160a01b0390911690638dc9ffe4906122b6908a908a908a908a90600401614dec565b6040805180830381865afa1580156122d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122f69190614e1e565b9050600019816000602002015160010b13801561231e5750600019816001602002015160010b135b1561235457604080516060810182528251600190810b8252602093840151810b938201939093529290910b908201529050612230565b508061235f81614e7c565b91505061225c565b5050604080516060810182526000198082526020820181905291810191909152949350505050565b612397612bb3565b6008805460ff60b01b1916600160b11b179055565b606060018054610dd390614a6b565b610dc033838361367f565b6008543390600160a01b900460ff166123f15760405162461bcd60e51b8152600401610ef190614c82565b60018760ff161015801561243b57506008546001600160a01b0382166000908152610416602052604090205460ff600160c81b909204821691612435911689614cac565b60ff1611155b6124575760405162461bcd60e51b8152600401610ef190614cc5565b60006124628761264c565b90506000600e8460ff166002811061247c5761247c614bac565b01546040516315487e8360e01b81526001600160a01b03909116906315487e83906124b1908b908b908b908b90600401614e9c565b602060405180830381865afa1580156124ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124f29190614ee1565b9050806125355760405162461bcd60e51b815260206004820152601160248201527015985b1a59185d1a5bdb8819985a5b1959607a1b6044820152606401610ef1565b60108561ffff16612134811061254d5761254d614bac565b602081049091015460ff601f9092166101000a9004161561259c5760405162461bcd60e51b815260206004820152600960248201526810dbd919481d5cd95960ba1b6044820152606401610ef1565b6125ad838a60ff168460ff166118ff565b34146125ec5760405162461bcd60e51b815260206004820152600e60248201526d09cdee840cadcdeeaced0408aa8960931b6044820152606401610ef1565b600160108661ffff16612134811061260657612606614bac565b602091828204019190066101000a81548160ff02191690831515021790555061262f838a612e29565b505050505050505050565b612642612bb3565b611ec06000600655565b6000806001835161265d9190614c59565b905061268883828151811061267457612674614bac565b01602001516001600160f81b031916611119565b9392505050565b612699338361374d565b6126fb5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608401610ef1565b612707848484846137cb565b50505050565b612715612bb3565b60005b82518161ffff161015610f9257612769838261ffff168151811061273e5761273e614bac565b6020026020010151838361ffff168151811061275c5761275c614bac565b6020026020010151612e29565b8061277381614d2d565b915050612718565b612783612bb3565b61041b610fc98282614aed565b61ffff8116600090815261041960205260409020546060906001600160a01b03166127de5761041b6040516020016127c89190614f71565b6040516020818303038152906040529050919050565b600854600160a81b900460ff16821161284557600854600160b01b900460ff161561282757600854600160b01b900460ff1660011461281f5761041d61282b565b61041c61282b565b61041b5b612834836137fe565b6040516020016127c8929190614f99565b600061285083611ec2565b600854909150600160b01b900460ff16158061286b57508051155b1561289a5761041b6040516020016128839190614f71565b604051602081830303815290604052915050919050565b60006101d9846117d481106128b1576128b1614bac565b602081049091015460ff601f9092166101000a90041661293a5761011a846117d481106128e0576128e0614bac565b602081049091015460ff601f9092166101000a90041661291a5760405180604001604052806002815260200161332d60f01b815250612956565b60405180604001604052806002815260200161322d60f01b815250612956565b60405180604001604052806002815260200161312d60f01b8152505b612991610298866117d4811061296e5761296e614bac565b601091828204019190066002029054906101000a900461ffff1661ffff166137fe565b6040516020016129a2929190614fce565b60408051601f19818403018152919052600854909150600160b01b900460ff166001146129d15761041d6129d5565b61041c5b816040516020016129e7929190614f99565b60405160208183030381529060405292505050919050565b612a07612bb3565b61041d610fc98282614aed565b612a1c612bb3565b61041e610fc98282614aed565b600060001961041f6000612a3c85613890565b6001600160701b031916815260208101919091526040016000205460010b1292915050565b600061105333613890565b612a74612bb3565b6008805460ff909216600160c81b0260ff60c81b19909216919091179055565b606061041e8054610dd390614a6b565b612aac612bb3565b6001600160701b031991909116600090815261041f60205260409020805461ffff191661ffff909216919091179055565b612ae5612bb3565b6001600160a01b038116612b4a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ef1565b611116816134c0565b612b5b612bb3565b6008805463ffffffff909216600160d01b0263ffffffff60d01b19909216919091179055565b612b89612bb3565b600a55565b60006001600160e01b0319821663152a902d60e11b1480610da85750610da8826138d5565b6008546001600160a01b03163314611ec05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef1565b6127106001600160601b0382161115612c385760405162461bcd60e51b8152600401610ef190614ffd565b6001600160a01b038216612c8e5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610ef1565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b6000818152600260205260409020546001600160a01b03166111165760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610ef1565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612d5b82611bb7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612d9f82611bb7565b9050612daa82611bb7565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006003612e35613925565b612e3f9190614c2c565b90506000612e5264010000000042614c2c565b905060015b8360ff1681116132045760088054600160b81b900461ffff16906017612e7c83614d2d565b91906101000a81548161ffff021916908361ffff1602179055505060005b60048110156131f15780600303612ee25760405162461bcd60e51b815260206004820152600c60248201526b139bc81391951cc81b19599d60a21b6044820152606401610ef1565b6003612eef856001614bd8565b612ef99190614c2c565b9350600060098560038110612f1057612f10614bac565b601091828204019190066002029054906101000a900461ffff1661ffff1611156131df57600854612f4d908790600160b81b900461ffff16613335565b60085484159061011a90600160b81b900461ffff166117d48110612f7357612f73614bac565b602081049091018054921515601f9092166101000a91820260ff9092021990921617905560085460018514906101d99061ffff600160b81b909104166117d48110612fc057612fc0614bac565b602091828204019190066101000a81548160ff02191690831515021790555060098460038110612ff257612ff2614bac565b601081049190910154600854600f9092166002026101000a900461ffff9081169161029891600160b81b909104166117d4811061303157613031614bac565b601091828204019190066002026101000a81548161ffff021916908361ffff1602179055506009846003811061306957613069614bac565b6010918282040191900660020281819054906101000a900461ffff168092919061309290615047565b91906101000a81548161ffff021916908361ffff160217905550508060001480156130d457506001600160a01b038616600090815261041a6020526040902054155b1561315a576008546130f390600160d01b900463ffffffff168461505b565b600854600160b81b900461ffff16600090815261041760205260408120805463ffffffff191663ffffffff939093169290921790915561313287613a30565b6001600160701b031916600090815261041f60205260409020805461ffff191661ffff179055505b60088054600160b81b9081900461ffff90811660009081526104196020908152604080832080546001600160a01b0319166001600160a01b038e16908117909155835261041a8252822094548554600181018755958352912060108504018054600f9095166002026101000a80840219909516939091049091169092021790556131f1565b6131ea816001614bd8565b9050612e9a565b506131fd816001614bd8565b9050612e57565b506001600160a01b038416600090815261041660205260408120805485929061323190849060ff16614cac565b92506101000a81548160ff021916908360ff16021790555050505050565b610f928383836040518060200160405280600081525061268f565b6127106001600160601b03821611156132955760405162461bcd60e51b8152600401610ef190614ffd565b6001600160a01b0382166132eb5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610ef1565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600790529190942093519051909116600160a01b029116179055565b6001600160a01b03821661338b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ef1565b6000818152600260205260409020546001600160a01b0316156133f05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ef1565b6000818152600260205260409020546001600160a01b0316156134555760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ef1565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600854600090600160b01b900460ff1660021480610da85750600854600160b01b900460ff16600114801561355f575061ffff82166000908152610418602052604090205463ffffffff16155b8015610da8575061ffff821660009081526104196020526040902054610da8906001600160a01b0316612a29565b600061359882613512565b8015610da8575061011a8261ffff166117d481106135b8576135b8614bac565b602081049091015460ff601f9092166101000a90041692915050565b60006135df82613512565b801561361757506101d98261ffff166117d481106135ff576135ff614bac565b602081049091015460ff601f9092166101000a900416155b8015610da8575061011a8261ffff166117d4811061363757613637614bac565b602081049091015460ff601f9092166101000a9004161592915050565b600061365f82613512565b8015610da857506101d98261ffff166117d481106135b8576135b8614bac565b816001600160a01b0316836001600160a01b0316036136e05760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ef1565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60008061375983611bb7565b9050806001600160a01b0316846001600160a01b031614806137a057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806122305750836001600160a01b03166137b984610e56565b6001600160a01b031614949350505050565b6137d6848484613acd565b6137e284848484613c31565b6127075760405162461bcd60e51b8152600401610ef190615078565b6060600061380b83613d2f565b60010190506000816001600160401b0381111561382a5761382a6140e1565b6040519080825280601f01601f191660200182016040528015613854576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461385e57509392505050565b60008061389c83613a30565b6001600160701b03198116600090815261041f602052604081205491925060019190910b12156138cc5792915050565b50600092915050565b60006001600160e01b031982166380ac58cd60e01b148061390657506001600160e01b03198216635b5e139f60e01b145b80610da857506301ffc9a760e01b6001600160e01b0319831614610da8565b6040516001600160601b03193360601b1660208201526000908190439042906034016040516020818303038152906040528051906020012060001c61396a9190614c18565b6040516001600160601b03194160601b166020820152459042906034016040516020818303038152906040528051906020012060001c6139aa9190614c18565b6139b44442614bd8565b6139be9190614bd8565b6139c89190614bd8565b6139d29190614bd8565b6139dc9190614bd8565b6040516020016139ee91815260200190565b60408051601f1981840301815291905280516020909101209050613a146103e882614c18565b613a20906103e8614beb565b613a2a9082614c59565b91505090565b6040516001600160601b0319606083901b166020820152650616e747265760d41b60348201526000908190600290603a0160408051601f1981840301815290829052613a7b91614d4e565b602060405180830381855afa158015613a98573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190613abb91906150ca565b90506126886108848260016004613e07565b826001600160a01b0316613ae082611bb7565b6001600160a01b031614613b065760405162461bcd60e51b8152600401610ef1906150e3565b6001600160a01b038216613b685760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610ef1565b826001600160a01b0316613b7b82611bb7565b6001600160a01b031614613ba15760405162461bcd60e51b8152600401610ef1906150e3565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006001600160a01b0384163b15613d2757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613c75903390899088908890600401615128565b6020604051808303816000875af1925050508015613cb0575060408051601f3d908101601f19168201909252613cad91810190615165565b60015b613d0d573d808015613cde576040519150601f19603f3d011682016040523d82523d6000602084013e613ce3565b606091505b508051600003613d055760405162461bcd60e51b8152600401610ef190615078565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612230565b506001612230565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310613d6e5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310613d9a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310613db857662386f26fc10000830492506010015b6305f5e1008310613dd0576305f5e100830492506008015b6127108310613de457612710830492506004015b60648310613df6576064830492506002015b600a8310610da85760010192915050565b60606020821115613e1757602091505b6000613e238484614c59565b613e2e906001614bd8565b6001600160401b03811115613e4557613e456140e1565b6040519080825280601f01601f191660200182016040528015613e6f576020820181803683370190505b50905060005b613e7f8585614c59565b8111613edb578560018683010360208110613e9c57613e9c614bac565b1a60f81b828281518110613eb257613eb2614bac565b60200101906001600160f81b031916908160001a90535080613ed381614c40565b915050613e75565b50949350505050565b8260028101928215613f2c579160200282015b82811115613f2c57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190613ef7565b50613f38929150613f5a565b5090565b60405180606001604052806003906020820280368337509192915050565b5b80821115613f385760008155600101613f5b565b6001600160e01b03198116811461111657600080fd5b600060208284031215613f9757600080fd5b813561268881613f6f565b80356001600160a01b0381168114613fb957600080fd5b919050565b80356001600160601b0381168114613fb957600080fd5b60008060408385031215613fe857600080fd5b613ff183613fa2565b9150613fff60208401613fbe565b90509250929050565b60005b8381101561402357818101518382015260200161400b565b50506000910152565b60008151808452614044816020860160208601614008565b601f01601f19169290920160200192915050565b602081526000612688602083018461402c565b60006020828403121561407d57600080fd5b5035919050565b6000806040838503121561409757600080fd5b6140a083613fa2565b946020939093013593505050565b80356001600160701b031981168114613fb957600080fd5b6000602082840312156140d857600080fd5b612688826140ae565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715614119576141196140e1565b60405290565b604051601f8201601f191681016001600160401b0381118282101715614147576141476140e1565b604052919050565b600082601f83011261416057600080fd5b81356001600160401b03811115614179576141796140e1565b61418c601f8201601f191660200161411f565b8181528460208386010111156141a157600080fd5b816020850160208301376000918101602001919091529392505050565b6000602082840312156141d057600080fd5b81356001600160401b038111156141e657600080fd5b6122308482850161414f565b803561ffff81168114613fb957600080fd5b60006020828403121561421657600080fd5b612688826141f2565b60006020828403121561423157600080fd5b81356001600160f81b03198116811461268857600080fd5b801515811461111657600080fd5b60006020828403121561426957600080fd5b813561268881614249565b60008060006060848603121561428957600080fd5b61429284613fa2565b92506142a060208501613fa2565b9150604084013590509250925092565b600080604083850312156142c357600080fd5b50508035926020909101359150565b6000604082840312156142e457600080fd5b82601f8301126142f357600080fd5b6142fb6140f7565b80604084018581111561430d57600080fd5b845b8181101561432e5761432081613fa2565b84526020938401930161430f565b509095945050505050565b803560ff81168114613fb957600080fd5b6000806040838503121561435d57600080fd5b61436683613fa2565b9150613fff60208401614339565b6000806040838503121561438757600080fd5b61439083614339565b9150613fff602084016140ae565b6000602082840312156143b057600080fd5b61268882613fa2565b6000806000606084860312156143ce57600080fd5b6143d784613fa2565b95602085013595506040909401359392505050565b60006001600160401b03821115614405576144056140e1565b5060051b60200190565b8060010b811461111657600080fd5b600082601f83011261442f57600080fd5b8135602061444461443f836143ec565b61411f565b82815260059290921b8401810191818101908684111561446357600080fd5b8286015b8481101561448757803561447a8161440f565b8352918301918301614467565b509695505050505050565b600080604083850312156144a557600080fd5b82356001600160401b03808211156144bc57600080fd5b818501915085601f8301126144d057600080fd5b813560206144e061443f836143ec565b82815260059290921b840181019181810190898411156144ff57600080fd5b948201945b8386101561452457614515866140ae565b82529482019490820190614504565b9650508601359250508082111561453a57600080fd5b506145478582860161441e565b9150509250929050565b60008060006060848603121561456657600080fd5b8335925061457660208501613fa2565b915061458460408501613fbe565b90509250925092565b60a08101610da8828480511515825260208101511515602083015260408101511515604083015260608101511515606083015261ffff60808201511660808301525050565b60608101818360005b60038110156145fa5781518352602092830192909101906001016145db565b50505092915050565b6020808252825182820181905260009190848201906040850190845b8181101561467c5761466983855180511515825260208101511515602083015260408101511515604083015260608101511515606083015261ffff60808201511660808301525050565b9284019260a0929092019160010161461f565b50909695505050505050565b6000806040838503121561469b57600080fd5b614366836140ae565b60008083601f8401126146b657600080fd5b5081356001600160401b038111156146cd57600080fd5b6020830191508360208285010111156112db57600080fd5b600080600080604085870312156146fb57600080fd5b84356001600160401b038082111561471257600080fd5b61471e888389016146a4565b9096509450602087013591508082111561473757600080fd5b50614744878288016146a4565b95989497509550505050565b60608101818360005b60038110156145fa578151600190810b84526020938401939092019101614759565b6000806040838503121561478e57600080fd5b61479783613fa2565b915060208301356147a781614249565b809150509250929050565b60008060008060008060c087890312156147cb57600080fd5b6147d487614339565b955060208701356001600160401b03808211156147f057600080fd5b6147fc8a838b0161414f565b9650604089013591508082111561481257600080fd5b5061481f89828a0161414f565b94505061482e606088016141f2565b925061483c608088016141f2565b915061484a60a08801614339565b90509295509295509295565b6000806000806080858703121561486c57600080fd5b61487585613fa2565b935061488360208601613fa2565b92506040850135915060608501356001600160401b038111156148a557600080fd5b6148b18782880161414f565b91505092959194509250565b600082601f8301126148ce57600080fd5b813560206148de61443f836143ec565b82815260059290921b840181019181810190868411156148fd57600080fd5b8286015b848110156144875761491281614339565b8352918301918301614901565b6000806040838503121561493257600080fd5b82356001600160401b038082111561494957600080fd5b818501915085601f83011261495d57600080fd5b8135602061496d61443f836143ec565b82815260059290921b8401810191818101908984111561498c57600080fd5b948201945b838610156149b1576149a286613fa2565b82529482019490820190614991565b965050860135925050808211156149c757600080fd5b50614547858286016148bd565b6000602082840312156149e657600080fd5b61268882614339565b60008060408385031215614a0257600080fd5b614a0b83613fa2565b9150613fff60208401613fa2565b60008060408385031215614a2c57600080fd5b614a35836140ae565b915060208301356147a78161440f565b600060208284031215614a5757600080fd5b813563ffffffff8116811461268857600080fd5b600181811c90821680614a7f57607f821691505b6020821081036111fd57634e487b7160e01b600052602260045260246000fd5b601f821115610f9257600081815260208120601f850160051c81016020861015614ac65750805b601f850160051c820191505b81811015614ae557828155600101614ad2565b505050505050565b81516001600160401b03811115614b0657614b066140e1565b614b1a81614b148454614a6b565b84614a9f565b602080601f831160018114614b4f5760008415614b375750858301515b600019600386901b1c1916600185901b178555614ae5565b600085815260208120601f198616915b82811015614b7e57888601518255948401946001909101908401614b5f565b5085821015614b9c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610da857610da8614bc2565b8082028115828204841417610da857610da8614bc2565b634e487b7160e01b600052601260045260246000fd5b600082614c2757614c27614c02565b500490565b600082614c3b57614c3b614c02565b500690565b600060018201614c5257614c52614bc2565b5060010190565b81810381811115610da857610da8614bc2565b634e487b7160e01b600052603160045260246000fd5b60208082526010908201526f135a5b9d081b9bdd081cdd185c9d195960821b604082015260600190565b60ff8181168382160190811115610da857610da8614bc2565b6020808252600e908201526d57726f6e67207175616e7469747960901b604082015260600190565b600060ff821680614d0057614d00614bc2565b6000190192915050565b600182810b9082900b03617fff198112617fff82131715610da857610da8614bc2565b600061ffff808316818103614d4457614d44614bc2565b6001019392505050565b60008251614d60818460208701614008565b9190910192915050565b805160208201516001600160b01b0319808216929190600a831015614d9957808184600a0360031b1b83161693505b505050919050565b61ffff818116838216019080821115614dbc57614dbc614bc2565b5092915050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b604081526000614e00604083018688614dc3565b8281036020840152614e13818587614dc3565b979650505050505050565b600060408284031215614e3057600080fd5b82601f830112614e3f57600080fd5b614e476140f7565b806040840185811115614e5957600080fd5b845b8181101561432e578051614e6e8161440f565b845260209384019301614e5b565b60008160010b617fff8103614e9357614e93614bc2565b60010192915050565b608081526000614eaf608083018761402c565b8281036020840152614ec1818761402c565b91505061ffff808516604084015280841660608401525095945050505050565b600060208284031215614ef357600080fd5b815161268881614249565b60008154614f0b81614a6b565b60018281168015614f235760018114614f3857614f67565b60ff1984168752821515830287019450614f67565b8560005260208060002060005b85811015614f5e5781548a820152908401908201614f45565b50505082870194505b5050505092915050565b6000614f7d8284614efe565b6b3232b330bab63a173539b7b760a11b8152600c019392505050565b6000614fa58285614efe565b8351614fb5818360208801614008565b64173539b7b760d91b9101908152600501949350505050565b60008351614fe0818460208801614008565b835190830190614ff4818360208801614008565b01949350505050565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b600061ffff821680614d0057614d00614bc2565b63ffffffff818116838216019080821115614dbc57614dbc614bc2565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000602082840312156150dc57600080fd5b5051919050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061515b9083018461402c565b9695505050505050565b60006020828403121561517757600080fd5b815161268881613f6f56fe303132333435363738396465666768696a6b6c6d6e6f707172737475767778797aa2646970667358221220c49767b713cdaf1a23c53c9258c1ebd62cbecb6414c48427f6993c9ee25c3b3e64736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000081757cf3c16a0ab9ce2cb33bad1b28451f79cee000000000000000000000000817e09a4004ff64c573ce40561067f53b480a4770000000000000000000000000000000000000000000000000000000000000995000000000000000000000000000000000000000000000000000000000000073e000000000000000000000000000000000000000000000000000000000000069c00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000001054686520416e742052657075626c6963000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003416e740000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : refCodes (address[2]): 0x081757CF3c16A0Ab9ce2Cb33bAd1B28451F79CEe,0x817e09a4004Ff64c573CE40561067F53B480A477
Arg [1] : nftCounts (uint16[3]): 2453,1854,1692
Arg [2] : name_ (string): The Ant Republic
Arg [3] : symbol_ (string): Ant
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 000000000000000000000000081757cf3c16a0ab9ce2cb33bad1b28451f79cee
Arg [1] : 000000000000000000000000817e09a4004ff64c573ce40561067f53b480a477
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000995
Arg [3] : 000000000000000000000000000000000000000000000000000000000000073e
Arg [4] : 000000000000000000000000000000000000000000000000000000000000069c
Arg [5] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [8] : 54686520416e742052657075626c696300000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [10] : 416e740000000000000000000000000000000000000000000000000000000000
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.