Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
14476124 | 877 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
MetaverseNFT
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.7; /** * @title LICENSE REQUIREMENT * @dev This contract is licensed under the MIT license. * @dev You're not allowed to remove DEVELOPER() and DEVELOPER_ADDRESS() from contract */ import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.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 "./extensions/INFTExtension.sol"; import "./IMetaverseNFT.sol"; import "./OpenseaProxy.sol"; // Want to launch your own collection ? Check out https://buildship.xyz. // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNK0kdocccoONMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX0xol:,.... .. .lXMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKOdc;'.. ..... .... .OMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKko:'.. ..... ...';cc.... .OMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN0d:'...... ...;coxOKXWWK; .. 'OMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWMW0d;.........;ldOKNWMMMMMMM0' .. ,0MMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMX0k:........,lxKNMMMMMMMMMMMMMO. ...;KMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKd,........;oONMMMMMMMMMMMMMMMMMx. ...cNMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKo'.......'lONMMMMMMMMMMMMMMMMMMMNl.....dWMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKOxdolllodxo'.......;xXWMMMMMMMMMMMMMMMMMMMMMK; .. 'OMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMN0xl;'.. .......':kNMMMMMMMMMMMMMMMMMMMMMMMWx. ...:XMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMNOo;.. .... ........:OXNMMMMMMMMMMMMMMMMMMMMMMMMMK:... .xWMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMNOl,.........;col,...... ,0MMMMMMMMMMMMMMMMMMMMMMMMMMMWd. .. ;KMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMN0o;. ......;okKNWNd. ..... ,0MMMMMMMMMMMMMMMMMMMMMMMMMMWO' .. .kWMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMWXx:........:xKWMMMMWk. ...... :XMMMMMMMMMMMMMMMMMMMMMMMMMM0;.....oNMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMN0l'.......:d0NMMMMMMMNl....... 'OWMMMMMMMMMMMMMMMMMMMMMMMMW0;.....cXMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMXl.......'o0WMMMMMMMMMMWk'... ..c0WMMMMMMMMMMMMMMMMMMMMMMMMWO,.....cKMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMWd........':cllodxkO0KXWMWKdccld0WMMMMMMMMMMMMMMMMMMMMMMMMMNx'.....cKMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMWk' ........ .....,;cldOKNWMMMMMMMMMMMMMMMMMMMMMMMMMMMKl......oXMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMW0l;,'...... . ...... ...;cd0NMMMMMMMMMMMMMMMMMMMMMMNk,.....'xNMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMWWNXK00Okxdoolc:;'... .... ..;oONMMMMMMMMMMMMMNKkolc;......:0WWMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNXK0kdl:'........;xOXWMMMMMMMXd;.. ......lXMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWXOo:.. .....'dXMMMMWO;.............;0MMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWWWMMMMWKd,..... .,kNMM0, ..............cXMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWN0kxdxOKNWMMMMNx;.......lXMO' .......:l' .. '0MMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKdc:::::cokKNWWMMNd'......:KNx,....,oON0, .. 'OMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMW0o::::::::::cd0NWMMWOo;.....;0WN0kO0NWMWx. .. ;KMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMW0l:::::::::::::cd0WWMWMK:.....cNMMMMMMMMK;... .dWMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMWXo::::::::::::::::ckNMMMMKc....dNMMMMMMMNl.....:XMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMWk::::::::::::::::::cOWMMMMN0kkKWMMMMMMMNd. .. ,OMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMXd::::::::::::::::::l0WMMMMMMMMMMMMMMMMNd. .. .kWMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMWKl::::::::::::::::cdKWMMMMMMMMMMMMMMMMNd.... .xWMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMW0c::::::::::::::lx0NMMMMMMMMMMMMMMMMMNd.... .dNMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMKo::::::::::cldOXWMMMMMMMMMMMMMMMMMMNo......dNMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMWKdlccclodxOKNWMMMMMMMMMMMMMMMMMMMMXl. ...'xWMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMWWXKKKXNWWMMMMMMMMMMMMMMMMMMMMMWWKc.....'kWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMW0:.....,OWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNl.....;0WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWO:..'lKMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNK0XWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM contract MetaverseNFT is ERC721Upgradeable, ReentrancyGuardUpgradeable, OwnableUpgradeable, IMetaverseNFT // implements IERC2981 { using Address for address; using SafeERC20 for IERC20; using Counters for Counters.Counter; Counters.Counter private _tokenIndexCounter; // token index counter 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 createdAt; uint256 public reserved; uint256 public maxSupply; uint256 public maxPerMint; uint256 public price; uint256 public royaltyFee; address public royaltyReceiver; address public payoutReceiver = address(0x0); address public uriExtension = address(0x0); bool public isFrozen; bool public isPayoutChangeLocked; bool private isOpenSeaProxyActive = true; bool private startAtOne = false; /** * @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; string private URI_POSTFIX = ""; event ExtensionAdded(address indexed extensionAddress); event ExtensionRevoked(address indexed extensionAddress); event ExtensionURIAdded(address indexed extensionAddress); function initialize( uint256 _price, uint256 _maxSupply, uint256 _nReserved, uint256 _maxPerMint, uint256 _royaltyFee, string memory _uri, string memory _name, string memory _symbol, bool _startAtOne ) public initializer { __ERC721_init(_name, _symbol); __ReentrancyGuard_init(); __Ownable_init(); createdAt = block.timestamp; startTimestamp = SALE_STARTS_AT_INFINITY; price = _price; reserved = _nReserved; maxPerMint = _maxPerMint; maxSupply = _maxSupply; royaltyFee = _royaltyFee; royaltyReceiver = address(this); startAtOne = _startAtOne; // Need help with uploading metadata? Try https://buildship.xyz BASE_URI = _uri; } // This constructor ensures that this contract can only be used as a master copy // Marking constructor as initializer makes sure that real initializer cannot be called // Thus, as the owner of the contract is 0x0, no one can do anything with the contract // on the other hand, it's impossible to call this function in proxy, // so the real initializer is the only initializer /// @custom:oz-upgrades-unsafe-allow constructor constructor() initializer {} 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; } } if (bytes(URI_POSTFIX).length > 0) { return string(abi.encodePacked( super.tokenURI(tokenId), URI_POSTFIX )); } else { return super.tokenURI(tokenId); } } function startTokenId() public view returns (uint256) { return startAtOne ? 1 : 0; } function totalSupply() public view returns (uint256) { // Only works like this for sequential mint tokens return _tokenIndexCounter.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 setPostfixURI(string calldata postfix) public onlyOwner { URI_POSTFIX = postfix; } function setPrice(uint256 _price) public onlyOwner { price = _price; } // Freeze forever, irreversible function freeze() public onlyOwner { isFrozen = true; } // Lock changing withdraw address function lockPayoutChange() public onlyOwner { isPayoutChangeLocked = true; } function isExtensionAdded(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(!isExtensionAdded(_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(_tokenIndexCounter.current() + nTokens + reserved <= maxSupply, "Not enough Tokens left."); for (uint256 i; i < nTokens; i++) { uint256 tokenId = _tokenIndexCounter.current() + startTokenId(); _tokenIndexCounter.increment(); _safeMint(to, tokenId); data[tokenId] = extraData; } } // ---- Mint control ---- modifier whenSaleStarted() { require(saleStarted(), "Sale not started"); _; } modifier whenNotFrozen() { require(!isFrozen, "Minting is frozen"); _; } modifier whenNotPayoutChangeLocked() { require(!isPayoutChangeLocked, "Payout change is locked"); _; } modifier onlyExtension() { require(isExtensionAdded(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 { // remove because opensea doesn't care about this anyway // require(block.timestamp >= createdAt + 26 weeks, "Only after 6 months of contract creation can the royalty receiver be changed."); royaltyReceiver = _receiver; } function setPayoutReceiver(address _receiver) public onlyOwner whenNotPayoutChangeLocked { payoutReceiver = payable(_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; } function getPayoutReceiver() public view returns (address payable receiver) { receiver = payoutReceiver != address(0x0) ? payable(payoutReceiver) : payable(owner()); } // ---- Allow royalty deposits from Opensea ----- receive() external payable {} // ---- Withdraw ----- function withdraw() public onlyOwner { uint256 balance = address(this).balance; uint256 amount = balance * (10000 - DEVELOPER_FEE) / 10000; address payable receiver = getPayoutReceiver(); address payable dev = DEVELOPER_ADDRESS(); Address.sendValue(receiver, amount); Address.sendValue(dev, balance - amount); } function withdrawToken(IERC20 token) public onlyOwner { uint256 balance = token.balanceOf(address(this)); uint256 amount = balance * (10000 - DEVELOPER_FEE) / 10000; address payable receiver = getPayoutReceiver(); address payable dev = DEVELOPER_ADDRESS(); token.safeTransfer(receiver, amount); token.safeTransfer(dev, balance - amount); } function DEVELOPER() public pure returns (string memory _url) { _url = "https://buildship.xyz"; } 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.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 isExtensionAdded(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.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; /** * @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 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 "../../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 "../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; 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; /** * @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 IERC165Upgradeable { /** * @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 "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal initializer { __ERC165_init_unchained(); } function __ERC165_init_unchained() internal initializer { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { 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; import "../proxy/utils/Initializable.sol"; /** * @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 ContextUpgradeable is Initializable { function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @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 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 "../IERC721Upgradeable.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721MetadataUpgradeable is IERC721Upgradeable { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721Upgradeable is IERC165Upgradeable { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721ReceiverUpgradeable { /** * @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 "./IERC721Upgradeable.sol"; import "./IERC721ReceiverUpgradeable.sol"; import "./extensions/IERC721MetadataUpgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; import "../../utils/ContextUpgradeable.sol"; import "../../utils/StringsUpgradeable.sol"; import "../../utils/introspection/ERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.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 ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable { using AddressUpgradeable for address; using StringsUpgradeable 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. */ function __ERC721_init(string memory name_, string memory symbol_) internal initializer { __Context_init_unchained(); __ERC165_init_unchained(); __ERC721_init_unchained(name_, symbol_); } function __ERC721_init_unchained(string memory name_, string memory symbol_) internal initializer { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC721Upgradeable).interfaceId || interfaceId == type(IERC721MetadataUpgradeable).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 = ERC721Upgradeable.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 = ERC721Upgradeable.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 = ERC721Upgradeable.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(ERC721Upgradeable.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(ERC721Upgradeable.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 IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721ReceiverUpgradeable.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 {} uint256[44] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @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 ReentrancyGuardUpgradeable is Initializable { // 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; function __ReentrancyGuard_init() internal initializer { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal initializer { _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; } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { require(_initializing || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal initializer { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal initializer { _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); } uint256[49] private __gap; }
{ "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":[],"name":"createdAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"getPayoutReceiver","outputs":[{"internalType":"address payable","name":"receiver","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_nReserved","type":"uint256"},{"internalType":"uint256","name":"_maxPerMint","type":"uint256"},{"internalType":"uint256","name":"_royaltyFee","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"bool","name":"_startAtOne","type":"bool"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","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":"isExtensionAdded","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":"isPayoutChangeLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockPayoutChange","outputs":[],"stateMutability":"nonpayable","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":"payoutReceiver","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":"address","name":"_receiver","type":"address"}],"name":"setPayoutReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"postfix","type":"string"}],"name":"setPostfixURI","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":"startTokenId","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
60001960fc5561010480546001600160a01b03191690556101058054600163ffff000160a01b031916600160b01b17905560a06040819052600060808190526200004d91610108916200015f565b506040805160208101918290526000908190526200006f91610109916200015f565b50604080516020810191829052600090819052620000919161010b916200015f565b503480156200009f57600080fd5b50600054610100900460ff1680620000ba575060005460ff16155b620001225760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600054610100900460ff1615801562000145576000805461ffff19166101011790555b801562000158576000805461ff00191690555b5062000242565b8280546200016d9062000205565b90600052602060002090601f016020900481019282620001915760008555620001dc565b82601f10620001ac57805160ff1916838001178555620001dc565b82800160010185558215620001dc579182015b82811115620001dc578251825591602001919060010190620001bf565b50620001ea929150620001ee565b5090565b5b80821115620001ea5760008155600101620001ef565b600181811c908216806200021a57607f821691505b602082108114156200023c57634e487b7160e01b600052602260045260246000fd5b50919050565b614e5c80620002526000396000f3fe6080604052600436106103e25760003560e01c80638dc251e31161020d578063cf09e0d011610128578063e67151ae116100bb578063e985e9c51161008a578063f2fde38b1161006f578063f2fde38b14610b87578063fe60d12c14610ba7578063ff1b655614610bbd57600080fd5b8063e985e9c514610b39578063f0ba844014610b5957600080fd5b8063e67151ae14610ad9578063e6798baa14610af9578063e6fd48bc14610b0e578063e8a3d48514610b2457600080fd5b8063db85d59c116100f7578063db85d59c14610a64578063ddd5e1b214610a84578063e36b0b3714610aa4578063e43082f714610ab957600080fd5b8063cf09e0d014610a0d578063d56b754614610a23578063d5abeb0114610a39578063d69b2e4514610a4f57600080fd5b8063a22cb465116101a0578063b66a0e5d1161016f578063b66a0e5d146109a1578063b88d4fde146109b6578063b8997a97146109d6578063c87b56dd146109ed57600080fd5b8063a22cb4651461090d578063a474935c1461092d578063a4f6628d14610961578063a769310a1461098157600080fd5b80639eb88b2c116101dc5780639eb88b2c146108ac5780639fbc8713146108c2578063a035b1fe146108e3578063a0712d68146108fa57600080fd5b80638dc251e31461083757806391b7f5ed14610857578063938e3d7b1461087757806395d89b411461089757600080fd5b806342842e0e116102fd5780636352211e11610290578063715018a61161025f578063715018a6146107c4578063815f1a36146107d957806389476069146107f95780638da5cb5b1461081957600080fd5b80636352211e1461074f5780636b8533141461076f5780636e878ffb1461078f57806370a08231146107a457600080fd5b806352ee4696116102cc57806352ee4696146106e157806355f804b3146107025780635c474f9e1461072257806362a5af3b1461073a57600080fd5b806342842e0e14610670578063454e66c8146106905780634690521b146106b7578063507e094f146106ca57600080fd5b806320b7b8df1161037557806333eeb1471161034457806333eeb147146105c25780633c934ab3146105f55780633ccfd60b1461063b5780633e4086e51461065057600080fd5b806320b7b8df1461052257806323b872dd146105435780632a30e4c2146105635780632a55205a1461058357600080fd5b8063095ea7b3116103b1578063095ea7b31461049f57806310969523146104bf578063170ff3e1146104df57806318160ddd146104ff57600080fd5b806301ffc9a7146103ee57806306fdde03146104235780630768c61814610445578063081812fc1461046757600080fd5b366103e957005b600080fd5b3480156103fa57600080fd5b5061040e6104093660046144bd565b610bd2565b60405190151581526020015b60405180910390f35b34801561042f57600080fd5b50610438610c7a565b60405161041a9190614550565b34801561045157600080fd5b50610465610460366004614563565b610d0c565b005b34801561047357600080fd5b506104876104823660046145d5565b610d7d565b6040516001600160a01b03909116815260200161041a565b3480156104ab57600080fd5b506104656104ba366004614603565b610e23565b3480156104cb57600080fd5b506104656104da366004614751565b610f50565b3480156104eb57600080fd5b506104656104fa366004614786565b610fc2565b34801561050b57600080fd5b5061051461115c565b60405190815260200161041a565b34801561052e57600080fd5b5061010454610487906001600160a01b031681565b34801561054f57600080fd5b5061046561055e3660046147a3565b61116c565b34801561056f57600080fd5b5061046561057e366004614786565b6111f3565b34801561058f57600080fd5b506105a361059e3660046147e4565b6112f5565b604080516001600160a01b03909316835260208301919091520161041a565b3480156105ce57600080fd5b506101055461040e9074010000000000000000000000000000000000000000900460ff1681565b34801561060157600080fd5b5060408051808201909152601581527f68747470733a2f2f6275696c64736869702e78797a00000000000000000000006020820152610438565b34801561064757600080fd5b5061046561132d565b34801561065c57600080fd5b5061046561066b3660046145d5565b6113f3565b34801561067c57600080fd5b5061046561068b3660046147a3565b611453565b34801561069c57600080fd5b5073704c043ceb93bd6cbe570c6a2708c3e1c0310587610487565b6104656106c5366004614806565b61146e565b3480156106d657600080fd5b506105146101005481565b3480156106ed57600080fd5b5061010554610487906001600160a01b031681565b34801561070e57600080fd5b5061046561071d366004614563565b611556565b34801561072e57600080fd5b5060fc5442101561040e565b34801561074657600080fd5b506104656115bd565b34801561075b57600080fd5b5061048761076a3660046145d5565b611659565b34801561077b57600080fd5b5061046561078a366004614786565b6116e4565b34801561079b57600080fd5b50610487611881565b3480156107b057600080fd5b506105146107bf366004614786565b6118b6565b3480156107d057600080fd5b50610465611950565b3480156107e557600080fd5b506104656107f4366004614846565b6119b6565b34801561080557600080fd5b50610465610814366004614786565b611b4a565b34801561082557600080fd5b5060c9546001600160a01b0316610487565b34801561084357600080fd5b50610465610852366004614786565b611cbb565b34801561086357600080fd5b506104656108723660046145d5565b611d50565b34801561088357600080fd5b50610465610892366004614563565b611db0565b3480156108a357600080fd5b50610438611e17565b3480156108b857600080fd5b5061051460001981565b3480156108ce57600080fd5b5061010354610487906001600160a01b031681565b3480156108ef57600080fd5b506105146101015481565b6104656109083660046145d5565b611e26565b34801561091957600080fd5b50610465610928366004614910565b611fbb565b34801561093957600080fd5b506101055461040e907501000000000000000000000000000000000000000000900460ff1681565b34801561096d57600080fd5b5061040e61097c366004614786565b61209e565b34801561098d57600080fd5b5061046561099c366004614786565b61210a565b3480156109ad57600080fd5b506104656122c2565b3480156109c257600080fd5b506104656109d1366004614949565b61238e565b3480156109e257600080fd5b506105146101025481565b3480156109f957600080fd5b50610438610a083660046145d5565b612416565b348015610a1957600080fd5b5061051460fd5481565b348015610a2f57600080fd5b506105146101f481565b348015610a4557600080fd5b5061051460ff5481565b348015610a5b57600080fd5b5061046561254f565b348015610a7057600080fd5b50610487610a7f3660046145d5565b6125ec565b348015610a9057600080fd5b50610465610a9f3660046149c9565b612617565b348015610ab057600080fd5b50610465612767565b348015610ac557600080fd5b50610465610ad43660046149ee565b6127c9565b348015610ae557600080fd5b50610465610af43660046145d5565b612870565b348015610b0557600080fd5b5061051461293b565b348015610b1a57600080fd5b5061051460fc5481565b348015610b3057600080fd5b50610438612976565b348015610b4557600080fd5b5061040e610b54366004614a0b565b6129a5565b348015610b6557600080fd5b50610514610b743660046145d5565b6101066020526000908152604090205481565b348015610b9357600080fd5b50610465610ba2366004614786565b612ac9565b348015610bb357600080fd5b5061051460fe5481565b348015610bc957600080fd5b50610438612bab565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610c6557507fffffffff0000000000000000000000000000000000000000000000000000000082167f81c1fa8100000000000000000000000000000000000000000000000000000000145b80610c745750610c7482612c3a565b92915050565b606060658054610c8990614a39565b80601f0160208091040260200160405190810160405280929190818152602001828054610cb590614a39565b8015610d025780601f10610cd757610100808354040283529160200191610d02565b820191906000526020600020905b815481529060010190602001808311610ce557829003601f168201915b5050505050905090565b60c9546001600160a01b03163314610d6b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b610d7861010b8383614364565b505050565b6000818152606760205260408120546001600160a01b0316610e075760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610d62565b506000908152606960205260409020546001600160a01b031690565b6000610e2e82611659565b9050806001600160a01b0316836001600160a01b03161415610eb85760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610d62565b336001600160a01b0382161480610ed45750610ed481336129a5565b610f465760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d62565b610d788383612d1d565b60c9546001600160a01b03163314610faa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b8051610fbe90610108906020840190614406565b5050565b60c9546001600160a01b0316331461101c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b6001600160a01b0381163014156110755760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f74206164642073656c6620617320657874656e73696f6e000000006044820152606401610d62565b61107e8161209e565b156110cb5760405162461bcd60e51b815260206004820152601760248201527f457874656e73696f6e20616c72656164792061646465640000000000000000006044820152606401610d62565b610107805460018101825560009182527f47c4908e245f386bfc1825973249847f4053a761ddb4880ad63c323a7b5a2a250180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915560405190917f99c6112dbaef85e57ac8ca86dd23e3c785162b58a6e810e5d5e7455b568d66b191a250565b600061116760fb5490565b905090565b6111763382612da3565b6111e85760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d62565b610d78838383612e83565b60c9546001600160a01b0316331461124d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b610105547501000000000000000000000000000000000000000000900460ff16156112ba5760405162461bcd60e51b815260206004820152601760248201527f5061796f7574206368616e6765206973206c6f636b65640000000000000000006044820152606401610d62565b61010480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b61010354610102546001600160a01b03909116906000906127109061131a9085614abc565b6113249190614b0a565b90509250929050565b60c9546001600160a01b031633146113875760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b4760006127106113996101f482614b1e565b6113a39084614abc565b6113ad9190614b0a565b905060006113b9611881565b905073704c043ceb93bd6cbe570c6a2708c3e1c03105876113da8284613068565b6113ed816113e88587614b1e565b613068565b50505050565b60c9546001600160a01b0316331461144d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b61010255565b610d788383836040518060200160405280600081525061238e565b6114773361209e565b6114e95760405162461bcd60e51b815260206004820152603460248201527f457874656e73696f6e2073686f756c6420626520616464656420746f20636f6e60448201527f7472616374206265666f7265206d696e74696e670000000000000000000000006064820152608401610d62565b6002609754141561153c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d62565b600260975561154c838383613181565b5050600160975550565b60c9546001600160a01b031633146115b05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b610d7861010a8383614364565b60c9546001600160a01b031633146116175760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b61010580547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b6000818152606760205260408120546001600160a01b031680610c745760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610d62565b60c9546001600160a01b0316331461173e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b6001600160a01b0381163014156117975760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f74206164642073656c6620617320657874656e73696f6e000000006044820152606401610d62565b6001600160a01b03811615806117d257506117d2817fc87b56dd00000000000000000000000000000000000000000000000000000000613253565b61181e5760405162461bcd60e51b815260206004820152601960248201527f4e6f7420636f6e666f726d7320746f20657874656e73696f6e000000000000006044820152606401610d62565b61010580547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040517f92597a601f19fe4d50f14ea76d7ba45d21bad7992f7e1709c605642b190de09290600090a250565b610104546000906001600160a01b03166118a5575060c9546001600160a01b031690565b50610104546001600160a01b031690565b60006001600160a01b0382166119345760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610d62565b506001600160a01b031660009081526068602052604090205490565b60c9546001600160a01b031633146119aa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b6119b46000613276565b565b600054610100900460ff16806119cf575060005460ff16155b611a415760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610d62565b600054610100900460ff16158015611a63576000805461ffff19166101011790555b611a6d84846132e0565b611a756133bd565b611a7d613486565b4260fd5560001960fc556101018a905560fe88905561010087905560ff89905561010286905561010380547fffffffffffffffffffffffff00000000000000000000000000000000000000001630179055610105805483151577010000000000000000000000000000000000000000000000027fffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffff9091161790558451611b2b9061010a906020880190614406565b508015611b3e576000805461ff00191690555b50505050505050505050565b60c9546001600160a01b03163314611ba45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015611bff57600080fd5b505afa158015611c13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c379190614b35565b90506000612710611c4a6101f482614b1e565b611c549084614abc565b611c5e9190614b0a565b90506000611c6a611881565b905073704c043ceb93bd6cbe570c6a2708c3e1c0310587611c956001600160a01b0386168385613543565b611cb481611ca38587614b1e565b6001600160a01b0388169190613543565b5050505050565b60c9546001600160a01b03163314611d155760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b61010380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60c9546001600160a01b03163314611daa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b61010155565b60c9546001600160a01b03163314611e0a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b610d786101098383614364565b606060668054610c8990614a39565b60026097541415611e795760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d62565b600260975560fc54421015611ed05760405162461bcd60e51b815260206004820152601060248201527f53616c65206e6f742073746172746564000000000000000000000000000000006044820152606401610d62565b61010054811115611f495760405162461bcd60e51b815260206004820152603d60248201527f596f752063616e6e6f74206d696e74206d6f7265207468616e204d41585f544f60448201527f4b454e535f5045525f4d494e5420746f6b656e73206174206f6e6365210000006064820152608401610d62565b346101015482611f599190614abc565b1115611fa75760405162461bcd60e51b815260206004820152601960248201527f496e636f6e73697374656e7420616d6f756e742073656e7421000000000000006044820152606401610d62565b611fb381336000613181565b506001609755565b6001600160a01b0382163314156120145760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d62565b336000818152606a602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000805b6101075481101561210157826001600160a01b031661010782815481106120cb576120cb614b4e565b6000918252602090912001546001600160a01b031614156120ef5750600192915050565b806120f981614b7d565b9150506120a2565b50600092915050565b60c9546001600160a01b031633146121645760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b60005b610107548110156121c257816001600160a01b0316610107828154811061219057612190614b4e565b6000918252602090912001546001600160a01b031614156121b0576121c2565b806121ba81614b7d565b915050612167565b61010780546121d390600190614b1e565b815481106121e3576121e3614b4e565b60009182526020909120015461010780546001600160a01b03909216918390811061221057612210614b4e565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555061010780548061225057612250614b98565b600082815260208120820160001990810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690559091019091556040516001600160a01b038416917fe056b30f86b962fc88925cb7559e4364707cab11d2c52e090e6c0db62eb9113591a25050565b60c9546001600160a01b0316331461231c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b6101055474010000000000000000000000000000000000000000900460ff16156123885760405162461bcd60e51b815260206004820152601160248201527f4d696e74696e672069732066726f7a656e0000000000000000000000000000006044820152606401610d62565b4260fc55565b6123983383612da3565b61240a5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d62565b6113ed848484846135c3565b610105546060906001600160a01b0316156124f657610105546040517fc87b56dd000000000000000000000000000000000000000000000000000000008152600481018490526000916001600160a01b03169063c87b56dd9060240160006040518083038186803b15801561248a57600080fd5b505afa15801561249e573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526124e49190810190614bc7565b8051909150156124f45792915050565b505b600061010b805461250690614a39565b90501115612541576125178261364c565b61010b60405160200161252b929190614c3e565b6040516020818303038152906040529050919050565b610c748261364c565b919050565b60c9546001600160a01b031633146125a95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b61010580547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff167501000000000000000000000000000000000000000000179055565b61010781815481106125fd57600080fd5b6000918252602090912001546001600160a01b0316905081565b6002609754141561266a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d62565b600260975560c9546001600160a01b031633146126c95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b60fe548211156127415760405162461bcd60e51b815260206004820152602360248201527f5468617420776f756c642065786365656420746865206d61782072657365727660448201527f65642e00000000000000000000000000000000000000000000000000000000006064820152608401610d62565b8160fe5461274f9190614b1e565b60fe5561275e82826000613181565b50506001609755565b60c9546001600160a01b031633146127c15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b60001960fc55565b60c9546001600160a01b031633146128235760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b6101058054911515760100000000000000000000000000000000000000000000027fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b60c9546001600160a01b031633146128ca5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b6101055474010000000000000000000000000000000000000000900460ff16156129365760405162461bcd60e51b815260206004820152601160248201527f4d696e74696e672069732066726f7a656e0000000000000000000000000000006044820152606401610d62565b60fc55565b6101055460009077010000000000000000000000000000000000000000000000900460ff1661296b57600061296e565b60015b60ff16905090565b60606000610109805461298890614a39565b90501161299757611167613734565b6101098054610c8990614a39565b6101055460009073a5409ec958c83c3f309868babaca7c86dcb077c190760100000000000000000000000000000000000000000000900460ff168015612a8857506040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b158015612a4557600080fd5b505afa158015612a59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a7d9190614d26565b6001600160a01b0316145b15612a97576001915050610c74565b6001600160a01b038085166000908152606a602090815260408083209387168352929052205460ff165b949350505050565b60c9546001600160a01b03163314612b235760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b6001600160a01b038116612b9f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d62565b612ba881613276565b50565b6101088054612bb990614a39565b80601f0160208091040260200160405190810160405280929190818152602001828054612be590614a39565b8015612c325780601f10612c0757610100808354040283529160200191612c32565b820191906000526020600020905b815481529060010190602001808311612c1557829003601f168201915b505050505081565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480612ccd57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c7457507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610c74565b600081815260696020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091558190612d6a82611659565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152606760205260408120546001600160a01b0316612e2d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610d62565b6000612e3883611659565b9050806001600160a01b0316846001600160a01b03161480612e735750836001600160a01b0316612e6884610d7d565b6001600160a01b0316145b80612ac15750612ac181856129a5565b826001600160a01b0316612e9682611659565b6001600160a01b031614612f125760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610d62565b6001600160a01b038216612f8d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610d62565b612f98600082612d1d565b6001600160a01b0383166000908152606860205260408120805460019290612fc1908490614b1e565b90915550506001600160a01b0382166000908152606860205260408120805460019290612fef908490614d43565b909155505060008181526067602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b804710156130b85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610d62565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613105576040519150601f19603f3d011682016040523d82523d6000602084013e61310a565b606091505b5050905080610d785760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610d62565b60ff5460fe548461319160fb5490565b61319b9190614d43565b6131a59190614d43565b11156131f35760405162461bcd60e51b815260206004820152601760248201527f4e6f7420656e6f75676820546f6b656e73206c6566742e0000000000000000006044820152606401610d62565b60005b838110156113ed57600061320861293b565b60fb546132159190614d43565b905061322560fb80546001019055565b61322f8482613744565b6000908152610106602052604090208290558061324b81614b7d565b9150506131f6565b600061325e8361375e565b801561326f575061326f83836137c2565b9392505050565b60c980546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16806132f9575060005460ff16155b61336b5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610d62565b600054610100900460ff1615801561338d576000805461ffff19166101011790555b6133956138f1565b61339d6138f1565b6133a783836139b1565b8015610d78576000805461ff0019169055505050565b600054610100900460ff16806133d6575060005460ff16155b6134485760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610d62565b600054610100900460ff1615801561346a576000805461ffff19166101011790555b613472613a9c565b8015612ba8576000805461ff001916905550565b600054610100900460ff168061349f575060005460ff16155b6135115760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610d62565b600054610100900460ff16158015613533576000805461ffff19166101011790555b61353b6138f1565b613472613b62565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610d78908490613c18565b6135ce848484612e83565b6135da84848484613cfd565b6113ed5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d62565b6000818152606760205260409020546060906001600160a01b03166136d95760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610d62565b60006136e3613734565b90506000815111613703576040518060200160405280600081525061326f565b8061370d84613ec8565b60405160200161371e929190614d5b565b6040516020818303038152906040529392505050565b606061010a8054610c8990614a39565b610fbe828260405180602001604052806000815250613ffa565b600061378a827f01ffc9a7000000000000000000000000000000000000000000000000000000006137c2565b8015610c7457506137bb827fffffffff000000000000000000000000000000000000000000000000000000006137c2565b1592915050565b604080517fffffffff00000000000000000000000000000000000000000000000000000000831660248083019190915282518083039091018152604490910182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f01ffc9a700000000000000000000000000000000000000000000000000000000179052905160009190829081906001600160a01b038716906175309061386f908690614d8a565b6000604051808303818686fa925050503d80600081146138ab576040519150601f19603f3d011682016040523d82523d6000602084013e6138b0565b606091505b50915091506020815110156138cb5760009350505050610c74565b8180156138e75750808060200190518101906138e79190614da6565b9695505050505050565b600054610100900460ff168061390a575060005460ff16155b61397c5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610d62565b600054610100900460ff16158015613472576000805461ffff19166101011790558015612ba8576000805461ff001916905550565b600054610100900460ff16806139ca575060005460ff16155b613a3c5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610d62565b600054610100900460ff16158015613a5e576000805461ffff19166101011790555b8251613a71906065906020860190614406565b508151613a85906066906020850190614406565b508015610d78576000805461ff0019169055505050565b600054610100900460ff1680613ab5575060005460ff16155b613b275760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610d62565b600054610100900460ff16158015613b49576000805461ffff19166101011790555b60016097558015612ba8576000805461ff001916905550565b600054610100900460ff1680613b7b575060005460ff16155b613bed5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610d62565b600054610100900460ff16158015613c0f576000805461ffff19166101011790555b61347233613276565b6000613c6d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166140839092919063ffffffff16565b805190915015610d785780806020019051810190613c8b9190614da6565b610d785760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610d62565b60006001600160a01b0384163b15613ebd576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290613d5a903390899088908890600401614dc3565b602060405180830381600087803b158015613d7457600080fd5b505af1925050508015613dc2575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613dbf91810190614df5565b60015b613e72573d808015613df0576040519150601f19603f3d011682016040523d82523d6000602084013e613df5565b606091505b508051613e6a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d62565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612ac1565b506001949350505050565b606081613f0857505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613f325780613f1c81614b7d565b9150613f2b9050600a83614b0a565b9150613f0c565b60008167ffffffffffffffff811115613f4d57613f4d61462f565b6040519080825280601f01601f191660200182016040528015613f77576020820181803683370190505b5090505b8415612ac157613f8c600183614b1e565b9150613f99600a86614e12565b613fa4906030614d43565b60f81b818381518110613fb957613fb9614b4e565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613ff3600a86614b0a565b9450613f7b565b6140048383614092565b6140116000848484613cfd565b610d785760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d62565b6060612ac184846000856141ec565b6001600160a01b0382166140e85760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d62565b6000818152606760205260409020546001600160a01b03161561414d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d62565b6001600160a01b0382166000908152606860205260408120805460019290614176908490614d43565b909155505060008181526067602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060824710156142645760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610d62565b843b6142b25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610d62565b600080866001600160a01b031685876040516142ce9190614d8a565b60006040518083038185875af1925050503d806000811461430b576040519150601f19603f3d011682016040523d82523d6000602084013e614310565b606091505b509150915061432082828661432b565b979650505050505050565b6060831561433a57508161326f565b82511561434a5782518084602001fd5b8160405162461bcd60e51b8152600401610d629190614550565b82805461437090614a39565b90600052602060002090601f01602090048101928261439257600085556143f6565b82601f106143c9578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008235161785556143f6565b828001600101855582156143f6579182015b828111156143f65782358255916020019190600101906143db565b5061440292915061447a565b5090565b82805461441290614a39565b90600052602060002090601f01602090048101928261443457600085556143f6565b82601f1061444d57805160ff19168380011785556143f6565b828001600101855582156143f6579182015b828111156143f657825182559160200191906001019061445f565b5b80821115614402576000815560010161447b565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114612ba857600080fd5b6000602082840312156144cf57600080fd5b813561326f8161448f565b60005b838110156144f55781810151838201526020016144dd565b838111156113ed5750506000910152565b6000815180845261451e8160208601602086016144da565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061326f6020830184614506565b6000806020838503121561457657600080fd5b823567ffffffffffffffff8082111561458e57600080fd5b818501915085601f8301126145a257600080fd5b8135818111156145b157600080fd5b8660208285010111156145c357600080fd5b60209290920196919550909350505050565b6000602082840312156145e757600080fd5b5035919050565b6001600160a01b0381168114612ba857600080fd5b6000806040838503121561461657600080fd5b8235614621816145ee565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156146a5576146a561462f565b604052919050565b600067ffffffffffffffff8211156146c7576146c761462f565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b6000614706614701846146ad565b61465e565b905082815283838301111561471a57600080fd5b828260208301376000602084830101529392505050565b600082601f83011261474257600080fd5b61326f838335602085016146f3565b60006020828403121561476357600080fd5b813567ffffffffffffffff81111561477a57600080fd5b612ac184828501614731565b60006020828403121561479857600080fd5b813561326f816145ee565b6000806000606084860312156147b857600080fd5b83356147c3816145ee565b925060208401356147d3816145ee565b929592945050506040919091013590565b600080604083850312156147f757600080fd5b50508035926020909101359150565b60008060006060848603121561481b57600080fd5b8335925060208401356147d3816145ee565b8015158114612ba857600080fd5b803561254a8161482d565b60008060008060008060008060006101208a8c03121561486557600080fd5b8935985060208a0135975060408a0135965060608a0135955060808a0135945060a08a013567ffffffffffffffff808211156148a057600080fd5b6148ac8d838e01614731565b955060c08c01359150808211156148c257600080fd5b6148ce8d838e01614731565b945060e08c01359150808211156148e457600080fd5b506148f18c828d01614731565b9250506149016101008b0161483b565b90509295985092959850929598565b6000806040838503121561492357600080fd5b823561492e816145ee565b9150602083013561493e8161482d565b809150509250929050565b6000806000806080858703121561495f57600080fd5b843561496a816145ee565b9350602085013561497a816145ee565b925060408501359150606085013567ffffffffffffffff81111561499d57600080fd5b8501601f810187136149ae57600080fd5b6149bd878235602084016146f3565b91505092959194509250565b600080604083850312156149dc57600080fd5b82359150602083013561493e816145ee565b600060208284031215614a0057600080fd5b813561326f8161482d565b60008060408385031215614a1e57600080fd5b8235614a29816145ee565b9150602083013561493e816145ee565b600181811c90821680614a4d57607f821691505b60208210811415614a87577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000816000190483118215151615614ad657614ad6614a8d565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082614b1957614b19614adb565b500490565b600082821015614b3057614b30614a8d565b500390565b600060208284031215614b4757600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000600019821415614b9157614b91614a8d565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600060208284031215614bd957600080fd5b815167ffffffffffffffff811115614bf057600080fd5b8201601f81018413614c0157600080fd5b8051614c0f614701826146ad565b818152856020838501011115614c2457600080fd5b614c358260208301602086016144da565b95945050505050565b600083516020614c5182858389016144da565b845491840191600090600181811c9080831680614c6f57607f831692505b858310811415614ca6577f4e487b710000000000000000000000000000000000000000000000000000000085526022600452602485fd5b808015614cba5760018114614ce957614d16565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00851688528388019550614d16565b60008b81526020902060005b85811015614d0e5781548a820152908401908801614cf5565b505083880195505b50939a9950505050505050505050565b600060208284031215614d3857600080fd5b815161326f816145ee565b60008219821115614d5657614d56614a8d565b500190565b60008351614d6d8184602088016144da565b835190830190614d818183602088016144da565b01949350505050565b60008251614d9c8184602087016144da565b9190910192915050565b600060208284031215614db857600080fd5b815161326f8161482d565b60006001600160a01b038087168352808616602084015250836040830152608060608301526138e76080830184614506565b600060208284031215614e0757600080fd5b815161326f8161448f565b600082614e2157614e21614adb565b50069056fea2646970667358221220b6d75518314dfd135a09cd52f7622d2b836df533bfd39d9bcdab10991052dc7e64736f6c63430008090033
Deployed Bytecode
0x6080604052600436106103e25760003560e01c80638dc251e31161020d578063cf09e0d011610128578063e67151ae116100bb578063e985e9c51161008a578063f2fde38b1161006f578063f2fde38b14610b87578063fe60d12c14610ba7578063ff1b655614610bbd57600080fd5b8063e985e9c514610b39578063f0ba844014610b5957600080fd5b8063e67151ae14610ad9578063e6798baa14610af9578063e6fd48bc14610b0e578063e8a3d48514610b2457600080fd5b8063db85d59c116100f7578063db85d59c14610a64578063ddd5e1b214610a84578063e36b0b3714610aa4578063e43082f714610ab957600080fd5b8063cf09e0d014610a0d578063d56b754614610a23578063d5abeb0114610a39578063d69b2e4514610a4f57600080fd5b8063a22cb465116101a0578063b66a0e5d1161016f578063b66a0e5d146109a1578063b88d4fde146109b6578063b8997a97146109d6578063c87b56dd146109ed57600080fd5b8063a22cb4651461090d578063a474935c1461092d578063a4f6628d14610961578063a769310a1461098157600080fd5b80639eb88b2c116101dc5780639eb88b2c146108ac5780639fbc8713146108c2578063a035b1fe146108e3578063a0712d68146108fa57600080fd5b80638dc251e31461083757806391b7f5ed14610857578063938e3d7b1461087757806395d89b411461089757600080fd5b806342842e0e116102fd5780636352211e11610290578063715018a61161025f578063715018a6146107c4578063815f1a36146107d957806389476069146107f95780638da5cb5b1461081957600080fd5b80636352211e1461074f5780636b8533141461076f5780636e878ffb1461078f57806370a08231146107a457600080fd5b806352ee4696116102cc57806352ee4696146106e157806355f804b3146107025780635c474f9e1461072257806362a5af3b1461073a57600080fd5b806342842e0e14610670578063454e66c8146106905780634690521b146106b7578063507e094f146106ca57600080fd5b806320b7b8df1161037557806333eeb1471161034457806333eeb147146105c25780633c934ab3146105f55780633ccfd60b1461063b5780633e4086e51461065057600080fd5b806320b7b8df1461052257806323b872dd146105435780632a30e4c2146105635780632a55205a1461058357600080fd5b8063095ea7b3116103b1578063095ea7b31461049f57806310969523146104bf578063170ff3e1146104df57806318160ddd146104ff57600080fd5b806301ffc9a7146103ee57806306fdde03146104235780630768c61814610445578063081812fc1461046757600080fd5b366103e957005b600080fd5b3480156103fa57600080fd5b5061040e6104093660046144bd565b610bd2565b60405190151581526020015b60405180910390f35b34801561042f57600080fd5b50610438610c7a565b60405161041a9190614550565b34801561045157600080fd5b50610465610460366004614563565b610d0c565b005b34801561047357600080fd5b506104876104823660046145d5565b610d7d565b6040516001600160a01b03909116815260200161041a565b3480156104ab57600080fd5b506104656104ba366004614603565b610e23565b3480156104cb57600080fd5b506104656104da366004614751565b610f50565b3480156104eb57600080fd5b506104656104fa366004614786565b610fc2565b34801561050b57600080fd5b5061051461115c565b60405190815260200161041a565b34801561052e57600080fd5b5061010454610487906001600160a01b031681565b34801561054f57600080fd5b5061046561055e3660046147a3565b61116c565b34801561056f57600080fd5b5061046561057e366004614786565b6111f3565b34801561058f57600080fd5b506105a361059e3660046147e4565b6112f5565b604080516001600160a01b03909316835260208301919091520161041a565b3480156105ce57600080fd5b506101055461040e9074010000000000000000000000000000000000000000900460ff1681565b34801561060157600080fd5b5060408051808201909152601581527f68747470733a2f2f6275696c64736869702e78797a00000000000000000000006020820152610438565b34801561064757600080fd5b5061046561132d565b34801561065c57600080fd5b5061046561066b3660046145d5565b6113f3565b34801561067c57600080fd5b5061046561068b3660046147a3565b611453565b34801561069c57600080fd5b5073704c043ceb93bd6cbe570c6a2708c3e1c0310587610487565b6104656106c5366004614806565b61146e565b3480156106d657600080fd5b506105146101005481565b3480156106ed57600080fd5b5061010554610487906001600160a01b031681565b34801561070e57600080fd5b5061046561071d366004614563565b611556565b34801561072e57600080fd5b5060fc5442101561040e565b34801561074657600080fd5b506104656115bd565b34801561075b57600080fd5b5061048761076a3660046145d5565b611659565b34801561077b57600080fd5b5061046561078a366004614786565b6116e4565b34801561079b57600080fd5b50610487611881565b3480156107b057600080fd5b506105146107bf366004614786565b6118b6565b3480156107d057600080fd5b50610465611950565b3480156107e557600080fd5b506104656107f4366004614846565b6119b6565b34801561080557600080fd5b50610465610814366004614786565b611b4a565b34801561082557600080fd5b5060c9546001600160a01b0316610487565b34801561084357600080fd5b50610465610852366004614786565b611cbb565b34801561086357600080fd5b506104656108723660046145d5565b611d50565b34801561088357600080fd5b50610465610892366004614563565b611db0565b3480156108a357600080fd5b50610438611e17565b3480156108b857600080fd5b5061051460001981565b3480156108ce57600080fd5b5061010354610487906001600160a01b031681565b3480156108ef57600080fd5b506105146101015481565b6104656109083660046145d5565b611e26565b34801561091957600080fd5b50610465610928366004614910565b611fbb565b34801561093957600080fd5b506101055461040e907501000000000000000000000000000000000000000000900460ff1681565b34801561096d57600080fd5b5061040e61097c366004614786565b61209e565b34801561098d57600080fd5b5061046561099c366004614786565b61210a565b3480156109ad57600080fd5b506104656122c2565b3480156109c257600080fd5b506104656109d1366004614949565b61238e565b3480156109e257600080fd5b506105146101025481565b3480156109f957600080fd5b50610438610a083660046145d5565b612416565b348015610a1957600080fd5b5061051460fd5481565b348015610a2f57600080fd5b506105146101f481565b348015610a4557600080fd5b5061051460ff5481565b348015610a5b57600080fd5b5061046561254f565b348015610a7057600080fd5b50610487610a7f3660046145d5565b6125ec565b348015610a9057600080fd5b50610465610a9f3660046149c9565b612617565b348015610ab057600080fd5b50610465612767565b348015610ac557600080fd5b50610465610ad43660046149ee565b6127c9565b348015610ae557600080fd5b50610465610af43660046145d5565b612870565b348015610b0557600080fd5b5061051461293b565b348015610b1a57600080fd5b5061051460fc5481565b348015610b3057600080fd5b50610438612976565b348015610b4557600080fd5b5061040e610b54366004614a0b565b6129a5565b348015610b6557600080fd5b50610514610b743660046145d5565b6101066020526000908152604090205481565b348015610b9357600080fd5b50610465610ba2366004614786565b612ac9565b348015610bb357600080fd5b5061051460fe5481565b348015610bc957600080fd5b50610438612bab565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610c6557507fffffffff0000000000000000000000000000000000000000000000000000000082167f81c1fa8100000000000000000000000000000000000000000000000000000000145b80610c745750610c7482612c3a565b92915050565b606060658054610c8990614a39565b80601f0160208091040260200160405190810160405280929190818152602001828054610cb590614a39565b8015610d025780601f10610cd757610100808354040283529160200191610d02565b820191906000526020600020905b815481529060010190602001808311610ce557829003601f168201915b5050505050905090565b60c9546001600160a01b03163314610d6b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b610d7861010b8383614364565b505050565b6000818152606760205260408120546001600160a01b0316610e075760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610d62565b506000908152606960205260409020546001600160a01b031690565b6000610e2e82611659565b9050806001600160a01b0316836001600160a01b03161415610eb85760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610d62565b336001600160a01b0382161480610ed45750610ed481336129a5565b610f465760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d62565b610d788383612d1d565b60c9546001600160a01b03163314610faa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b8051610fbe90610108906020840190614406565b5050565b60c9546001600160a01b0316331461101c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b6001600160a01b0381163014156110755760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f74206164642073656c6620617320657874656e73696f6e000000006044820152606401610d62565b61107e8161209e565b156110cb5760405162461bcd60e51b815260206004820152601760248201527f457874656e73696f6e20616c72656164792061646465640000000000000000006044820152606401610d62565b610107805460018101825560009182527f47c4908e245f386bfc1825973249847f4053a761ddb4880ad63c323a7b5a2a250180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915560405190917f99c6112dbaef85e57ac8ca86dd23e3c785162b58a6e810e5d5e7455b568d66b191a250565b600061116760fb5490565b905090565b6111763382612da3565b6111e85760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d62565b610d78838383612e83565b60c9546001600160a01b0316331461124d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b610105547501000000000000000000000000000000000000000000900460ff16156112ba5760405162461bcd60e51b815260206004820152601760248201527f5061796f7574206368616e6765206973206c6f636b65640000000000000000006044820152606401610d62565b61010480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b61010354610102546001600160a01b03909116906000906127109061131a9085614abc565b6113249190614b0a565b90509250929050565b60c9546001600160a01b031633146113875760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b4760006127106113996101f482614b1e565b6113a39084614abc565b6113ad9190614b0a565b905060006113b9611881565b905073704c043ceb93bd6cbe570c6a2708c3e1c03105876113da8284613068565b6113ed816113e88587614b1e565b613068565b50505050565b60c9546001600160a01b0316331461144d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b61010255565b610d788383836040518060200160405280600081525061238e565b6114773361209e565b6114e95760405162461bcd60e51b815260206004820152603460248201527f457874656e73696f6e2073686f756c6420626520616464656420746f20636f6e60448201527f7472616374206265666f7265206d696e74696e670000000000000000000000006064820152608401610d62565b6002609754141561153c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d62565b600260975561154c838383613181565b5050600160975550565b60c9546001600160a01b031633146115b05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b610d7861010a8383614364565b60c9546001600160a01b031633146116175760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b61010580547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b6000818152606760205260408120546001600160a01b031680610c745760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610d62565b60c9546001600160a01b0316331461173e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b6001600160a01b0381163014156117975760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f74206164642073656c6620617320657874656e73696f6e000000006044820152606401610d62565b6001600160a01b03811615806117d257506117d2817fc87b56dd00000000000000000000000000000000000000000000000000000000613253565b61181e5760405162461bcd60e51b815260206004820152601960248201527f4e6f7420636f6e666f726d7320746f20657874656e73696f6e000000000000006044820152606401610d62565b61010580547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040517f92597a601f19fe4d50f14ea76d7ba45d21bad7992f7e1709c605642b190de09290600090a250565b610104546000906001600160a01b03166118a5575060c9546001600160a01b031690565b50610104546001600160a01b031690565b60006001600160a01b0382166119345760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610d62565b506001600160a01b031660009081526068602052604090205490565b60c9546001600160a01b031633146119aa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b6119b46000613276565b565b600054610100900460ff16806119cf575060005460ff16155b611a415760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610d62565b600054610100900460ff16158015611a63576000805461ffff19166101011790555b611a6d84846132e0565b611a756133bd565b611a7d613486565b4260fd5560001960fc556101018a905560fe88905561010087905560ff89905561010286905561010380547fffffffffffffffffffffffff00000000000000000000000000000000000000001630179055610105805483151577010000000000000000000000000000000000000000000000027fffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffff9091161790558451611b2b9061010a906020880190614406565b508015611b3e576000805461ff00191690555b50505050505050505050565b60c9546001600160a01b03163314611ba45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015611bff57600080fd5b505afa158015611c13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c379190614b35565b90506000612710611c4a6101f482614b1e565b611c549084614abc565b611c5e9190614b0a565b90506000611c6a611881565b905073704c043ceb93bd6cbe570c6a2708c3e1c0310587611c956001600160a01b0386168385613543565b611cb481611ca38587614b1e565b6001600160a01b0388169190613543565b5050505050565b60c9546001600160a01b03163314611d155760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b61010380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60c9546001600160a01b03163314611daa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b61010155565b60c9546001600160a01b03163314611e0a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b610d786101098383614364565b606060668054610c8990614a39565b60026097541415611e795760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d62565b600260975560fc54421015611ed05760405162461bcd60e51b815260206004820152601060248201527f53616c65206e6f742073746172746564000000000000000000000000000000006044820152606401610d62565b61010054811115611f495760405162461bcd60e51b815260206004820152603d60248201527f596f752063616e6e6f74206d696e74206d6f7265207468616e204d41585f544f60448201527f4b454e535f5045525f4d494e5420746f6b656e73206174206f6e6365210000006064820152608401610d62565b346101015482611f599190614abc565b1115611fa75760405162461bcd60e51b815260206004820152601960248201527f496e636f6e73697374656e7420616d6f756e742073656e7421000000000000006044820152606401610d62565b611fb381336000613181565b506001609755565b6001600160a01b0382163314156120145760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d62565b336000818152606a602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000805b6101075481101561210157826001600160a01b031661010782815481106120cb576120cb614b4e565b6000918252602090912001546001600160a01b031614156120ef5750600192915050565b806120f981614b7d565b9150506120a2565b50600092915050565b60c9546001600160a01b031633146121645760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b60005b610107548110156121c257816001600160a01b0316610107828154811061219057612190614b4e565b6000918252602090912001546001600160a01b031614156121b0576121c2565b806121ba81614b7d565b915050612167565b61010780546121d390600190614b1e565b815481106121e3576121e3614b4e565b60009182526020909120015461010780546001600160a01b03909216918390811061221057612210614b4e565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555061010780548061225057612250614b98565b600082815260208120820160001990810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690559091019091556040516001600160a01b038416917fe056b30f86b962fc88925cb7559e4364707cab11d2c52e090e6c0db62eb9113591a25050565b60c9546001600160a01b0316331461231c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b6101055474010000000000000000000000000000000000000000900460ff16156123885760405162461bcd60e51b815260206004820152601160248201527f4d696e74696e672069732066726f7a656e0000000000000000000000000000006044820152606401610d62565b4260fc55565b6123983383612da3565b61240a5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d62565b6113ed848484846135c3565b610105546060906001600160a01b0316156124f657610105546040517fc87b56dd000000000000000000000000000000000000000000000000000000008152600481018490526000916001600160a01b03169063c87b56dd9060240160006040518083038186803b15801561248a57600080fd5b505afa15801561249e573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526124e49190810190614bc7565b8051909150156124f45792915050565b505b600061010b805461250690614a39565b90501115612541576125178261364c565b61010b60405160200161252b929190614c3e565b6040516020818303038152906040529050919050565b610c748261364c565b919050565b60c9546001600160a01b031633146125a95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b61010580547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff167501000000000000000000000000000000000000000000179055565b61010781815481106125fd57600080fd5b6000918252602090912001546001600160a01b0316905081565b6002609754141561266a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d62565b600260975560c9546001600160a01b031633146126c95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b60fe548211156127415760405162461bcd60e51b815260206004820152602360248201527f5468617420776f756c642065786365656420746865206d61782072657365727660448201527f65642e00000000000000000000000000000000000000000000000000000000006064820152608401610d62565b8160fe5461274f9190614b1e565b60fe5561275e82826000613181565b50506001609755565b60c9546001600160a01b031633146127c15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b60001960fc55565b60c9546001600160a01b031633146128235760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b6101058054911515760100000000000000000000000000000000000000000000027fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b60c9546001600160a01b031633146128ca5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b6101055474010000000000000000000000000000000000000000900460ff16156129365760405162461bcd60e51b815260206004820152601160248201527f4d696e74696e672069732066726f7a656e0000000000000000000000000000006044820152606401610d62565b60fc55565b6101055460009077010000000000000000000000000000000000000000000000900460ff1661296b57600061296e565b60015b60ff16905090565b60606000610109805461298890614a39565b90501161299757611167613734565b6101098054610c8990614a39565b6101055460009073a5409ec958c83c3f309868babaca7c86dcb077c190760100000000000000000000000000000000000000000000900460ff168015612a8857506040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b158015612a4557600080fd5b505afa158015612a59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a7d9190614d26565b6001600160a01b0316145b15612a97576001915050610c74565b6001600160a01b038085166000908152606a602090815260408083209387168352929052205460ff165b949350505050565b60c9546001600160a01b03163314612b235760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d62565b6001600160a01b038116612b9f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d62565b612ba881613276565b50565b6101088054612bb990614a39565b80601f0160208091040260200160405190810160405280929190818152602001828054612be590614a39565b8015612c325780601f10612c0757610100808354040283529160200191612c32565b820191906000526020600020905b815481529060010190602001808311612c1557829003601f168201915b505050505081565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480612ccd57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c7457507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610c74565b600081815260696020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091558190612d6a82611659565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152606760205260408120546001600160a01b0316612e2d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610d62565b6000612e3883611659565b9050806001600160a01b0316846001600160a01b03161480612e735750836001600160a01b0316612e6884610d7d565b6001600160a01b0316145b80612ac15750612ac181856129a5565b826001600160a01b0316612e9682611659565b6001600160a01b031614612f125760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610d62565b6001600160a01b038216612f8d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610d62565b612f98600082612d1d565b6001600160a01b0383166000908152606860205260408120805460019290612fc1908490614b1e565b90915550506001600160a01b0382166000908152606860205260408120805460019290612fef908490614d43565b909155505060008181526067602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b804710156130b85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610d62565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613105576040519150601f19603f3d011682016040523d82523d6000602084013e61310a565b606091505b5050905080610d785760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610d62565b60ff5460fe548461319160fb5490565b61319b9190614d43565b6131a59190614d43565b11156131f35760405162461bcd60e51b815260206004820152601760248201527f4e6f7420656e6f75676820546f6b656e73206c6566742e0000000000000000006044820152606401610d62565b60005b838110156113ed57600061320861293b565b60fb546132159190614d43565b905061322560fb80546001019055565b61322f8482613744565b6000908152610106602052604090208290558061324b81614b7d565b9150506131f6565b600061325e8361375e565b801561326f575061326f83836137c2565b9392505050565b60c980546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16806132f9575060005460ff16155b61336b5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610d62565b600054610100900460ff1615801561338d576000805461ffff19166101011790555b6133956138f1565b61339d6138f1565b6133a783836139b1565b8015610d78576000805461ff0019169055505050565b600054610100900460ff16806133d6575060005460ff16155b6134485760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610d62565b600054610100900460ff1615801561346a576000805461ffff19166101011790555b613472613a9c565b8015612ba8576000805461ff001916905550565b600054610100900460ff168061349f575060005460ff16155b6135115760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610d62565b600054610100900460ff16158015613533576000805461ffff19166101011790555b61353b6138f1565b613472613b62565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610d78908490613c18565b6135ce848484612e83565b6135da84848484613cfd565b6113ed5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d62565b6000818152606760205260409020546060906001600160a01b03166136d95760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610d62565b60006136e3613734565b90506000815111613703576040518060200160405280600081525061326f565b8061370d84613ec8565b60405160200161371e929190614d5b565b6040516020818303038152906040529392505050565b606061010a8054610c8990614a39565b610fbe828260405180602001604052806000815250613ffa565b600061378a827f01ffc9a7000000000000000000000000000000000000000000000000000000006137c2565b8015610c7457506137bb827fffffffff000000000000000000000000000000000000000000000000000000006137c2565b1592915050565b604080517fffffffff00000000000000000000000000000000000000000000000000000000831660248083019190915282518083039091018152604490910182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f01ffc9a700000000000000000000000000000000000000000000000000000000179052905160009190829081906001600160a01b038716906175309061386f908690614d8a565b6000604051808303818686fa925050503d80600081146138ab576040519150601f19603f3d011682016040523d82523d6000602084013e6138b0565b606091505b50915091506020815110156138cb5760009350505050610c74565b8180156138e75750808060200190518101906138e79190614da6565b9695505050505050565b600054610100900460ff168061390a575060005460ff16155b61397c5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610d62565b600054610100900460ff16158015613472576000805461ffff19166101011790558015612ba8576000805461ff001916905550565b600054610100900460ff16806139ca575060005460ff16155b613a3c5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610d62565b600054610100900460ff16158015613a5e576000805461ffff19166101011790555b8251613a71906065906020860190614406565b508151613a85906066906020850190614406565b508015610d78576000805461ff0019169055505050565b600054610100900460ff1680613ab5575060005460ff16155b613b275760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610d62565b600054610100900460ff16158015613b49576000805461ffff19166101011790555b60016097558015612ba8576000805461ff001916905550565b600054610100900460ff1680613b7b575060005460ff16155b613bed5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610d62565b600054610100900460ff16158015613c0f576000805461ffff19166101011790555b61347233613276565b6000613c6d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166140839092919063ffffffff16565b805190915015610d785780806020019051810190613c8b9190614da6565b610d785760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610d62565b60006001600160a01b0384163b15613ebd576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290613d5a903390899088908890600401614dc3565b602060405180830381600087803b158015613d7457600080fd5b505af1925050508015613dc2575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613dbf91810190614df5565b60015b613e72573d808015613df0576040519150601f19603f3d011682016040523d82523d6000602084013e613df5565b606091505b508051613e6a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d62565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612ac1565b506001949350505050565b606081613f0857505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613f325780613f1c81614b7d565b9150613f2b9050600a83614b0a565b9150613f0c565b60008167ffffffffffffffff811115613f4d57613f4d61462f565b6040519080825280601f01601f191660200182016040528015613f77576020820181803683370190505b5090505b8415612ac157613f8c600183614b1e565b9150613f99600a86614e12565b613fa4906030614d43565b60f81b818381518110613fb957613fb9614b4e565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613ff3600a86614b0a565b9450613f7b565b6140048383614092565b6140116000848484613cfd565b610d785760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d62565b6060612ac184846000856141ec565b6001600160a01b0382166140e85760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d62565b6000818152606760205260409020546001600160a01b03161561414d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d62565b6001600160a01b0382166000908152606860205260408120805460019290614176908490614d43565b909155505060008181526067602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060824710156142645760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610d62565b843b6142b25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610d62565b600080866001600160a01b031685876040516142ce9190614d8a565b60006040518083038185875af1925050503d806000811461430b576040519150601f19603f3d011682016040523d82523d6000602084013e614310565b606091505b509150915061432082828661432b565b979650505050505050565b6060831561433a57508161326f565b82511561434a5782518084602001fd5b8160405162461bcd60e51b8152600401610d629190614550565b82805461437090614a39565b90600052602060002090601f01602090048101928261439257600085556143f6565b82601f106143c9578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008235161785556143f6565b828001600101855582156143f6579182015b828111156143f65782358255916020019190600101906143db565b5061440292915061447a565b5090565b82805461441290614a39565b90600052602060002090601f01602090048101928261443457600085556143f6565b82601f1061444d57805160ff19168380011785556143f6565b828001600101855582156143f6579182015b828111156143f657825182559160200191906001019061445f565b5b80821115614402576000815560010161447b565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114612ba857600080fd5b6000602082840312156144cf57600080fd5b813561326f8161448f565b60005b838110156144f55781810151838201526020016144dd565b838111156113ed5750506000910152565b6000815180845261451e8160208601602086016144da565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061326f6020830184614506565b6000806020838503121561457657600080fd5b823567ffffffffffffffff8082111561458e57600080fd5b818501915085601f8301126145a257600080fd5b8135818111156145b157600080fd5b8660208285010111156145c357600080fd5b60209290920196919550909350505050565b6000602082840312156145e757600080fd5b5035919050565b6001600160a01b0381168114612ba857600080fd5b6000806040838503121561461657600080fd5b8235614621816145ee565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156146a5576146a561462f565b604052919050565b600067ffffffffffffffff8211156146c7576146c761462f565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b6000614706614701846146ad565b61465e565b905082815283838301111561471a57600080fd5b828260208301376000602084830101529392505050565b600082601f83011261474257600080fd5b61326f838335602085016146f3565b60006020828403121561476357600080fd5b813567ffffffffffffffff81111561477a57600080fd5b612ac184828501614731565b60006020828403121561479857600080fd5b813561326f816145ee565b6000806000606084860312156147b857600080fd5b83356147c3816145ee565b925060208401356147d3816145ee565b929592945050506040919091013590565b600080604083850312156147f757600080fd5b50508035926020909101359150565b60008060006060848603121561481b57600080fd5b8335925060208401356147d3816145ee565b8015158114612ba857600080fd5b803561254a8161482d565b60008060008060008060008060006101208a8c03121561486557600080fd5b8935985060208a0135975060408a0135965060608a0135955060808a0135945060a08a013567ffffffffffffffff808211156148a057600080fd5b6148ac8d838e01614731565b955060c08c01359150808211156148c257600080fd5b6148ce8d838e01614731565b945060e08c01359150808211156148e457600080fd5b506148f18c828d01614731565b9250506149016101008b0161483b565b90509295985092959850929598565b6000806040838503121561492357600080fd5b823561492e816145ee565b9150602083013561493e8161482d565b809150509250929050565b6000806000806080858703121561495f57600080fd5b843561496a816145ee565b9350602085013561497a816145ee565b925060408501359150606085013567ffffffffffffffff81111561499d57600080fd5b8501601f810187136149ae57600080fd5b6149bd878235602084016146f3565b91505092959194509250565b600080604083850312156149dc57600080fd5b82359150602083013561493e816145ee565b600060208284031215614a0057600080fd5b813561326f8161482d565b60008060408385031215614a1e57600080fd5b8235614a29816145ee565b9150602083013561493e816145ee565b600181811c90821680614a4d57607f821691505b60208210811415614a87577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000816000190483118215151615614ad657614ad6614a8d565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082614b1957614b19614adb565b500490565b600082821015614b3057614b30614a8d565b500390565b600060208284031215614b4757600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000600019821415614b9157614b91614a8d565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600060208284031215614bd957600080fd5b815167ffffffffffffffff811115614bf057600080fd5b8201601f81018413614c0157600080fd5b8051614c0f614701826146ad565b818152856020838501011115614c2457600080fd5b614c358260208301602086016144da565b95945050505050565b600083516020614c5182858389016144da565b845491840191600090600181811c9080831680614c6f57607f831692505b858310811415614ca6577f4e487b710000000000000000000000000000000000000000000000000000000085526022600452602485fd5b808015614cba5760018114614ce957614d16565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00851688528388019550614d16565b60008b81526020902060005b85811015614d0e5781548a820152908401908801614cf5565b505083880195505b50939a9950505050505050505050565b600060208284031215614d3857600080fd5b815161326f816145ee565b60008219821115614d5657614d56614a8d565b500190565b60008351614d6d8184602088016144da565b835190830190614d818183602088016144da565b01949350505050565b60008251614d9c8184602087016144da565b9190910192915050565b600060208284031215614db857600080fd5b815161326f8161482d565b60006001600160a01b038087168352808616602084015250836040830152608060608301526138e76080830184614506565b600060208284031215614e0757600080fd5b815161326f8161448f565b600082614e2157614e21614adb565b50069056fea2646970667358221220b6d75518314dfd135a09cd52f7622d2b836df533bfd39d9bcdab10991052dc7e64736f6c63430008090033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.