ERC-721
Overview
Max Total Supply
2,761 LAYERS
Holders
660
Market
Volume (24H)
0.0698 ETH
Min Price (24H)
$245.54 @ 0.069800 ETH
Max Price (24H)
$245.54 @ 0.069800 ETH
Other Info
Token Contract
Balance
0 LAYERSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
VhilsNFT
Compiler Version
v0.8.9+commit.e5eed63a
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.9; import { NFTEnumerable, IERC721 } from "./base/NFTEnumerable.sol"; import { ERC1155Holder, ERC1155Receiver } from "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; // %/ // %@@@ @@@@@/ @@@# @@@ .@@@@@@@@@( @@@@@@@@@@@ @@@@ *@@@@ // %@@@ @@@ @@@ ,@@@@@@@ .@@@ @@@ @@@ @@@@ // %@@@ @@@ @@@ @@@@ .@@@@@@@@@ @@@@@@@@@@ @@@@@@@@ // %@@@ @@@@@@@@@@@ ,@@@ .@@@ @@@ @@@ &@@( @@@ // %@@@@@@@@% *@@@ @@@ ,@@@ .@@@@@@@@@( @@@ @@@ @@@@@@@@ // Vhils + DRP + Pellar 2022 contract VhilsNFT is NFTEnumerable, ERC1155Holder { using Strings for uint256; enum LEVEL { BASE, TEAR_1, TEAR_2, TEAR_3 } struct TokenInfo { LEVEL state; bool locked; uint8[4] tearIdUsed; uint64 name; string uri; } // constants uint256 public constant PRICE = 0.2 ether; uint8 public constant MAX_PER_WALLET = 5; uint8 public constant MAX_PER_TXN = 5; uint16 public constant MAX_SUPPLY = 10000; uint16 public constant PRESALE_SUPPLY = 9000; uint16 public constant TEAM_SUPPLY = 978; // variables uint16 public teamClaimed; uint16 public presaleClaimed; uint16 public saleClaimed; mapping(uint8 => mapping(uint8 => string)) public baseStateURI; mapping(uint8 => bool) public tearActive; mapping(address => uint16) public tokenClaimed; mapping(uint16 => TokenInfo) public tokens; event TEAR(address indexed from, uint16 indexed tokenId, uint8 tearId, uint256 blockNumber, uint256 timestamp); event LOCK(address indexed from, uint16 indexed tokenId, bool status, uint256 blockNumber, uint256 timestamp); constructor() NFTEnumerable() { defaultURI = 'ipfs://QmeUuVjpM9zrYiz2nMKo41T3wjRRnr4qp4Shn7ngHgfSVX/'; } function supportsInterface(bytes4 interfaceId) public view virtual override(NFTEnumerable, ERC1155Receiver) returns (bool) { return super.supportsInterface(interfaceId); } /** View */ function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), "Non exists token"); // fallback uri if (!isBlank(backupURI)) { return string(abi.encodePacked(backupURI, _tokenId.toString())); } // specific uri if (!isBlank(tokens[uint16(_tokenId)].uri)) { return tokens[uint16(_tokenId)].uri; } // state uri if (tokens[uint16(_tokenId)].name > 0) { uint8 state = uint8(tokens[uint16(_tokenId)].state); uint8 tearId = tokens[uint16(_tokenId)].tearIdUsed[state]; return string(abi.encodePacked(baseStateURI[state][tearId], Strings.toString(tokens[uint16(_tokenId)].name))); } // default return string(abi.encodePacked(defaultURI, _tokenId.toString())); } function getTokenInfo(uint16 _tokenId) public view returns (TokenInfo memory) { return tokens[_tokenId]; } /** User */ function presaleMint(uint16 _maxAmount, bytes calldata _signature, uint16 _amount) external payable { require(tx.origin == msg.sender, "Not allowed"); // no contract require(presaleActive, "Not active"); // sale active require(_amount <= MAX_PER_TXN, "Exceed txn"); // txn limit require(eligibleByWhitelist(_maxAmount, msg.sender, _signature, _amount), "Not eligible"); // eligible to claim require(presaleClaimed + saleClaimed + _amount + TEAM_SUPPLY <= MAX_SUPPLY, "Exceed supply"); // supply limit require(presaleClaimed + _amount <= PRESALE_SUPPLY, "Exceed supply"); // supply limit require(msg.value >= PRICE * _amount, "Insufficient ether"); uint16 claimed = presaleClaimed + saleClaimed; uint16 tearReward = _amount; for (uint16 i = 0; i < _amount; i++) { uint16 tokenId = claimed + i; _mint(msg.sender, tokenId); if ((tokenId * 10 % 75) == 0) { tearReward += 2; } else if (tokenId % 10 == 0) { tearReward += 1; } } ITEAR(tearContract).safeTransferFrom(address(this), msg.sender, 1, tearReward, ""); // transfer alpha token presaleClaimed += _amount; tokenClaimed[msg.sender] += _amount; } function mint(uint16 _amount) external payable { require(tx.origin == msg.sender, "Not allowed"); // no contract require(saleActive, "Not active"); // sale active require(_amount <= MAX_PER_TXN, "Exceed txn"); // txn limit require(tokenClaimed[msg.sender] + _amount <= MAX_PER_WALLET, "Exceed wallet"); // wallet limit require(presaleClaimed + saleClaimed + _amount + TEAM_SUPPLY <= MAX_SUPPLY, "Exceed supply"); // supply limit require(msg.value >= PRICE * _amount, "Insufficient ether"); // fee uint16 claimed = presaleClaimed + saleClaimed; uint16 tearReward = _amount; for (uint16 i = 0; i < _amount; i++) { uint16 tokenId = claimed + i; _mint(msg.sender, tokenId); if ((tokenId * 10 % 75) == 0) { tearReward += 2; } else if (tokenId % 10 == 0) { tearReward += 1; } } ITEAR(tearContract).safeTransferFrom(address(this), msg.sender, 1, tearReward, ""); // transfer alpha token saleClaimed += _amount; tokenClaimed[msg.sender] += _amount; } function tear(uint16 _tokenId, uint8 _tearId, uint64 _name, bytes calldata _signature) external { uint8 tearUnit = 1; uint8 newLevel = uint8(tokens[_tokenId].state) + tearUnit; require(ownerOf(_tokenId) == msg.sender, "Not allowed"); require(eligibleTear(_tokenId), "Not eligible"); bytes32 message = keccak256(abi.encodePacked(hashKey, newLevel, _tokenId, _name, msg.sender)); require(validSignature(message, _signature), "Signature eligible"); ITEAR(tearContract).safeTransferFrom(msg.sender, address(this), _tearId, tearUnit, ""); tokens[_tokenId].name = _name; tokens[_tokenId].state = LEVEL(newLevel); tokens[_tokenId].tearIdUsed[newLevel] = _tearId; emit TEAR(msg.sender, _tokenId, _tearId, block.number, block.timestamp); } function lockToken(uint16 _tokenId, bool _status) external { require(msg.sender == ownerOf(_tokenId), "Not allowed"); tokens[_tokenId].locked = _status; emit LOCK(msg.sender, _tokenId, _status, block.number, block.timestamp); } function _beforeTokenTransfer( address _from, address _to, uint256 _tokenId ) internal virtual override { super._beforeTokenTransfer(_from, _to, _tokenId); require(!tokens[uint16(_tokenId)].locked, "Token locked"); } function eligibleTear(uint16 _tokenId) public view returns (bool) { uint8 newLevel = uint8(tokens[_tokenId].state) + 1; if (newLevel > uint8(LEVEL.TEAR_3)) { return false; } return tearActive[newLevel]; } function eligibleByWhitelist(uint16 _maxAmount, address _account, bytes memory _signature, uint16 _amount) internal view returns (bool) { bytes32 message = keccak256(abi.encodePacked(hashKey, _maxAmount, _account)); return validSignature(message, _signature) && tokenClaimed[_account] + _amount <= MAX_PER_WALLET && tokenClaimed[_account] + _amount <= _maxAmount; } function setTokenURI(uint16 _tokenId, string calldata _uri) external onlyOwner { tokens[_tokenId].uri = _uri; } function setTokenURIName(uint16 _tokenId, uint64 _name) external onlyOwner { tokens[_tokenId].name = _name; } function setBaseStateURI(LEVEL _stage, uint8 _tearId, string calldata _uri) external onlyOwner { baseStateURI[uint8(_stage)][_tearId] = _uri; } function toggleTear(LEVEL _tear, bool _status) external onlyOwner { tearActive[uint8(_tear)] = _status; } function withdrawTEAR(uint8 _tearId) external onlyOwner { uint256 balance = ITEAR(tearContract).balanceOf(address(this), _tearId); ITEAR(tearContract).safeTransferFrom(address(this), msg.sender, _tearId, balance, ""); } function withdraw() external onlyOwner { uint256 balance = address(this).balance; uint256 balanceA; uint256 balanceB; uint256 balanceC; if (balance > 2 ether) { balance = balance - 2 ether; balanceA = balance * 25 / 100; balanceB = balance * 60 / 100; balanceC = balance - balanceA - balanceB + 2 ether; } else { balanceA = balance * 25 / 100; balanceB = balance * 60 / 100; balanceC = balance - balanceA - balanceB; } (bool successA, ) = 0xDAEcAcCBA76EcCaAD1ca3398dC324e04da72De77.call{value: balanceA}(""); if (!successA) { payable(msg.sender).transfer(balanceA); } (bool successB, ) = 0x7b5e2f53bdbbbFb7fcd1f0792d671040081D4342.call{value: balanceB}(""); if (!successB) { payable(msg.sender).transfer(balanceB); } (bool successC, ) = 0x58F58f15A0D080932218D65beb8bBd83978677d7.call{value: balanceC}(""); if (!successC) { payable(msg.sender).transfer(balanceC); } } function forceWithdraw() external onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } function teamClaim(address _receiver, uint16 _amount) external onlyOwner { require(teamClaimed < TEAM_SUPPLY, "Exceed max"); uint16 start = MAX_SUPPLY - TEAM_SUPPLY + teamClaimed; uint16 max = start + _amount; for (uint16 i = start; i < max; i ++) { _mint(_receiver, i); } teamClaimed += _amount; } } interface ITEAR { function balanceOf(address, uint256) external view returns (uint256); function safeTransferFrom( address, address, uint256, uint256, bytes calldata ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import { BaseControl } from "./BaseControl.sol"; import { ERC721Royalty, ERC721, IERC721, IERC165 } from "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol"; import { IERC721Enumerable } from "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import { ERC721Burnable } from "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import { BitMaps } from "@openzeppelin/contracts/utils/structs/BitMaps.sol"; // LightLink 2022 abstract contract NFTEnumerable is BaseControl, IERC721Enumerable, ERC721Royalty, ERC721Burnable { using BitMaps for BitMaps.BitMap; // Mapping from owner to list of owned token IDs mapping(address => BitMaps.BitMap) internal _ownedTokens; // all token ids, used for enumeration BitMaps.BitMap internal _allTokens; uint256 internal totalCount; constructor() ERC721("Layers", "LAYERS") { _setDefaultRoyalty(msg.sender, 500); } function _burn(uint256 tokenId) internal virtual override(ERC721, ERC721Royalty) { super._burn(tokenId); } /** Admin */ function setDefaultRoyalty(address _receiver, uint96 _feeNumerator) external onlyOwner { _setDefaultRoyalty(_receiver, _feeNumerator); } function setTokenRoyalty( uint16 _tokenId, address _receiver, uint96 _feeNumerator ) external onlyOwner { _setTokenRoyalty(_tokenId, _receiver, _feeNumerator); } /** View */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721, ERC721Royalty) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || ERC721Royalty.supportsInterface(interfaceId); } function tokenByIndex(uint256 _index) public view virtual override returns (uint256) { require(_index < NFTEnumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); uint16 tokenId; uint16 currentIdx; for (uint16 i = 0; i < 10000; i++) { if (!_allTokens.get(i)) continue; if (currentIdx == _index) { tokenId = i; break; } currentIdx++; } return tokenId; } function tokenOfOwnerByIndex(address _owner, uint256 _index) public view virtual override returns (uint256) { require(_index < ERC721.balanceOf(_owner), "ERC721Enumerable: owner index out of bounds"); uint16 tokenId; uint16 currentIdx; for (uint16 i = 0; i < 10000; i++) { if (!_ownedTokens[_owner].get(i)) continue; if (currentIdx == _index) { tokenId = i; break; } currentIdx++; } return tokenId; } function totalSupply() public view virtual override returns (uint256) { return totalCount; } function _beforeTokenTransfer( address _from, address _to, uint256 _tokenId ) internal virtual override { super._beforeTokenTransfer(_from, _to, _tokenId); require(_from == address(0) || !tokenPaused, "Token paused"); if (_from == address(0)) { _addTokenToAllTokensEnumeration(_tokenId); } else if (_from != _to) { _removeTokenFromOwnerEnumeration(_from, _tokenId); } if (_to == address(0)) { _removeTokenFromAllTokensEnumeration(_tokenId); } else if (_to != _from) { _addTokenToOwnerEnumeration(_to, _tokenId); } } function _addTokenToOwnerEnumeration(address _to, uint256 _tokenId) private { _ownedTokens[_to].set(_tokenId); } function _addTokenToAllTokensEnumeration(uint256 _tokenId) private { _allTokens.set(_tokenId); totalCount++; } function _removeTokenFromOwnerEnumeration(address _from, uint256 _tokenId) private { _ownedTokens[_from].unset(_tokenId); } function _removeTokenFromAllTokensEnumeration(uint256 _tokenId) private { _allTokens.unset(_tokenId); if (totalCount > 0) totalCount--; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/utils/ERC1155Holder.sol) pragma solidity ^0.8.0; import "./ERC1155Receiver.sol"; /** * Simple implementation of `ERC1155Receiver` that will allow a contract to hold ERC1155 tokens. * * IMPORTANT: When inheriting this contract, you must include a way to use the received tokens, otherwise they will be * stuck. * * @dev _Available since v3.1._ */ contract ERC1155Holder is ERC1155Receiver { function onERC1155Received( address, address, uint256, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155Received.selector; } function onERC1155BatchReceived( address, address, uint256[] memory, uint256[] memory, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155BatchReceived.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; // LightLink 2022 abstract contract BaseControl is Ownable { // variables bool public presaleActive; bool public saleActive; bool public tokenPaused; address public tearContract; address public signerAccount = 0x046c2c915d899D550471d0a7b4d0FaCF79Cde290; string public hashKey = "vhils-drp"; string public backupURI; string public defaultURI; function togglePresale(bool _status) external onlyOwner { presaleActive = _status; } function toggleSale(bool _status) external onlyOwner { saleActive = _status; } function setTokenPaused(bool _status) external onlyOwner { tokenPaused = _status; } function setSignerInfo(address _signer) external onlyOwner { signerAccount = _signer; } function setHashKey(string calldata _hashKey) external onlyOwner { hashKey = _hashKey; } function setTearContract(address _contract) external onlyOwner { tearContract = _contract; } function setBackupURI(string calldata _uri) external onlyOwner { backupURI = _uri; } function setDefaultURI(string calldata _uri) external onlyOwner { defaultURI = _uri; } /** Internal */ function isBlank(string memory _string) internal pure returns (bool) { return bytes(_string).length == 0; } function splitSignature(bytes memory _sig) internal pure returns ( uint8, bytes32, bytes32 ) { require(_sig.length == 65, "Invalid signature length"); uint8 v; bytes32 r; bytes32 s; assembly { r := mload(add(_sig, 32)) s := mload(add(_sig, 64)) v := byte(0, mload(add(_sig, 96))) } return (v, r, s); } function validSignature(bytes32 _message, bytes memory _signature) internal view returns (bool) { bytes32 ethSignedMessageHash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", _message)); (uint8 v, bytes32 r, bytes32 s) = splitSignature(_signature); return ecrecover(ethSignedMessageHash, v, r, s) == signerAccount; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/ERC721Royalty.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../common/ERC2981.sol"; import "../../../utils/introspection/ERC165.sol"; /** * @dev Extension of ERC721 with the ERC2981 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. * * 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 ERC721Royalty is ERC2981, ERC721 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); _resetTokenRoyalty(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/structs/BitMaps.sol) pragma solidity ^0.8.0; /** * @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential. * Largelly inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor]. */ library BitMaps { struct BitMap { mapping(uint256 => uint256) _data; } /** * @dev Returns whether the bit at `index` is set. */ function get(BitMap storage bitmap, uint256 index) internal view returns (bool) { uint256 bucket = index >> 8; uint256 mask = 1 << (index & 0xff); return bitmap._data[bucket] & mask != 0; } /** * @dev Sets the bit at `index` to the boolean `value`. */ function setTo( BitMap storage bitmap, uint256 index, bool value ) internal { if (value) { set(bitmap, index); } else { unset(bitmap, index); } } /** * @dev Sets the bit at `index`. */ function set(BitMap storage bitmap, uint256 index) internal { uint256 bucket = index >> 8; uint256 mask = 1 << (index & 0xff); bitmap._data[bucket] |= mask; } /** * @dev Unsets the bit at `index`. */ function unset(BitMap storage bitmap, uint256 index) internal { uint256 bucket = index >> 8; uint256 mask = 1 << (index & 0xff); bitmap._data[bucket] &= ~mask; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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 (last updated v4.5.0) (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: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _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: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {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 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 { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.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) external 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: * * - `tokenId` must be already minted. * - `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 v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./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 payed 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 v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/utils/ERC1155Receiver.sol) pragma solidity ^0.8.0; import "../IERC1155Receiver.sol"; import "../../../utils/introspection/ERC165.sol"; /** * @dev _Available since v3.1._ */ abstract contract ERC1155Receiver is ERC165, IERC1155Receiver { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
{ "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":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"uint16","name":"tokenId","type":"uint16"},{"indexed":false,"internalType":"bool","name":"status","type":"bool"},{"indexed":false,"internalType":"uint256","name":"blockNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"LOCK","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":"uint16","name":"tokenId","type":"uint16"},{"indexed":false,"internalType":"uint8","name":"tearId","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"blockNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TEAR","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_PER_TXN","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_WALLET","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":"backupURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"uint8","name":"","type":"uint8"},{"internalType":"uint8","name":"","type":"uint8"}],"name":"baseStateURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_tokenId","type":"uint16"}],"name":"eligibleTear","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"forceWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_tokenId","type":"uint16"}],"name":"getTokenInfo","outputs":[{"components":[{"internalType":"enum VhilsNFT.LEVEL","name":"state","type":"uint8"},{"internalType":"bool","name":"locked","type":"bool"},{"internalType":"uint8[4]","name":"tearIdUsed","type":"uint8[4]"},{"internalType":"uint64","name":"name","type":"uint64"},{"internalType":"string","name":"uri","type":"string"}],"internalType":"struct VhilsNFT.TokenInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hashKey","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_tokenId","type":"uint16"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"lockToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_amount","type":"uint16"}],"name":"mint","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":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleClaimed","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_maxAmount","type":"uint16"},{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"uint16","name":"_amount","type":"uint16"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","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":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleClaimed","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBackupURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum VhilsNFT.LEVEL","name":"_stage","type":"uint8"},{"internalType":"uint8","name":"_tearId","type":"uint8"},{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseStateURI","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":"string","name":"_uri","type":"string"}],"name":"setDefaultURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hashKey","type":"string"}],"name":"setHashKey","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSignerInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"setTearContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setTokenPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_tokenId","type":"uint16"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_tokenId","type":"uint16"},{"internalType":"string","name":"_uri","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_tokenId","type":"uint16"},{"internalType":"uint64","name":"_name","type":"uint64"}],"name":"setTokenURIName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerAccount","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint16","name":"_amount","type":"uint16"}],"name":"teamClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"teamClaimed","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_tokenId","type":"uint16"},{"internalType":"uint8","name":"_tearId","type":"uint8"},{"internalType":"uint64","name":"_name","type":"uint64"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"tear","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"tearActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tearContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"togglePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"toggleSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum VhilsNFT.LEVEL","name":"_tear","type":"uint8"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"toggleTear","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenClaimed","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"tokens","outputs":[{"internalType":"enum VhilsNFT.LEVEL","name":"state","type":"uint8"},{"internalType":"bool","name":"locked","type":"bool"},{"internalType":"uint64","name":"name","type":"uint64"},{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_tearId","type":"uint8"}],"name":"withdrawTEAR","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
600280546001600160a01b03191673046c2c915d899d550471d0a7b4d0facf79cde29017905560c0604052600960808190526807668696c732d6472760bc1b60a09081526200005291600391906200028b565b503480156200006057600080fd5b50604051806040016040528060068152602001654c617965727360d01b815250604051806040016040528060068152602001654c415945525360d01b815250620000b9620000b36200013260201b60201c565b62000136565b8151620000ce9060089060208501906200028b565b508051620000e49060099060208401906200028b565b505050620000fb336101f46200018660201b60201c565b604051806060016040528060368152602001620051996036913980516200012b916005916020909101906200028b565b506200036e565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6127106001600160601b0382161115620001fa5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620002525760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620001f1565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b828054620002999062000331565b90600052602060002090601f016020900481019282620002bd576000855562000308565b82601f10620002d857805160ff191683800117855562000308565b8280016001018555821562000308579182015b8281111562000308578251825591602001919060010190620002eb565b50620003169291506200031a565b5090565b5b808211156200031657600081556001016200031b565b600181811c908216806200034657607f821691505b602082108114156200036857634e487b7160e01b600052602260045260246000fd5b50919050565b614e1b806200037e6000396000f3fe6080604052600436106103ef5760003560e01c806369a0295811610208578063a22cb46511610118578063c87b56dd116100ab578063e985e9c51161007a578063e985e9c514610be7578063ebfbc48b14610c30578063f23a6e6114610c50578063f2fde38b14610c7c578063f3c20de014610c9c57600080fd5b8063c87b56dd14610b72578063d404ea2314610b92578063da1b9e0814610ba7578063e4ad504e14610bc757600080fd5b8063b9c3a818116100e7578063b9c3a81814610ac7578063bc197c8114610add578063bf85790e14610b22578063c767b4df14610b4257600080fd5b8063a22cb46514610a47578063a6cbe52114610a67578063aab402e514610a87578063b88d4fde14610aa757600080fd5b806386c75e741161019b57806395d89b411161016a57806395d89b41146109af5780639603e869146109c4578063983f1273146109e45780639d44a6ae14610a04578063a15800d814610a2457600080fd5b806386c75e74146109345780638d859f3e146109555780638da5cb5b14610971578063915e1fb71461098f57600080fd5b806373138e4f116101d757806373138e4f146108d457806379d39846146108ea5780637be80b391461090a57806382f691051461091f57600080fd5b806369a029581461085f5780636b2ce7f11461087f57806370a082311461089f578063715018a6146108bf57600080fd5b80632f3346521161030357806342842e0e1161029657806351b96d921161026557806351b96d92146104f957806353135ca0146107dd5780635a3a72f9146107fe5780636352211e1461081e57806368428a1b1461083e57600080fd5b806342842e0e1461075d57806342966c681461077d5780634d2119731461079d5780634f6ccce7146107bd57600080fd5b806334b42d62116102d257806334b42d62146107005780633a367a67146107135780633ccfd60b146107285780633ea07a851461073d57600080fd5b80632f3346521461068f5780632f745c59146106aa57806331ef5c51146106ca57806332cb6b0c146106ea57600080fd5b8063101aa3121161038657806323b872dd1161035557806323b872dd146105dd57806323cf0a22146105fd57806329519457146106105780632a55205a146106305780632af80c511461066f57600080fd5b8063101aa3121461054057806318160ddd146105715780631c58e793146105905780631dc4009b146105bd57600080fd5b8063081812fc116103c2578063081812fc146104a1578063095ea7b3146104d95780630f2cdd6c146104f95780630fea1ab91461052057600080fd5b806301ffc9a7146103f457806304634d8d1461042957806304ea87031461044b57806306fdde031461047f575b600080fd5b34801561040057600080fd5b5061041461040f366004613f30565b610ccc565b60405190151581526020015b60405180910390f35b34801561043557600080fd5b50610449610444366004613f87565b610cdd565b005b34801561045757600080fd5b5060115461046c9062010000900461ffff1681565b60405161ffff9091168152602001610420565b34801561048b57600080fd5b50610494610d1e565b6040516104209190614012565b3480156104ad57600080fd5b506104c16104bc366004614025565b610db0565b6040516001600160a01b039091168152602001610420565b3480156104e557600080fd5b506104496104f436600461403e565b610e45565b34801561050557600080fd5b5061050e600581565b60405160ff9091168152602001610420565b34801561052c57600080fd5b5061044961053b366004614068565b610f5b565b34801561054c57600080fd5b5061046c61055b366004614068565b60146020526000908152604090205461ffff1681565b34801561057d57600080fd5b506010545b604051908152602001610420565b34801561059c57600080fd5b506105b06105ab366004614095565b610fa7565b60405161042091906140e8565b3480156105c957600080fd5b506104496105d83660046141a5565b61110d565b3480156105e957600080fd5b506104496105f83660046141e6565b611143565b61044961060b366004614095565b611175565b34801561061c57600080fd5b5061044961062b366004614232565b6114da565b34801561063c57600080fd5b5061065061064b36600461424d565b611522565b604080516001600160a01b039093168352602083019190915201610420565b34801561067b57600080fd5b5061044961068a3660046141a5565b6115d0565b34801561069b57600080fd5b5060115461046c9061ffff1681565b3480156106b657600080fd5b506105826106c536600461403e565b611606565b3480156106d657600080fd5b506002546104c1906001600160a01b031681565b3480156106f657600080fd5b5061046c61271081565b61044961070e36600461426f565b611707565b34801561071f57600080fd5b50610494611ac7565b34801561073457600080fd5b50610449611b55565b34801561074957600080fd5b506001546104c1906001600160a01b031681565b34801561076957600080fd5b506104496107783660046141e6565b611e14565b34801561078957600080fd5b50610449610798366004614025565b611e2f565b3480156107a957600080fd5b506104496107b83660046142e4565b611ea9565b3480156107c957600080fd5b506105826107d8366004614025565b611fdc565b3480156107e957600080fd5b5060005461041490600160a01b900460ff1681565b34801561080a57600080fd5b506104496108193660046142ff565b6120c9565b34801561082a57600080fd5b506104c1610839366004614025565b612181565b34801561084a57600080fd5b5060005461041490600160a81b900460ff1681565b34801561086b57600080fd5b5061041461087a366004614095565b6121f8565b34801561088b57600080fd5b5061044961089a366004614232565b61225f565b3480156108ab57600080fd5b506105826108ba366004614068565b6122a7565b3480156108cb57600080fd5b5061044961232e565b3480156108e057600080fd5b5061046c61232881565b3480156108f657600080fd5b50610449610905366004614329565b612364565b34801561091657600080fd5b50610449612472565b34801561092b57600080fd5b506104946124cb565b34801561094057600080fd5b5060005461041490600160b01b900460ff1681565b34801561096157600080fd5b506105826702c68af0bb14000081565b34801561097d57600080fd5b506000546001600160a01b03166104c1565b34801561099b57600080fd5b506104946109aa366004614353565b6124d8565b3480156109bb57600080fd5b506104946124fc565b3480156109d057600080fd5b506104496109df366004614394565b61250b565b3480156109f057600080fd5b506104496109ff3660046143be565b61256d565b348015610a1057600080fd5b50610449610a1f366004614433565b612883565b348015610a3057600080fd5b5060115461046c90640100000000900461ffff1681565b348015610a5357600080fd5b50610449610a62366004614476565b6128bc565b348015610a7357600080fd5b50610449610a823660046144a1565b6128c7565b348015610a9357600080fd5b50610449610aa2366004614232565b61293e565b348015610ab357600080fd5b50610449610ac23660046145b6565b612986565b348015610ad357600080fd5b5061046c6103d281565b348015610ae957600080fd5b50610b09610af836600461469c565b63bc197c8160e01b95945050505050565b6040516001600160e01b03199091168152602001610420565b348015610b2e57600080fd5b50610449610b3d366004614745565b6129be565b348015610b4e57600080fd5b50610414610b5d3660046142e4565b60136020526000908152604090205460ff1681565b348015610b7e57600080fd5b50610494610b8d366004614025565b612a09565b348015610b9e57600080fd5b50610494612d06565b348015610bb357600080fd5b50610449610bc23660046141a5565b612d13565b348015610bd357600080fd5b50610449610be2366004614797565b612d49565b348015610bf357600080fd5b50610414610c023660046147b3565b6001600160a01b039182166000908152600d6020908152604080832093909416825291909152205460ff1690565b348015610c3c57600080fd5b50610449610c4b366004614068565b612db0565b348015610c5c57600080fd5b50610b09610c6b3660046147dd565b63f23a6e6160e01b95945050505050565b348015610c8857600080fd5b50610449610c97366004614068565b612dfc565b348015610ca857600080fd5b50610cbc610cb7366004614095565b612e94565b6040516104209493929190614841565b6000610cd782612f57565b92915050565b6000546001600160a01b03163314610d105760405162461bcd60e51b8152600401610d0790614878565b60405180910390fd5b610d1a8282612f7c565b5050565b606060088054610d2d906148ad565b80601f0160208091040260200160405190810160405280929190818152602001828054610d59906148ad565b8015610da65780601f10610d7b57610100808354040283529160200191610da6565b820191906000526020600020905b815481529060010190602001808311610d8957829003601f168201915b5050505050905090565b6000818152600a60205260408120546001600160a01b0316610e295760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d07565b506000908152600c60205260409020546001600160a01b031690565b6000610e5082612181565b9050806001600160a01b0316836001600160a01b03161415610ebe5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610d07565b336001600160a01b0382161480610eda5750610eda8133610c02565b610f4c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d07565b610f568383613036565b505050565b6000546001600160a01b03163314610f855760405162461bcd60e51b8152600401610d0790614878565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b610faf613e30565b61ffff821660009081526015602052604090819020815160a081019092528054829060ff166003811115610fe557610fe56140b0565b6003811115610ff657610ff66140b0565b81528154610100900460ff161515602082015260408051608081018083529190920191906001840190600490826000855b825461010083900a900460ff168152602060019283018181049485019490930390920291018084116110275750505092845250505060028201546001600160401b03166020820152600382018054604090920191611084906148ad565b80601f01602080910402602001604051908101604052809291908181526020018280546110b0906148ad565b80156110fd5780601f106110d2576101008083540402835291602001916110fd565b820191906000526020600020905b8154815290600101906020018083116110e057829003601f168201915b5050505050815250509050919050565b6000546001600160a01b031633146111375760405162461bcd60e51b8152600401610d0790614878565b610f5660038383613e63565b61114e335b826130a4565b61116a5760405162461bcd60e51b8152600401610d07906148e8565b610f5683838361319b565b3233146111945760405162461bcd60e51b8152600401610d0790614939565b600054600160a81b900460ff166111da5760405162461bcd60e51b815260206004820152600a6024820152694e6f742061637469766560b01b6044820152606401610d07565b600561ffff8216111561121c5760405162461bcd60e51b815260206004820152600a60248201526922bc31b2b2b2103a3c3760b11b6044820152606401610d07565b3360009081526014602052604090205460059061123e90839061ffff16614974565b61ffff1611156112805760405162461bcd60e51b815260206004820152600d60248201526c115e18d95959081dd85b1b195d609a1b6044820152606401610d07565b601154612710906103d29083906112ab9061ffff640100000000820481169162010000900416614974565b6112b59190614974565b6112bf9190614974565b61ffff1611156112e15760405162461bcd60e51b8152600401610d079061499a565b6112f761ffff82166702c68af0bb1400006149c1565b34101561133b5760405162461bcd60e51b815260206004820152601260248201527124b739bab33334b1b4b2b73a1032ba3432b960711b6044820152606401610d07565b60115460009061135f9061ffff640100000000820481169162010000900416614974565b90508160005b8361ffff168161ffff1610156113f65760006113818285614974565b9050611391338261ffff16613342565b604b61139e82600a6149e0565b6113a89190614a20565b61ffff166113c2576113bb600284614974565b92506113e3565b6113cd600a82614a20565b61ffff166113e3576113e0600184614974565b92505b50806113ee81614a41565b915050611365565b5060018054604051637921219560e11b81526001600160a01b039091169163f242432a9161142d9130913391908790600401614a63565b600060405180830381600087803b15801561144757600080fd5b505af115801561145b573d6000803e3d6000fd5b5050505082601160048282829054906101000a900461ffff1661147e9190614974565b82546101009290920a61ffff818102199093169183160217909155336000908152601460205260408120805487945090926114bb91859116614974565b92506101000a81548161ffff021916908361ffff160217905550505050565b6000546001600160a01b031633146115045760405162461bcd60e51b8152600401610d0790614878565b60008054911515600160b01b0260ff60b01b19909216919091179055565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916115975750604080518082019091526006546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906115b6906001600160601b0316876149c1565b6115c09190614a9e565b91519350909150505b9250929050565b6000546001600160a01b031633146115fa5760405162461bcd60e51b8152600401610d0790614878565b610f5660048383613e63565b6000611611836122a7565b82106116735760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610d07565b60008060005b6127108161ffff1610156116fa576001600160a01b0386166000908152600e6020908152604080832060ff600886901c8116855292529091205460019183169190911b166116c6576116e8565b848261ffff1614156116da578092506116fa565b816116e481614a41565b9250505b806116f281614a41565b915050611679565b505061ffff169392505050565b3233146117265760405162461bcd60e51b8152600401610d0790614939565b600054600160a01b900460ff1661176c5760405162461bcd60e51b815260206004820152600a6024820152694e6f742061637469766560b01b6044820152606401610d07565b600561ffff821611156117ae5760405162461bcd60e51b815260206004820152600a60248201526922bc31b2b2b2103a3c3760b11b6044820152606401610d07565b6117f1843385858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250879250613490915050565b61182c5760405162461bcd60e51b815260206004820152600c60248201526b4e6f7420656c696769626c6560a01b6044820152606401610d07565b601154612710906103d29083906118579061ffff640100000000820481169162010000900416614974565b6118619190614974565b61186b9190614974565b61ffff16111561188d5760405162461bcd60e51b8152600401610d079061499a565b601154612328906118a990839062010000900461ffff16614974565b61ffff1611156118cb5760405162461bcd60e51b8152600401610d079061499a565b6118e161ffff82166702c68af0bb1400006149c1565b3410156119255760405162461bcd60e51b815260206004820152601260248201527124b739bab33334b1b4b2b73a1032ba3432b960711b6044820152606401610d07565b6011546000906119499061ffff640100000000820481169162010000900416614974565b90508160005b8361ffff168161ffff1610156119e057600061196b8285614974565b905061197b338261ffff16613342565b604b61198882600a6149e0565b6119929190614a20565b61ffff166119ac576119a5600284614974565b92506119cd565b6119b7600a82614a20565b61ffff166119cd576119ca600184614974565b92505b50806119d881614a41565b91505061194f565b5060018054604051637921219560e11b81526001600160a01b039091169163f242432a91611a179130913391908790600401614a63565b600060405180830381600087803b158015611a3157600080fd5b505af1158015611a45573d6000803e3d6000fd5b5050505082601160028282829054906101000a900461ffff16611a689190614974565b82546101009290920a61ffff81810219909316918316021790915533600090815260146020526040812080548794509092611aa591859116614974565b92506101000a81548161ffff021916908361ffff160217905550505050505050565b60058054611ad4906148ad565b80601f0160208091040260200160405190810160405280929190818152602001828054611b00906148ad565b8015611b4d5780601f10611b2257610100808354040283529160200191611b4d565b820191906000526020600020905b815481529060010190602001808311611b3057829003601f168201915b505050505081565b6000546001600160a01b03163314611b7f5760405162461bcd60e51b8152600401610d0790614878565b4760008080671bc16d674ec80000841115611c0857611ba6671bc16d674ec8000085614ab2565b93506064611bb58560196149c1565b611bbf9190614a9e565b92506064611bce85603c6149c1565b611bd89190614a9e565b915081611be58486614ab2565b611bef9190614ab2565b611c0190671bc16d674ec80000614ac9565b9050611c52565b6064611c158560196149c1565b611c1f9190614a9e565b92506064611c2e85603c6149c1565b611c389190614a9e565b915081611c458486614ab2565b611c4f9190614ab2565b90505b60405160009073daecaccba76eccaad1ca3398dc324e04da72de779085908381818185875af1925050503d8060008114611ca8576040519150601f19603f3d011682016040523d82523d6000602084013e611cad565b606091505b5050905080611ce557604051339085156108fc029086906000818181858888f19350505050158015611ce3573d6000803e3d6000fd5b505b604051600090737b5e2f53bdbbbfb7fcd1f0792d671040081d43429085908381818185875af1925050503d8060008114611d3b576040519150601f19603f3d011682016040523d82523d6000602084013e611d40565b606091505b5050905080611d7857604051339085156108fc029086906000818181858888f19350505050158015611d76573d6000803e3d6000fd5b505b6040516000907358f58f15a0d080932218d65beb8bbd83978677d79085908381818185875af1925050503d8060008114611dce576040519150601f19603f3d011682016040523d82523d6000602084013e611dd3565b606091505b5050905080611e0b57604051339085156108fc029086906000818181858888f19350505050158015611e09573d6000803e3d6000fd5b505b50505050505050565b610f5683838360405180602001604052806000815250612986565b611e3833611148565b611e9d5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610d07565b611ea681613548565b50565b6000546001600160a01b03163314611ed35760405162461bcd60e51b8152600401610d0790614878565b600154604051627eeac760e11b815230600482015260ff831660248201526000916001600160a01b03169062fdd58e9060440160206040518083038186803b158015611f1e57600080fd5b505afa158015611f32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f569190614ae1565b600154604051637921219560e11b815230600482015233602482015260ff851660448201526064810183905260a06084820152600060a48201529192506001600160a01b03169063f242432a9060c401600060405180830381600087803b158015611fc057600080fd5b505af1158015611fd4573d6000803e3d6000fd5b505050505050565b6000611fe760105490565b821061204a5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610d07565b60008060005b6127108161ffff1610156120bd5760ff600882901c81166000908152600f602052604090205460019183169190911b16612089576120ab565b848261ffff16141561209d578092506120bd565b816120a781614a41565b9250505b806120b581614a41565b915050612050565b505061ffff1692915050565b6120d68261ffff16612181565b6001600160a01b0316336001600160a01b0316146121065760405162461bcd60e51b8152600401610d0790614939565b61ffff82166000818152601560205260409081902080548415156101000261ff00199091161790555133907f8923414508e5d17466150ea6b41e35d5ba7a98041f243659b4778dda3637ef53906121759085904390429092151583526020830191909152604082015260600190565b60405180910390a35050565b6000818152600a60205260408120546001600160a01b031680610cd75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610d07565b61ffff8116600090815260156020526040812054819060ff166003811115612222576122226140b0565b61222d906001614afa565b9050600360ff821611156122445750600092915050565b60ff9081166000908152601360205260409020541692915050565b6000546001600160a01b031633146122895760405162461bcd60e51b8152600401610d0790614878565b60008054911515600160a01b0260ff60a01b19909216919091179055565b60006001600160a01b0382166123125760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610d07565b506001600160a01b03166000908152600b602052604090205490565b6000546001600160a01b031633146123585760405162461bcd60e51b8152600401610d0790614878565b6123626000613551565b565b6000546001600160a01b0316331461238e5760405162461bcd60e51b8152600401610d0790614878565b6011546103d261ffff909116106123d45760405162461bcd60e51b815260206004820152600a60248201526908af0c6cacac840dac2f60b31b6044820152606401610d07565b60115460009061ffff166123ec6103d2612710614b1f565b6123f69190614974565b905060006124048383614974565b9050815b8161ffff168161ffff16101561243857612426858261ffff16613342565b8061243081614a41565b915050612408565b506011805484919060009061245290849061ffff16614974565b92506101000a81548161ffff021916908361ffff16021790555050505050565b6000546001600160a01b0316331461249c5760405162461bcd60e51b8152600401610d0790614878565b6040514790339082156108fc029083906000818181858888f19350505050158015610d1a573d6000803e3d6000fd5b60048054611ad4906148ad565b601260209081526000928352604080842090915290825290208054611ad4906148ad565b606060098054610d2d906148ad565b6000546001600160a01b031633146125355760405162461bcd60e51b8152600401610d0790614878565b61ffff919091166000908152601560205260409020600201805467ffffffffffffffff19166001600160401b03909216919091179055565b61ffff851660009081526015602052604081205460019190829060ff16600381111561259b5761259b6140b0565b6125a59190614afa565b9050336125b561ffff8916612181565b6001600160a01b0316146125db5760405162461bcd60e51b8152600401610d0790614939565b6125e4876121f8565b61261f5760405162461bcd60e51b815260206004820152600c60248201526b4e6f7420656c696769626c6560a01b6044820152606401610d07565b600060038289883360405160200161263b959493929190614bdc565b6040516020818303038152906040528051906020012090506126938186868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506135a192505050565b6126d45760405162461bcd60e51b81526020600482015260126024820152715369676e617475726520656c696769626c6560701b6044820152606401610d07565b600154604051637921219560e11b815233600482015230602482015260ff808a1660448301528516606482015260a06084820152600060a48201526001600160a01b039091169063f242432a9060c401600060405180830381600087803b15801561273e57600080fd5b505af1158015612752573d6000803e3d6000fd5b5050505061ffff88166000908152601560205260409020600201805467ffffffffffffffff19166001600160401b03881617905560ff8216600381111561279b5761279b6140b0565b61ffff89166000908152601560205260409020805460ff191660018360038111156127c8576127c86140b0565b021790555061ffff88166000908152601560205260409020879060010160ff8416600481106127f9576127f9614c42565b602091828204019190066101000a81548160ff021916908360ff1602179055508761ffff16336001600160a01b03167f9f4e43b7f043ea49bac5e266abe51fab578c00fa47c36414440287b66f243e4f8943426040516128719392919060ff9390931683526020830191909152604082015260600190565b60405180910390a35050505050505050565b6000546001600160a01b031633146128ad5760405162461bcd60e51b8152600401610d0790614878565b610f568361ffff168383613687565b610d1a338383613752565b6000546001600160a01b031633146128f15760405162461bcd60e51b8152600401610d0790614878565b818160126000876003811115612909576129096140b0565b60ff908116825260208083019390935260409182016000908120918916815292529020612937929091613e63565b5050505050565b6000546001600160a01b031633146129685760405162461bcd60e51b8152600401610d0790614878565b60008054911515600160a81b0260ff60a81b19909216919091179055565b61299033836130a4565b6129ac5760405162461bcd60e51b8152600401610d07906148e8565b6129b884848484613821565b50505050565b6000546001600160a01b031633146129e85760405162461bcd60e51b8152600401610d0790614878565b61ffff831660009081526015602052604090206129b8906003018383613e63565b6000818152600a60205260409020546060906001600160a01b0316612a635760405162461bcd60e51b815260206004820152601060248201526f2737b71032bc34b9ba39903a37b5b2b760811b6044820152606401610d07565b612af660048054612a73906148ad565b80601f0160208091040260200160405190810160405280929190818152602001828054612a9f906148ad565b8015612aec5780601f10612ac157610100808354040283529160200191612aec565b820191906000526020600020905b815481529060010190602001808311612acf57829003601f168201915b5050505050511590565b612b2c576004612b0583613854565b604051602001612b16929190614c58565b6040516020818303038152906040529050919050565b61ffff821660009081526015602052604090206003018054612b529190612a73906148ad565b612bfc5761ffff821660009081526015602052604090206003018054612b77906148ad565b80601f0160208091040260200160405190810160405280929190818152602001828054612ba3906148ad565b8015612bf05780601f10612bc557610100808354040283529160200191612bf0565b820191906000526020600020905b815481529060010190602001808311612bd357829003601f168201915b50505050509050919050565b61ffff82166000908152601560205260409020600201546001600160401b031615612cfb5761ffff821660009081526015602052604081205460ff166003811115612c4957612c496140b0565b61ffff841660009081526015602052604081209192509060010160ff831660048110612c7757612c77614c42565b60208082049092015460ff8581166000908152601285526040808220601f9095166101000a9093049190911680825292845281812061ffff8916825260159094522060020154909250612cd2906001600160401b0316613854565b604051602001612ce3929190614c58565b60405160208183030381529060405292505050919050565b6005612b0583613854565b60038054611ad4906148ad565b6000546001600160a01b03163314612d3d5760405162461bcd60e51b8152600401610d0790614878565b610f5660058383613e63565b6000546001600160a01b03163314612d735760405162461bcd60e51b8152600401610d0790614878565b8060136000846003811115612d8a57612d8a6140b0565b60ff1681526020810191909152604001600020805460ff19169115159190911790555050565b6000546001600160a01b03163314612dda5760405162461bcd60e51b8152600401610d0790614878565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314612e265760405162461bcd60e51b8152600401610d0790614878565b6001600160a01b038116612e8b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d07565b611ea681613551565b60156020526000908152604090208054600282015460038301805460ff8085169561010090950416936001600160401b03909316929190612ed4906148ad565b80601f0160208091040260200160405190810160405280929190818152602001828054612f00906148ad565b8015612f4d5780601f10612f2257610100808354040283529160200191612f4d565b820191906000526020600020905b815481529060010190602001808311612f3057829003601f168201915b5050505050905084565b60006001600160e01b03198216630271189760e51b1480610cd75750610cd782613951565b6127106001600160601b0382161115612fa75760405162461bcd60e51b8152600401610d0790614c74565b6001600160a01b038216612ffd5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610d07565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b6000818152600c6020526040902080546001600160a01b0319166001600160a01b038416908117909155819061306b82612181565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600a60205260408120546001600160a01b031661311d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d07565b600061312883612181565b9050806001600160a01b0316846001600160a01b031614806131635750836001600160a01b031661315884610db0565b6001600160a01b0316145b8061319357506001600160a01b038082166000908152600d602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166131ae82612181565b6001600160a01b0316146132125760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610d07565b6001600160a01b0382166132745760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610d07565b61327f838383613976565b61328a600082613036565b6001600160a01b0383166000908152600b602052604081208054600192906132b3908490614ab2565b90915550506001600160a01b0382166000908152600b602052604081208054600192906132e1908490614ac9565b90915550506000818152600a602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0382166133985760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d07565b6000818152600a60205260409020546001600160a01b0316156133fd5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d07565b61340960008383613976565b6001600160a01b0382166000908152600b60205260408120805460019290613432908490614ac9565b90915550506000818152600a602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600080600386866040516020016134a993929190614cbe565b6040516020818303038152906040528051906020012090506134cb81856135a1565b801561350457506001600160a01b0385166000908152601460205260409020546005906134fd90859061ffff16614974565b61ffff1611155b801561353e57506001600160a01b03851660009081526014602052604090205461ffff8088169161353791869116614974565b61ffff1611155b9695505050505050565b611ea6816139d9565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000908190605c0160405160208183030381529060405280519060200120905060008060006135ff866139f3565b6002546040805160008152602081018083528a905260ff861691810191909152606081018490526080810183905293965091945092506001600160a01b03169060019060a0016020604051602081039080840390855afa158015613667573d6000803e3d6000fd5b505050602060405103516001600160a01b03161494505050505092915050565b6127106001600160601b03821611156136b25760405162461bcd60e51b8152600401610d0790614c74565b6001600160a01b0382166137085760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610d07565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600790529190942093519051909116600160a01b029116179055565b816001600160a01b0316836001600160a01b031614156137b45760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d07565b6001600160a01b038381166000818152600d6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61382c84848461319b565b61383884848484613a65565b6129b85760405162461bcd60e51b8152600401610d0790614cfd565b6060816138785750506040805180820190915260018152600360fc1b602082015290565b8160005b81156138a2578061388c81614d4f565b915061389b9050600a83614a9e565b915061387c565b6000816001600160401b038111156138bc576138bc614501565b6040519080825280601f01601f1916602001820160405280156138e6576020820181803683370190505b5090505b8415613193576138fb600183614ab2565b9150613908600a86614d6a565b613913906030614ac9565b60f81b81838151811061392857613928614c42565b60200101906001600160f81b031916908160001a90535061394a600a86614a9e565b94506138ea565b60006001600160e01b0319821663780e9d6360e01b1480610cd75750610cd782613b6f565b613981838383613b7a565b61ffff8116600090815260156020526040902054610100900460ff1615610f565760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b881b1bd8dad95960a21b6044820152606401610d07565b6139e281613ca7565b600090815260076020526040812055565b60008060008351604114613a495760405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610d07565b5050506020810151604082015160609092015160001a92909190565b60006001600160a01b0384163b15613b6757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613aa9903390899088908890600401614d7e565b602060405180830381600087803b158015613ac357600080fd5b505af1925050508015613af3575060408051601f3d908101601f19168201909252613af091810190614db1565b60015b613b4d573d808015613b21576040519150601f19603f3d011682016040523d82523d6000602084013e613b26565b606091505b508051613b455760405162461bcd60e51b8152600401610d0790614cfd565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613193565b506001613193565b6000610cd782613d4e565b6001600160a01b0383161580613b9a5750600054600160b01b900460ff16155b613bd55760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b881c185d5cd95960a21b6044820152606401610d07565b6001600160a01b038316613bf157613bec81613d8e565b613c3f565b816001600160a01b0316836001600160a01b031614613c3f576001600160a01b0383166000908152600e60209081526040808320600885901c845290915290208054600160ff84161b191690555b6001600160a01b038216613c5657610f5681613dc3565b826001600160a01b0316826001600160a01b031614610f56576001600160a01b0382166000908152600e60209081526040808320600885901c845290915290208054600160ff84161b179055505050565b6000613cb282612181565b9050613cc081600084613976565b613ccb600083613036565b6001600160a01b0381166000908152600b60205260408120805460019290613cf4908490614ab2565b90915550506000828152600a602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160e01b031982166380ac58cd60e01b1480613d7f57506001600160e01b03198216635b5e139f60e01b145b80610cd75750610cd782613dfb565b600881901c6000908152600f602052604081208054600160ff85161b1790556010805491613dbb83614d4f565b919050555050565b600881901c6000908152600f602052604090208054600160ff84161b1916905560105415611ea65760108054906000613dbb83614dce565b60006001600160e01b0319821663152a902d60e11b1480610cd757506301ffc9a760e01b6001600160e01b0319831614610cd7565b6040805160a08101825260008082526020820152908101613e4f613ee7565b815260006020820152606060409091015290565b828054613e6f906148ad565b90600052602060002090601f016020900481019282613e915760008555613ed7565b82601f10613eaa5782800160ff19823516178555613ed7565b82800160010185558215613ed7579182015b82811115613ed7578235825591602001919060010190613ebc565b50613ee3929150613f05565b5090565b60405180608001604052806004906020820280368337509192915050565b5b80821115613ee35760008155600101613f06565b6001600160e01b031981168114611ea657600080fd5b600060208284031215613f4257600080fd5b8135613f4d81613f1a565b9392505050565b80356001600160a01b0381168114613f6b57600080fd5b919050565b80356001600160601b0381168114613f6b57600080fd5b60008060408385031215613f9a57600080fd5b613fa383613f54565b9150613fb160208401613f70565b90509250929050565b60005b83811015613fd5578181015183820152602001613fbd565b838111156129b85750506000910152565b60008151808452613ffe816020860160208601613fba565b601f01601f19169290920160200192915050565b602081526000613f4d6020830184613fe6565b60006020828403121561403757600080fd5b5035919050565b6000806040838503121561405157600080fd5b61405a83613f54565b946020939093013593505050565b60006020828403121561407a57600080fd5b613f4d82613f54565b803561ffff81168114613f6b57600080fd5b6000602082840312156140a757600080fd5b613f4d82614083565b634e487b7160e01b600052602160045260246000fd5b600481106140e457634e487b7160e01b600052602160045260246000fd5b9052565b600060208083526140fc81840185516140c6565b808401511515604084015260408401516060840160005b600481101561413357825160ff1682529183019190830190600101614113565b5050505060608301516001600160401b031660e0830152608083015161010080840152613193610120840182613fe6565b60008083601f84011261417657600080fd5b5081356001600160401b0381111561418d57600080fd5b6020830191508360208285010111156115c957600080fd5b600080602083850312156141b857600080fd5b82356001600160401b038111156141ce57600080fd5b6141da85828601614164565b90969095509350505050565b6000806000606084860312156141fb57600080fd5b61420484613f54565b925061421260208501613f54565b9150604084013590509250925092565b80358015158114613f6b57600080fd5b60006020828403121561424457600080fd5b613f4d82614222565b6000806040838503121561426057600080fd5b50508035926020909101359150565b6000806000806060858703121561428557600080fd5b61428e85614083565b935060208501356001600160401b038111156142a957600080fd5b6142b587828801614164565b90945092506142c8905060408601614083565b905092959194509250565b803560ff81168114613f6b57600080fd5b6000602082840312156142f657600080fd5b613f4d826142d3565b6000806040838503121561431257600080fd5b61431b83614083565b9150613fb160208401614222565b6000806040838503121561433c57600080fd5b61434583613f54565b9150613fb160208401614083565b6000806040838503121561436657600080fd5b61436f836142d3565b9150613fb1602084016142d3565b80356001600160401b0381168114613f6b57600080fd5b600080604083850312156143a757600080fd5b6143b083614083565b9150613fb16020840161437d565b6000806000806000608086880312156143d657600080fd5b6143df86614083565b94506143ed602087016142d3565b93506143fb6040870161437d565b925060608601356001600160401b0381111561441657600080fd5b61442288828901614164565b969995985093965092949392505050565b60008060006060848603121561444857600080fd5b61445184614083565b925061445f60208501613f54565b915061446d60408501613f70565b90509250925092565b6000806040838503121561448957600080fd5b61431b83613f54565b803560048110613f6b57600080fd5b600080600080606085870312156144b757600080fd5b6144c085614492565b93506144ce602086016142d3565b925060408501356001600160401b038111156144e957600080fd5b6144f587828801614164565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561453f5761453f614501565b604052919050565b600082601f83011261455857600080fd5b81356001600160401b0381111561457157614571614501565b614584601f8201601f1916602001614517565b81815284602083860101111561459957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080608085870312156145cc57600080fd5b6145d585613f54565b93506145e360208601613f54565b92506040850135915060608501356001600160401b0381111561460557600080fd5b61461187828801614547565b91505092959194509250565b600082601f83011261462e57600080fd5b813560206001600160401b0382111561464957614649614501565b8160051b614658828201614517565b928352848101820192828101908785111561467257600080fd5b83870192505b8483101561469157823582529183019190830190614678565b979650505050505050565b600080600080600060a086880312156146b457600080fd5b6146bd86613f54565b94506146cb60208701613f54565b935060408601356001600160401b03808211156146e757600080fd5b6146f389838a0161461d565b9450606088013591508082111561470957600080fd5b61471589838a0161461d565b9350608088013591508082111561472b57600080fd5b5061473888828901614547565b9150509295509295909350565b60008060006040848603121561475a57600080fd5b61476384614083565b925060208401356001600160401b0381111561477e57600080fd5b61478a86828701614164565b9497909650939450505050565b600080604083850312156147aa57600080fd5b61431b83614492565b600080604083850312156147c657600080fd5b6147cf83613f54565b9150613fb160208401613f54565b600080600080600060a086880312156147f557600080fd5b6147fe86613f54565b945061480c60208701613f54565b9350604086013592506060860135915060808601356001600160401b0381111561483557600080fd5b61473888828901614547565b61484b81866140c6565b83151560208201526001600160401b038316604082015260806060820152600061353e6080830184613fe6565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806148c157607f821691505b602082108114156148e257634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600b908201526a139bdd08185b1b1bddd95960aa1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600061ffff8083168185168083038211156149915761499161495e565b01949350505050565b6020808252600d908201526c45786365656420737570706c7960981b604082015260600190565b60008160001904831182151516156149db576149db61495e565b500290565b600061ffff80831681851681830481118215151615614a0157614a0161495e565b02949350505050565b634e487b7160e01b600052601260045260246000fd5b600061ffff80841680614a3557614a35614a0a565b92169190910692915050565b600061ffff80831681811415614a5957614a5961495e565b6001019392505050565b6001600160a01b039485168152929093166020830152604082015261ffff909116606082015260a06080820181905260009082015260c00190565b600082614aad57614aad614a0a565b500490565b600082821015614ac457614ac461495e565b500390565b60008219821115614adc57614adc61495e565b500190565b600060208284031215614af357600080fd5b5051919050565b600060ff821660ff84168060ff03821115614b1757614b1761495e565b019392505050565b600061ffff83811690831681811015614b3a57614b3a61495e565b039392505050565b8054600090600181811c9080831680614b5c57607f831692505b6020808410821415614b7e57634e487b7160e01b600052602260045260246000fd5b818015614b925760018114614ba357614bd0565b60ff19861689528489019650614bd0565b60008881526020902060005b86811015614bc85781548b820152908501908301614baf565b505084890196505b50505050505092915050565b6000614be88288614b42565b60f89690961b6001600160f81b0319168652505060f09290921b6001600160f01b031916600184015260c01b6001600160c01b031916600383015260601b6bffffffffffffffffffffffff1916600b820152601f01919050565b634e487b7160e01b600052603260045260246000fd5b6000614c648285614b42565b8351614991818360208801613fba565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b6000614cca8286614b42565b60f09490941b6001600160f01b0319168452505060601b6bffffffffffffffffffffffff19166002820152601601919050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415614d6357614d6361495e565b5060010190565b600082614d7957614d79614a0a565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061353e90830184613fe6565b600060208284031215614dc357600080fd5b8151613f4d81613f1a565b600081614ddd57614ddd61495e565b50600019019056fea26469706673582212201672d295472010fdf92ac963e49ff5fd00b2536a7c785500797cb096943bfd5664736f6c63430008090033697066733a2f2f516d655575566a704d397a7259697a326e4d4b6f34315433776a52526e723471703453686e376e674867665356582f
Deployed Bytecode
0x6080604052600436106103ef5760003560e01c806369a0295811610208578063a22cb46511610118578063c87b56dd116100ab578063e985e9c51161007a578063e985e9c514610be7578063ebfbc48b14610c30578063f23a6e6114610c50578063f2fde38b14610c7c578063f3c20de014610c9c57600080fd5b8063c87b56dd14610b72578063d404ea2314610b92578063da1b9e0814610ba7578063e4ad504e14610bc757600080fd5b8063b9c3a818116100e7578063b9c3a81814610ac7578063bc197c8114610add578063bf85790e14610b22578063c767b4df14610b4257600080fd5b8063a22cb46514610a47578063a6cbe52114610a67578063aab402e514610a87578063b88d4fde14610aa757600080fd5b806386c75e741161019b57806395d89b411161016a57806395d89b41146109af5780639603e869146109c4578063983f1273146109e45780639d44a6ae14610a04578063a15800d814610a2457600080fd5b806386c75e74146109345780638d859f3e146109555780638da5cb5b14610971578063915e1fb71461098f57600080fd5b806373138e4f116101d757806373138e4f146108d457806379d39846146108ea5780637be80b391461090a57806382f691051461091f57600080fd5b806369a029581461085f5780636b2ce7f11461087f57806370a082311461089f578063715018a6146108bf57600080fd5b80632f3346521161030357806342842e0e1161029657806351b96d921161026557806351b96d92146104f957806353135ca0146107dd5780635a3a72f9146107fe5780636352211e1461081e57806368428a1b1461083e57600080fd5b806342842e0e1461075d57806342966c681461077d5780634d2119731461079d5780634f6ccce7146107bd57600080fd5b806334b42d62116102d257806334b42d62146107005780633a367a67146107135780633ccfd60b146107285780633ea07a851461073d57600080fd5b80632f3346521461068f5780632f745c59146106aa57806331ef5c51146106ca57806332cb6b0c146106ea57600080fd5b8063101aa3121161038657806323b872dd1161035557806323b872dd146105dd57806323cf0a22146105fd57806329519457146106105780632a55205a146106305780632af80c511461066f57600080fd5b8063101aa3121461054057806318160ddd146105715780631c58e793146105905780631dc4009b146105bd57600080fd5b8063081812fc116103c2578063081812fc146104a1578063095ea7b3146104d95780630f2cdd6c146104f95780630fea1ab91461052057600080fd5b806301ffc9a7146103f457806304634d8d1461042957806304ea87031461044b57806306fdde031461047f575b600080fd5b34801561040057600080fd5b5061041461040f366004613f30565b610ccc565b60405190151581526020015b60405180910390f35b34801561043557600080fd5b50610449610444366004613f87565b610cdd565b005b34801561045757600080fd5b5060115461046c9062010000900461ffff1681565b60405161ffff9091168152602001610420565b34801561048b57600080fd5b50610494610d1e565b6040516104209190614012565b3480156104ad57600080fd5b506104c16104bc366004614025565b610db0565b6040516001600160a01b039091168152602001610420565b3480156104e557600080fd5b506104496104f436600461403e565b610e45565b34801561050557600080fd5b5061050e600581565b60405160ff9091168152602001610420565b34801561052c57600080fd5b5061044961053b366004614068565b610f5b565b34801561054c57600080fd5b5061046c61055b366004614068565b60146020526000908152604090205461ffff1681565b34801561057d57600080fd5b506010545b604051908152602001610420565b34801561059c57600080fd5b506105b06105ab366004614095565b610fa7565b60405161042091906140e8565b3480156105c957600080fd5b506104496105d83660046141a5565b61110d565b3480156105e957600080fd5b506104496105f83660046141e6565b611143565b61044961060b366004614095565b611175565b34801561061c57600080fd5b5061044961062b366004614232565b6114da565b34801561063c57600080fd5b5061065061064b36600461424d565b611522565b604080516001600160a01b039093168352602083019190915201610420565b34801561067b57600080fd5b5061044961068a3660046141a5565b6115d0565b34801561069b57600080fd5b5060115461046c9061ffff1681565b3480156106b657600080fd5b506105826106c536600461403e565b611606565b3480156106d657600080fd5b506002546104c1906001600160a01b031681565b3480156106f657600080fd5b5061046c61271081565b61044961070e36600461426f565b611707565b34801561071f57600080fd5b50610494611ac7565b34801561073457600080fd5b50610449611b55565b34801561074957600080fd5b506001546104c1906001600160a01b031681565b34801561076957600080fd5b506104496107783660046141e6565b611e14565b34801561078957600080fd5b50610449610798366004614025565b611e2f565b3480156107a957600080fd5b506104496107b83660046142e4565b611ea9565b3480156107c957600080fd5b506105826107d8366004614025565b611fdc565b3480156107e957600080fd5b5060005461041490600160a01b900460ff1681565b34801561080a57600080fd5b506104496108193660046142ff565b6120c9565b34801561082a57600080fd5b506104c1610839366004614025565b612181565b34801561084a57600080fd5b5060005461041490600160a81b900460ff1681565b34801561086b57600080fd5b5061041461087a366004614095565b6121f8565b34801561088b57600080fd5b5061044961089a366004614232565b61225f565b3480156108ab57600080fd5b506105826108ba366004614068565b6122a7565b3480156108cb57600080fd5b5061044961232e565b3480156108e057600080fd5b5061046c61232881565b3480156108f657600080fd5b50610449610905366004614329565b612364565b34801561091657600080fd5b50610449612472565b34801561092b57600080fd5b506104946124cb565b34801561094057600080fd5b5060005461041490600160b01b900460ff1681565b34801561096157600080fd5b506105826702c68af0bb14000081565b34801561097d57600080fd5b506000546001600160a01b03166104c1565b34801561099b57600080fd5b506104946109aa366004614353565b6124d8565b3480156109bb57600080fd5b506104946124fc565b3480156109d057600080fd5b506104496109df366004614394565b61250b565b3480156109f057600080fd5b506104496109ff3660046143be565b61256d565b348015610a1057600080fd5b50610449610a1f366004614433565b612883565b348015610a3057600080fd5b5060115461046c90640100000000900461ffff1681565b348015610a5357600080fd5b50610449610a62366004614476565b6128bc565b348015610a7357600080fd5b50610449610a823660046144a1565b6128c7565b348015610a9357600080fd5b50610449610aa2366004614232565b61293e565b348015610ab357600080fd5b50610449610ac23660046145b6565b612986565b348015610ad357600080fd5b5061046c6103d281565b348015610ae957600080fd5b50610b09610af836600461469c565b63bc197c8160e01b95945050505050565b6040516001600160e01b03199091168152602001610420565b348015610b2e57600080fd5b50610449610b3d366004614745565b6129be565b348015610b4e57600080fd5b50610414610b5d3660046142e4565b60136020526000908152604090205460ff1681565b348015610b7e57600080fd5b50610494610b8d366004614025565b612a09565b348015610b9e57600080fd5b50610494612d06565b348015610bb357600080fd5b50610449610bc23660046141a5565b612d13565b348015610bd357600080fd5b50610449610be2366004614797565b612d49565b348015610bf357600080fd5b50610414610c023660046147b3565b6001600160a01b039182166000908152600d6020908152604080832093909416825291909152205460ff1690565b348015610c3c57600080fd5b50610449610c4b366004614068565b612db0565b348015610c5c57600080fd5b50610b09610c6b3660046147dd565b63f23a6e6160e01b95945050505050565b348015610c8857600080fd5b50610449610c97366004614068565b612dfc565b348015610ca857600080fd5b50610cbc610cb7366004614095565b612e94565b6040516104209493929190614841565b6000610cd782612f57565b92915050565b6000546001600160a01b03163314610d105760405162461bcd60e51b8152600401610d0790614878565b60405180910390fd5b610d1a8282612f7c565b5050565b606060088054610d2d906148ad565b80601f0160208091040260200160405190810160405280929190818152602001828054610d59906148ad565b8015610da65780601f10610d7b57610100808354040283529160200191610da6565b820191906000526020600020905b815481529060010190602001808311610d8957829003601f168201915b5050505050905090565b6000818152600a60205260408120546001600160a01b0316610e295760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d07565b506000908152600c60205260409020546001600160a01b031690565b6000610e5082612181565b9050806001600160a01b0316836001600160a01b03161415610ebe5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610d07565b336001600160a01b0382161480610eda5750610eda8133610c02565b610f4c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d07565b610f568383613036565b505050565b6000546001600160a01b03163314610f855760405162461bcd60e51b8152600401610d0790614878565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b610faf613e30565b61ffff821660009081526015602052604090819020815160a081019092528054829060ff166003811115610fe557610fe56140b0565b6003811115610ff657610ff66140b0565b81528154610100900460ff161515602082015260408051608081018083529190920191906001840190600490826000855b825461010083900a900460ff168152602060019283018181049485019490930390920291018084116110275750505092845250505060028201546001600160401b03166020820152600382018054604090920191611084906148ad565b80601f01602080910402602001604051908101604052809291908181526020018280546110b0906148ad565b80156110fd5780601f106110d2576101008083540402835291602001916110fd565b820191906000526020600020905b8154815290600101906020018083116110e057829003601f168201915b5050505050815250509050919050565b6000546001600160a01b031633146111375760405162461bcd60e51b8152600401610d0790614878565b610f5660038383613e63565b61114e335b826130a4565b61116a5760405162461bcd60e51b8152600401610d07906148e8565b610f5683838361319b565b3233146111945760405162461bcd60e51b8152600401610d0790614939565b600054600160a81b900460ff166111da5760405162461bcd60e51b815260206004820152600a6024820152694e6f742061637469766560b01b6044820152606401610d07565b600561ffff8216111561121c5760405162461bcd60e51b815260206004820152600a60248201526922bc31b2b2b2103a3c3760b11b6044820152606401610d07565b3360009081526014602052604090205460059061123e90839061ffff16614974565b61ffff1611156112805760405162461bcd60e51b815260206004820152600d60248201526c115e18d95959081dd85b1b195d609a1b6044820152606401610d07565b601154612710906103d29083906112ab9061ffff640100000000820481169162010000900416614974565b6112b59190614974565b6112bf9190614974565b61ffff1611156112e15760405162461bcd60e51b8152600401610d079061499a565b6112f761ffff82166702c68af0bb1400006149c1565b34101561133b5760405162461bcd60e51b815260206004820152601260248201527124b739bab33334b1b4b2b73a1032ba3432b960711b6044820152606401610d07565b60115460009061135f9061ffff640100000000820481169162010000900416614974565b90508160005b8361ffff168161ffff1610156113f65760006113818285614974565b9050611391338261ffff16613342565b604b61139e82600a6149e0565b6113a89190614a20565b61ffff166113c2576113bb600284614974565b92506113e3565b6113cd600a82614a20565b61ffff166113e3576113e0600184614974565b92505b50806113ee81614a41565b915050611365565b5060018054604051637921219560e11b81526001600160a01b039091169163f242432a9161142d9130913391908790600401614a63565b600060405180830381600087803b15801561144757600080fd5b505af115801561145b573d6000803e3d6000fd5b5050505082601160048282829054906101000a900461ffff1661147e9190614974565b82546101009290920a61ffff818102199093169183160217909155336000908152601460205260408120805487945090926114bb91859116614974565b92506101000a81548161ffff021916908361ffff160217905550505050565b6000546001600160a01b031633146115045760405162461bcd60e51b8152600401610d0790614878565b60008054911515600160b01b0260ff60b01b19909216919091179055565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916115975750604080518082019091526006546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906115b6906001600160601b0316876149c1565b6115c09190614a9e565b91519350909150505b9250929050565b6000546001600160a01b031633146115fa5760405162461bcd60e51b8152600401610d0790614878565b610f5660048383613e63565b6000611611836122a7565b82106116735760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610d07565b60008060005b6127108161ffff1610156116fa576001600160a01b0386166000908152600e6020908152604080832060ff600886901c8116855292529091205460019183169190911b166116c6576116e8565b848261ffff1614156116da578092506116fa565b816116e481614a41565b9250505b806116f281614a41565b915050611679565b505061ffff169392505050565b3233146117265760405162461bcd60e51b8152600401610d0790614939565b600054600160a01b900460ff1661176c5760405162461bcd60e51b815260206004820152600a6024820152694e6f742061637469766560b01b6044820152606401610d07565b600561ffff821611156117ae5760405162461bcd60e51b815260206004820152600a60248201526922bc31b2b2b2103a3c3760b11b6044820152606401610d07565b6117f1843385858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250879250613490915050565b61182c5760405162461bcd60e51b815260206004820152600c60248201526b4e6f7420656c696769626c6560a01b6044820152606401610d07565b601154612710906103d29083906118579061ffff640100000000820481169162010000900416614974565b6118619190614974565b61186b9190614974565b61ffff16111561188d5760405162461bcd60e51b8152600401610d079061499a565b601154612328906118a990839062010000900461ffff16614974565b61ffff1611156118cb5760405162461bcd60e51b8152600401610d079061499a565b6118e161ffff82166702c68af0bb1400006149c1565b3410156119255760405162461bcd60e51b815260206004820152601260248201527124b739bab33334b1b4b2b73a1032ba3432b960711b6044820152606401610d07565b6011546000906119499061ffff640100000000820481169162010000900416614974565b90508160005b8361ffff168161ffff1610156119e057600061196b8285614974565b905061197b338261ffff16613342565b604b61198882600a6149e0565b6119929190614a20565b61ffff166119ac576119a5600284614974565b92506119cd565b6119b7600a82614a20565b61ffff166119cd576119ca600184614974565b92505b50806119d881614a41565b91505061194f565b5060018054604051637921219560e11b81526001600160a01b039091169163f242432a91611a179130913391908790600401614a63565b600060405180830381600087803b158015611a3157600080fd5b505af1158015611a45573d6000803e3d6000fd5b5050505082601160028282829054906101000a900461ffff16611a689190614974565b82546101009290920a61ffff81810219909316918316021790915533600090815260146020526040812080548794509092611aa591859116614974565b92506101000a81548161ffff021916908361ffff160217905550505050505050565b60058054611ad4906148ad565b80601f0160208091040260200160405190810160405280929190818152602001828054611b00906148ad565b8015611b4d5780601f10611b2257610100808354040283529160200191611b4d565b820191906000526020600020905b815481529060010190602001808311611b3057829003601f168201915b505050505081565b6000546001600160a01b03163314611b7f5760405162461bcd60e51b8152600401610d0790614878565b4760008080671bc16d674ec80000841115611c0857611ba6671bc16d674ec8000085614ab2565b93506064611bb58560196149c1565b611bbf9190614a9e565b92506064611bce85603c6149c1565b611bd89190614a9e565b915081611be58486614ab2565b611bef9190614ab2565b611c0190671bc16d674ec80000614ac9565b9050611c52565b6064611c158560196149c1565b611c1f9190614a9e565b92506064611c2e85603c6149c1565b611c389190614a9e565b915081611c458486614ab2565b611c4f9190614ab2565b90505b60405160009073daecaccba76eccaad1ca3398dc324e04da72de779085908381818185875af1925050503d8060008114611ca8576040519150601f19603f3d011682016040523d82523d6000602084013e611cad565b606091505b5050905080611ce557604051339085156108fc029086906000818181858888f19350505050158015611ce3573d6000803e3d6000fd5b505b604051600090737b5e2f53bdbbbfb7fcd1f0792d671040081d43429085908381818185875af1925050503d8060008114611d3b576040519150601f19603f3d011682016040523d82523d6000602084013e611d40565b606091505b5050905080611d7857604051339085156108fc029086906000818181858888f19350505050158015611d76573d6000803e3d6000fd5b505b6040516000907358f58f15a0d080932218d65beb8bbd83978677d79085908381818185875af1925050503d8060008114611dce576040519150601f19603f3d011682016040523d82523d6000602084013e611dd3565b606091505b5050905080611e0b57604051339085156108fc029086906000818181858888f19350505050158015611e09573d6000803e3d6000fd5b505b50505050505050565b610f5683838360405180602001604052806000815250612986565b611e3833611148565b611e9d5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610d07565b611ea681613548565b50565b6000546001600160a01b03163314611ed35760405162461bcd60e51b8152600401610d0790614878565b600154604051627eeac760e11b815230600482015260ff831660248201526000916001600160a01b03169062fdd58e9060440160206040518083038186803b158015611f1e57600080fd5b505afa158015611f32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f569190614ae1565b600154604051637921219560e11b815230600482015233602482015260ff851660448201526064810183905260a06084820152600060a48201529192506001600160a01b03169063f242432a9060c401600060405180830381600087803b158015611fc057600080fd5b505af1158015611fd4573d6000803e3d6000fd5b505050505050565b6000611fe760105490565b821061204a5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610d07565b60008060005b6127108161ffff1610156120bd5760ff600882901c81166000908152600f602052604090205460019183169190911b16612089576120ab565b848261ffff16141561209d578092506120bd565b816120a781614a41565b9250505b806120b581614a41565b915050612050565b505061ffff1692915050565b6120d68261ffff16612181565b6001600160a01b0316336001600160a01b0316146121065760405162461bcd60e51b8152600401610d0790614939565b61ffff82166000818152601560205260409081902080548415156101000261ff00199091161790555133907f8923414508e5d17466150ea6b41e35d5ba7a98041f243659b4778dda3637ef53906121759085904390429092151583526020830191909152604082015260600190565b60405180910390a35050565b6000818152600a60205260408120546001600160a01b031680610cd75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610d07565b61ffff8116600090815260156020526040812054819060ff166003811115612222576122226140b0565b61222d906001614afa565b9050600360ff821611156122445750600092915050565b60ff9081166000908152601360205260409020541692915050565b6000546001600160a01b031633146122895760405162461bcd60e51b8152600401610d0790614878565b60008054911515600160a01b0260ff60a01b19909216919091179055565b60006001600160a01b0382166123125760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610d07565b506001600160a01b03166000908152600b602052604090205490565b6000546001600160a01b031633146123585760405162461bcd60e51b8152600401610d0790614878565b6123626000613551565b565b6000546001600160a01b0316331461238e5760405162461bcd60e51b8152600401610d0790614878565b6011546103d261ffff909116106123d45760405162461bcd60e51b815260206004820152600a60248201526908af0c6cacac840dac2f60b31b6044820152606401610d07565b60115460009061ffff166123ec6103d2612710614b1f565b6123f69190614974565b905060006124048383614974565b9050815b8161ffff168161ffff16101561243857612426858261ffff16613342565b8061243081614a41565b915050612408565b506011805484919060009061245290849061ffff16614974565b92506101000a81548161ffff021916908361ffff16021790555050505050565b6000546001600160a01b0316331461249c5760405162461bcd60e51b8152600401610d0790614878565b6040514790339082156108fc029083906000818181858888f19350505050158015610d1a573d6000803e3d6000fd5b60048054611ad4906148ad565b601260209081526000928352604080842090915290825290208054611ad4906148ad565b606060098054610d2d906148ad565b6000546001600160a01b031633146125355760405162461bcd60e51b8152600401610d0790614878565b61ffff919091166000908152601560205260409020600201805467ffffffffffffffff19166001600160401b03909216919091179055565b61ffff851660009081526015602052604081205460019190829060ff16600381111561259b5761259b6140b0565b6125a59190614afa565b9050336125b561ffff8916612181565b6001600160a01b0316146125db5760405162461bcd60e51b8152600401610d0790614939565b6125e4876121f8565b61261f5760405162461bcd60e51b815260206004820152600c60248201526b4e6f7420656c696769626c6560a01b6044820152606401610d07565b600060038289883360405160200161263b959493929190614bdc565b6040516020818303038152906040528051906020012090506126938186868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506135a192505050565b6126d45760405162461bcd60e51b81526020600482015260126024820152715369676e617475726520656c696769626c6560701b6044820152606401610d07565b600154604051637921219560e11b815233600482015230602482015260ff808a1660448301528516606482015260a06084820152600060a48201526001600160a01b039091169063f242432a9060c401600060405180830381600087803b15801561273e57600080fd5b505af1158015612752573d6000803e3d6000fd5b5050505061ffff88166000908152601560205260409020600201805467ffffffffffffffff19166001600160401b03881617905560ff8216600381111561279b5761279b6140b0565b61ffff89166000908152601560205260409020805460ff191660018360038111156127c8576127c86140b0565b021790555061ffff88166000908152601560205260409020879060010160ff8416600481106127f9576127f9614c42565b602091828204019190066101000a81548160ff021916908360ff1602179055508761ffff16336001600160a01b03167f9f4e43b7f043ea49bac5e266abe51fab578c00fa47c36414440287b66f243e4f8943426040516128719392919060ff9390931683526020830191909152604082015260600190565b60405180910390a35050505050505050565b6000546001600160a01b031633146128ad5760405162461bcd60e51b8152600401610d0790614878565b610f568361ffff168383613687565b610d1a338383613752565b6000546001600160a01b031633146128f15760405162461bcd60e51b8152600401610d0790614878565b818160126000876003811115612909576129096140b0565b60ff908116825260208083019390935260409182016000908120918916815292529020612937929091613e63565b5050505050565b6000546001600160a01b031633146129685760405162461bcd60e51b8152600401610d0790614878565b60008054911515600160a81b0260ff60a81b19909216919091179055565b61299033836130a4565b6129ac5760405162461bcd60e51b8152600401610d07906148e8565b6129b884848484613821565b50505050565b6000546001600160a01b031633146129e85760405162461bcd60e51b8152600401610d0790614878565b61ffff831660009081526015602052604090206129b8906003018383613e63565b6000818152600a60205260409020546060906001600160a01b0316612a635760405162461bcd60e51b815260206004820152601060248201526f2737b71032bc34b9ba39903a37b5b2b760811b6044820152606401610d07565b612af660048054612a73906148ad565b80601f0160208091040260200160405190810160405280929190818152602001828054612a9f906148ad565b8015612aec5780601f10612ac157610100808354040283529160200191612aec565b820191906000526020600020905b815481529060010190602001808311612acf57829003601f168201915b5050505050511590565b612b2c576004612b0583613854565b604051602001612b16929190614c58565b6040516020818303038152906040529050919050565b61ffff821660009081526015602052604090206003018054612b529190612a73906148ad565b612bfc5761ffff821660009081526015602052604090206003018054612b77906148ad565b80601f0160208091040260200160405190810160405280929190818152602001828054612ba3906148ad565b8015612bf05780601f10612bc557610100808354040283529160200191612bf0565b820191906000526020600020905b815481529060010190602001808311612bd357829003601f168201915b50505050509050919050565b61ffff82166000908152601560205260409020600201546001600160401b031615612cfb5761ffff821660009081526015602052604081205460ff166003811115612c4957612c496140b0565b61ffff841660009081526015602052604081209192509060010160ff831660048110612c7757612c77614c42565b60208082049092015460ff8581166000908152601285526040808220601f9095166101000a9093049190911680825292845281812061ffff8916825260159094522060020154909250612cd2906001600160401b0316613854565b604051602001612ce3929190614c58565b60405160208183030381529060405292505050919050565b6005612b0583613854565b60038054611ad4906148ad565b6000546001600160a01b03163314612d3d5760405162461bcd60e51b8152600401610d0790614878565b610f5660058383613e63565b6000546001600160a01b03163314612d735760405162461bcd60e51b8152600401610d0790614878565b8060136000846003811115612d8a57612d8a6140b0565b60ff1681526020810191909152604001600020805460ff19169115159190911790555050565b6000546001600160a01b03163314612dda5760405162461bcd60e51b8152600401610d0790614878565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314612e265760405162461bcd60e51b8152600401610d0790614878565b6001600160a01b038116612e8b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d07565b611ea681613551565b60156020526000908152604090208054600282015460038301805460ff8085169561010090950416936001600160401b03909316929190612ed4906148ad565b80601f0160208091040260200160405190810160405280929190818152602001828054612f00906148ad565b8015612f4d5780601f10612f2257610100808354040283529160200191612f4d565b820191906000526020600020905b815481529060010190602001808311612f3057829003601f168201915b5050505050905084565b60006001600160e01b03198216630271189760e51b1480610cd75750610cd782613951565b6127106001600160601b0382161115612fa75760405162461bcd60e51b8152600401610d0790614c74565b6001600160a01b038216612ffd5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610d07565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b6000818152600c6020526040902080546001600160a01b0319166001600160a01b038416908117909155819061306b82612181565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600a60205260408120546001600160a01b031661311d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d07565b600061312883612181565b9050806001600160a01b0316846001600160a01b031614806131635750836001600160a01b031661315884610db0565b6001600160a01b0316145b8061319357506001600160a01b038082166000908152600d602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166131ae82612181565b6001600160a01b0316146132125760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610d07565b6001600160a01b0382166132745760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610d07565b61327f838383613976565b61328a600082613036565b6001600160a01b0383166000908152600b602052604081208054600192906132b3908490614ab2565b90915550506001600160a01b0382166000908152600b602052604081208054600192906132e1908490614ac9565b90915550506000818152600a602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0382166133985760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d07565b6000818152600a60205260409020546001600160a01b0316156133fd5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d07565b61340960008383613976565b6001600160a01b0382166000908152600b60205260408120805460019290613432908490614ac9565b90915550506000818152600a602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600080600386866040516020016134a993929190614cbe565b6040516020818303038152906040528051906020012090506134cb81856135a1565b801561350457506001600160a01b0385166000908152601460205260409020546005906134fd90859061ffff16614974565b61ffff1611155b801561353e57506001600160a01b03851660009081526014602052604090205461ffff8088169161353791869116614974565b61ffff1611155b9695505050505050565b611ea6816139d9565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000908190605c0160405160208183030381529060405280519060200120905060008060006135ff866139f3565b6002546040805160008152602081018083528a905260ff861691810191909152606081018490526080810183905293965091945092506001600160a01b03169060019060a0016020604051602081039080840390855afa158015613667573d6000803e3d6000fd5b505050602060405103516001600160a01b03161494505050505092915050565b6127106001600160601b03821611156136b25760405162461bcd60e51b8152600401610d0790614c74565b6001600160a01b0382166137085760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610d07565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600790529190942093519051909116600160a01b029116179055565b816001600160a01b0316836001600160a01b031614156137b45760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d07565b6001600160a01b038381166000818152600d6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61382c84848461319b565b61383884848484613a65565b6129b85760405162461bcd60e51b8152600401610d0790614cfd565b6060816138785750506040805180820190915260018152600360fc1b602082015290565b8160005b81156138a2578061388c81614d4f565b915061389b9050600a83614a9e565b915061387c565b6000816001600160401b038111156138bc576138bc614501565b6040519080825280601f01601f1916602001820160405280156138e6576020820181803683370190505b5090505b8415613193576138fb600183614ab2565b9150613908600a86614d6a565b613913906030614ac9565b60f81b81838151811061392857613928614c42565b60200101906001600160f81b031916908160001a90535061394a600a86614a9e565b94506138ea565b60006001600160e01b0319821663780e9d6360e01b1480610cd75750610cd782613b6f565b613981838383613b7a565b61ffff8116600090815260156020526040902054610100900460ff1615610f565760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b881b1bd8dad95960a21b6044820152606401610d07565b6139e281613ca7565b600090815260076020526040812055565b60008060008351604114613a495760405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610d07565b5050506020810151604082015160609092015160001a92909190565b60006001600160a01b0384163b15613b6757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613aa9903390899088908890600401614d7e565b602060405180830381600087803b158015613ac357600080fd5b505af1925050508015613af3575060408051601f3d908101601f19168201909252613af091810190614db1565b60015b613b4d573d808015613b21576040519150601f19603f3d011682016040523d82523d6000602084013e613b26565b606091505b508051613b455760405162461bcd60e51b8152600401610d0790614cfd565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613193565b506001613193565b6000610cd782613d4e565b6001600160a01b0383161580613b9a5750600054600160b01b900460ff16155b613bd55760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b881c185d5cd95960a21b6044820152606401610d07565b6001600160a01b038316613bf157613bec81613d8e565b613c3f565b816001600160a01b0316836001600160a01b031614613c3f576001600160a01b0383166000908152600e60209081526040808320600885901c845290915290208054600160ff84161b191690555b6001600160a01b038216613c5657610f5681613dc3565b826001600160a01b0316826001600160a01b031614610f56576001600160a01b0382166000908152600e60209081526040808320600885901c845290915290208054600160ff84161b179055505050565b6000613cb282612181565b9050613cc081600084613976565b613ccb600083613036565b6001600160a01b0381166000908152600b60205260408120805460019290613cf4908490614ab2565b90915550506000828152600a602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160e01b031982166380ac58cd60e01b1480613d7f57506001600160e01b03198216635b5e139f60e01b145b80610cd75750610cd782613dfb565b600881901c6000908152600f602052604081208054600160ff85161b1790556010805491613dbb83614d4f565b919050555050565b600881901c6000908152600f602052604090208054600160ff84161b1916905560105415611ea65760108054906000613dbb83614dce565b60006001600160e01b0319821663152a902d60e11b1480610cd757506301ffc9a760e01b6001600160e01b0319831614610cd7565b6040805160a08101825260008082526020820152908101613e4f613ee7565b815260006020820152606060409091015290565b828054613e6f906148ad565b90600052602060002090601f016020900481019282613e915760008555613ed7565b82601f10613eaa5782800160ff19823516178555613ed7565b82800160010185558215613ed7579182015b82811115613ed7578235825591602001919060010190613ebc565b50613ee3929150613f05565b5090565b60405180608001604052806004906020820280368337509192915050565b5b80821115613ee35760008155600101613f06565b6001600160e01b031981168114611ea657600080fd5b600060208284031215613f4257600080fd5b8135613f4d81613f1a565b9392505050565b80356001600160a01b0381168114613f6b57600080fd5b919050565b80356001600160601b0381168114613f6b57600080fd5b60008060408385031215613f9a57600080fd5b613fa383613f54565b9150613fb160208401613f70565b90509250929050565b60005b83811015613fd5578181015183820152602001613fbd565b838111156129b85750506000910152565b60008151808452613ffe816020860160208601613fba565b601f01601f19169290920160200192915050565b602081526000613f4d6020830184613fe6565b60006020828403121561403757600080fd5b5035919050565b6000806040838503121561405157600080fd5b61405a83613f54565b946020939093013593505050565b60006020828403121561407a57600080fd5b613f4d82613f54565b803561ffff81168114613f6b57600080fd5b6000602082840312156140a757600080fd5b613f4d82614083565b634e487b7160e01b600052602160045260246000fd5b600481106140e457634e487b7160e01b600052602160045260246000fd5b9052565b600060208083526140fc81840185516140c6565b808401511515604084015260408401516060840160005b600481101561413357825160ff1682529183019190830190600101614113565b5050505060608301516001600160401b031660e0830152608083015161010080840152613193610120840182613fe6565b60008083601f84011261417657600080fd5b5081356001600160401b0381111561418d57600080fd5b6020830191508360208285010111156115c957600080fd5b600080602083850312156141b857600080fd5b82356001600160401b038111156141ce57600080fd5b6141da85828601614164565b90969095509350505050565b6000806000606084860312156141fb57600080fd5b61420484613f54565b925061421260208501613f54565b9150604084013590509250925092565b80358015158114613f6b57600080fd5b60006020828403121561424457600080fd5b613f4d82614222565b6000806040838503121561426057600080fd5b50508035926020909101359150565b6000806000806060858703121561428557600080fd5b61428e85614083565b935060208501356001600160401b038111156142a957600080fd5b6142b587828801614164565b90945092506142c8905060408601614083565b905092959194509250565b803560ff81168114613f6b57600080fd5b6000602082840312156142f657600080fd5b613f4d826142d3565b6000806040838503121561431257600080fd5b61431b83614083565b9150613fb160208401614222565b6000806040838503121561433c57600080fd5b61434583613f54565b9150613fb160208401614083565b6000806040838503121561436657600080fd5b61436f836142d3565b9150613fb1602084016142d3565b80356001600160401b0381168114613f6b57600080fd5b600080604083850312156143a757600080fd5b6143b083614083565b9150613fb16020840161437d565b6000806000806000608086880312156143d657600080fd5b6143df86614083565b94506143ed602087016142d3565b93506143fb6040870161437d565b925060608601356001600160401b0381111561441657600080fd5b61442288828901614164565b969995985093965092949392505050565b60008060006060848603121561444857600080fd5b61445184614083565b925061445f60208501613f54565b915061446d60408501613f70565b90509250925092565b6000806040838503121561448957600080fd5b61431b83613f54565b803560048110613f6b57600080fd5b600080600080606085870312156144b757600080fd5b6144c085614492565b93506144ce602086016142d3565b925060408501356001600160401b038111156144e957600080fd5b6144f587828801614164565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561453f5761453f614501565b604052919050565b600082601f83011261455857600080fd5b81356001600160401b0381111561457157614571614501565b614584601f8201601f1916602001614517565b81815284602083860101111561459957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080608085870312156145cc57600080fd5b6145d585613f54565b93506145e360208601613f54565b92506040850135915060608501356001600160401b0381111561460557600080fd5b61461187828801614547565b91505092959194509250565b600082601f83011261462e57600080fd5b813560206001600160401b0382111561464957614649614501565b8160051b614658828201614517565b928352848101820192828101908785111561467257600080fd5b83870192505b8483101561469157823582529183019190830190614678565b979650505050505050565b600080600080600060a086880312156146b457600080fd5b6146bd86613f54565b94506146cb60208701613f54565b935060408601356001600160401b03808211156146e757600080fd5b6146f389838a0161461d565b9450606088013591508082111561470957600080fd5b61471589838a0161461d565b9350608088013591508082111561472b57600080fd5b5061473888828901614547565b9150509295509295909350565b60008060006040848603121561475a57600080fd5b61476384614083565b925060208401356001600160401b0381111561477e57600080fd5b61478a86828701614164565b9497909650939450505050565b600080604083850312156147aa57600080fd5b61431b83614492565b600080604083850312156147c657600080fd5b6147cf83613f54565b9150613fb160208401613f54565b600080600080600060a086880312156147f557600080fd5b6147fe86613f54565b945061480c60208701613f54565b9350604086013592506060860135915060808601356001600160401b0381111561483557600080fd5b61473888828901614547565b61484b81866140c6565b83151560208201526001600160401b038316604082015260806060820152600061353e6080830184613fe6565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806148c157607f821691505b602082108114156148e257634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600b908201526a139bdd08185b1b1bddd95960aa1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600061ffff8083168185168083038211156149915761499161495e565b01949350505050565b6020808252600d908201526c45786365656420737570706c7960981b604082015260600190565b60008160001904831182151516156149db576149db61495e565b500290565b600061ffff80831681851681830481118215151615614a0157614a0161495e565b02949350505050565b634e487b7160e01b600052601260045260246000fd5b600061ffff80841680614a3557614a35614a0a565b92169190910692915050565b600061ffff80831681811415614a5957614a5961495e565b6001019392505050565b6001600160a01b039485168152929093166020830152604082015261ffff909116606082015260a06080820181905260009082015260c00190565b600082614aad57614aad614a0a565b500490565b600082821015614ac457614ac461495e565b500390565b60008219821115614adc57614adc61495e565b500190565b600060208284031215614af357600080fd5b5051919050565b600060ff821660ff84168060ff03821115614b1757614b1761495e565b019392505050565b600061ffff83811690831681811015614b3a57614b3a61495e565b039392505050565b8054600090600181811c9080831680614b5c57607f831692505b6020808410821415614b7e57634e487b7160e01b600052602260045260246000fd5b818015614b925760018114614ba357614bd0565b60ff19861689528489019650614bd0565b60008881526020902060005b86811015614bc85781548b820152908501908301614baf565b505084890196505b50505050505092915050565b6000614be88288614b42565b60f89690961b6001600160f81b0319168652505060f09290921b6001600160f01b031916600184015260c01b6001600160c01b031916600383015260601b6bffffffffffffffffffffffff1916600b820152601f01919050565b634e487b7160e01b600052603260045260246000fd5b6000614c648285614b42565b8351614991818360208801613fba565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b6000614cca8286614b42565b60f09490941b6001600160f01b0319168452505060601b6bffffffffffffffffffffffff19166002820152601601919050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415614d6357614d6361495e565b5060010190565b600082614d7957614d79614a0a565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061353e90830184613fe6565b600060208284031215614dc357600080fd5b8151613f4d81613f1a565b600081614ddd57614ddd61495e565b50600019019056fea26469706673582212201672d295472010fdf92ac963e49ff5fd00b2536a7c785500797cb096943bfd5664736f6c63430008090033
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.