ERC-721
NFT
Overview
Max Total Supply
424 HOG
Holders
124
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Balance
1 HOGLoading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
HogLordz
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "../MetaverseBaseNFT.sol"; contract HogLordz is MetaverseBaseNFT { constructor() MetaverseBaseNFT( 1000000000000000000, 5000, // total supply 20, // reserved supply 6, // max mint per transaction 50, // royalty fee "https://metadata.buildship.dev/api/dummy-metadata-for/bafybeianop3ltvag6t533qzyvguhpqbnkaixfxba7s4znaajnmmzcwok6m/", "Hog Lordz", "HOG" ) { setRoyaltyReceiver(msg.sender); } function withdraw() public override onlyOwner { uint256 balance = address(this).balance; Address.sendValue(payable(msg.sender), balance); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; interface INFTExtension is IERC165 { } interface INFTURIExtension is INFTExtension { function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; // These contract definitions are used to create a reference to the OpenSea // ProxyRegistry contract by using the registry's address (see isApprovedForAll). interface OwnableDelegateProxy { } interface ProxyRegistry { function proxies(address) external view returns (OwnableDelegateProxy); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; interface IAvatarNFT { function DEVELOPER() external pure returns (string memory _url); function DEVELOPER_ADDRESS() external pure returns (address payable _dev); // ------ View functions ------ function saleStarted() external view returns (bool); function isExtensionAllowed(address extension) external view returns (bool); /** Extra information stored for each tokenId. Optional, provided on mint */ function data(uint256 tokenId) external view returns (bytes32); // ------ Mint functions ------ /** Mint from NFTExtension contract. Optionally provide data parameter. */ function mintExternal(uint256 tokenId, address to, bytes32 data) external payable; // ------ Admin functions ------ function addExtension(address extension) external; function revokeExtension(address extension) external; function withdraw() external; } interface IMetaverseNFT is IAvatarNFT { // ------ View functions ------ /** Recommended royalty for tokenId sale. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); function totalSupply() external view returns (uint256); // ------ Admin functions ------ function setRoyaltyReceiver(address receiver) external; function setRoyaltyFee(uint256 fee) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165Checker.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "./factory/extensions/INFTExtension.sol"; import "./factory/IMetaverseNFT.sol"; import "./factory/OpenseaProxy.sol"; // Want to launch your own collection ? Check out https://buildship.dev. // // zAAAAA#QQQQQ= // yN8NNN@@@@@@L // jgggggQ@@@@@| // ~;!!!!|ccccc~ // ,~__~~>||L||_ // ,~__~~>|||||_ // ,~__~~>|||||_ // ``````````````````````',,,,,~;;;;;,`````````````````````` // .'..................''''''''.....''''.................''. // `'''..'''....''''''.....''''''..''''''''....'''''''....''. // `'''',,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,'.'. // `.'''!^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^~'...` // `..''!^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^~''..` // ```````...''~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~:''..``````` // ..'..........''...'''...'...''''..''..''''...'...'''...''.............''` // .''..........''.........'.........''.........'.........''.............''` // .''..';^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^~'....` // .''..,aqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv'....` // .''..,aqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqc'..''` // .''..,|77777777777777777777777777777777777777777777777777777777777^'..''` // .''..'.''.'''.....'''''.....''.'''....''.'''.....'''''.....''.''''....''` // .''..''...'''..............................................''''...''..''` // ``````....''',,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,''...'``````` // `...'':_______________________________________________,'...'` // ....'':_______________________________________________,'....` // .'...':__~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~___,'....` // .'...':__~~~!^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^;~~___,'...'` // `.'..'':___~~!^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^;~___~,'...'. // `,,,,,,,,:~~~~~~;!!!!!r=================|iiiiiiiiiiiiiiiii|>>>>>=^^^^^^;;;;;;;;: // `>LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLSUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU? // ~LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLSUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUw: // .t555555555yyyyy55555yyyyy555555yyyyy55Dgggggggggggggggggggggggggggggggggggggz // vNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ@QQQ! // ,KNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQP` // |6666666666666666666666666666666666668QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ8; // `>LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLZUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU6L // ,LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLSUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUj. // !LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLS6UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUX; // .*LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLSUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU7` // _LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLSUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUa' // ^LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLSUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUX! // `+LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLSUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU> // '*LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLS6UUUUUUUUUUUUUUUUUUUUUUUUUUUUUz` // ,|LLLLLLLLLLLLLLLLLLLLLLLLLLLLLSUUUUUUUUUUUUUUUUUUUUUUUUUUUUUj' // ~LLLLLLLLLLLLLLLLLLLLLLLLLLLLLSU6UUUUUUUUUUUUUUUUUUUUUUUUUUX: contract MetaverseBaseNFT is ERC721, ReentrancyGuard, Ownable, IMetaverseNFT // implements IERC2981 { using Address for address; using SafeERC20 for IERC20; using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; uint256 public constant SALE_STARTS_AT_INFINITY = 2**256 - 1; uint256 public constant DEVELOPER_FEE = 500; // of 10,000 = 5% uint256 public startTimestamp = SALE_STARTS_AT_INFINITY; uint256 public reserved; uint256 public maxSupply; uint256 public maxPerMint; uint256 public price; uint256 public royaltyFee; address public royaltyReceiver; address public uriExtension = address(0x0); bool public isFrozen; bool private isOpenSeaProxyActive = true; /** * @dev Additional data for each token that needs to be stored and accessed on-chain */ mapping (uint256 => bytes32) public data; /** * @dev List of connected extensions */ INFTExtension[] public extensions; string public PROVENANCE_HASH = ""; string private CONTRACT_URI = ""; string private BASE_URI; event ExtensionAdded(address indexed extensionAddress); event ExtensionRevoked(address indexed extensionAddress); event ExtensionURIAdded(address indexed extensionAddress); constructor( uint256 _price, uint256 _maxSupply, uint256 _nReserved, uint256 _maxPerMint, uint256 _royaltyFee, string memory _uri, string memory _name, string memory _symbol ) ERC721(_name, _symbol) { price = _price; reserved = _nReserved; maxPerMint = _maxPerMint; maxSupply = _maxSupply; royaltyFee = _royaltyFee; royaltyReceiver = address(this); // Need help with uploading metadata? Try https://buildship.dev BASE_URI = _uri; } function _baseURI() internal view override returns (string memory) { return BASE_URI; } function contractURI() public view returns (string memory uri) { uri = bytes(CONTRACT_URI).length > 0 ? CONTRACT_URI : _baseURI(); } function tokenURI(uint256 tokenId) public view override returns (string memory) { if (uriExtension != address(0)) { string memory uri = INFTURIExtension(uriExtension).tokenURI(tokenId); if (bytes(uri).length > 0) { return uri; } } return super.tokenURI(tokenId); } function totalSupply() public view returns (uint256) { // Only works like this for sequential mint tokens return _tokenIdCounter.current(); } // ----- Admin functions ----- function setBaseURI(string calldata uri) public onlyOwner { BASE_URI = uri; } // Contract-level metadata for Opensea function setContractURI(string calldata uri) public onlyOwner { CONTRACT_URI = uri; } function setPrice(uint256 _price) public onlyOwner { price = _price; } // Freeze forever, irreversible function freeze() public onlyOwner { isFrozen = true; } function isExtensionAllowed(address _extension) public view returns (bool) { for (uint index = 0; index < extensions.length; index++) { if (address(extensions[index]) == _extension) { return true; } } return false; } // Extensions are allowed to mint function addExtension(address _extension) public onlyOwner { require(_extension != address(this), "Cannot add self as extension"); require(!isExtensionAllowed(_extension), "Extension already added"); extensions.push(INFTExtension(_extension)); emit ExtensionAdded(_extension); } function revokeExtension(address _extension) public onlyOwner { uint256 index = 0; for (; index < extensions.length; index++) { if (extensions[index] == INFTExtension(_extension)) { break; } } extensions[index] = extensions[extensions.length - 1]; extensions.pop(); emit ExtensionRevoked(_extension); } function setExtensionTokenURI(address extension) public onlyOwner { require(extension != address(this), "Cannot add self as extension"); require(extension == address(0x0) || ERC165Checker.supportsInterface(extension, type(INFTURIExtension).interfaceId), "Not conforms to extension"); uriExtension = extension; emit ExtensionURIAdded(extension); } // function to disable gasless listings for security in case // opensea ever shuts down or is compromised // from CryptoCoven https://etherscan.io/address/0x5180db8f5c931aae63c74266b211f580155ecac8#code function setIsOpenSeaProxyActive(bool _isOpenSeaProxyActive) public onlyOwner { isOpenSeaProxyActive = _isOpenSeaProxyActive; } // ---- Minting ---- function _mintConsecutive(uint256 nTokens, address to, bytes32 extraData) internal { require(_tokenIdCounter.current() + nTokens + reserved <= maxSupply, "Not enough Tokens left."); for (uint256 i; i < nTokens; i++) { uint256 tokenId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(to, tokenId); data[tokenId] = extraData; } } // ---- Mint control ---- modifier whenSaleStarted() { require(saleStarted(), "Sale not started"); _; } modifier whenNotFrozen() { require(!isFrozen, "Minting is frozen"); _; } modifier onlyExtension() { require(isExtensionAllowed(msg.sender), "Extension should be added to contract before minting"); _; } // ---- Mint public ---- // Contract can sell tokens function mint(uint256 nTokens) external payable nonReentrant whenSaleStarted { require(nTokens <= maxPerMint, "You cannot mint more than MAX_TOKENS_PER_MINT tokens at once!"); require(nTokens * price <= msg.value, "Inconsistent amount sent!"); _mintConsecutive(nTokens, msg.sender, 0x0); } // Owner can claim free tokens function claim(uint256 nTokens, address to) external nonReentrant onlyOwner { require(nTokens <= reserved, "That would exceed the max reserved."); reserved = reserved - nTokens; _mintConsecutive(nTokens, to, 0x0); } // ---- Mint via extension function mintExternal(uint256 nTokens, address to, bytes32 extraData) external payable onlyExtension nonReentrant { _mintConsecutive(nTokens, to, extraData); } // ---- Sale control ---- function updateStartTimestamp(uint256 _startTimestamp) public onlyOwner whenNotFrozen { startTimestamp = _startTimestamp; } function startSale() public onlyOwner whenNotFrozen { startTimestamp = block.timestamp; } function stopSale() public onlyOwner { startTimestamp = SALE_STARTS_AT_INFINITY; } function saleStarted() public view returns (bool) { return block.timestamp >= startTimestamp; } // ---- Offchain Info ---- // This should be set before sales open. function setProvenanceHash(string memory provenanceHash) public onlyOwner { PROVENANCE_HASH = provenanceHash; } function setRoyaltyFee(uint256 _royaltyFee) public onlyOwner { royaltyFee = _royaltyFee; } function setRoyaltyReceiver(address _receiver) public onlyOwner { royaltyReceiver = _receiver; } function royaltyInfo(uint256, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount) { // We use the same contract to split royalties: 5% of royalty goes to the developer receiver = royaltyReceiver; royaltyAmount = salePrice * royaltyFee / 10000; } // ---- Allow royalty deposits from Opensea ----- receive() external payable {} // ---- Withdraw ----- function withdraw() public virtual onlyOwner { uint256 balance = address(this).balance; uint256 amount = balance * (10000 - DEVELOPER_FEE) / 10000; address payable dev = DEVELOPER_ADDRESS(); Address.sendValue(payable(msg.sender), amount); Address.sendValue(dev, balance - amount); } function withdrawToken(IERC20 token) public virtual onlyOwner { uint256 balance = token.balanceOf(address(this)); uint256 amount = balance * (10000 - DEVELOPER_FEE) / 10000; address payable dev = DEVELOPER_ADDRESS(); token.safeTransfer(payable(msg.sender), amount); token.safeTransfer(dev, balance - amount); } function DEVELOPER() public pure returns (string memory _url) { _url = "https://buildship.dev"; } function DEVELOPER_ADDRESS() public pure returns (address payable _dev) { _dev = payable(0x704C043CeB93bD6cBE570C6A2708c3E1C0310587); } // -------- ERC721 overrides -------- function supportsInterface(bytes4 interfaceId) public view override returns (bool) { return interfaceId == type(IERC2981).interfaceId || interfaceId == type(IMetaverseNFT).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Override isApprovedForAll to allowlist user's OpenSea proxy accounts to enable gas-less listings. * Taken from CryptoCoven: https://etherscan.io/address/0x5180db8f5c931aae63c74266b211f580155ecac8#code */ function isApprovedForAll(address owner, address operator) public view override returns (bool) { // Get a reference to OpenSea's proxy registry contract by instantiating // the contract using the already existing address. ProxyRegistry proxyRegistry = ProxyRegistry(0xa5409ec958C83C3f309868babACA7c86DCB077c1); if (isOpenSeaProxyActive && address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Library used to query support of an interface declared via {IERC165}. * * Note that these functions return the actual result of the query: they do not * `revert` if an interface is not supported. It is up to the caller to decide * what to do in these cases. */ library ERC165Checker { // As per the EIP-165 spec, no interface should ever match 0xffffffff bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff; /** * @dev Returns true if `account` supports the {IERC165} interface, */ function supportsERC165(address account) internal view returns (bool) { // Any contract that implements ERC165 must explicitly indicate support of // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid return _supportsERC165Interface(account, type(IERC165).interfaceId) && !_supportsERC165Interface(account, _INTERFACE_ID_INVALID); } /** * @dev Returns true if `account` supports the interface defined by * `interfaceId`. Support for {IERC165} itself is queried automatically. * * See {IERC165-supportsInterface}. */ function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) { // query support of both ERC165 as per the spec and support of _interfaceId return supportsERC165(account) && _supportsERC165Interface(account, interfaceId); } /** * @dev Returns a boolean array where each value corresponds to the * interfaces passed in and whether they're supported or not. This allows * you to batch check interfaces for a contract where your expectation * is that some interfaces may not be supported. * * See {IERC165-supportsInterface}. * * _Available since v3.4._ */ function getSupportedInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool[] memory) { // an array of booleans corresponding to interfaceIds and whether they're supported or not bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length); // query support of ERC165 itself if (supportsERC165(account)) { // query support of each interface in interfaceIds for (uint256 i = 0; i < interfaceIds.length; i++) { interfaceIdsSupported[i] = _supportsERC165Interface(account, interfaceIds[i]); } } return interfaceIdsSupported; } /** * @dev Returns true if `account` supports all the interfaces defined in * `interfaceIds`. Support for {IERC165} itself is queried automatically. * * Batch-querying can lead to gas savings by skipping repeated checks for * {IERC165} support. * * See {IERC165-supportsInterface}. */ function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) { // query support of ERC165 itself if (!supportsERC165(account)) { return false; } // query support of each interface in _interfaceIds for (uint256 i = 0; i < interfaceIds.length; i++) { if (!_supportsERC165Interface(account, interfaceIds[i])) { return false; } } // all interfaces supported return true; } /** * @notice Query if a contract implements an interface, does not check ERC165 support * @param account The address of the contract to query for support of an interface * @param interfaceId The interface identifier, as specified in ERC-165 * @return true if the contract at account indicates support of the interface with * identifier interfaceId, false otherwise * @dev Assumes that account contains a contract that supports ERC165, otherwise * the behavior of this method is undefined. This precondition can be checked * with {supportsERC165}. * Interface identification is specified in ERC-165. */ function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) { bytes memory encodedParams = abi.encodeWithSelector(IERC165.supportsInterface.selector, interfaceId); (bool success, bytes memory result) = account.staticcall{gas: 30000}(encodedParams); if (result.length < 32) return false; return success && abi.decode(result, (bool)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @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 pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard */ interface IERC2981 is IERC165 { /** * @dev Called with the sale price to determine how much royalty is owed and to whom. * @param tokenId - the NFT asset queried for royalty information * @param salePrice - the sale price of the NFT asset specified by `tokenId` * @return receiver - address of who should be sent the royalty payment * @return royaltyAmount - the royalty payment amount for `salePrice` */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 10000 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"extensionAddress","type":"address"}],"name":"ExtensionAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"extensionAddress","type":"address"}],"name":"ExtensionRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"extensionAddress","type":"address"}],"name":"ExtensionURIAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEVELOPER","outputs":[{"internalType":"string","name":"_url","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"DEVELOPER_ADDRESS","outputs":[{"internalType":"address payable","name":"_dev","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"DEVELOPER_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROVENANCE_HASH","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SALE_STARTS_AT_INFINITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_extension","type":"address"}],"name":"addExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nTokens","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"data","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"extensions","outputs":[{"internalType":"contract INFTExtension","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeze","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":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_extension","type":"address"}],"name":"isExtensionAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nTokens","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes32","name":"extraData","type":"bytes32"}],"name":"mintExternal","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_extension","type":"address"}],"name":"revokeExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"saleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"extension","type":"address"}],"name":"setExtensionTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isOpenSeaProxyActive","type":"bool"}],"name":"setIsOpenSeaProxyActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_royaltyFee","type":"uint256"}],"name":"setRoyaltyFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"setRoyaltyReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stopSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTimestamp","type":"uint256"}],"name":"updateStartTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriExtension","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60001960095560108054600161ff0160a01b031916600160a81b17905560a0604081905260006080819052620000389160139162000240565b50604080516020810191829052600090819052620000599160149162000240565b503480156200006757600080fd5b50670de0b6b3a76400006113886014600660326040518060a0016040528060728152602001620044586072913960408051808201825260098152682437b3902637b9323d60b91b602080830191825283518085019094526003845262484f4760e81b90840152815191929183918391620000e49160009162000240565b508051620000fa90600190602084019062000240565b50506001600655506200010d336200016d565b600d889055600a869055600c859055600b879055600e849055600f80546001600160a01b0319163017905582516200014d90601590602086019062000240565b5050505050505050506200016733620001bf60201b60201c565b62000323565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6007546001600160a01b031633146200021e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b8280546200024e90620002e6565b90600052602060002090601f016020900481019282620002725760008555620002bd565b82601f106200028d57805160ff1916838001178555620002bd565b82800160010185558215620002bd579182015b82811115620002bd578251825591602001919060010190620002a0565b50620002cb929150620002cf565b5090565b5b80821115620002cb5760008155600101620002d0565b600181811c90821680620002fb57607f821691505b602082108114156200031d57634e487b7160e01b600052602260045260246000fd5b50919050565b61412580620003336000396000f3fe60806040526004361061036f5760003560e01c80638dc251e3116101c6578063d56b7546116100f7578063e6fd48bc11610095578063f0ba84401161006f578063f0ba8440146109f4578063f2fde38b14610a21578063fe60d12c14610a41578063ff1b655614610a5757600080fd5b8063e6fd48bc146109a9578063e8a3d485146109bf578063e985e9c5146109d457600080fd5b8063ddd5e1b2116100d1578063ddd5e1b214610934578063e36b0b3714610954578063e43082f714610969578063e67151ae1461098957600080fd5b8063d56b7546146108e8578063d5abeb01146108fe578063db85d59c1461091457600080fd5b8063a0712d6811610164578063b66a0e5d1161013e578063b66a0e5d1461087d578063b88d4fde14610892578063b8997a97146108b2578063c87b56dd146108c857600080fd5b8063a0712d681461082a578063a22cb4651461083d578063a769310a1461085d57600080fd5b806395d89b41116101a057806395d89b41146107ab5780639eb88b2c146107c05780639fbc8713146107f4578063a035b1fe1461081457600080fd5b80638dc251e31461074b57806391b7f5ed1461076b578063938e3d7b1461078b57600080fd5b8063454e66c8116102a05780636352211e1161023e57806370a082311161021857806370a08231146106d8578063715018a6146106f8578063894760691461070d5780638da5cb5b1461072d57600080fd5b80636352211e1461067857806363c5c599146106985780636b853314146106b857600080fd5b806352ee46961161027a57806352ee46961461060b57806355f804b31461062b5780635c474f9e1461064b57806362a5af3b1461066357600080fd5b8063454e66c8146105bb5780634690521b146105e2578063507e094f146105f557600080fd5b806323b872dd1161030d5780633c934ab3116102e75780633c934ab3146105205780633ccfd60b146105665780633e4086e51461057b57806342842e0e1461059b57600080fd5b806323b872dd1461048f5780632a55205a146104af57806333eeb147146104ee57600080fd5b8063095ea7b311610349578063095ea7b31461040a578063109695231461042c578063170ff3e11461044c57806318160ddd1461046c57600080fd5b806301ffc9a71461037b57806306fdde03146103b0578063081812fc146103d257600080fd5b3661037657005b600080fd5b34801561038757600080fd5b5061039b610396366004613913565b610a6c565b60405190151581526020015b60405180910390f35b3480156103bc57600080fd5b506103c5610b14565b6040516103a791906139a6565b3480156103de57600080fd5b506103f26103ed3660046139b9565b610ba6565b6040516001600160a01b0390911681526020016103a7565b34801561041657600080fd5b5061042a6104253660046139e7565b610c51565b005b34801561043857600080fd5b5061042a610447366004613b15565b610d83565b34801561045857600080fd5b5061042a610467366004613b5e565b610df4565b34801561047857600080fd5b50610481610f8d565b6040519081526020016103a7565b34801561049b57600080fd5b5061042a6104aa366004613b7b565b610f9d565b3480156104bb57600080fd5b506104cf6104ca366004613bbc565b611024565b604080516001600160a01b0390931683526020830191909152016103a7565b3480156104fa57600080fd5b5060105461039b9074010000000000000000000000000000000000000000900460ff1681565b34801561052c57600080fd5b5060408051808201909152601581527f68747470733a2f2f6275696c64736869702e646576000000000000000000000060208201526103c5565b34801561057257600080fd5b5061042a61105a565b34801561058757600080fd5b5061042a6105963660046139b9565b6110c2565b3480156105a757600080fd5b5061042a6105b6366004613b7b565b611121565b3480156105c757600080fd5b5073704c043ceb93bd6cbe570c6a2708c3e1c03105876103f2565b61042a6105f0366004613bde565b61113c565b34801561060157600080fd5b50610481600c5481565b34801561061757600080fd5b506010546103f2906001600160a01b031681565b34801561063757600080fd5b5061042a610646366004613c05565b611224565b34801561065757600080fd5b5060095442101561039b565b34801561066f57600080fd5b5061042a61128a565b34801561068457600080fd5b506103f26106933660046139b9565b611325565b3480156106a457600080fd5b5061039b6106b3366004613b5e565b6113b0565b3480156106c457600080fd5b5061042a6106d3366004613b5e565b61141a565b3480156106e457600080fd5b506104816106f3366004613b5e565b6115b6565b34801561070457600080fd5b5061042a611650565b34801561071957600080fd5b5061042a610728366004613b5e565b6116b6565b34801561073957600080fd5b506007546001600160a01b03166103f2565b34801561075757600080fd5b5061042a610766366004613b5e565b61181a565b34801561077757600080fd5b5061042a6107863660046139b9565b6118ae565b34801561079757600080fd5b5061042a6107a6366004613c05565b61190d565b3480156107b757600080fd5b506103c5611973565b3480156107cc57600080fd5b506104817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81565b34801561080057600080fd5b50600f546103f2906001600160a01b031681565b34801561082057600080fd5b50610481600d5481565b61042a6108383660046139b9565b611982565b34801561084957600080fd5b5061042a610858366004613c85565b611b15565b34801561086957600080fd5b5061042a610878366004613b5e565b611bf8565b34801561088957600080fd5b5061042a611dc9565b34801561089e57600080fd5b5061042a6108ad366004613cbe565b611e94565b3480156108be57600080fd5b50610481600e5481565b3480156108d457600080fd5b506103c56108e33660046139b9565b611f1c565b3480156108f457600080fd5b506104816101f481565b34801561090a57600080fd5b50610481600b5481565b34801561092057600080fd5b506103f261092f3660046139b9565b612003565b34801561094057600080fd5b5061042a61094f366004613d3e565b61202d565b34801561096057600080fd5b5061042a61217d565b34801561097557600080fd5b5061042a610984366004613d63565b6121fd565b34801561099557600080fd5b5061042a6109a43660046139b9565b6122a2565b3480156109b557600080fd5b5061048160095481565b3480156109cb57600080fd5b506103c561236c565b3480156109e057600080fd5b5061039b6109ef366004613d80565b612399565b348015610a0057600080fd5b50610481610a0f3660046139b9565b60116020526000908152604090205481565b348015610a2d57600080fd5b5061042a610a3c366004613b5e565b6124bb565b348015610a4d57600080fd5b50610481600a5481565b348015610a6357600080fd5b506103c561259a565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610aff57507fffffffff0000000000000000000000000000000000000000000000000000000082167f81c1fa8100000000000000000000000000000000000000000000000000000000145b80610b0e5750610b0e82612628565b92915050565b606060008054610b2390613dae565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4f90613dae565b8015610b9c5780601f10610b7157610100808354040283529160200191610b9c565b820191906000526020600020905b815481529060010190602001808311610b7f57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c355760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c5c82611325565b9050806001600160a01b0316836001600160a01b03161415610ce65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610c2c565b336001600160a01b0382161480610d025750610d028133612399565b610d745760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c2c565b610d7e838361270b565b505050565b6007546001600160a01b03163314610ddd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b8051610df09060139060208401906137ba565b5050565b6007546001600160a01b03163314610e4e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b6001600160a01b038116301415610ea75760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f74206164642073656c6620617320657874656e73696f6e000000006044820152606401610c2c565b610eb0816113b0565b15610efd5760405162461bcd60e51b815260206004820152601760248201527f457874656e73696f6e20616c72656164792061646465640000000000000000006044820152606401610c2c565b6012805460018101825560009182527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34440180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915560405190917f99c6112dbaef85e57ac8ca86dd23e3c785162b58a6e810e5d5e7455b568d66b191a250565b6000610f9860085490565b905090565b610fa73382612791565b6110195760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c2c565b610d7e838383612871565b600f54600e546001600160a01b0390911690600090612710906110479085613e31565b6110519190613e9d565b90509250929050565b6007546001600160a01b031633146110b45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b476110bf3382612a56565b50565b6007546001600160a01b0316331461111c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b600e55565b610d7e83838360405180602001604052806000815250611e94565b611145336113b0565b6111b75760405162461bcd60e51b815260206004820152603460248201527f457874656e73696f6e2073686f756c6420626520616464656420746f20636f6e60448201527f7472616374206265666f7265206d696e74696e670000000000000000000000006064820152608401610c2c565b6002600654141561120a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c2c565b600260065561121a838383612b6f565b5050600160065550565b6007546001600160a01b0316331461127e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b610d7e6015838361383e565b6007546001600160a01b031633146112e45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b601080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b6000818152600260205260408120546001600160a01b031680610b0e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610c2c565b6000805b60125481101561141157826001600160a01b0316601282815481106113db576113db613eb1565b6000918252602090912001546001600160a01b031614156113ff5750600192915050565b8061140981613ee0565b9150506113b4565b50600092915050565b6007546001600160a01b031633146114745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b6001600160a01b0381163014156114cd5760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f74206164642073656c6620617320657874656e73696f6e000000006044820152606401610c2c565b6001600160a01b03811615806115085750611508817fc87b56dd00000000000000000000000000000000000000000000000000000000612c34565b6115545760405162461bcd60e51b815260206004820152601960248201527f4e6f7420636f6e666f726d7320746f20657874656e73696f6e000000000000006044820152606401610c2c565b601080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040517f92597a601f19fe4d50f14ea76d7ba45d21bad7992f7e1709c605642b190de09290600090a250565b60006001600160a01b0382166116345760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610c2c565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b031633146116aa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b6116b46000612c57565b565b6007546001600160a01b031633146117105760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561176b57600080fd5b505afa15801561177f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117a39190613f19565b905060006127106117b66101f482613f32565b6117c09084613e31565b6117ca9190613e9d565b905073704c043ceb93bd6cbe570c6a2708c3e1c03105876117f56001600160a01b0385163384612cc1565b611814816118038486613f32565b6001600160a01b0387169190612cc1565b50505050565b6007546001600160a01b031633146118745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b600f80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6007546001600160a01b031633146119085760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b600d55565b6007546001600160a01b031633146119675760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b610d7e6014838361383e565b606060018054610b2390613dae565b600260065414156119d55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c2c565b6002600655600954421015611a2c5760405162461bcd60e51b815260206004820152601060248201527f53616c65206e6f742073746172746564000000000000000000000000000000006044820152606401610c2c565b600c54811115611aa45760405162461bcd60e51b815260206004820152603d60248201527f596f752063616e6e6f74206d696e74206d6f7265207468616e204d41585f544f60448201527f4b454e535f5045525f4d494e5420746f6b656e73206174206f6e6365210000006064820152608401610c2c565b34600d5482611ab39190613e31565b1115611b015760405162461bcd60e51b815260206004820152601960248201527f496e636f6e73697374656e7420616d6f756e742073656e7421000000000000006044820152606401610c2c565b611b0d81336000612b6f565b506001600655565b6001600160a01b038216331415611b6e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c2c565b3360008181526005602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6007546001600160a01b03163314611c525760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b60005b601254811015611cae57816001600160a01b031660128281548110611c7c57611c7c613eb1565b6000918252602090912001546001600160a01b03161415611c9c57611cae565b80611ca681613ee0565b915050611c55565b60128054611cbe90600190613f32565b81548110611cce57611cce613eb1565b600091825260209091200154601280546001600160a01b039092169183908110611cfa57611cfa613eb1565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506012805480611d3957611d39613f49565b60008281526020812082017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690559091019091556040516001600160a01b038416917fe056b30f86b962fc88925cb7559e4364707cab11d2c52e090e6c0db62eb9113591a25050565b6007546001600160a01b03163314611e235760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b60105474010000000000000000000000000000000000000000900460ff1615611e8e5760405162461bcd60e51b815260206004820152601160248201527f4d696e74696e672069732066726f7a656e0000000000000000000000000000006044820152606401610c2c565b42600955565b611e9e3383612791565b611f105760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c2c565b61181484848484612d41565b6010546060906001600160a01b031615611ffa576010546040517fc87b56dd000000000000000000000000000000000000000000000000000000008152600481018490526000916001600160a01b03169063c87b56dd9060240160006040518083038186803b158015611f8e57600080fd5b505afa158015611fa2573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052611fe89190810190613f78565b805190915015611ff85792915050565b505b610b0e82612dca565b6012818154811061201357600080fd5b6000918252602090912001546001600160a01b0316905081565b600260065414156120805760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c2c565b60026006556007546001600160a01b031633146120df5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b600a548211156121575760405162461bcd60e51b815260206004820152602360248201527f5468617420776f756c642065786365656420746865206d61782072657365727660448201527f65642e00000000000000000000000000000000000000000000000000000000006064820152608401610c2c565b81600a546121659190613f32565b600a5561217482826000612b6f565b50506001600655565b6007546001600160a01b031633146121d75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600955565b6007546001600160a01b031633146122575760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b601080549115157501000000000000000000000000000000000000000000027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b6007546001600160a01b031633146122fc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b60105474010000000000000000000000000000000000000000900460ff16156123675760405162461bcd60e51b815260206004820152601160248201527f4d696e74696e672069732066726f7a656e0000000000000000000000000000006044820152606401610c2c565b600955565b606060006014805461237d90613dae565b90501161238c57610f98612eb2565b60148054610b2390613dae565b60105460009073a5409ec958c83c3f309868babaca7c86dcb077c1907501000000000000000000000000000000000000000000900460ff16801561247a57506040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b15801561243757600080fd5b505afa15801561244b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061246f9190613fef565b6001600160a01b0316145b15612489576001915050610b0e565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b6007546001600160a01b031633146125155760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b6001600160a01b0381166125915760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c2c565b6110bf81612c57565b601380546125a790613dae565b80601f01602080910402602001604051908101604052809291908181526020018280546125d390613dae565b80156126205780601f106125f557610100808354040283529160200191612620565b820191906000526020600020905b81548152906001019060200180831161260357829003601f168201915b505050505081565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806126bb57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610b0e57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610b0e565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038416908117909155819061275882611325565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661281b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610c2c565b600061282683611325565b9050806001600160a01b0316846001600160a01b031614806128615750836001600160a01b031661285684610ba6565b6001600160a01b0316145b806124b357506124b38185612399565b826001600160a01b031661288482611325565b6001600160a01b0316146129005760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610c2c565b6001600160a01b03821661297b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610c2c565b61298660008261270b565b6001600160a01b03831660009081526003602052604081208054600192906129af908490613f32565b90915550506001600160a01b03821660009081526003602052604081208054600192906129dd90849061400c565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b80471015612aa65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610c2c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612af3576040519150601f19603f3d011682016040523d82523d6000602084013e612af8565b606091505b5050905080610d7e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610c2c565b600b54600a5484612b7f60085490565b612b89919061400c565b612b93919061400c565b1115612be15760405162461bcd60e51b815260206004820152601760248201527f4e6f7420656e6f75676820546f6b656e73206c6566742e0000000000000000006044820152606401610c2c565b60005b83811015611814576000612bf760085490565b9050612c07600880546001019055565b612c118482612ec1565b600090815260116020526040902082905580612c2c81613ee0565b915050612be4565b6000612c3f83612edb565b8015612c505750612c508383612f3f565b9392505050565b600780546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610d7e90849061306e565b612d4c848484612871565b612d5884848484613153565b6118145760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c2c565b6000818152600260205260409020546060906001600160a01b0316612e575760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610c2c565b6000612e61612eb2565b90506000815111612e815760405180602001604052806000815250612c50565b80612e8b8461331e565b604051602001612e9c929190614024565b6040516020818303038152906040529392505050565b606060158054610b2390613dae565b610df0828260405180602001604052806000815250613450565b6000612f07827f01ffc9a700000000000000000000000000000000000000000000000000000000612f3f565b8015610b0e5750612f38827fffffffff00000000000000000000000000000000000000000000000000000000612f3f565b1592915050565b604080517fffffffff00000000000000000000000000000000000000000000000000000000831660248083019190915282518083039091018152604490910182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f01ffc9a700000000000000000000000000000000000000000000000000000000179052905160009190829081906001600160a01b0387169061753090612fec908690614053565b6000604051808303818686fa925050503d8060008114613028576040519150601f19603f3d011682016040523d82523d6000602084013e61302d565b606091505b50915091506020815110156130485760009350505050610b0e565b818015613064575080806020019051810190613064919061406f565b9695505050505050565b60006130c3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166134d99092919063ffffffff16565b805190915015610d7e57808060200190518101906130e1919061406f565b610d7e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610c2c565b60006001600160a01b0384163b15613313576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906131b090339089908890889060040161408c565b602060405180830381600087803b1580156131ca57600080fd5b505af1925050508015613218575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613215918101906140be565b60015b6132c8573d808015613246576040519150601f19603f3d011682016040523d82523d6000602084013e61324b565b606091505b5080516132c05760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c2c565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506124b3565b506001949350505050565b60608161335e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613388578061337281613ee0565b91506133819050600a83613e9d565b9150613362565b60008167ffffffffffffffff8111156133a3576133a3613a13565b6040519080825280601f01601f1916602001820160405280156133cd576020820181803683370190505b5090505b84156124b3576133e2600183613f32565b91506133ef600a866140db565b6133fa90603061400c565b60f81b81838151811061340f5761340f613eb1565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613449600a86613e9d565b94506133d1565b61345a83836134e8565b6134676000848484613153565b610d7e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c2c565b60606124b38484600085613642565b6001600160a01b03821661353e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c2c565b6000818152600260205260409020546001600160a01b0316156135a35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c2c565b6001600160a01b03821660009081526003602052604081208054600192906135cc90849061400c565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060824710156136ba5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610c2c565b843b6137085760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c2c565b600080866001600160a01b031685876040516137249190614053565b60006040518083038185875af1925050503d8060008114613761576040519150601f19603f3d011682016040523d82523d6000602084013e613766565b606091505b5091509150613776828286613781565b979650505050505050565b60608315613790575081612c50565b8251156137a05782518084602001fd5b8160405162461bcd60e51b8152600401610c2c91906139a6565b8280546137c690613dae565b90600052602060002090601f0160209004810192826137e8576000855561382e565b82601f1061380157805160ff191683800117855561382e565b8280016001018555821561382e579182015b8281111561382e578251825591602001919060010190613813565b5061383a9291506138d0565b5090565b82805461384a90613dae565b90600052602060002090601f01602090048101928261386c576000855561382e565b82601f106138a3578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082351617855561382e565b8280016001018555821561382e579182015b8281111561382e5782358255916020019190600101906138b5565b5b8082111561383a57600081556001016138d1565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146110bf57600080fd5b60006020828403121561392557600080fd5b8135612c50816138e5565b60005b8381101561394b578181015183820152602001613933565b838111156118145750506000910152565b60008151808452613974816020860160208601613930565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000612c50602083018461395c565b6000602082840312156139cb57600080fd5b5035919050565b6001600160a01b03811681146110bf57600080fd5b600080604083850312156139fa57600080fd5b8235613a05816139d2565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613a8957613a89613a13565b604052919050565b600067ffffffffffffffff821115613aab57613aab613a13565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b6000613aea613ae584613a91565b613a42565b9050828152838383011115613afe57600080fd5b828260208301376000602084830101529392505050565b600060208284031215613b2757600080fd5b813567ffffffffffffffff811115613b3e57600080fd5b8201601f81018413613b4f57600080fd5b6124b384823560208401613ad7565b600060208284031215613b7057600080fd5b8135612c50816139d2565b600080600060608486031215613b9057600080fd5b8335613b9b816139d2565b92506020840135613bab816139d2565b929592945050506040919091013590565b60008060408385031215613bcf57600080fd5b50508035926020909101359150565b600080600060608486031215613bf357600080fd5b833592506020840135613bab816139d2565b60008060208385031215613c1857600080fd5b823567ffffffffffffffff80821115613c3057600080fd5b818501915085601f830112613c4457600080fd5b813581811115613c5357600080fd5b866020828501011115613c6557600080fd5b60209290920196919550909350505050565b80151581146110bf57600080fd5b60008060408385031215613c9857600080fd5b8235613ca3816139d2565b91506020830135613cb381613c77565b809150509250929050565b60008060008060808587031215613cd457600080fd5b8435613cdf816139d2565b93506020850135613cef816139d2565b925060408501359150606085013567ffffffffffffffff811115613d1257600080fd5b8501601f81018713613d2357600080fd5b613d3287823560208401613ad7565b91505092959194509250565b60008060408385031215613d5157600080fd5b823591506020830135613cb3816139d2565b600060208284031215613d7557600080fd5b8135612c5081613c77565b60008060408385031215613d9357600080fd5b8235613d9e816139d2565b91506020830135613cb3816139d2565b600181811c90821680613dc257607f821691505b60208210811415613dfc577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613e6957613e69613e02565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082613eac57613eac613e6e565b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613f1257613f12613e02565b5060010190565b600060208284031215613f2b57600080fd5b5051919050565b600082821015613f4457613f44613e02565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600060208284031215613f8a57600080fd5b815167ffffffffffffffff811115613fa157600080fd5b8201601f81018413613fb257600080fd5b8051613fc0613ae582613a91565b818152856020838501011115613fd557600080fd5b613fe6826020830160208601613930565b95945050505050565b60006020828403121561400157600080fd5b8151612c50816139d2565b6000821982111561401f5761401f613e02565b500190565b60008351614036818460208801613930565b83519083019061404a818360208801613930565b01949350505050565b60008251614065818460208701613930565b9190910192915050565b60006020828403121561408157600080fd5b8151612c5081613c77565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613064608083018461395c565b6000602082840312156140d057600080fd5b8151612c50816138e5565b6000826140ea576140ea613e6e565b50069056fea26469706673582212209b681ecf85bd09753581b32bf82ed97f936c3f885690a7cba96ac3b5567c1ae164736f6c6343000809003368747470733a2f2f6d657461646174612e6275696c64736869702e6465762f6170692f64756d6d792d6d657461646174612d666f722f62616679626569616e6f70336c747661673674353333717a79766775687071626e6b616978667862613773347a6e61616a6e6d6d7a63776f6b366d2f
Deployed Bytecode
0x60806040526004361061036f5760003560e01c80638dc251e3116101c6578063d56b7546116100f7578063e6fd48bc11610095578063f0ba84401161006f578063f0ba8440146109f4578063f2fde38b14610a21578063fe60d12c14610a41578063ff1b655614610a5757600080fd5b8063e6fd48bc146109a9578063e8a3d485146109bf578063e985e9c5146109d457600080fd5b8063ddd5e1b2116100d1578063ddd5e1b214610934578063e36b0b3714610954578063e43082f714610969578063e67151ae1461098957600080fd5b8063d56b7546146108e8578063d5abeb01146108fe578063db85d59c1461091457600080fd5b8063a0712d6811610164578063b66a0e5d1161013e578063b66a0e5d1461087d578063b88d4fde14610892578063b8997a97146108b2578063c87b56dd146108c857600080fd5b8063a0712d681461082a578063a22cb4651461083d578063a769310a1461085d57600080fd5b806395d89b41116101a057806395d89b41146107ab5780639eb88b2c146107c05780639fbc8713146107f4578063a035b1fe1461081457600080fd5b80638dc251e31461074b57806391b7f5ed1461076b578063938e3d7b1461078b57600080fd5b8063454e66c8116102a05780636352211e1161023e57806370a082311161021857806370a08231146106d8578063715018a6146106f8578063894760691461070d5780638da5cb5b1461072d57600080fd5b80636352211e1461067857806363c5c599146106985780636b853314146106b857600080fd5b806352ee46961161027a57806352ee46961461060b57806355f804b31461062b5780635c474f9e1461064b57806362a5af3b1461066357600080fd5b8063454e66c8146105bb5780634690521b146105e2578063507e094f146105f557600080fd5b806323b872dd1161030d5780633c934ab3116102e75780633c934ab3146105205780633ccfd60b146105665780633e4086e51461057b57806342842e0e1461059b57600080fd5b806323b872dd1461048f5780632a55205a146104af57806333eeb147146104ee57600080fd5b8063095ea7b311610349578063095ea7b31461040a578063109695231461042c578063170ff3e11461044c57806318160ddd1461046c57600080fd5b806301ffc9a71461037b57806306fdde03146103b0578063081812fc146103d257600080fd5b3661037657005b600080fd5b34801561038757600080fd5b5061039b610396366004613913565b610a6c565b60405190151581526020015b60405180910390f35b3480156103bc57600080fd5b506103c5610b14565b6040516103a791906139a6565b3480156103de57600080fd5b506103f26103ed3660046139b9565b610ba6565b6040516001600160a01b0390911681526020016103a7565b34801561041657600080fd5b5061042a6104253660046139e7565b610c51565b005b34801561043857600080fd5b5061042a610447366004613b15565b610d83565b34801561045857600080fd5b5061042a610467366004613b5e565b610df4565b34801561047857600080fd5b50610481610f8d565b6040519081526020016103a7565b34801561049b57600080fd5b5061042a6104aa366004613b7b565b610f9d565b3480156104bb57600080fd5b506104cf6104ca366004613bbc565b611024565b604080516001600160a01b0390931683526020830191909152016103a7565b3480156104fa57600080fd5b5060105461039b9074010000000000000000000000000000000000000000900460ff1681565b34801561052c57600080fd5b5060408051808201909152601581527f68747470733a2f2f6275696c64736869702e646576000000000000000000000060208201526103c5565b34801561057257600080fd5b5061042a61105a565b34801561058757600080fd5b5061042a6105963660046139b9565b6110c2565b3480156105a757600080fd5b5061042a6105b6366004613b7b565b611121565b3480156105c757600080fd5b5073704c043ceb93bd6cbe570c6a2708c3e1c03105876103f2565b61042a6105f0366004613bde565b61113c565b34801561060157600080fd5b50610481600c5481565b34801561061757600080fd5b506010546103f2906001600160a01b031681565b34801561063757600080fd5b5061042a610646366004613c05565b611224565b34801561065757600080fd5b5060095442101561039b565b34801561066f57600080fd5b5061042a61128a565b34801561068457600080fd5b506103f26106933660046139b9565b611325565b3480156106a457600080fd5b5061039b6106b3366004613b5e565b6113b0565b3480156106c457600080fd5b5061042a6106d3366004613b5e565b61141a565b3480156106e457600080fd5b506104816106f3366004613b5e565b6115b6565b34801561070457600080fd5b5061042a611650565b34801561071957600080fd5b5061042a610728366004613b5e565b6116b6565b34801561073957600080fd5b506007546001600160a01b03166103f2565b34801561075757600080fd5b5061042a610766366004613b5e565b61181a565b34801561077757600080fd5b5061042a6107863660046139b9565b6118ae565b34801561079757600080fd5b5061042a6107a6366004613c05565b61190d565b3480156107b757600080fd5b506103c5611973565b3480156107cc57600080fd5b506104817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81565b34801561080057600080fd5b50600f546103f2906001600160a01b031681565b34801561082057600080fd5b50610481600d5481565b61042a6108383660046139b9565b611982565b34801561084957600080fd5b5061042a610858366004613c85565b611b15565b34801561086957600080fd5b5061042a610878366004613b5e565b611bf8565b34801561088957600080fd5b5061042a611dc9565b34801561089e57600080fd5b5061042a6108ad366004613cbe565b611e94565b3480156108be57600080fd5b50610481600e5481565b3480156108d457600080fd5b506103c56108e33660046139b9565b611f1c565b3480156108f457600080fd5b506104816101f481565b34801561090a57600080fd5b50610481600b5481565b34801561092057600080fd5b506103f261092f3660046139b9565b612003565b34801561094057600080fd5b5061042a61094f366004613d3e565b61202d565b34801561096057600080fd5b5061042a61217d565b34801561097557600080fd5b5061042a610984366004613d63565b6121fd565b34801561099557600080fd5b5061042a6109a43660046139b9565b6122a2565b3480156109b557600080fd5b5061048160095481565b3480156109cb57600080fd5b506103c561236c565b3480156109e057600080fd5b5061039b6109ef366004613d80565b612399565b348015610a0057600080fd5b50610481610a0f3660046139b9565b60116020526000908152604090205481565b348015610a2d57600080fd5b5061042a610a3c366004613b5e565b6124bb565b348015610a4d57600080fd5b50610481600a5481565b348015610a6357600080fd5b506103c561259a565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610aff57507fffffffff0000000000000000000000000000000000000000000000000000000082167f81c1fa8100000000000000000000000000000000000000000000000000000000145b80610b0e5750610b0e82612628565b92915050565b606060008054610b2390613dae565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4f90613dae565b8015610b9c5780601f10610b7157610100808354040283529160200191610b9c565b820191906000526020600020905b815481529060010190602001808311610b7f57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c355760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c5c82611325565b9050806001600160a01b0316836001600160a01b03161415610ce65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610c2c565b336001600160a01b0382161480610d025750610d028133612399565b610d745760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c2c565b610d7e838361270b565b505050565b6007546001600160a01b03163314610ddd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b8051610df09060139060208401906137ba565b5050565b6007546001600160a01b03163314610e4e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b6001600160a01b038116301415610ea75760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f74206164642073656c6620617320657874656e73696f6e000000006044820152606401610c2c565b610eb0816113b0565b15610efd5760405162461bcd60e51b815260206004820152601760248201527f457874656e73696f6e20616c72656164792061646465640000000000000000006044820152606401610c2c565b6012805460018101825560009182527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34440180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915560405190917f99c6112dbaef85e57ac8ca86dd23e3c785162b58a6e810e5d5e7455b568d66b191a250565b6000610f9860085490565b905090565b610fa73382612791565b6110195760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c2c565b610d7e838383612871565b600f54600e546001600160a01b0390911690600090612710906110479085613e31565b6110519190613e9d565b90509250929050565b6007546001600160a01b031633146110b45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b476110bf3382612a56565b50565b6007546001600160a01b0316331461111c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b600e55565b610d7e83838360405180602001604052806000815250611e94565b611145336113b0565b6111b75760405162461bcd60e51b815260206004820152603460248201527f457874656e73696f6e2073686f756c6420626520616464656420746f20636f6e60448201527f7472616374206265666f7265206d696e74696e670000000000000000000000006064820152608401610c2c565b6002600654141561120a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c2c565b600260065561121a838383612b6f565b5050600160065550565b6007546001600160a01b0316331461127e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b610d7e6015838361383e565b6007546001600160a01b031633146112e45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b601080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b6000818152600260205260408120546001600160a01b031680610b0e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610c2c565b6000805b60125481101561141157826001600160a01b0316601282815481106113db576113db613eb1565b6000918252602090912001546001600160a01b031614156113ff5750600192915050565b8061140981613ee0565b9150506113b4565b50600092915050565b6007546001600160a01b031633146114745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b6001600160a01b0381163014156114cd5760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f74206164642073656c6620617320657874656e73696f6e000000006044820152606401610c2c565b6001600160a01b03811615806115085750611508817fc87b56dd00000000000000000000000000000000000000000000000000000000612c34565b6115545760405162461bcd60e51b815260206004820152601960248201527f4e6f7420636f6e666f726d7320746f20657874656e73696f6e000000000000006044820152606401610c2c565b601080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040517f92597a601f19fe4d50f14ea76d7ba45d21bad7992f7e1709c605642b190de09290600090a250565b60006001600160a01b0382166116345760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610c2c565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b031633146116aa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b6116b46000612c57565b565b6007546001600160a01b031633146117105760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561176b57600080fd5b505afa15801561177f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117a39190613f19565b905060006127106117b66101f482613f32565b6117c09084613e31565b6117ca9190613e9d565b905073704c043ceb93bd6cbe570c6a2708c3e1c03105876117f56001600160a01b0385163384612cc1565b611814816118038486613f32565b6001600160a01b0387169190612cc1565b50505050565b6007546001600160a01b031633146118745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b600f80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6007546001600160a01b031633146119085760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b600d55565b6007546001600160a01b031633146119675760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b610d7e6014838361383e565b606060018054610b2390613dae565b600260065414156119d55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c2c565b6002600655600954421015611a2c5760405162461bcd60e51b815260206004820152601060248201527f53616c65206e6f742073746172746564000000000000000000000000000000006044820152606401610c2c565b600c54811115611aa45760405162461bcd60e51b815260206004820152603d60248201527f596f752063616e6e6f74206d696e74206d6f7265207468616e204d41585f544f60448201527f4b454e535f5045525f4d494e5420746f6b656e73206174206f6e6365210000006064820152608401610c2c565b34600d5482611ab39190613e31565b1115611b015760405162461bcd60e51b815260206004820152601960248201527f496e636f6e73697374656e7420616d6f756e742073656e7421000000000000006044820152606401610c2c565b611b0d81336000612b6f565b506001600655565b6001600160a01b038216331415611b6e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c2c565b3360008181526005602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6007546001600160a01b03163314611c525760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b60005b601254811015611cae57816001600160a01b031660128281548110611c7c57611c7c613eb1565b6000918252602090912001546001600160a01b03161415611c9c57611cae565b80611ca681613ee0565b915050611c55565b60128054611cbe90600190613f32565b81548110611cce57611cce613eb1565b600091825260209091200154601280546001600160a01b039092169183908110611cfa57611cfa613eb1565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506012805480611d3957611d39613f49565b60008281526020812082017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690559091019091556040516001600160a01b038416917fe056b30f86b962fc88925cb7559e4364707cab11d2c52e090e6c0db62eb9113591a25050565b6007546001600160a01b03163314611e235760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b60105474010000000000000000000000000000000000000000900460ff1615611e8e5760405162461bcd60e51b815260206004820152601160248201527f4d696e74696e672069732066726f7a656e0000000000000000000000000000006044820152606401610c2c565b42600955565b611e9e3383612791565b611f105760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c2c565b61181484848484612d41565b6010546060906001600160a01b031615611ffa576010546040517fc87b56dd000000000000000000000000000000000000000000000000000000008152600481018490526000916001600160a01b03169063c87b56dd9060240160006040518083038186803b158015611f8e57600080fd5b505afa158015611fa2573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052611fe89190810190613f78565b805190915015611ff85792915050565b505b610b0e82612dca565b6012818154811061201357600080fd5b6000918252602090912001546001600160a01b0316905081565b600260065414156120805760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c2c565b60026006556007546001600160a01b031633146120df5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b600a548211156121575760405162461bcd60e51b815260206004820152602360248201527f5468617420776f756c642065786365656420746865206d61782072657365727660448201527f65642e00000000000000000000000000000000000000000000000000000000006064820152608401610c2c565b81600a546121659190613f32565b600a5561217482826000612b6f565b50506001600655565b6007546001600160a01b031633146121d75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600955565b6007546001600160a01b031633146122575760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b601080549115157501000000000000000000000000000000000000000000027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b6007546001600160a01b031633146122fc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b60105474010000000000000000000000000000000000000000900460ff16156123675760405162461bcd60e51b815260206004820152601160248201527f4d696e74696e672069732066726f7a656e0000000000000000000000000000006044820152606401610c2c565b600955565b606060006014805461237d90613dae565b90501161238c57610f98612eb2565b60148054610b2390613dae565b60105460009073a5409ec958c83c3f309868babaca7c86dcb077c1907501000000000000000000000000000000000000000000900460ff16801561247a57506040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b15801561243757600080fd5b505afa15801561244b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061246f9190613fef565b6001600160a01b0316145b15612489576001915050610b0e565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b6007546001600160a01b031633146125155760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c2c565b6001600160a01b0381166125915760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c2c565b6110bf81612c57565b601380546125a790613dae565b80601f01602080910402602001604051908101604052809291908181526020018280546125d390613dae565b80156126205780601f106125f557610100808354040283529160200191612620565b820191906000526020600020905b81548152906001019060200180831161260357829003601f168201915b505050505081565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806126bb57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610b0e57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610b0e565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038416908117909155819061275882611325565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661281b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610c2c565b600061282683611325565b9050806001600160a01b0316846001600160a01b031614806128615750836001600160a01b031661285684610ba6565b6001600160a01b0316145b806124b357506124b38185612399565b826001600160a01b031661288482611325565b6001600160a01b0316146129005760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610c2c565b6001600160a01b03821661297b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610c2c565b61298660008261270b565b6001600160a01b03831660009081526003602052604081208054600192906129af908490613f32565b90915550506001600160a01b03821660009081526003602052604081208054600192906129dd90849061400c565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b80471015612aa65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610c2c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612af3576040519150601f19603f3d011682016040523d82523d6000602084013e612af8565b606091505b5050905080610d7e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610c2c565b600b54600a5484612b7f60085490565b612b89919061400c565b612b93919061400c565b1115612be15760405162461bcd60e51b815260206004820152601760248201527f4e6f7420656e6f75676820546f6b656e73206c6566742e0000000000000000006044820152606401610c2c565b60005b83811015611814576000612bf760085490565b9050612c07600880546001019055565b612c118482612ec1565b600090815260116020526040902082905580612c2c81613ee0565b915050612be4565b6000612c3f83612edb565b8015612c505750612c508383612f3f565b9392505050565b600780546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610d7e90849061306e565b612d4c848484612871565b612d5884848484613153565b6118145760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c2c565b6000818152600260205260409020546060906001600160a01b0316612e575760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610c2c565b6000612e61612eb2565b90506000815111612e815760405180602001604052806000815250612c50565b80612e8b8461331e565b604051602001612e9c929190614024565b6040516020818303038152906040529392505050565b606060158054610b2390613dae565b610df0828260405180602001604052806000815250613450565b6000612f07827f01ffc9a700000000000000000000000000000000000000000000000000000000612f3f565b8015610b0e5750612f38827fffffffff00000000000000000000000000000000000000000000000000000000612f3f565b1592915050565b604080517fffffffff00000000000000000000000000000000000000000000000000000000831660248083019190915282518083039091018152604490910182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f01ffc9a700000000000000000000000000000000000000000000000000000000179052905160009190829081906001600160a01b0387169061753090612fec908690614053565b6000604051808303818686fa925050503d8060008114613028576040519150601f19603f3d011682016040523d82523d6000602084013e61302d565b606091505b50915091506020815110156130485760009350505050610b0e565b818015613064575080806020019051810190613064919061406f565b9695505050505050565b60006130c3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166134d99092919063ffffffff16565b805190915015610d7e57808060200190518101906130e1919061406f565b610d7e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610c2c565b60006001600160a01b0384163b15613313576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906131b090339089908890889060040161408c565b602060405180830381600087803b1580156131ca57600080fd5b505af1925050508015613218575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613215918101906140be565b60015b6132c8573d808015613246576040519150601f19603f3d011682016040523d82523d6000602084013e61324b565b606091505b5080516132c05760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c2c565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506124b3565b506001949350505050565b60608161335e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613388578061337281613ee0565b91506133819050600a83613e9d565b9150613362565b60008167ffffffffffffffff8111156133a3576133a3613a13565b6040519080825280601f01601f1916602001820160405280156133cd576020820181803683370190505b5090505b84156124b3576133e2600183613f32565b91506133ef600a866140db565b6133fa90603061400c565b60f81b81838151811061340f5761340f613eb1565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613449600a86613e9d565b94506133d1565b61345a83836134e8565b6134676000848484613153565b610d7e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c2c565b60606124b38484600085613642565b6001600160a01b03821661353e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c2c565b6000818152600260205260409020546001600160a01b0316156135a35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c2c565b6001600160a01b03821660009081526003602052604081208054600192906135cc90849061400c565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060824710156136ba5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610c2c565b843b6137085760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c2c565b600080866001600160a01b031685876040516137249190614053565b60006040518083038185875af1925050503d8060008114613761576040519150601f19603f3d011682016040523d82523d6000602084013e613766565b606091505b5091509150613776828286613781565b979650505050505050565b60608315613790575081612c50565b8251156137a05782518084602001fd5b8160405162461bcd60e51b8152600401610c2c91906139a6565b8280546137c690613dae565b90600052602060002090601f0160209004810192826137e8576000855561382e565b82601f1061380157805160ff191683800117855561382e565b8280016001018555821561382e579182015b8281111561382e578251825591602001919060010190613813565b5061383a9291506138d0565b5090565b82805461384a90613dae565b90600052602060002090601f01602090048101928261386c576000855561382e565b82601f106138a3578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082351617855561382e565b8280016001018555821561382e579182015b8281111561382e5782358255916020019190600101906138b5565b5b8082111561383a57600081556001016138d1565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146110bf57600080fd5b60006020828403121561392557600080fd5b8135612c50816138e5565b60005b8381101561394b578181015183820152602001613933565b838111156118145750506000910152565b60008151808452613974816020860160208601613930565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000612c50602083018461395c565b6000602082840312156139cb57600080fd5b5035919050565b6001600160a01b03811681146110bf57600080fd5b600080604083850312156139fa57600080fd5b8235613a05816139d2565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613a8957613a89613a13565b604052919050565b600067ffffffffffffffff821115613aab57613aab613a13565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b6000613aea613ae584613a91565b613a42565b9050828152838383011115613afe57600080fd5b828260208301376000602084830101529392505050565b600060208284031215613b2757600080fd5b813567ffffffffffffffff811115613b3e57600080fd5b8201601f81018413613b4f57600080fd5b6124b384823560208401613ad7565b600060208284031215613b7057600080fd5b8135612c50816139d2565b600080600060608486031215613b9057600080fd5b8335613b9b816139d2565b92506020840135613bab816139d2565b929592945050506040919091013590565b60008060408385031215613bcf57600080fd5b50508035926020909101359150565b600080600060608486031215613bf357600080fd5b833592506020840135613bab816139d2565b60008060208385031215613c1857600080fd5b823567ffffffffffffffff80821115613c3057600080fd5b818501915085601f830112613c4457600080fd5b813581811115613c5357600080fd5b866020828501011115613c6557600080fd5b60209290920196919550909350505050565b80151581146110bf57600080fd5b60008060408385031215613c9857600080fd5b8235613ca3816139d2565b91506020830135613cb381613c77565b809150509250929050565b60008060008060808587031215613cd457600080fd5b8435613cdf816139d2565b93506020850135613cef816139d2565b925060408501359150606085013567ffffffffffffffff811115613d1257600080fd5b8501601f81018713613d2357600080fd5b613d3287823560208401613ad7565b91505092959194509250565b60008060408385031215613d5157600080fd5b823591506020830135613cb3816139d2565b600060208284031215613d7557600080fd5b8135612c5081613c77565b60008060408385031215613d9357600080fd5b8235613d9e816139d2565b91506020830135613cb3816139d2565b600181811c90821680613dc257607f821691505b60208210811415613dfc577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613e6957613e69613e02565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082613eac57613eac613e6e565b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613f1257613f12613e02565b5060010190565b600060208284031215613f2b57600080fd5b5051919050565b600082821015613f4457613f44613e02565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600060208284031215613f8a57600080fd5b815167ffffffffffffffff811115613fa157600080fd5b8201601f81018413613fb257600080fd5b8051613fc0613ae582613a91565b818152856020838501011115613fd557600080fd5b613fe6826020830160208601613930565b95945050505050565b60006020828403121561400157600080fd5b8151612c50816139d2565b6000821982111561401f5761401f613e02565b500190565b60008351614036818460208801613930565b83519083019061404a818360208801613930565b01949350505050565b60008251614065818460208701613930565b9190910192915050565b60006020828403121561408157600080fd5b8151612c5081613c77565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613064608083018461395c565b6000602082840312156140d057600080fd5b8151612c50816138e5565b6000826140ea576140ea613e6e565b50069056fea26469706673582212209b681ecf85bd09753581b32bf82ed97f936c3f885690a7cba96ac3b5567c1ae164736f6c63430008090033
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.