ETH Price: $3,107.10 (+0.06%)

Token

Hokago (HOKAGO)
 

Overview

Max Total Supply

1,554 HOKAGO

Holders

192

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 HOKAGO
0x3b45d31d6820294ab8187a64313550e224faf0ad
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

HOKAGO is the NFT specialized in decentralized character creation by the community and IP sharing for comics & animation. They building new comics & animation culture in Web3.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Hokago

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : Hokago.sol
/*        ■■■■■
       ■■■■■■■■■■
     ■■■■■■■    ■■■■
     ■■■■■■      ■■■      ■■■   ■■    ■■■■■    ■■   ■■■     ■■      ■■■■■      ■■■■
    ■■■■■■■■ ■  ■■■■      ■■■   ■■   ■■■ ■■■   ■■  ■■■     ■■■■    ■■■■ ■■■  ■■■  ■■■
    ■■■■■■■■    ■■■■■     ■■■   ■■  ■■■   ■■■  ■■ ■■■      ■■■■   ■■■    ■■ ■■■    ■■
    ■■■■■■■■■■■■■■■■■     ■■■■■■■■  ■■     ■■  ■■■■■      ■■■■■■  ■■■       ■■■    ■■
    ■■■■■■■■■■■■■■■■■     ■■■■■■■■  ■■     ■■  ■■■■■      ■■  ■■  ■■■ ■■■■■ ■■■    ■■
      ■■■■■■■■■■■■■■■     ■■■   ■■  ■■■    ■■  ■■■■■■    ■■■■■■■■ ■■■  ■■■■ ■■■    ■■
     ■■■■■■■■■■■■■■■■■    ■■■   ■■   ■■■■■■■   ■■  ■■■   ■■    ■■  ■■■■■■■■  ■■■■■■■
      ■■■■■■■■■■■■■■■■■   ■■■   ■■    ■■■■■    ■■   ■■■ ■■■    ■■■   ■■■■■    ■■■■■
       ■■■■■■■■■■■■■■■■■
        ■■■ ■■■■■■■■■■■■■                                             ■■■■■■■■
            ■■■■■■■■■■■■■■                                      ■■■■■■■■■■■■■■■■■■■
            ■■■■■■■■■ ■■■■■■■■■                          ■■■■■■■■              ■■■■■■■
            ■■■■■■  ■■  ■■■■■■■■■■■■             ■■■■■■■■■■                     ■■■  ■
           ■■■■■■■■    ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                          ■■■ ■
         ■■■■■■■■■            ■■■■■■■■■■■■■■■■■■■■■■■                             ■■ ■■
       ■■■■■                       ■■■■■■■■■■■                             ■■    ■■■■
    ■■■                                                                      ■■■■■■
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "./HokagoCore.sol";

contract Hokago is HokagoCore{

    using Strings for uint256;

    uint64 public preSalePrice;
    uint64 public publicSalePrice;
    uint64 public saleLimit;
    uint64 public allowListCount;
    bool public isPublicSale;
    bool public isPreSale;
    string public baseTokenURI;

    mapping(address => uint256) private _allowList;
    mapping(address => uint256) private _numberMinted;
    
    constructor(uint64 _preSalePriceWei, uint64 _publicSalePriceWei, uint64 _saleLimit, string memory _baseTokenURI)
    HokagoCore("Hokago", "HOKAGO") 
    {
        preSalePrice = _preSalePriceWei;
        publicSalePrice = _publicSalePriceWei;
        saleLimit = _saleLimit;
        baseTokenURI = _baseTokenURI;
    }


    // Sale Config
    function startPreSale()
        public
        virtual
        onlyOwner
    {
        isPublicSale = false;
        isPreSale = true;
    }

    function startPublicSale()
        public
        virtual
        onlyOwner
    {
        isPublicSale = true;
        isPreSale = false;
    }

    function pausePreSale()
        public
        virtual
        onlyOwner
    {
        isPreSale = false;
    }

    function pausePublicSale()
        public
        virtual
        onlyOwner
    {
        isPublicSale = false;
    }

    function updateSaleLimit(uint64 limit)
        external
        virtual
        onlyOwner
    {
        saleLimit = limit;
    }


    // AllowList Config
    function deleteAllowList(address addr)
        public
        virtual
        onlyOwner
    {
        allowListCount = allowListCount - uint64(_allowList[addr]);
        delete(_allowList[addr]);
    }

    function changeAllowList(address addr, uint256 maxMint)
        public
        virtual
        onlyOwner
    {
        allowListCount = allowListCount - uint64(_allowList[addr]);
        _allowList[addr] = maxMint;
        allowListCount = allowListCount + uint64(maxMint);
    }

    function pushAllowListAddresses(address[] memory list)
        public
        virtual
        onlyOwner
    {
        for (uint i = 0; i < list.length; i++) {
            _allowList[list[i]]++;
            allowListCount++;
        }
    }


    // Mint
    function devMint(uint256[] memory list)
        external
        virtual
        onlyOwner
    {
        for (uint256 i = 0; i<list.length; i++) {
            _safeMint(_msgSender(), list[i]);
        }
    }
    
    function preSaleMint(uint256 requestTokenID)
        external
        virtual
        payable
        callerIsUser
    {
        uint256 price = uint256(preSalePrice);
        require(!_exists(requestTokenID), "Request token has already been minted");
        require(requestTokenID != 0, "Can not mintable ID (=0)");
        require(msg.value >= price, "Need to send more ETH");
        require(isPreSale, "Presale has not begun yet");
        require(_allowList[_msgSender()] > 0, "Not eligible for allowlist mint");
        require(requestTokenID <= uint256(saleLimit), "Request character is not available yet");

        _safeMint(_msgSender(), requestTokenID);
        _allowList[_msgSender()]--;
        _numberMinted[_msgSender()]++;
    }

    function publicSaleMint(uint256 requestTokenID)
        external
        virtual
        payable
        callerIsUser
    {
        uint256 price = uint256(publicSalePrice);
        require(!_exists(requestTokenID), "Request token has already been minted");
        require(requestTokenID != 0, "Can not mintable ID (=0)");
        require(msg.value >= price, "Need to send more ETH");
        require(isPublicSale, "Publicsale has not begun yet");
        require(requestTokenID <= uint256(saleLimit), "Request character is not available yet");
        require(_numberMinted[_msgSender()] < 50, "Reached mint limit (=50)");

        _safeMint(_msgSender(), requestTokenID);
        _numberMinted[_msgSender()]++;
    }


    // Generate Random-Mintable TokenID
    function generateRandTokenID(uint256 characterNo, uint256 jsTimestamp)
        public
        view
        returns (uint256)
    {
        uint256 randNumber;
        uint256 counter = 0;
        uint256 startNo = ((characterNo-1) * 400) + 1;
        uint256 endNo = characterNo * 400;
        uint256[] memory mintableIDs = new uint256[](400);

        require(endNo <= uint256(saleLimit), "Request character is not available yet");

        for(uint256 i=startNo; i<=endNo; i++) {
            if(!_exists(i)) {
                mintableIDs[counter] = i;
                counter++;
            }
        }

        if(counter == 0){
            return 0;
        }
        else{
            randNumber = uint256(keccak256(abi.encodePacked(block.timestamp, block.difficulty, jsTimestamp))) % counter;
            return mintableIDs[randNumber];
        }
    }


    // URI
    function setBaseURI(string memory baseURI)
        external
        virtual
        onlyOwner
    {
        baseTokenURI = baseURI;
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        return string(abi.encodePacked(baseTokenURI, tokenId.toString(), '.json'));
    }


    // Status Chack
    function allowListCountOfOwner(address owner)
        external
        view
        returns(uint256)
    {
        return _allowList[owner];
    }

    function mintedTokens()
        external
        view
        onlyOwner
        returns (uint256[] memory)
    {
        uint256 array_length = totalSupply();
        uint256[] memory arrayMemory = new uint256[](array_length);
        for(uint256 i=0; i<array_length; i++){
            arrayMemory[i] = tokenByIndex(i);
        }
        return arrayMemory;
    }

    function mintableTokensByCharacter(uint256 characterNo)
        public
        view
        onlyOwner
        returns (uint256[] memory)
    {
        uint256 counter = 0;
        uint256 startNo = ((characterNo-1) * 400) + 1;
        uint256 endNo = characterNo * 400;
        uint256[] memory mintableIDs = new uint256[](400);

        for(uint256 i=startNo; i<=endNo; i++) {
            if(!_exists(i)) {
                mintableIDs[counter] = i;
                counter++;
            }
        }
        return mintableIDs;
    }
    
    function numberMintedOfOwner(address owner)
        external
        view
        returns (uint256)
    {
            require(owner != address(0), "Number minted query for the zero address");
            return _numberMinted[owner];
    }

}

File 2 of 18 : HokagoCore.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./ContextMixin.sol";
import "./Royalty.sol";

contract HokagoCore is
    ERC721,
    ERC721Enumerable,
    ERC721URIStorage,
    Ownable,
    ContextMixin,
    HasSecondarySaleFees,
    ReentrancyGuard
{

    constructor(string memory name_, string memory symbol_)
        ERC721(name_, symbol_)
        HasSecondarySaleFees(new address payable[](0), new uint256[](0))
    {
        address payable[] memory thisAddressInArray = new address payable[](1);
        thisAddressInArray[0] = payable(address(this));
        uint256[] memory royaltyWithTwoDecimals = new uint256[](1);
        royaltyWithTwoDecimals[0] = 800;
        _setCommonRoyalties(thisAddressInArray, royaltyWithTwoDecimals);
    }


    //Event
    event levelUp(uint256 indexed tokenId, string indexed levelName, uint32 oldLevel, uint32 newLevel);
    event changeCharacterSheet(address indexed changer, uint256 indexed characterNo, string indexed key, string oldValue, string newValue);
    event addDiary(uint256 indexed tokenId, string diaryStr);


    //helper
    modifier callerIsUser() {
        require(tx.origin == msg.sender, "The caller is another contract");
        _;
    }

    function _msgSender()
        internal
        override
        view
        returns (address sender)
    {
        return ContextMixin.msgSender();
    }   


    // Withdraw
    function withdrawETH()
        external
        onlyOwner
        nonReentrant
    {
        (bool success, ) = msg.sender.call{value: address(this).balance}("");
        require(success, "Transfer failed.");
    }


    // Override
        function _beforeTokenTransfer(address from, address to, uint256 tokenId)
        internal
        override(ERC721, ERC721Enumerable)
    {
        super._beforeTokenTransfer(from, to, tokenId);

        _transactionTimestamp[tokenId] = block.timestamp;
        if(from == address(0)){
            _setRandLevels(tokenId);
        }
        else if (tx.origin != msg.sender) {
            //only caller is contract
            _communicationLevelUp(tokenId);
        }
    }

    function isApprovedForAll(address _owner, address _operator)
        public
        override
        view
        returns(bool isOperator)
    {
        return ERC721.isApprovedForAll(_owner, _operator);
    }
    
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    )
        public
        virtual
        override(ERC721)
    {
        super.safeTransferFrom(from, to, tokenId);
    }
       
    function _burn(uint256 tokenId)
        internal
        onlyOwner
        override(ERC721, ERC721URIStorage)
    {
        super._burn(tokenId);
    }

    function _setTokenURI(uint256 tokenId, string memory itemName)
        internal
        virtual
        override(ERC721URIStorage)
    {
        super._setTokenURI(tokenId, itemName);
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override(ERC721, ERC721URIStorage)
        returns (string memory)
    {
        return super.tokenURI(tokenId);
    }
    
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721, ERC721Enumerable, HasSecondarySaleFees)
        returns (bool)
    {
        return ERC721.supportsInterface(interfaceId) ||
        HasSecondarySaleFees.supportsInterface(interfaceId);
    }


    //CharacterDetail
    struct level{
        uint32 Creativity;
        uint32 Intelligence;
        uint32 Energy;
        uint32 Luck;
        uint32 CommunicationSkills;
    }

    mapping(uint256 => level) private _characterLevels;
    mapping(uint256 => string[]) private _ownerDiaries;
    mapping(uint256 => uint256) private _transactionTimestamp;
    mapping(uint256 => mapping(string => string)) private _characterSheet;

    bool public isLevelUp = false;
    address public fanFictionContract;

    function viewCharacterLevels(uint256 tokenId)
        public
        view
        returns (uint32[] memory)
    {
        uint32[] memory arrayMemory = new uint32[](5);
        arrayMemory[0] = _characterLevels[tokenId].Creativity;
        arrayMemory[1] = _characterLevels[tokenId].Intelligence;
        arrayMemory[2] = _characterLevels[tokenId].Energy;
        arrayMemory[3] = _characterLevels[tokenId].Luck;
        arrayMemory[4] = _characterLevels[tokenId].CommunicationSkills;

        return arrayMemory;
    }

    function viewLevelsByCharacter(uint256 characterNo)
        public
        view
        returns (uint32[] memory)
    {
        uint256 length = 2000;
        uint32[] memory arrayMemory = new uint32[](length);
        uint256 delta = (characterNo-1) * 400;

        for(uint256 i=1; i<=400; i++){
            uint256 baseNo = (i-1) * 5;
            arrayMemory[baseNo+0] = _characterLevels[i+delta].Creativity;
            arrayMemory[baseNo+1] = _characterLevels[i+delta].Intelligence;
            arrayMemory[baseNo+2] = _characterLevels[i+delta].Energy;
            arrayMemory[baseNo+3] = _characterLevels[i+delta].Luck;
            arrayMemory[baseNo+4] = _characterLevels[i+delta].CommunicationSkills;
        }
        return arrayMemory;
    }

    function generateRandLevels(uint256 tokenId)
        public
        view
        returns(uint256[] memory)
    {
        uint256[] memory arrayMemory = new uint256[](5);
        for(uint256 i=0; i<5; i++){
            arrayMemory[i] = uint256(keccak256(abi.encodePacked(address(this), i, tokenId))) % 4;
        }

        return arrayMemory;
    }

    function _setRandLevels(uint256 tokenId) private
    {
        uint256[] memory arrayMemory = new uint256[](5);
        arrayMemory = generateRandLevels(tokenId);

        _characterLevels[tokenId].Creativity = uint32(arrayMemory[0]);
        _characterLevels[tokenId].Intelligence = uint32(arrayMemory[1]);
        _characterLevels[tokenId].Energy = uint32(arrayMemory[2]);
        _characterLevels[tokenId].Luck = uint32(arrayMemory[3]);
        _characterLevels[tokenId].CommunicationSkills = uint32(arrayMemory[4]);
    }

    function viewDiary(uint256 tokenId)
        external
        view
        returns (string[] memory)
    {
        return _ownerDiaries[tokenId];
    }

    function setDiary(uint256 tokenId, string memory diaryStr) external {
        require(_msgSender() == ownerOf(tokenId), "you don't own this token");
        _ownerDiaries[tokenId].push(diaryStr);
        emit addDiary(tokenId, diaryStr);
    }

    function deleteDiary(uint256 tokenId, uint256 arrayNo)
        external
        onlyOwner
    {
        _ownerDiaries[tokenId][arrayNo] = "";
    }   

    
    //LevelUp!
    function startLevelUp()
        external
        onlyOwner
    {
        isLevelUp = true;
    }

    function stopLevelUp()
        external
        onlyOwner
    {
        isLevelUp = false;
    }

    function setFanFictionContractAddress(address contractAddress)
        external
        onlyOwner
    {
        fanFictionContract = contractAddress;
    }

    function devLevelUp(uint256[] memory tokenIds, uint256 abilityNo, uint32 levelUpSize)
        external
        onlyOwner
    {
        for (uint256 i=0; i<tokenIds.length; i++) {
            uint256 tokenId = tokenIds[i];

            if(abilityNo == 1){
                _characterLevels[tokenId].Creativity += levelUpSize;
                if(_characterLevels[tokenId].Creativity > 10){
                    _characterLevels[tokenId].Creativity = 10;
                }
            }
            if(abilityNo == 2){
                _characterLevels[tokenId].Intelligence += levelUpSize;
                if(_characterLevels[tokenId].Intelligence > 10){
                    _characterLevels[tokenId].Intelligence = 10;
                }
            }
            if(abilityNo == 3){
                _characterLevels[tokenId].Energy += levelUpSize;
                if(_characterLevels[tokenId].Energy > 10){
                    _characterLevels[tokenId].Energy = 10;
                }
            }
            if(abilityNo == 4){
                uint32 oldLevel = _characterLevels[tokenId].Luck;
                _characterLevels[tokenId].Luck += levelUpSize;
                if(_characterLevels[tokenId].Luck > 10){
                    _characterLevels[tokenId].Luck = 10;
                }
                emit levelUp(tokenId, "Luck", oldLevel, _characterLevels[tokenId].Luck);
            }
            if(abilityNo == 5){
                _characterLevels[tokenId].CommunicationSkills += levelUpSize;
                if(_characterLevels[tokenId].CommunicationSkills > 10){
                    _characterLevels[tokenId].CommunicationSkills = 10;
                }
            }
        }
    }

    function intelligenceLevelUp(uint256 tokenId, uint32 levelUpSize)
        external
        payable
        callerIsUser
    {
        //0.02ETH * LevelUpSize
        uint256 Price = 20000000000000000 * uint256(levelUpSize);
        
        require(isLevelUp, "levelup is not available yet");
        require(msg.value >= Price, "need to send more ETH");
        require(_msgSender() == ownerOf(tokenId), "you don't own this token");
        require((_characterLevels[tokenId].Intelligence + levelUpSize) <= 10, "request levelup size is over max level");

        uint32 oldLevel = _characterLevels[tokenId].Intelligence;
        _characterLevels[tokenId].Intelligence += levelUpSize;

        emit levelUp(tokenId, "Intelligence", oldLevel, _characterLevels[tokenId].Intelligence);
    }

    function _communicationLevelUp(uint256 tokenId) private {
        if(isLevelUp){
            if(_characterLevels[tokenId].CommunicationSkills < 10){
                uint32 oldLevel = _characterLevels[tokenId].CommunicationSkills;
                _characterLevels[tokenId].CommunicationSkills++;
                emit levelUp(tokenId, "CommunicationSkills", oldLevel, _characterLevels[tokenId].CommunicationSkills);
            }
        }
    }

    function energyLevelUp(uint256 tokenId) external {
        require(isLevelUp, "Levelup is not available yet");
        require(_msgSender() == ownerOf(tokenId), "You don't own this token");
        require(_characterLevels[tokenId].Energy < 10, "Already max level");
        
        //30 days
        uint256 period = 2592000;
        uint256 levelUpCount = (block.timestamp - _transactionTimestamp[tokenId]) / period;
        if(levelUpCount > 0){
            uint32 oldLevel = _characterLevels[tokenId].Energy;
            _characterLevels[tokenId].Energy += uint32(levelUpCount);
            if(_characterLevels[tokenId].Energy > 10){
                _characterLevels[tokenId].Energy = 10;
            }
            emit levelUp(tokenId, "Energy", oldLevel, _characterLevels[tokenId].Energy);
        }
    }

    function creativityLevelUp(uint256 tokenId) external {
        require(_msgSender() == fanFictionContract, "Not specific contract");
        if(isLevelUp){
            if(_characterLevels[tokenId].Creativity < 10){
                uint32 oldLevel = _characterLevels[tokenId].Creativity;
                _characterLevels[tokenId].Creativity++;
                emit levelUp(tokenId, "Creativity", oldLevel, _characterLevels[tokenId].Creativity);
            }
        }
    }

    function viewOwnershipPeriod(uint256 tokenId)
        external
        view
        returns (uint256)
    {
        //return ownership period by day(s)
        if(_transactionTimestamp[tokenId] == 0){
            return 0;
        }
        else{
            return (block.timestamp - _transactionTimestamp[tokenId]) / 86400;
        }
    } 


    //CharacterSheet
    function setCharacterSheet(uint256 characterNo, string memory key, string memory value) external {
        bool isTokenOwner = false;
        uint256 lastTokenIndex = balanceOf(_msgSender());
        uint256 startNo = ((characterNo-1) * 400) + 1;
        uint256 endNo = characterNo * 400;
        string memory oldValue;

        for(uint256 i=0; i<lastTokenIndex; i++){
            uint256 tokenId = tokenOfOwnerByIndex(_msgSender(), i);
            if((startNo <= tokenId) && (tokenId <= endNo)){
                isTokenOwner = true;
            }
        }

        require(isTokenOwner, "You don't own this character token");
        oldValue = _characterSheet[characterNo][key];
        _characterSheet[characterNo][key] = value;

        emit changeCharacterSheet(_msgSender(), characterNo, key, oldValue, value);
    }

    function viewCharacterSheet(uint256 characterNo, string memory key)
        public
        view
        returns(string memory)
    {
        return _characterSheet[characterNo][key];
    }
    
    receive() external payable {}
}

File 3 of 18 : Royalty.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;

import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

interface IHasSecondarySaleFees {
    function getFeeBps(uint256 id) external view returns (uint256[] memory);
    function getFeeRecipients(uint256 id) external view returns (address payable[] memory);
}

contract HasSecondarySaleFees is IERC165, IHasSecondarySaleFees {
    
    event ChangeCommonRoyalty(
        address payable[] royaltyAddresses,
        uint256[] royaltiesWithTwoDecimals
    );
    
    event ChangeRoyalty(
        uint256 id,
        address payable[] royaltyAddresses,
        uint256[] royaltiesWithTwoDecimals
    );
    
    struct RoyaltyInfo {
        bool isPresent;
        address payable[] royaltyAddresses;
        uint256[] royaltiesWithTwoDecimals;
    }
    
    mapping(bytes32 => RoyaltyInfo) royaltyInfoMap;
    mapping(uint256 => bytes32) tokenRoyaltyMap;
    
    address payable[] public commonRoyaltyAddresses;
    uint256[] public commonRoyaltiesWithTwoDecimals;

    constructor(
        address payable[] memory _commonRoyaltyAddresses,
        uint256[] memory _commonRoyaltiesWithTwoDecimals
    ) {
        _setCommonRoyalties(_commonRoyaltyAddresses, _commonRoyaltiesWithTwoDecimals);
    }

    function _setRoyaltiesOf(
        uint256 _tokenId,
        address payable[] memory _royaltyAddresses,
        uint256[] memory _royaltiesWithTwoDecimals
    ) internal {
        require(_royaltyAddresses.length == _royaltiesWithTwoDecimals.length, "input length must be same");
        bytes32 key = 0x0;
        for (uint256 i = 0; i < _royaltyAddresses.length; i++) { 
            require(_royaltyAddresses[i] != address(0), "Must not be zero-address");
            key = keccak256(abi.encodePacked(key, _royaltyAddresses[i], _royaltiesWithTwoDecimals[i]));
        }
        
        tokenRoyaltyMap[_tokenId] = key;
        emit ChangeRoyalty(_tokenId, _royaltyAddresses, _royaltiesWithTwoDecimals);
        
        if (royaltyInfoMap[key].isPresent) { 
            return;
        }
        royaltyInfoMap[key] = RoyaltyInfo(
            true,
            _royaltyAddresses,
            _royaltiesWithTwoDecimals
        );
    }

    function _setCommonRoyalties(
        address payable[] memory _commonRoyaltyAddresses,
        uint256[] memory _commonRoyaltiesWithTwoDecimals
    ) internal {
        require(_commonRoyaltyAddresses.length == _commonRoyaltiesWithTwoDecimals.length, "input length must be same");
        for (uint256 i = 0; i < _commonRoyaltyAddresses.length; i++) { 
            require(_commonRoyaltyAddresses[i] != address(0), "Must not be zero-address");
        }
        
        commonRoyaltyAddresses = _commonRoyaltyAddresses;
        commonRoyaltiesWithTwoDecimals = _commonRoyaltiesWithTwoDecimals;
        
        emit ChangeCommonRoyalty(_commonRoyaltyAddresses, _commonRoyaltiesWithTwoDecimals);
    }

    function getFeeRecipients(uint256 _tokenId)
    public view override returns (address payable[] memory)
    {
        RoyaltyInfo memory royaltyInfo = royaltyInfoMap[tokenRoyaltyMap[_tokenId]];
        if (!royaltyInfo.isPresent) {
            return commonRoyaltyAddresses;
        }
        uint256 length = commonRoyaltyAddresses.length + royaltyInfo.royaltyAddresses.length;

        address payable[] memory recipients = new address payable[](length);
        for (uint256 i = 0; i < commonRoyaltyAddresses.length; i++) {
            recipients[i] = commonRoyaltyAddresses[i];
        }
        for (uint256 i = 0; i < royaltyInfo.royaltyAddresses.length; i++) {
            recipients[i + commonRoyaltyAddresses.length] = royaltyInfo.royaltyAddresses[i];
        }

        return recipients;
    }

    function getFeeBps(uint256 _tokenId) public view override returns (uint256[] memory) {
        RoyaltyInfo memory royaltyInfo = royaltyInfoMap[tokenRoyaltyMap[_tokenId]];
        if (!royaltyInfo.isPresent) {
            return commonRoyaltiesWithTwoDecimals;
        }
        uint256 length = commonRoyaltiesWithTwoDecimals.length + royaltyInfo.royaltiesWithTwoDecimals.length;

        uint256[] memory fees = new uint256[](length);
        for (uint256 i = 0; i < commonRoyaltiesWithTwoDecimals.length; i++) {
            fees[i] = commonRoyaltiesWithTwoDecimals[i];
        }
        for (uint256 i = 0; i < royaltyInfo.royaltiesWithTwoDecimals.length; i++) {
            fees[i + commonRoyaltyAddresses.length] = royaltyInfo.royaltiesWithTwoDecimals[i];
        }

        return fees;
    }

    function supportsInterface(bytes4 interfaceId)
    public
    view
    virtual
    override(IERC165)
    returns (bool)
    {
        return interfaceId == type(IHasSecondarySaleFees).interfaceId;
    }

}

File 4 of 18 : ContextMixin.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;

abstract contract ContextMixin {
    function msgSender()
        internal
        view
        returns(address payable sender)
    {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                    mload(add(array, index)),
                    0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender = payable(msg.sender);
        }
        return sender;
    }
}

File 5 of 18 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making 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;
    }
}

File 6 of 18 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 7 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 8 of 18 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token");

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @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 override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

File 9 of 18 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 10 of 18 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 11 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 12 of 18 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 13 of 18 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 14 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 15 of 18 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 16 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 17 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 18 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint64","name":"_preSalePriceWei","type":"uint64"},{"internalType":"uint64","name":"_publicSalePriceWei","type":"uint64"},{"internalType":"uint64","name":"_saleLimit","type":"uint64"},{"internalType":"string","name":"_baseTokenURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address payable[]","name":"royaltyAddresses","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"royaltiesWithTwoDecimals","type":"uint256[]"}],"name":"ChangeCommonRoyalty","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"address payable[]","name":"royaltyAddresses","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"royaltiesWithTwoDecimals","type":"uint256[]"}],"name":"ChangeRoyalty","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"diaryStr","type":"string"}],"name":"addDiary","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"changer","type":"address"},{"indexed":true,"internalType":"uint256","name":"characterNo","type":"uint256"},{"indexed":true,"internalType":"string","name":"key","type":"string"},{"indexed":false,"internalType":"string","name":"oldValue","type":"string"},{"indexed":false,"internalType":"string","name":"newValue","type":"string"}],"name":"changeCharacterSheet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"string","name":"levelName","type":"string"},{"indexed":false,"internalType":"uint32","name":"oldLevel","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"newLevel","type":"uint32"}],"name":"levelUp","type":"event"},{"inputs":[],"name":"allowListCount","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"allowListCountOfOwner","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"maxMint","type":"uint256"}],"name":"changeAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"commonRoyaltiesWithTwoDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"commonRoyaltyAddresses","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"creativityLevelUp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"deleteAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"arrayNo","type":"uint256"}],"name":"deleteDiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256","name":"abilityNo","type":"uint256"},{"internalType":"uint32","name":"levelUpSize","type":"uint32"}],"name":"devLevelUp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"list","type":"uint256[]"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"energyLevelUp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fanFictionContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"generateRandLevels","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"characterNo","type":"uint256"},{"internalType":"uint256","name":"jsTimestamp","type":"uint256"}],"name":"generateRandTokenID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint32","name":"levelUpSize","type":"uint32"}],"name":"intelligenceLevelUp","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isOperator","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isLevelUp","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPreSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"characterNo","type":"uint256"}],"name":"mintableTokensByCharacter","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintedTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMintedOfOwner","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pausePreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pausePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestTokenID","type":"uint256"}],"name":"preSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"preSalePrice","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestTokenID","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSalePrice","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"list","type":"address[]"}],"name":"pushAllowListAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":"saleLimit","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"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":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"characterNo","type":"uint256"},{"internalType":"string","name":"key","type":"string"},{"internalType":"string","name":"value","type":"string"}],"name":"setCharacterSheet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"diaryStr","type":"string"}],"name":"setDiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"setFanFictionContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startLevelUp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopLevelUp","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"limit","type":"uint64"}],"name":"updateSaleLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"viewCharacterLevels","outputs":[{"internalType":"uint32[]","name":"","type":"uint32[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"characterNo","type":"uint256"},{"internalType":"string","name":"key","type":"string"}],"name":"viewCharacterSheet","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"viewDiary","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"characterNo","type":"uint256"}],"name":"viewLevelsByCharacter","outputs":[{"internalType":"uint32[]","name":"","type":"uint32[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"viewOwnershipPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526015805460ff191690553480156200001b57600080fd5b5060405162006088380380620060888339810160408190526200003e91620005df565b60405180604001604052806006815260200165486f6b61676f60d01b81525060405180604001604052806006815260200165484f4b41474f60d01b81525060006001600160401b03811115620000985762000098620007f9565b604051908082528060200260200182016040528015620000c2578160200160208202803683370190505b50604080516000808252602082019092529050835184908490620000ee90600090602085019062000487565b5080516200010490600190602084019062000487565b505050620001216200011b6200025460201b60201c565b62000270565b6200012d8282620002c2565b505060016010819055604080518281528082019091526000916020808301908036833701905050905030816000815181106200016d576200016d620007e3565b6001600160a01b03929092166020928302919091019091015260408051600180825281830190925260009181602001602082028036833701905050905061032081600081518110620001c357620001c3620007e3565b6020908102919091010152620001da8282620002c2565b5050601580546001600160401b03808916600160a81b02600160a81b600160e81b0319909216919091179091556016805486831668010000000000000000026001600160801b031990911692881692909217919091179055505080516200024990601790602084019062000487565b50505050506200080f565b60006200026b6200042860201b62003d4a1760201c565b905090565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8051825114620003195760405162461bcd60e51b815260206004820152601960248201527f696e707574206c656e677468206d7573742062652073616d650000000000000060448201526064015b60405180910390fd5b60005b8251811015620003bc5760006001600160a01b0316838281518110620003465762000346620007e3565b60200260200101516001600160a01b03161415620003a75760405162461bcd60e51b815260206004820152601860248201527f4d757374206e6f74206265207a65726f2d616464726573730000000000000000604482015260640162000310565b80620003b381620007b9565b9150506200031c565b508151620003d290600e90602085019062000516565b508051620003e890600f9060208401906200056e565b507f5d2bfbaa8b7f0a1c8af86340416cb6051131510959c7fd9ab84a1c75fed9464f82826040516200041c929190620006f4565b60405180910390a15050565b6000333014156200048157600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620004849050565b50335b90565b82805462000495906200077c565b90600052602060002090601f016020900481019282620004b9576000855562000504565b82601f10620004d457805160ff191683800117855562000504565b8280016001018555821562000504579182015b8281111562000504578251825591602001919060010190620004e7565b5062000512929150620005ab565b5090565b82805482825590600052602060002090810192821562000504579160200282015b828111156200050457825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000537565b82805482825590600052602060002090810192821562000504579160200282018281111562000504578251825591602001919060010190620004e7565b5b80821115620005125760008155600101620005ac565b80516001600160401b0381168114620005da57600080fd5b919050565b60008060008060808587031215620005f657600080fd5b6200060185620005c2565b9350602062000612818701620005c2565b93506200062260408701620005c2565b60608701519093506001600160401b03808211156200064057600080fd5b818801915088601f8301126200065557600080fd5b8151818111156200066a576200066a620007f9565b604051601f8201601f19908116603f01168101908382118183101715620006955762000695620007f9565b816040528281528b86848701011115620006ae57600080fd5b600093505b82841015620006d25784840186015181850187015292850192620006b3565b82841115620006e45760008684830101525b989b979a50959850505050505050565b604080825283519082018190526000906020906060840190828701845b82811015620007385781516001600160a01b03168452928401929084019060010162000711565b5050508381038285015284518082528583019183019060005b818110156200076f5783518352928401929184019160010162000751565b5090979650505050505050565b600181811c908216806200079157607f821691505b60208210811415620007b357634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415620007dc57634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b615869806200081f6000396000f3fe6080604052600436106103dd5760003560e01c8063715018a6116101fd578063b88d4fde11610118578063e086e5ec116100ab578063f2fde38b1161007a578063f2fde38b14610b99578063f6ff941314610bb9578063fc32d38114610bd3578063fddeec2014610bf3578063fe7cb25714610c1357600080fd5b8063e086e5ec14610b1d578063e2865f5514610b32578063e757c17d14610b52578063e985e9c514610b7957600080fd5b8063c7350492116100e7578063c735049214610aa1578063c87b56dd14610ac8578063d547cfb714610ae8578063d8e9e9a414610afd57600080fd5b8063b88d4fde14610a14578063b9c4d9fb14610a34578063c1c6376f14610a61578063c3a983b214610a8157600080fd5b80639b6860c811610190578063ab801fcc1161015f578063ab801fcc146109a1578063aede6302146109c1578063b3ab66b0146109e1578063b3fd919d146109f457600080fd5b80639b6860c814610920578063a22cb46514610940578063a5a865dc14610960578063a6de30741461098157600080fd5b80638d75fe05116101cc5780638d75fe05146108ab5780638da5cb5b146108c0578063912e3fd9146108de57806395d89b411461090b57600080fd5b8063715018a61461081f5780637835c635146108345780637e26639f146108475780638a30daaa1461088657600080fd5b80632f745c59116102f85780634c2451961161028b57806355f804b31161025a57806355f804b3146107695780635b19258414610789578063633d99a9146107a95780636352211e146107df57806370a08231146107ff57600080fd5b80634c245196146106f35780634ced4734146107135780634f6ccce71461073457806355dd574c1461075457600080fd5b80634357da58116102c75780634357da581461067157806346cf0be314610686578063478d07a3146106b35780634b0bdd2a146106d357600080fd5b80632f745c59146105fc5780633e7848301461061c57806340e63de21461063c57806342842e0e1461065157600080fd5b80630ebd4c7f1161037057806317f6c7fa1161033f57806317f6c7fa1461059257806318160ddd146105a75780631a31ea1b146105bc57806323b872dd146105dc57600080fd5b80630ebd4c7f146104f757806310752a1f146105245780631196a0c4146105445780631361b5131461057257600080fd5b8063095ea7b3116103ac578063095ea7b31461048d5780630aeddaf3146104ad5780630c1c972a146104cd5780630c41f497146104e257600080fd5b806301ffc9a7146103e957806306fdde031461041e578063081812fc1461044057806308e5909c1461047857600080fd5b366103e457005b600080fd5b3480156103f557600080fd5b50610409610404366004614f80565b610c33565b60405190151581526020015b60405180910390f35b34801561042a57600080fd5b50610433610c5f565b60405161041591906153a8565b34801561044c57600080fd5b5061046061045b366004614fee565b610cf1565b6040516001600160a01b039091168152602001610415565b61048b6104863660046150db565b610d7e565b005b34801561049957600080fd5b5061048b6104a8366004614e2e565b611009565b3480156104b957600080fd5b5061048b6104c8366004614e2e565b611131565b3480156104d957600080fd5b5061048b611230565b3480156104ee57600080fd5b5061048b61128f565b34801561050357600080fd5b50610517610512366004614fee565b6112e7565b6040516104159190615332565b34801561053057600080fd5b5061048b61053f366004614ced565b611561565b34801561055057600080fd5b5061056461055f366004614fee565b6115d2565b604051908152602001610415565b34801561057e57600080fd5b5061048b61058d36600461504d565b6115f3565b34801561059e57600080fd5b5061048b611846565b3480156105b357600080fd5b50600854610564565b3480156105c857600080fd5b506105646105d73660046150b9565b61189e565b3480156105e857600080fd5b5061048b6105f7366004614d3b565b611a04565b34801561060857600080fd5b50610564610617366004614e2e565b611a3c565b34801561062857600080fd5b50610564610637366004614fee565b611ad2565b34801561064857600080fd5b5061048b611b1a565b34801561065d57600080fd5b5061048b61066c366004614d3b565b611b6f565b34801561067d57600080fd5b5061048b611b7a565b34801561069257600080fd5b506106a66106a1366004614fee565b611bd2565b60405161041591906152d0565b3480156106bf57600080fd5b5061048b6106ce366004615007565b611cbe565b3480156106df57600080fd5b506105646106ee366004614ced565b611d98565b3480156106ff57600080fd5b5061048b61070e3660046150fe565b611e1d565b34801561071f57600080fd5b5060165461040990600160c81b900460ff1681565b34801561074057600080fd5b5061056461074f366004614fee565b611e98565b34801561076057600080fd5b5061048b611f2b565b34801561077557600080fd5b5061048b610784366004614fba565b611f8a565b34801561079557600080fd5b506105176107a4366004614fee565b611fea565b3480156107b557600080fd5b506105646107c4366004614ced565b6001600160a01b031660009081526018602052604090205490565b3480156107eb57600080fd5b506104606107fa366004614fee565b6120a5565b34801561080b57600080fd5b5061056461081a366004614ced565b61211c565b34801561082b57600080fd5b5061048b6121a3565b61048b610842366004614fee565b6121f8565b34801561085357600080fd5b5060165461086e90600160401b90046001600160401b031681565b6040516001600160401b039091168152602001610415565b34801561089257600080fd5b506015546104609061010090046001600160a01b031681565b3480156108b757600080fd5b5061051761246c565b3480156108cc57600080fd5b50600b546001600160a01b0316610460565b3480156108ea57600080fd5b506108fe6108f9366004614fee565b612555565b604051610415919061536a565b34801561091757600080fd5b506104336127ac565b34801561092c57600080fd5b5060165461086e906001600160401b031681565b34801561094c57600080fd5b5061048b61095b366004614df2565b6127bb565b34801561096c57600080fd5b5060165461040990600160c01b900460ff1681565b34801561098d57600080fd5b5061051761099c366004614fee565b6127cd565b3480156109ad57600080fd5b506108fe6109bc366004614fee565b6128d5565b3480156109cd57600080fd5b5061048b6109dc366004614f2a565b612a5a565b61048b6109ef366004614fee565b612e34565b348015610a0057600080fd5b5061048b610a0f366004614ef6565b613033565b348015610a2057600080fd5b5061048b610a2f366004614d77565b6130c4565b348015610a4057600080fd5b50610a54610a4f366004614fee565b6130fd565b6040516104159190615283565b348015610a6d57600080fd5b50610433610a7c366004615007565b6133a4565b348015610a8d57600080fd5b50610460610a9c366004614fee565b613466565b348015610aad57600080fd5b5060165461086e90600160801b90046001600160401b031681565b348015610ad457600080fd5b50610433610ae3366004614fee565b613490565b348015610af457600080fd5b506104336134c4565b348015610b0957600080fd5b5061048b610b18366004614e58565b613552565b348015610b2957600080fd5b5061048b613653565b348015610b3e57600080fd5b5061048b610b4d366004614fee565b613787565b348015610b5e57600080fd5b5060155461086e90600160a81b90046001600160401b031681565b348015610b8557600080fd5b50610409610b94366004614d08565b6139c9565b348015610ba557600080fd5b5061048b610bb4366004614ced565b6139fc565b348015610bc557600080fd5b506015546104099060ff1681565b348015610bdf57600080fd5b5061048b610bee3660046150b9565b613ab6565b348015610bff57600080fd5b5061048b610c0e366004614fee565b613b4a565b348015610c1f57600080fd5b5061048b610c2e366004614ced565b613c85565b6000610c3e82613da6565b80610c595750632dde656160e21b6001600160e01b03198316145b92915050565b606060008054610c6e906156e4565b80601f0160208091040260200160405190810160405280929190818152602001828054610c9a906156e4565b8015610ce75780601f10610cbc57610100808354040283529160200191610ce7565b820191906000526020600020905b815481529060010190602001808311610cca57829003601f168201915b5050505050905090565b6000610cfc82613df6565b610d625760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b323314610d9d5760405162461bcd60e51b8152600401610d59906154bd565b6000610db663ffffffff831666470de4df820000615643565b60155490915060ff16610e0b5760405162461bcd60e51b815260206004820152601c60248201527f6c6576656c7570206973206e6f7420617661696c61626c6520796574000000006044820152606401610d59565b80341015610e535760405162461bcd60e51b81526020600482015260156024820152740dccacac840e8de40e6cadcc840dadee4ca408aa89605b1b6044820152606401610d59565b610e5c836120a5565b6001600160a01b0316610e6d613e13565b6001600160a01b031614610ebe5760405162461bcd60e51b81526020600482015260186024820152773cb7ba903237b713ba1037bbb7103a3434b9903a37b5b2b760411b6044820152606401610d59565b600083815260116020526040902054600a90610ee8908490600160201b900463ffffffff166155e5565b63ffffffff161115610f4b5760405162461bcd60e51b815260206004820152602660248201527f72657175657374206c6576656c75702073697a65206973206f766572206d6178604482015265081b195d995b60d21b6064820152608401610d59565b60008381526011602052604090208054600160201b900463ffffffff169083906004610f7783856155e5565b92506101000a81548163ffffffff021916908363ffffffff160217905550604051610fb4906b496e74656c6c6967656e636560a01b8152600c0190565b60408051918290038220600087815260116020908152908390205463ffffffff8087168652600160201b909104169084015291869160008051602061581483398151915291015b60405180910390a350505050565b6000611014826120a5565b9050806001600160a01b0316836001600160a01b031614156110825760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610d59565b806001600160a01b0316611094613e13565b6001600160a01b031614806110b057506110b081610b94613e13565b6111225760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d59565b61112c8383613e22565b505050565b611139613e13565b6001600160a01b0316611154600b546001600160a01b031690565b6001600160a01b03161461117a5760405162461bcd60e51b8152600401610d59906154f4565b6001600160a01b0382166000908152601860205260409020546016546111b09190600160801b90046001600160401b0316615679565b6016805467ffffffffffffffff60801b1916600160801b6001600160401b0393841681029190911782556001600160a01b038516600090815260186020526040902084905590546112069284929091041661560d565b601660106101000a8154816001600160401b0302191690836001600160401b031602179055505050565b611238613e13565b6001600160a01b0316611253600b546001600160a01b031690565b6001600160a01b0316146112795760405162461bcd60e51b8152600401610d59906154f4565b6016805461ffff60c01b1916600160c01b179055565b611297613e13565b6001600160a01b03166112b2600b546001600160a01b031690565b6001600160a01b0316146112d85760405162461bcd60e51b8152600401610d59906154f4565b6016805460ff60c01b19169055565b6000818152600d60209081526040808320548352600c8252808320815160608181018452825460ff161515825260018301805485518188028101880190965280865291969592948584019390929083018282801561136e57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611350575b50505050508152602001600282018054806020026020016040519081016040528092919081815260200182805480156113c657602002820191906000526020600020905b8154815260200190600101908083116113b2575b5050505050815250509050806000015161143357600f80548060200260200160405190810160405280929190818152602001828054801561142657602002820191906000526020600020905b815481526020019060010190808311611412575b5050505050915050919050565b604081015151600f54600091611448916155cd565b90506000816001600160401b03811115611464576114646157e7565b60405190808252806020026020018201604052801561148d578160200160208202803683370190505b50905060005b600f548110156114ea57600f81815481106114b0576114b06157d1565b90600052602060002001548282815181106114cd576114cd6157d1565b6020908102919091010152806114e28161571f565b915050611493565b5060005b8360400151518110156115585783604001518181518110611511576115116157d1565b602002602001015182600e805490508361152b91906155cd565b8151811061153b5761153b6157d1565b6020908102919091010152806115508161571f565b9150506114ee565b50949350505050565b611569613e13565b6001600160a01b0316611584600b546001600160a01b031690565b6001600160a01b0316146115aa5760405162461bcd60e51b8152600401610d59906154f4565b601580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600f81815481106115e257600080fd5b600091825260209091200154905081565b60008061160161081a613e13565b90506000611610600187615662565b61161c90610190615643565b6116279060016155cd565b9050600061163787610190615643565b9050606060005b84811015611688576000611659611653613e13565b83611a3c565b905080851115801561166b5750838111155b1561167557600196505b50806116808161571f565b91505061163e565b50846116e15760405162461bcd60e51b815260206004820152602260248201527f596f7520646f6e2774206f776e20746869732063686172616374657220746f6b60448201526132b760f11b6064820152608401610d59565b6000888152601460205260409081902090516116fe90899061516f565b90815260200160405180910390208054611717906156e4565b80601f0160208091040260200160405190810160405280929190818152602001828054611743906156e4565b80156117905780601f1061176557610100808354040283529160200191611790565b820191906000526020600020905b81548152906001019060200180831161177357829003601f168201915b5050505050905085601460008a8152602001908152602001600020886040516117b9919061516f565b908152602001604051809103902090805190602001906117da929190614b40565b50866040516117e9919061516f565b6040518091039020886117fa613e13565b6001600160a01b03167f3ce886a3ba0abafb02a9cd525e32c562a2eac07d85b35f8459b1d110554a8429848a6040516118349291906153bb565b60405180910390a45050505050505050565b61184e613e13565b6001600160a01b0316611869600b546001600160a01b031690565b6001600160a01b03161461188f5760405162461bcd60e51b8152600401610d59906154f4565b6015805460ff19166001179055565b60008080806118ae600187615662565b6118ba90610190615643565b6118c59060016155cd565b905060006118d587610190615643565b60408051610190808252613220820190925291925060009190602082016132008036833701905050601654909150600160401b90046001600160401b03168211156119325760405162461bcd60e51b8152600401610d59906153e0565b825b8281116119865761194481613df6565b611974578082868151811061195b5761195b6157d1565b6020908102919091010152846119708161571f565b9550505b8061197e8161571f565b915050611934565b508361199a57600095505050505050610c59565b6040805142602082015244918101919091526060810188905284906080016040516020818303038152906040528051906020012060001c6119db919061577b565b94508085815181106119ef576119ef6157d1565b60200260200101519550505050505092915050565b611a15611a0f613e13565b82613e90565b611a315760405162461bcd60e51b8152600401610d5990615529565b61112c838383613f5a565b6000611a478361211c565b8210611aa95760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610d59565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600081815260136020526040812054611aed57506000919050565b6000828152601360205260409020546201518090611b0b9042615662565b610c59919061562f565b919050565b611b22613e13565b6001600160a01b0316611b3d600b546001600160a01b031690565b6001600160a01b031614611b635760405162461bcd60e51b8152600401610d59906154f4565b6015805460ff19169055565b61112c838383614101565b611b82613e13565b6001600160a01b0316611b9d600b546001600160a01b031690565b6001600160a01b031614611bc35760405162461bcd60e51b8152600401610d59906154f4565b6016805460ff60c81b19169055565b606060126000838152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015611cb3578382906000526020600020018054611c26906156e4565b80601f0160208091040260200160405190810160405280929190818152602001828054611c52906156e4565b8015611c9f5780601f10611c7457610100808354040283529160200191611c9f565b820191906000526020600020905b815481529060010190602001808311611c8257829003601f168201915b505050505081526020019060010190611c07565b505050509050919050565b611cc7826120a5565b6001600160a01b0316611cd8613e13565b6001600160a01b031614611d295760405162461bcd60e51b81526020600482015260186024820152773cb7ba903237b713ba1037bbb7103a3434b9903a37b5b2b760411b6044820152606401610d59565b600082815260126020908152604082208054600181018255908352918190208351611d5b939190910191840190614b40565b50817fa83d3ed3c5fd35ceb4229d574678fb9b007e75f9d8b19e464a1c50340108839d82604051611d8c91906153a8565b60405180910390a25050565b60006001600160a01b038216611e015760405162461bcd60e51b815260206004820152602860248201527f4e756d626572206d696e74656420717565727920666f7220746865207a65726f604482015267206164647265737360c01b6064820152608401610d59565b506001600160a01b031660009081526019602052604090205490565b611e25613e13565b6001600160a01b0316611e40600b546001600160a01b031690565b6001600160a01b031614611e665760405162461bcd60e51b8152600401610d59906154f4565b601680546001600160401b03909216600160401b026fffffffffffffffff000000000000000019909216919091179055565b6000611ea360085490565b8210611f065760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610d59565b60088281548110611f1957611f196157d1565b90600052602060002001549050919050565b611f33613e13565b6001600160a01b0316611f4e600b546001600160a01b031690565b6001600160a01b031614611f745760405162461bcd60e51b8152600401610d59906154f4565b6016805461ffff60c01b1916600160c81b179055565b611f92613e13565b6001600160a01b0316611fad600b546001600160a01b031690565b6001600160a01b031614611fd35760405162461bcd60e51b8152600401610d59906154f4565b8051611fe6906017906020840190614b40565b5050565b60408051600580825260c08201909252606091600091906020820160a08036833701905050905060005b600581101561209e576040516bffffffffffffffffffffffff193060601b16602082015260348101829052605481018590526004906074016040516020818303038152906040528051906020012060001c61206f919061577b565b828281518110612081576120816157d1565b6020908102919091010152806120968161571f565b915050612014565b5092915050565b6000818152600260205260408120546001600160a01b031680610c595760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610d59565b60006001600160a01b0382166121875760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610d59565b506001600160a01b031660009081526003602052604090205490565b6121ab613e13565b6001600160a01b03166121c6600b546001600160a01b031690565b6001600160a01b0316146121ec5760405162461bcd60e51b8152600401610d59906154f4565b6121f6600061411c565b565b3233146122175760405162461bcd60e51b8152600401610d59906154bd565b601554600160a81b90046001600160401b031661223382613df6565b156122505760405162461bcd60e51b8152600401610d5990615478565b816122985760405162461bcd60e51b815260206004820152601860248201527743616e206e6f74206d696e7461626c6520494420283d302960401b6044820152606401610d59565b803410156122e05760405162461bcd60e51b815260206004820152601560248201527409ccacac840e8de40e6cadcc840dadee4ca408aa89605b1b6044820152606401610d59565b601654600160c81b900460ff166123395760405162461bcd60e51b815260206004820152601960248201527f50726573616c6520686173206e6f7420626567756e20796574000000000000006044820152606401610d59565b600060186000612347613e13565b6001600160a01b03166001600160a01b0316815260200190815260200160002054116123b55760405162461bcd60e51b815260206004820152601f60248201527f4e6f7420656c696769626c6520666f7220616c6c6f776c697374206d696e74006044820152606401610d59565b601654600160401b90046001600160401b03168211156123e75760405162461bcd60e51b8152600401610d59906153e0565b6123f86123f2613e13565b8361416e565b60186000612404613e13565b6001600160a01b031681526020810191909152604001600090812080549161242b836156cd565b91905055506019600061243c613e13565b6001600160a01b03168152602081019190915260400160009081208054916124638361571f565b91905055505050565b6060612476613e13565b6001600160a01b0316612491600b546001600160a01b031690565b6001600160a01b0316146124b75760405162461bcd60e51b8152600401610d59906154f4565b60006124c260085490565b90506000816001600160401b038111156124de576124de6157e7565b604051908082528060200260200182016040528015612507578160200160208202803683370190505b50905060005b8281101561254d5761251e81611e98565b828281518110612530576125306157d1565b6020908102919091010152806125458161571f565b91505061250d565b509150505b90565b604080516107d080825261fa20820190925260609190600090826020820161fa0080368337019050509050600061258d600186615662565b61259990610190615643565b905060015b61019081116127a25760006125b4600183615662565b6125bf906005615643565b9050601160006125cf85856155cd565b8152602081019190915260400160009081205463ffffffff169085906125f69084906155cd565b81518110612606576126066157d1565b63ffffffff909216602092830291909101909101526011600061262985856155cd565b8152602081019190915260400160002054600160201b900463ffffffff16846126538360016155cd565b81518110612663576126636157d1565b63ffffffff909216602092830291909101909101526011600061268685856155cd565b8152602081019190915260400160002054600160401b900463ffffffff16846126b08360026155cd565b815181106126c0576126c06157d1565b63ffffffff90921660209283029190910190910152601160006126e385856155cd565b8152602081019190915260400160002054600160601b900463ffffffff168461270d8360036155cd565b8151811061271d5761271d6157d1565b63ffffffff909216602092830291909101909101526011600061274085856155cd565b8152602081019190915260400160002054600160801b900463ffffffff168461276a8360046155cd565b8151811061277a5761277a6157d1565b63ffffffff90921660209283029190910190910152508061279a8161571f565b91505061259e565b5090949350505050565b606060018054610c6e906156e4565b611fe66127c6613e13565b8383614188565b60606127d7613e13565b6001600160a01b03166127f2600b546001600160a01b031690565b6001600160a01b0316146128185760405162461bcd60e51b8152600401610d59906154f4565b600080612826600185615662565b61283290610190615643565b61283d9060016155cd565b9050600061284d85610190615643565b604080516101908082526132208201909252919250600091906020820161320080368337019050509050825b8281116128cb5761288981613df6565b6128b957808286815181106128a0576128a06157d1565b6020908102919091010152846128b58161571f565b9550505b806128c38161571f565b915050612879565b5095945050505050565b60408051600580825260c08201909252606091600091906020820160a080368337505050600084815260116020526040812054825192935063ffffffff1691839190612923576129236157d1565b63ffffffff9283166020918202929092018101919091526000858152601190915260409020548251600160201b909104909116908290600190811061296a5761296a6157d1565b63ffffffff9283166020918202929092018101919091526000858152601190915260409020548251600160401b90910490911690829060029081106129b1576129b16157d1565b63ffffffff9283166020918202929092018101919091526000858152601190915260409020548251600160601b90910490911690829060039081106129f8576129f86157d1565b63ffffffff9283166020918202929092018101919091526000858152601190915260409020548251600160801b9091049091169082906004908110612a3f57612a3f6157d1565b63ffffffff9092166020928302919091019091015292915050565b612a62613e13565b6001600160a01b0316612a7d600b546001600160a01b031690565b6001600160a01b031614612aa35760405162461bcd60e51b8152600401610d59906154f4565b60005b8351811015612e2e576000848281518110612ac357612ac36157d1565b602002602001015190508360011415612b4f5760008181526011602052604081208054859290612afa90849063ffffffff166155e5565b82546101009290920a63ffffffff818102199093169183160217909155600083815260116020526040902054600a911611159050612b4f576000818152601160205260409020805463ffffffff1916600a1790555b8360021415612bec5760008181526011602052604090208054849190600490612b86908490600160201b900463ffffffff166155e5565b82546101009290920a63ffffffff818102199093169183160217909155600083815260116020526040902054600a600160201b90910490911611159050612bec576000818152601160205260409020805467ffffffff000000001916640a000000001790555b8360031415612c875760008181526011602052604090208054849190600890612c23908490600160401b900463ffffffff166155e5565b82546101009290920a63ffffffff818102199093169183160217909155600083815260116020526040902054600a600160401b90910490911611159050612c87576000818152601160205260409020805463ffffffff60401b1916600560411b1790555b8360041415612d805760008181526011602052604090208054600160601b900463ffffffff16908490600c612cbc83856155e5565b82546101009290920a63ffffffff818102199093169183160217909155600084815260116020526040902054600a600160601b90910490911611159050612d20576000828152601160205260409020805463ffffffff60601b1916600560611b1790555b604051634c75636b60e01b815260040160408051918290038220600085815260116020908152908390205463ffffffff8087168652600160601b9091041690840152918491600080516020615814833981519152910160405180910390a3505b8360051415612e1b5760008181526011602052604090208054849190601090612db7908490600160801b900463ffffffff166155e5565b82546101009290920a63ffffffff818102199093169183160217909155600083815260116020526040902054600a600160801b90910490911611159050612e1b576000818152601160205260409020805463ffffffff60801b1916600560811b1790555b5080612e268161571f565b915050612aa6565b50505050565b323314612e535760405162461bcd60e51b8152600401610d59906154bd565b6016546001600160401b0316612e6882613df6565b15612e855760405162461bcd60e51b8152600401610d5990615478565b81612ecd5760405162461bcd60e51b815260206004820152601860248201527743616e206e6f74206d696e7461626c6520494420283d302960401b6044820152606401610d59565b80341015612f155760405162461bcd60e51b815260206004820152601560248201527409ccacac840e8de40e6cadcc840dadee4ca408aa89605b1b6044820152606401610d59565b601654600160c01b900460ff16612f6e5760405162461bcd60e51b815260206004820152601c60248201527f5075626c696373616c6520686173206e6f7420626567756e20796574000000006044820152606401610d59565b601654600160401b90046001600160401b0316821115612fa05760405162461bcd60e51b8152600401610d59906153e0565b603260196000612fae613e13565b6001600160a01b03166001600160a01b03168152602001908152602001600020541061301c5760405162461bcd60e51b815260206004820152601860248201527f52656163686564206d696e74206c696d697420283d35302900000000000000006044820152606401610d59565b6130276123f2613e13565b6019600061243c613e13565b61303b613e13565b6001600160a01b0316613056600b546001600160a01b031690565b6001600160a01b03161461307c5760405162461bcd60e51b8152600401610d59906154f4565b60005b8151811015611fe6576130b2613093613e13565b8383815181106130a5576130a56157d1565b602002602001015161416e565b806130bc8161571f565b91505061307f565b6130d56130cf613e13565b83613e90565b6130f15760405162461bcd60e51b8152600401610d5990615529565b612e2e84848484614257565b6000818152600d60209081526040808320548352600c8252808320815160608181018452825460ff161515825260018301805485518188028101880190965280865291969592948584019390929083018282801561318457602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311613166575b50505050508152602001600282018054806020026020016040519081016040528092919081815260200182805480156131dc57602002820191906000526020600020905b8154815260200190600101908083116131c8575b5050505050815250509050806000015161325257600e80548060200260200160405190810160405280929190818152602001828054801561142657602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311613228575050505050915050919050565b602081015151600e54600091613267916155cd565b90506000816001600160401b03811115613283576132836157e7565b6040519080825280602002602001820160405280156132ac578160200160208202803683370190505b50905060005b600e5481101561332957600e81815481106132cf576132cf6157d1565b9060005260206000200160009054906101000a90046001600160a01b03168282815181106132ff576132ff6157d1565b6001600160a01b0390921660209283029190910190910152806133218161571f565b9150506132b2565b5060005b8360200151518110156115585783602001518181518110613350576133506157d1565b602002602001015182600e805490508361336a91906155cd565b8151811061337a5761337a6157d1565b6001600160a01b03909216602092830291909101909101528061339c8161571f565b91505061332d565b606060146000848152602001908152602001600020826040516133c7919061516f565b908152602001604051809103902080546133e0906156e4565b80601f016020809104026020016040519081016040528092919081815260200182805461340c906156e4565b80156134595780601f1061342e57610100808354040283529160200191613459565b820191906000526020600020905b81548152906001019060200180831161343c57829003601f168201915b5050505050905092915050565b600e818154811061347657600080fd5b6000918252602090912001546001600160a01b0316905081565b6060601761349d8361428a565b6040516020016134ae92919061518b565b6040516020818303038152906040529050919050565b601780546134d1906156e4565b80601f01602080910402602001604051908101604052809291908181526020018280546134fd906156e4565b801561354a5780601f1061351f5761010080835404028352916020019161354a565b820191906000526020600020905b81548152906001019060200180831161352d57829003601f168201915b505050505081565b61355a613e13565b6001600160a01b0316613575600b546001600160a01b031690565b6001600160a01b03161461359b5760405162461bcd60e51b8152600401610d59906154f4565b60005b8151811015611fe657601860008383815181106135bd576135bd6157d1565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008154809291906135f69061571f565b909155505060168054600160801b90046001600160401b031690601061361b8361575e565b91906101000a8154816001600160401b0302191690836001600160401b0316021790555050808061364b9061571f565b91505061359e565b61365b613e13565b6001600160a01b0316613676600b546001600160a01b031690565b6001600160a01b03161461369c5760405162461bcd60e51b8152600401610d59906154f4565b600260105414156136ef5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d59565b6002601055604051600090339047908381818185875af1925050503d8060008114613736576040519150601f19603f3d011682016040523d82523d6000602084013e61373b565b606091505b505090508061377f5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610d59565b506001601055565b60155460ff166137d95760405162461bcd60e51b815260206004820152601c60248201527f4c6576656c7570206973206e6f7420617661696c61626c6520796574000000006044820152606401610d59565b6137e2816120a5565b6001600160a01b03166137f3613e13565b6001600160a01b0316146138495760405162461bcd60e51b815260206004820152601860248201527f596f7520646f6e2774206f776e207468697320746f6b656e00000000000000006044820152606401610d59565b600081815260116020526040902054600a600160401b90910463ffffffff16106138a95760405162461bcd60e51b8152602060048201526011602482015270105b1c9958591e481b585e081b195d995b607a1b6044820152606401610d59565b60008181526013602052604081205462278d00919082906138ca9042615662565b6138d4919061562f565b9050801561112c5760008381526011602052604090208054600160401b900463ffffffff16908290600861390883856155e5565b82546101009290920a63ffffffff818102199093169183160217909155600086815260116020526040902054600a600160401b9091049091161115905061396c576000848152601160205260409020805463ffffffff60401b1916600560411b1790555b60405165456e6572677960d01b815260060160408051918290038220600087815260116020908152908390205463ffffffff8087168652600160401b90910416908401529186916000805160206158148339815191529101610ffb565b6001600160a01b03808316600090815260056020908152604080832093851683529290529081205460ff165b9392505050565b613a04613e13565b6001600160a01b0316613a1f600b546001600160a01b031690565b6001600160a01b031614613a455760405162461bcd60e51b8152600401610d59906154f4565b6001600160a01b038116613aaa5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d59565b613ab38161411c565b50565b613abe613e13565b6001600160a01b0316613ad9600b546001600160a01b031690565b6001600160a01b031614613aff5760405162461bcd60e51b8152600401610d59906154f4565b60408051602080820183526000808352858152601290915291909120805483908110613b2d57613b2d6157d1565b90600052602060002001908051906020019061112c929190614b40565b60155461010090046001600160a01b0316613b63613e13565b6001600160a01b031614613bb15760405162461bcd60e51b8152602060048201526015602482015274139bdd081cdc1958da599a58c818dbdb9d1c9858dd605a1b6044820152606401610d59565b60155460ff1615613ab357600081815260116020526040902054600a63ffffffff9091161015613ab3576000818152601160205260408120805463ffffffff1691829190613bfe8361573a565b91906101000a81548163ffffffff021916908363ffffffff16021790555050604051613c3a90694372656174697669747960b01b8152600a0190565b60408051918290038220600085815260116020908152908390205463ffffffff8087168652169084015291849160008051602061581483398151915291015b60405180910390a35050565b613c8d613e13565b6001600160a01b0316613ca8600b546001600160a01b031690565b6001600160a01b031614613cce5760405162461bcd60e51b8152600401610d59906154f4565b6001600160a01b038116600090815260186020526040902054601654613d049190600160801b90046001600160401b0316615679565b601680546001600160401b0392909216600160801b0267ffffffffffffffff60801b199092169190911790556001600160a01b0316600090815260186020526040812055565b600033301415613da157600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506125529050565b503390565b60006001600160e01b031982166380ac58cd60e01b1480613dd757506001600160e01b03198216635b5e139f60e01b145b80610c5957506301ffc9a760e01b6001600160e01b0319831614610c59565b6000908152600260205260409020546001600160a01b0316151590565b6000613e1d613d4a565b905090565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190613e57826120a5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000613e9b82613df6565b613efc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d59565b6000613f07836120a5565b9050806001600160a01b0316846001600160a01b03161480613f2e5750613f2e81856139c9565b80613f525750836001600160a01b0316613f4784610cf1565b6001600160a01b0316145b949350505050565b826001600160a01b0316613f6d826120a5565b6001600160a01b031614613fd15760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610d59565b6001600160a01b0382166140335760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610d59565b61403e838383614387565b614049600082613e22565b6001600160a01b0383166000908152600360205260408120805460019290614072908490615662565b90915550506001600160a01b03821660009081526003602052604081208054600192906140a09084906155cd565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61112c838383604051806020016040528060008152506130c4565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611fe68282604051806020016040528060008152506143ca565b816001600160a01b0316836001600160a01b031614156141ea5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d59565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b614262848484613f5a565b61426e848484846143fd565b612e2e5760405162461bcd60e51b8152600401610d5990615426565b6060816142ae5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156142d857806142c28161571f565b91506142d19050600a8361562f565b91506142b2565b6000816001600160401b038111156142f2576142f26157e7565b6040519080825280601f01601f19166020018201604052801561431c576020820181803683370190505b5090505b8415613f5257614331600183615662565b915061433e600a8661577b565b6143499060306155cd565b60f81b81838151811061435e5761435e6157d1565b60200101906001600160f81b031916908160001a905350614380600a8661562f565b9450614320565b614392838383614511565b60008181526013602052604090204290556001600160a01b0383166143ba5761112c816145c9565b32331461112c5761112c81614786565b6143d48383614871565b6143e160008484846143fd565b61112c5760405162461bcd60e51b8152600401610d5990615426565b60006001600160a01b0384163b1561450657836001600160a01b031663150b7a02614426613e13565b8786866040518563ffffffff1660e01b81526004016144489493929190615246565b602060405180830381600087803b15801561446257600080fd5b505af1925050508015614492575060408051601f3d908101601f1916820190925261448f91810190614f9d565b60015b6144ec573d8080156144c0576040519150601f19603f3d011682016040523d82523d6000602084013e6144c5565b606091505b5080516144e45760405162461bcd60e51b8152600401610d5990615426565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613f52565b506001949350505050565b6001600160a01b03831661456c5761456781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61458f565b816001600160a01b0316836001600160a01b03161461458f5761458f83826149b0565b6001600160a01b0382166145a65761112c81614a4d565b826001600160a01b0316826001600160a01b03161461112c5761112c8282614afc565b60408051600580825260c082019092526000916020820160a0803683370190505090506145f582611fea565b90508060008151811061460a5761460a6157d1565b60200260200101516011600084815260200190815260200160002060000160006101000a81548163ffffffff021916908363ffffffff16021790555080600181518110614659576146596157d1565b60200260200101516011600084815260200190815260200160002060000160046101000a81548163ffffffff021916908363ffffffff160217905550806002815181106146a8576146a86157d1565b60200260200101516011600084815260200190815260200160002060000160086101000a81548163ffffffff021916908363ffffffff160217905550806003815181106146f7576146f76157d1565b602002602001015160116000848152602001908152602001600020600001600c6101000a81548163ffffffff021916908363ffffffff16021790555080600481518110614746576147466157d1565b60200260200101516011600084815260200190815260200160002060000160106101000a81548163ffffffff021916908363ffffffff1602179055505050565b60155460ff1615613ab357600081815260116020526040902054600a600160801b90910463ffffffff161015613ab35760008181526011602052604090208054600160801b900463ffffffff1690819060106147e18361573a565b91906101000a81548163ffffffff021916908363ffffffff160217905550506040516148269072436f6d6d756e69636174696f6e536b696c6c7360681b815260130190565b60408051918290038220600085815260116020908152908390205463ffffffff8087168652600160801b90910416908401529184916000805160206158148339815191529101613c79565b6001600160a01b0382166148c75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d59565b6148d081613df6565b1561491d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d59565b61492960008383614387565b6001600160a01b03821660009081526003602052604081208054600192906149529084906155cd565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060016149bd8461211c565b6149c79190615662565b600083815260076020526040902054909150808214614a1a576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090614a5f90600190615662565b60008381526009602052604081205460088054939450909284908110614a8757614a876157d1565b906000526020600020015490508060088381548110614aa857614aa86157d1565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480614ae057614ae06157bb565b6001900381819060005260206000200160009055905550505050565b6000614b078361211c565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054614b4c906156e4565b90600052602060002090601f016020900481019282614b6e5760008555614bb4565b82601f10614b8757805160ff1916838001178555614bb4565b82800160010185558215614bb4579182015b82811115614bb4578251825591602001919060010190614b99565b50614bc0929150614bc4565b5090565b5b80821115614bc05760008155600101614bc5565b60006001600160401b03831115614bf257614bf26157e7565b614c05601f8401601f191660200161557a565b9050828152838383011115614c1957600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114611b1557600080fd5b600082601f830112614c5857600080fd5b81356020614c6d614c68836155aa565b61557a565b80838252828201915082860187848660051b8901011115614c8d57600080fd5b60005b85811015614cac57813584529284019290840190600101614c90565b5090979650505050505050565b600082601f830112614cca57600080fd5b6139f583833560208501614bd9565b803563ffffffff81168114611b1557600080fd5b600060208284031215614cff57600080fd5b6139f582614c30565b60008060408385031215614d1b57600080fd5b614d2483614c30565b9150614d3260208401614c30565b90509250929050565b600080600060608486031215614d5057600080fd5b614d5984614c30565b9250614d6760208501614c30565b9150604084013590509250925092565b60008060008060808587031215614d8d57600080fd5b614d9685614c30565b9350614da460208601614c30565b92506040850135915060608501356001600160401b03811115614dc657600080fd5b8501601f81018713614dd757600080fd5b614de687823560208401614bd9565b91505092959194509250565b60008060408385031215614e0557600080fd5b614e0e83614c30565b915060208301358015158114614e2357600080fd5b809150509250929050565b60008060408385031215614e4157600080fd5b614e4a83614c30565b946020939093013593505050565b60006020808385031215614e6b57600080fd5b82356001600160401b03811115614e8157600080fd5b8301601f81018513614e9257600080fd5b8035614ea0614c68826155aa565b80828252848201915084840188868560051b8701011115614ec057600080fd5b600094505b83851015614eea57614ed681614c30565b835260019490940193918501918501614ec5565b50979650505050505050565b600060208284031215614f0857600080fd5b81356001600160401b03811115614f1e57600080fd5b613f5284828501614c47565b600080600060608486031215614f3f57600080fd5b83356001600160401b03811115614f5557600080fd5b614f6186828701614c47565b93505060208401359150614f7760408501614cd9565b90509250925092565b600060208284031215614f9257600080fd5b81356139f5816157fd565b600060208284031215614faf57600080fd5b81516139f5816157fd565b600060208284031215614fcc57600080fd5b81356001600160401b03811115614fe257600080fd5b613f5284828501614cb9565b60006020828403121561500057600080fd5b5035919050565b6000806040838503121561501a57600080fd5b8235915060208301356001600160401b0381111561503757600080fd5b61504385828601614cb9565b9150509250929050565b60008060006060848603121561506257600080fd5b8335925060208401356001600160401b038082111561508057600080fd5b61508c87838801614cb9565b935060408601359150808211156150a257600080fd5b506150af86828701614cb9565b9150509250925092565b600080604083850312156150cc57600080fd5b50508035926020909101359150565b600080604083850312156150ee57600080fd5b82359150614d3260208401614cd9565b60006020828403121561511057600080fd5b81356001600160401b03811681146139f557600080fd5b6000815180845261513f8160208601602086016156a1565b601f01601f19169290920160200192915050565b600081516151658185602086016156a1565b9290920192915050565b600082516151818184602087016156a1565b9190910192915050565b600080845481600182811c9150808316806151a757607f831692505b60208084108214156151c757634e487b7160e01b86526022600452602486fd5b8180156151db57600181146151ec57615219565b60ff19861689528489019650615219565b60008b81526020902060005b868110156152115781548b8201529085019083016151f8565b505084890196505b50505050505061523d61522c8286615153565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061527990830184615127565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156152c45783516001600160a01b03168352928401929184019160010161529f565b50909695505050505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561532557603f19888603018452615313858351615127565b945092850192908501906001016152f7565b5092979650505050505050565b6020808252825182820181905260009190848201906040850190845b818110156152c45783518352928401929184019160010161534e565b6020808252825182820181905260009190848201906040850190845b818110156152c457835163ffffffff1683529284019291840191600101615386565b6020815260006139f56020830184615127565b6040815260006153ce6040830185615127565b828103602084015261523d8185615127565b60208082526026908201527f5265717565737420636861726163746572206973206e6f7420617661696c61626040820152651b19481e595d60d21b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526025908201527f5265717565737420746f6b656e2068617320616c7265616479206265656e206d6040820152641a5b9d195960da1b606082015260800190565b6020808252601e908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f191681016001600160401b03811182821017156155a2576155a26157e7565b604052919050565b60006001600160401b038211156155c3576155c36157e7565b5060051b60200190565b600082198211156155e0576155e061578f565b500190565b600063ffffffff8083168185168083038211156156045761560461578f565b01949350505050565b60006001600160401b038083168185168083038211156156045761560461578f565b60008261563e5761563e6157a5565b500490565b600081600019048311821515161561565d5761565d61578f565b500290565b6000828210156156745761567461578f565b500390565b60006001600160401b03838116908316818110156156995761569961578f565b039392505050565b60005b838110156156bc5781810151838201526020016156a4565b83811115612e2e5750506000910152565b6000816156dc576156dc61578f565b506000190190565b600181811c908216806156f857607f821691505b6020821081141561571957634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156157335761573361578f565b5060010190565b600063ffffffff808316818114156157545761575461578f565b6001019392505050565b60006001600160401b03808316818114156157545761575461578f565b60008261578a5761578a6157a5565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114613ab357600080fdfeac0ccfe77cdfdb440579f367b2373c87a9b88ddfc59b0a307f7888451ba3379fa264697066735822122037c5bbd061ecb813307fb050c4f4026a192b2535f1cd50c28e011fa9c777263d64736f6c6343000807003300000000000000000000000000000000000000000000000000b1a2bc2ec5000000000000000000000000000000000000000000000000000000f8b0a10e47000000000000000000000000000000000000000000000000000000000000000001900000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000002f68747470733a2f2f686f6b61676f2d6a736f6e2e73332e75732d776573742d312e616d617a6f6e6177732e636f6d2f0000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103dd5760003560e01c8063715018a6116101fd578063b88d4fde11610118578063e086e5ec116100ab578063f2fde38b1161007a578063f2fde38b14610b99578063f6ff941314610bb9578063fc32d38114610bd3578063fddeec2014610bf3578063fe7cb25714610c1357600080fd5b8063e086e5ec14610b1d578063e2865f5514610b32578063e757c17d14610b52578063e985e9c514610b7957600080fd5b8063c7350492116100e7578063c735049214610aa1578063c87b56dd14610ac8578063d547cfb714610ae8578063d8e9e9a414610afd57600080fd5b8063b88d4fde14610a14578063b9c4d9fb14610a34578063c1c6376f14610a61578063c3a983b214610a8157600080fd5b80639b6860c811610190578063ab801fcc1161015f578063ab801fcc146109a1578063aede6302146109c1578063b3ab66b0146109e1578063b3fd919d146109f457600080fd5b80639b6860c814610920578063a22cb46514610940578063a5a865dc14610960578063a6de30741461098157600080fd5b80638d75fe05116101cc5780638d75fe05146108ab5780638da5cb5b146108c0578063912e3fd9146108de57806395d89b411461090b57600080fd5b8063715018a61461081f5780637835c635146108345780637e26639f146108475780638a30daaa1461088657600080fd5b80632f745c59116102f85780634c2451961161028b57806355f804b31161025a57806355f804b3146107695780635b19258414610789578063633d99a9146107a95780636352211e146107df57806370a08231146107ff57600080fd5b80634c245196146106f35780634ced4734146107135780634f6ccce71461073457806355dd574c1461075457600080fd5b80634357da58116102c75780634357da581461067157806346cf0be314610686578063478d07a3146106b35780634b0bdd2a146106d357600080fd5b80632f745c59146105fc5780633e7848301461061c57806340e63de21461063c57806342842e0e1461065157600080fd5b80630ebd4c7f1161037057806317f6c7fa1161033f57806317f6c7fa1461059257806318160ddd146105a75780631a31ea1b146105bc57806323b872dd146105dc57600080fd5b80630ebd4c7f146104f757806310752a1f146105245780631196a0c4146105445780631361b5131461057257600080fd5b8063095ea7b3116103ac578063095ea7b31461048d5780630aeddaf3146104ad5780630c1c972a146104cd5780630c41f497146104e257600080fd5b806301ffc9a7146103e957806306fdde031461041e578063081812fc1461044057806308e5909c1461047857600080fd5b366103e457005b600080fd5b3480156103f557600080fd5b50610409610404366004614f80565b610c33565b60405190151581526020015b60405180910390f35b34801561042a57600080fd5b50610433610c5f565b60405161041591906153a8565b34801561044c57600080fd5b5061046061045b366004614fee565b610cf1565b6040516001600160a01b039091168152602001610415565b61048b6104863660046150db565b610d7e565b005b34801561049957600080fd5b5061048b6104a8366004614e2e565b611009565b3480156104b957600080fd5b5061048b6104c8366004614e2e565b611131565b3480156104d957600080fd5b5061048b611230565b3480156104ee57600080fd5b5061048b61128f565b34801561050357600080fd5b50610517610512366004614fee565b6112e7565b6040516104159190615332565b34801561053057600080fd5b5061048b61053f366004614ced565b611561565b34801561055057600080fd5b5061056461055f366004614fee565b6115d2565b604051908152602001610415565b34801561057e57600080fd5b5061048b61058d36600461504d565b6115f3565b34801561059e57600080fd5b5061048b611846565b3480156105b357600080fd5b50600854610564565b3480156105c857600080fd5b506105646105d73660046150b9565b61189e565b3480156105e857600080fd5b5061048b6105f7366004614d3b565b611a04565b34801561060857600080fd5b50610564610617366004614e2e565b611a3c565b34801561062857600080fd5b50610564610637366004614fee565b611ad2565b34801561064857600080fd5b5061048b611b1a565b34801561065d57600080fd5b5061048b61066c366004614d3b565b611b6f565b34801561067d57600080fd5b5061048b611b7a565b34801561069257600080fd5b506106a66106a1366004614fee565b611bd2565b60405161041591906152d0565b3480156106bf57600080fd5b5061048b6106ce366004615007565b611cbe565b3480156106df57600080fd5b506105646106ee366004614ced565b611d98565b3480156106ff57600080fd5b5061048b61070e3660046150fe565b611e1d565b34801561071f57600080fd5b5060165461040990600160c81b900460ff1681565b34801561074057600080fd5b5061056461074f366004614fee565b611e98565b34801561076057600080fd5b5061048b611f2b565b34801561077557600080fd5b5061048b610784366004614fba565b611f8a565b34801561079557600080fd5b506105176107a4366004614fee565b611fea565b3480156107b557600080fd5b506105646107c4366004614ced565b6001600160a01b031660009081526018602052604090205490565b3480156107eb57600080fd5b506104606107fa366004614fee565b6120a5565b34801561080b57600080fd5b5061056461081a366004614ced565b61211c565b34801561082b57600080fd5b5061048b6121a3565b61048b610842366004614fee565b6121f8565b34801561085357600080fd5b5060165461086e90600160401b90046001600160401b031681565b6040516001600160401b039091168152602001610415565b34801561089257600080fd5b506015546104609061010090046001600160a01b031681565b3480156108b757600080fd5b5061051761246c565b3480156108cc57600080fd5b50600b546001600160a01b0316610460565b3480156108ea57600080fd5b506108fe6108f9366004614fee565b612555565b604051610415919061536a565b34801561091757600080fd5b506104336127ac565b34801561092c57600080fd5b5060165461086e906001600160401b031681565b34801561094c57600080fd5b5061048b61095b366004614df2565b6127bb565b34801561096c57600080fd5b5060165461040990600160c01b900460ff1681565b34801561098d57600080fd5b5061051761099c366004614fee565b6127cd565b3480156109ad57600080fd5b506108fe6109bc366004614fee565b6128d5565b3480156109cd57600080fd5b5061048b6109dc366004614f2a565b612a5a565b61048b6109ef366004614fee565b612e34565b348015610a0057600080fd5b5061048b610a0f366004614ef6565b613033565b348015610a2057600080fd5b5061048b610a2f366004614d77565b6130c4565b348015610a4057600080fd5b50610a54610a4f366004614fee565b6130fd565b6040516104159190615283565b348015610a6d57600080fd5b50610433610a7c366004615007565b6133a4565b348015610a8d57600080fd5b50610460610a9c366004614fee565b613466565b348015610aad57600080fd5b5060165461086e90600160801b90046001600160401b031681565b348015610ad457600080fd5b50610433610ae3366004614fee565b613490565b348015610af457600080fd5b506104336134c4565b348015610b0957600080fd5b5061048b610b18366004614e58565b613552565b348015610b2957600080fd5b5061048b613653565b348015610b3e57600080fd5b5061048b610b4d366004614fee565b613787565b348015610b5e57600080fd5b5060155461086e90600160a81b90046001600160401b031681565b348015610b8557600080fd5b50610409610b94366004614d08565b6139c9565b348015610ba557600080fd5b5061048b610bb4366004614ced565b6139fc565b348015610bc557600080fd5b506015546104099060ff1681565b348015610bdf57600080fd5b5061048b610bee3660046150b9565b613ab6565b348015610bff57600080fd5b5061048b610c0e366004614fee565b613b4a565b348015610c1f57600080fd5b5061048b610c2e366004614ced565b613c85565b6000610c3e82613da6565b80610c595750632dde656160e21b6001600160e01b03198316145b92915050565b606060008054610c6e906156e4565b80601f0160208091040260200160405190810160405280929190818152602001828054610c9a906156e4565b8015610ce75780601f10610cbc57610100808354040283529160200191610ce7565b820191906000526020600020905b815481529060010190602001808311610cca57829003601f168201915b5050505050905090565b6000610cfc82613df6565b610d625760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b323314610d9d5760405162461bcd60e51b8152600401610d59906154bd565b6000610db663ffffffff831666470de4df820000615643565b60155490915060ff16610e0b5760405162461bcd60e51b815260206004820152601c60248201527f6c6576656c7570206973206e6f7420617661696c61626c6520796574000000006044820152606401610d59565b80341015610e535760405162461bcd60e51b81526020600482015260156024820152740dccacac840e8de40e6cadcc840dadee4ca408aa89605b1b6044820152606401610d59565b610e5c836120a5565b6001600160a01b0316610e6d613e13565b6001600160a01b031614610ebe5760405162461bcd60e51b81526020600482015260186024820152773cb7ba903237b713ba1037bbb7103a3434b9903a37b5b2b760411b6044820152606401610d59565b600083815260116020526040902054600a90610ee8908490600160201b900463ffffffff166155e5565b63ffffffff161115610f4b5760405162461bcd60e51b815260206004820152602660248201527f72657175657374206c6576656c75702073697a65206973206f766572206d6178604482015265081b195d995b60d21b6064820152608401610d59565b60008381526011602052604090208054600160201b900463ffffffff169083906004610f7783856155e5565b92506101000a81548163ffffffff021916908363ffffffff160217905550604051610fb4906b496e74656c6c6967656e636560a01b8152600c0190565b60408051918290038220600087815260116020908152908390205463ffffffff8087168652600160201b909104169084015291869160008051602061581483398151915291015b60405180910390a350505050565b6000611014826120a5565b9050806001600160a01b0316836001600160a01b031614156110825760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610d59565b806001600160a01b0316611094613e13565b6001600160a01b031614806110b057506110b081610b94613e13565b6111225760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d59565b61112c8383613e22565b505050565b611139613e13565b6001600160a01b0316611154600b546001600160a01b031690565b6001600160a01b03161461117a5760405162461bcd60e51b8152600401610d59906154f4565b6001600160a01b0382166000908152601860205260409020546016546111b09190600160801b90046001600160401b0316615679565b6016805467ffffffffffffffff60801b1916600160801b6001600160401b0393841681029190911782556001600160a01b038516600090815260186020526040902084905590546112069284929091041661560d565b601660106101000a8154816001600160401b0302191690836001600160401b031602179055505050565b611238613e13565b6001600160a01b0316611253600b546001600160a01b031690565b6001600160a01b0316146112795760405162461bcd60e51b8152600401610d59906154f4565b6016805461ffff60c01b1916600160c01b179055565b611297613e13565b6001600160a01b03166112b2600b546001600160a01b031690565b6001600160a01b0316146112d85760405162461bcd60e51b8152600401610d59906154f4565b6016805460ff60c01b19169055565b6000818152600d60209081526040808320548352600c8252808320815160608181018452825460ff161515825260018301805485518188028101880190965280865291969592948584019390929083018282801561136e57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611350575b50505050508152602001600282018054806020026020016040519081016040528092919081815260200182805480156113c657602002820191906000526020600020905b8154815260200190600101908083116113b2575b5050505050815250509050806000015161143357600f80548060200260200160405190810160405280929190818152602001828054801561142657602002820191906000526020600020905b815481526020019060010190808311611412575b5050505050915050919050565b604081015151600f54600091611448916155cd565b90506000816001600160401b03811115611464576114646157e7565b60405190808252806020026020018201604052801561148d578160200160208202803683370190505b50905060005b600f548110156114ea57600f81815481106114b0576114b06157d1565b90600052602060002001548282815181106114cd576114cd6157d1565b6020908102919091010152806114e28161571f565b915050611493565b5060005b8360400151518110156115585783604001518181518110611511576115116157d1565b602002602001015182600e805490508361152b91906155cd565b8151811061153b5761153b6157d1565b6020908102919091010152806115508161571f565b9150506114ee565b50949350505050565b611569613e13565b6001600160a01b0316611584600b546001600160a01b031690565b6001600160a01b0316146115aa5760405162461bcd60e51b8152600401610d59906154f4565b601580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600f81815481106115e257600080fd5b600091825260209091200154905081565b60008061160161081a613e13565b90506000611610600187615662565b61161c90610190615643565b6116279060016155cd565b9050600061163787610190615643565b9050606060005b84811015611688576000611659611653613e13565b83611a3c565b905080851115801561166b5750838111155b1561167557600196505b50806116808161571f565b91505061163e565b50846116e15760405162461bcd60e51b815260206004820152602260248201527f596f7520646f6e2774206f776e20746869732063686172616374657220746f6b60448201526132b760f11b6064820152608401610d59565b6000888152601460205260409081902090516116fe90899061516f565b90815260200160405180910390208054611717906156e4565b80601f0160208091040260200160405190810160405280929190818152602001828054611743906156e4565b80156117905780601f1061176557610100808354040283529160200191611790565b820191906000526020600020905b81548152906001019060200180831161177357829003601f168201915b5050505050905085601460008a8152602001908152602001600020886040516117b9919061516f565b908152602001604051809103902090805190602001906117da929190614b40565b50866040516117e9919061516f565b6040518091039020886117fa613e13565b6001600160a01b03167f3ce886a3ba0abafb02a9cd525e32c562a2eac07d85b35f8459b1d110554a8429848a6040516118349291906153bb565b60405180910390a45050505050505050565b61184e613e13565b6001600160a01b0316611869600b546001600160a01b031690565b6001600160a01b03161461188f5760405162461bcd60e51b8152600401610d59906154f4565b6015805460ff19166001179055565b60008080806118ae600187615662565b6118ba90610190615643565b6118c59060016155cd565b905060006118d587610190615643565b60408051610190808252613220820190925291925060009190602082016132008036833701905050601654909150600160401b90046001600160401b03168211156119325760405162461bcd60e51b8152600401610d59906153e0565b825b8281116119865761194481613df6565b611974578082868151811061195b5761195b6157d1565b6020908102919091010152846119708161571f565b9550505b8061197e8161571f565b915050611934565b508361199a57600095505050505050610c59565b6040805142602082015244918101919091526060810188905284906080016040516020818303038152906040528051906020012060001c6119db919061577b565b94508085815181106119ef576119ef6157d1565b60200260200101519550505050505092915050565b611a15611a0f613e13565b82613e90565b611a315760405162461bcd60e51b8152600401610d5990615529565b61112c838383613f5a565b6000611a478361211c565b8210611aa95760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610d59565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600081815260136020526040812054611aed57506000919050565b6000828152601360205260409020546201518090611b0b9042615662565b610c59919061562f565b919050565b611b22613e13565b6001600160a01b0316611b3d600b546001600160a01b031690565b6001600160a01b031614611b635760405162461bcd60e51b8152600401610d59906154f4565b6015805460ff19169055565b61112c838383614101565b611b82613e13565b6001600160a01b0316611b9d600b546001600160a01b031690565b6001600160a01b031614611bc35760405162461bcd60e51b8152600401610d59906154f4565b6016805460ff60c81b19169055565b606060126000838152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015611cb3578382906000526020600020018054611c26906156e4565b80601f0160208091040260200160405190810160405280929190818152602001828054611c52906156e4565b8015611c9f5780601f10611c7457610100808354040283529160200191611c9f565b820191906000526020600020905b815481529060010190602001808311611c8257829003601f168201915b505050505081526020019060010190611c07565b505050509050919050565b611cc7826120a5565b6001600160a01b0316611cd8613e13565b6001600160a01b031614611d295760405162461bcd60e51b81526020600482015260186024820152773cb7ba903237b713ba1037bbb7103a3434b9903a37b5b2b760411b6044820152606401610d59565b600082815260126020908152604082208054600181018255908352918190208351611d5b939190910191840190614b40565b50817fa83d3ed3c5fd35ceb4229d574678fb9b007e75f9d8b19e464a1c50340108839d82604051611d8c91906153a8565b60405180910390a25050565b60006001600160a01b038216611e015760405162461bcd60e51b815260206004820152602860248201527f4e756d626572206d696e74656420717565727920666f7220746865207a65726f604482015267206164647265737360c01b6064820152608401610d59565b506001600160a01b031660009081526019602052604090205490565b611e25613e13565b6001600160a01b0316611e40600b546001600160a01b031690565b6001600160a01b031614611e665760405162461bcd60e51b8152600401610d59906154f4565b601680546001600160401b03909216600160401b026fffffffffffffffff000000000000000019909216919091179055565b6000611ea360085490565b8210611f065760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610d59565b60088281548110611f1957611f196157d1565b90600052602060002001549050919050565b611f33613e13565b6001600160a01b0316611f4e600b546001600160a01b031690565b6001600160a01b031614611f745760405162461bcd60e51b8152600401610d59906154f4565b6016805461ffff60c01b1916600160c81b179055565b611f92613e13565b6001600160a01b0316611fad600b546001600160a01b031690565b6001600160a01b031614611fd35760405162461bcd60e51b8152600401610d59906154f4565b8051611fe6906017906020840190614b40565b5050565b60408051600580825260c08201909252606091600091906020820160a08036833701905050905060005b600581101561209e576040516bffffffffffffffffffffffff193060601b16602082015260348101829052605481018590526004906074016040516020818303038152906040528051906020012060001c61206f919061577b565b828281518110612081576120816157d1565b6020908102919091010152806120968161571f565b915050612014565b5092915050565b6000818152600260205260408120546001600160a01b031680610c595760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610d59565b60006001600160a01b0382166121875760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610d59565b506001600160a01b031660009081526003602052604090205490565b6121ab613e13565b6001600160a01b03166121c6600b546001600160a01b031690565b6001600160a01b0316146121ec5760405162461bcd60e51b8152600401610d59906154f4565b6121f6600061411c565b565b3233146122175760405162461bcd60e51b8152600401610d59906154bd565b601554600160a81b90046001600160401b031661223382613df6565b156122505760405162461bcd60e51b8152600401610d5990615478565b816122985760405162461bcd60e51b815260206004820152601860248201527743616e206e6f74206d696e7461626c6520494420283d302960401b6044820152606401610d59565b803410156122e05760405162461bcd60e51b815260206004820152601560248201527409ccacac840e8de40e6cadcc840dadee4ca408aa89605b1b6044820152606401610d59565b601654600160c81b900460ff166123395760405162461bcd60e51b815260206004820152601960248201527f50726573616c6520686173206e6f7420626567756e20796574000000000000006044820152606401610d59565b600060186000612347613e13565b6001600160a01b03166001600160a01b0316815260200190815260200160002054116123b55760405162461bcd60e51b815260206004820152601f60248201527f4e6f7420656c696769626c6520666f7220616c6c6f776c697374206d696e74006044820152606401610d59565b601654600160401b90046001600160401b03168211156123e75760405162461bcd60e51b8152600401610d59906153e0565b6123f86123f2613e13565b8361416e565b60186000612404613e13565b6001600160a01b031681526020810191909152604001600090812080549161242b836156cd565b91905055506019600061243c613e13565b6001600160a01b03168152602081019190915260400160009081208054916124638361571f565b91905055505050565b6060612476613e13565b6001600160a01b0316612491600b546001600160a01b031690565b6001600160a01b0316146124b75760405162461bcd60e51b8152600401610d59906154f4565b60006124c260085490565b90506000816001600160401b038111156124de576124de6157e7565b604051908082528060200260200182016040528015612507578160200160208202803683370190505b50905060005b8281101561254d5761251e81611e98565b828281518110612530576125306157d1565b6020908102919091010152806125458161571f565b91505061250d565b509150505b90565b604080516107d080825261fa20820190925260609190600090826020820161fa0080368337019050509050600061258d600186615662565b61259990610190615643565b905060015b61019081116127a25760006125b4600183615662565b6125bf906005615643565b9050601160006125cf85856155cd565b8152602081019190915260400160009081205463ffffffff169085906125f69084906155cd565b81518110612606576126066157d1565b63ffffffff909216602092830291909101909101526011600061262985856155cd565b8152602081019190915260400160002054600160201b900463ffffffff16846126538360016155cd565b81518110612663576126636157d1565b63ffffffff909216602092830291909101909101526011600061268685856155cd565b8152602081019190915260400160002054600160401b900463ffffffff16846126b08360026155cd565b815181106126c0576126c06157d1565b63ffffffff90921660209283029190910190910152601160006126e385856155cd565b8152602081019190915260400160002054600160601b900463ffffffff168461270d8360036155cd565b8151811061271d5761271d6157d1565b63ffffffff909216602092830291909101909101526011600061274085856155cd565b8152602081019190915260400160002054600160801b900463ffffffff168461276a8360046155cd565b8151811061277a5761277a6157d1565b63ffffffff90921660209283029190910190910152508061279a8161571f565b91505061259e565b5090949350505050565b606060018054610c6e906156e4565b611fe66127c6613e13565b8383614188565b60606127d7613e13565b6001600160a01b03166127f2600b546001600160a01b031690565b6001600160a01b0316146128185760405162461bcd60e51b8152600401610d59906154f4565b600080612826600185615662565b61283290610190615643565b61283d9060016155cd565b9050600061284d85610190615643565b604080516101908082526132208201909252919250600091906020820161320080368337019050509050825b8281116128cb5761288981613df6565b6128b957808286815181106128a0576128a06157d1565b6020908102919091010152846128b58161571f565b9550505b806128c38161571f565b915050612879565b5095945050505050565b60408051600580825260c08201909252606091600091906020820160a080368337505050600084815260116020526040812054825192935063ffffffff1691839190612923576129236157d1565b63ffffffff9283166020918202929092018101919091526000858152601190915260409020548251600160201b909104909116908290600190811061296a5761296a6157d1565b63ffffffff9283166020918202929092018101919091526000858152601190915260409020548251600160401b90910490911690829060029081106129b1576129b16157d1565b63ffffffff9283166020918202929092018101919091526000858152601190915260409020548251600160601b90910490911690829060039081106129f8576129f86157d1565b63ffffffff9283166020918202929092018101919091526000858152601190915260409020548251600160801b9091049091169082906004908110612a3f57612a3f6157d1565b63ffffffff9092166020928302919091019091015292915050565b612a62613e13565b6001600160a01b0316612a7d600b546001600160a01b031690565b6001600160a01b031614612aa35760405162461bcd60e51b8152600401610d59906154f4565b60005b8351811015612e2e576000848281518110612ac357612ac36157d1565b602002602001015190508360011415612b4f5760008181526011602052604081208054859290612afa90849063ffffffff166155e5565b82546101009290920a63ffffffff818102199093169183160217909155600083815260116020526040902054600a911611159050612b4f576000818152601160205260409020805463ffffffff1916600a1790555b8360021415612bec5760008181526011602052604090208054849190600490612b86908490600160201b900463ffffffff166155e5565b82546101009290920a63ffffffff818102199093169183160217909155600083815260116020526040902054600a600160201b90910490911611159050612bec576000818152601160205260409020805467ffffffff000000001916640a000000001790555b8360031415612c875760008181526011602052604090208054849190600890612c23908490600160401b900463ffffffff166155e5565b82546101009290920a63ffffffff818102199093169183160217909155600083815260116020526040902054600a600160401b90910490911611159050612c87576000818152601160205260409020805463ffffffff60401b1916600560411b1790555b8360041415612d805760008181526011602052604090208054600160601b900463ffffffff16908490600c612cbc83856155e5565b82546101009290920a63ffffffff818102199093169183160217909155600084815260116020526040902054600a600160601b90910490911611159050612d20576000828152601160205260409020805463ffffffff60601b1916600560611b1790555b604051634c75636b60e01b815260040160408051918290038220600085815260116020908152908390205463ffffffff8087168652600160601b9091041690840152918491600080516020615814833981519152910160405180910390a3505b8360051415612e1b5760008181526011602052604090208054849190601090612db7908490600160801b900463ffffffff166155e5565b82546101009290920a63ffffffff818102199093169183160217909155600083815260116020526040902054600a600160801b90910490911611159050612e1b576000818152601160205260409020805463ffffffff60801b1916600560811b1790555b5080612e268161571f565b915050612aa6565b50505050565b323314612e535760405162461bcd60e51b8152600401610d59906154bd565b6016546001600160401b0316612e6882613df6565b15612e855760405162461bcd60e51b8152600401610d5990615478565b81612ecd5760405162461bcd60e51b815260206004820152601860248201527743616e206e6f74206d696e7461626c6520494420283d302960401b6044820152606401610d59565b80341015612f155760405162461bcd60e51b815260206004820152601560248201527409ccacac840e8de40e6cadcc840dadee4ca408aa89605b1b6044820152606401610d59565b601654600160c01b900460ff16612f6e5760405162461bcd60e51b815260206004820152601c60248201527f5075626c696373616c6520686173206e6f7420626567756e20796574000000006044820152606401610d59565b601654600160401b90046001600160401b0316821115612fa05760405162461bcd60e51b8152600401610d59906153e0565b603260196000612fae613e13565b6001600160a01b03166001600160a01b03168152602001908152602001600020541061301c5760405162461bcd60e51b815260206004820152601860248201527f52656163686564206d696e74206c696d697420283d35302900000000000000006044820152606401610d59565b6130276123f2613e13565b6019600061243c613e13565b61303b613e13565b6001600160a01b0316613056600b546001600160a01b031690565b6001600160a01b03161461307c5760405162461bcd60e51b8152600401610d59906154f4565b60005b8151811015611fe6576130b2613093613e13565b8383815181106130a5576130a56157d1565b602002602001015161416e565b806130bc8161571f565b91505061307f565b6130d56130cf613e13565b83613e90565b6130f15760405162461bcd60e51b8152600401610d5990615529565b612e2e84848484614257565b6000818152600d60209081526040808320548352600c8252808320815160608181018452825460ff161515825260018301805485518188028101880190965280865291969592948584019390929083018282801561318457602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311613166575b50505050508152602001600282018054806020026020016040519081016040528092919081815260200182805480156131dc57602002820191906000526020600020905b8154815260200190600101908083116131c8575b5050505050815250509050806000015161325257600e80548060200260200160405190810160405280929190818152602001828054801561142657602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311613228575050505050915050919050565b602081015151600e54600091613267916155cd565b90506000816001600160401b03811115613283576132836157e7565b6040519080825280602002602001820160405280156132ac578160200160208202803683370190505b50905060005b600e5481101561332957600e81815481106132cf576132cf6157d1565b9060005260206000200160009054906101000a90046001600160a01b03168282815181106132ff576132ff6157d1565b6001600160a01b0390921660209283029190910190910152806133218161571f565b9150506132b2565b5060005b8360200151518110156115585783602001518181518110613350576133506157d1565b602002602001015182600e805490508361336a91906155cd565b8151811061337a5761337a6157d1565b6001600160a01b03909216602092830291909101909101528061339c8161571f565b91505061332d565b606060146000848152602001908152602001600020826040516133c7919061516f565b908152602001604051809103902080546133e0906156e4565b80601f016020809104026020016040519081016040528092919081815260200182805461340c906156e4565b80156134595780601f1061342e57610100808354040283529160200191613459565b820191906000526020600020905b81548152906001019060200180831161343c57829003601f168201915b5050505050905092915050565b600e818154811061347657600080fd5b6000918252602090912001546001600160a01b0316905081565b6060601761349d8361428a565b6040516020016134ae92919061518b565b6040516020818303038152906040529050919050565b601780546134d1906156e4565b80601f01602080910402602001604051908101604052809291908181526020018280546134fd906156e4565b801561354a5780601f1061351f5761010080835404028352916020019161354a565b820191906000526020600020905b81548152906001019060200180831161352d57829003601f168201915b505050505081565b61355a613e13565b6001600160a01b0316613575600b546001600160a01b031690565b6001600160a01b03161461359b5760405162461bcd60e51b8152600401610d59906154f4565b60005b8151811015611fe657601860008383815181106135bd576135bd6157d1565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008154809291906135f69061571f565b909155505060168054600160801b90046001600160401b031690601061361b8361575e565b91906101000a8154816001600160401b0302191690836001600160401b0316021790555050808061364b9061571f565b91505061359e565b61365b613e13565b6001600160a01b0316613676600b546001600160a01b031690565b6001600160a01b03161461369c5760405162461bcd60e51b8152600401610d59906154f4565b600260105414156136ef5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d59565b6002601055604051600090339047908381818185875af1925050503d8060008114613736576040519150601f19603f3d011682016040523d82523d6000602084013e61373b565b606091505b505090508061377f5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610d59565b506001601055565b60155460ff166137d95760405162461bcd60e51b815260206004820152601c60248201527f4c6576656c7570206973206e6f7420617661696c61626c6520796574000000006044820152606401610d59565b6137e2816120a5565b6001600160a01b03166137f3613e13565b6001600160a01b0316146138495760405162461bcd60e51b815260206004820152601860248201527f596f7520646f6e2774206f776e207468697320746f6b656e00000000000000006044820152606401610d59565b600081815260116020526040902054600a600160401b90910463ffffffff16106138a95760405162461bcd60e51b8152602060048201526011602482015270105b1c9958591e481b585e081b195d995b607a1b6044820152606401610d59565b60008181526013602052604081205462278d00919082906138ca9042615662565b6138d4919061562f565b9050801561112c5760008381526011602052604090208054600160401b900463ffffffff16908290600861390883856155e5565b82546101009290920a63ffffffff818102199093169183160217909155600086815260116020526040902054600a600160401b9091049091161115905061396c576000848152601160205260409020805463ffffffff60401b1916600560411b1790555b60405165456e6572677960d01b815260060160408051918290038220600087815260116020908152908390205463ffffffff8087168652600160401b90910416908401529186916000805160206158148339815191529101610ffb565b6001600160a01b03808316600090815260056020908152604080832093851683529290529081205460ff165b9392505050565b613a04613e13565b6001600160a01b0316613a1f600b546001600160a01b031690565b6001600160a01b031614613a455760405162461bcd60e51b8152600401610d59906154f4565b6001600160a01b038116613aaa5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d59565b613ab38161411c565b50565b613abe613e13565b6001600160a01b0316613ad9600b546001600160a01b031690565b6001600160a01b031614613aff5760405162461bcd60e51b8152600401610d59906154f4565b60408051602080820183526000808352858152601290915291909120805483908110613b2d57613b2d6157d1565b90600052602060002001908051906020019061112c929190614b40565b60155461010090046001600160a01b0316613b63613e13565b6001600160a01b031614613bb15760405162461bcd60e51b8152602060048201526015602482015274139bdd081cdc1958da599a58c818dbdb9d1c9858dd605a1b6044820152606401610d59565b60155460ff1615613ab357600081815260116020526040902054600a63ffffffff9091161015613ab3576000818152601160205260408120805463ffffffff1691829190613bfe8361573a565b91906101000a81548163ffffffff021916908363ffffffff16021790555050604051613c3a90694372656174697669747960b01b8152600a0190565b60408051918290038220600085815260116020908152908390205463ffffffff8087168652169084015291849160008051602061581483398151915291015b60405180910390a35050565b613c8d613e13565b6001600160a01b0316613ca8600b546001600160a01b031690565b6001600160a01b031614613cce5760405162461bcd60e51b8152600401610d59906154f4565b6001600160a01b038116600090815260186020526040902054601654613d049190600160801b90046001600160401b0316615679565b601680546001600160401b0392909216600160801b0267ffffffffffffffff60801b199092169190911790556001600160a01b0316600090815260186020526040812055565b600033301415613da157600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506125529050565b503390565b60006001600160e01b031982166380ac58cd60e01b1480613dd757506001600160e01b03198216635b5e139f60e01b145b80610c5957506301ffc9a760e01b6001600160e01b0319831614610c59565b6000908152600260205260409020546001600160a01b0316151590565b6000613e1d613d4a565b905090565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190613e57826120a5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000613e9b82613df6565b613efc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d59565b6000613f07836120a5565b9050806001600160a01b0316846001600160a01b03161480613f2e5750613f2e81856139c9565b80613f525750836001600160a01b0316613f4784610cf1565b6001600160a01b0316145b949350505050565b826001600160a01b0316613f6d826120a5565b6001600160a01b031614613fd15760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610d59565b6001600160a01b0382166140335760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610d59565b61403e838383614387565b614049600082613e22565b6001600160a01b0383166000908152600360205260408120805460019290614072908490615662565b90915550506001600160a01b03821660009081526003602052604081208054600192906140a09084906155cd565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61112c838383604051806020016040528060008152506130c4565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611fe68282604051806020016040528060008152506143ca565b816001600160a01b0316836001600160a01b031614156141ea5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d59565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b614262848484613f5a565b61426e848484846143fd565b612e2e5760405162461bcd60e51b8152600401610d5990615426565b6060816142ae5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156142d857806142c28161571f565b91506142d19050600a8361562f565b91506142b2565b6000816001600160401b038111156142f2576142f26157e7565b6040519080825280601f01601f19166020018201604052801561431c576020820181803683370190505b5090505b8415613f5257614331600183615662565b915061433e600a8661577b565b6143499060306155cd565b60f81b81838151811061435e5761435e6157d1565b60200101906001600160f81b031916908160001a905350614380600a8661562f565b9450614320565b614392838383614511565b60008181526013602052604090204290556001600160a01b0383166143ba5761112c816145c9565b32331461112c5761112c81614786565b6143d48383614871565b6143e160008484846143fd565b61112c5760405162461bcd60e51b8152600401610d5990615426565b60006001600160a01b0384163b1561450657836001600160a01b031663150b7a02614426613e13565b8786866040518563ffffffff1660e01b81526004016144489493929190615246565b602060405180830381600087803b15801561446257600080fd5b505af1925050508015614492575060408051601f3d908101601f1916820190925261448f91810190614f9d565b60015b6144ec573d8080156144c0576040519150601f19603f3d011682016040523d82523d6000602084013e6144c5565b606091505b5080516144e45760405162461bcd60e51b8152600401610d5990615426565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613f52565b506001949350505050565b6001600160a01b03831661456c5761456781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61458f565b816001600160a01b0316836001600160a01b03161461458f5761458f83826149b0565b6001600160a01b0382166145a65761112c81614a4d565b826001600160a01b0316826001600160a01b03161461112c5761112c8282614afc565b60408051600580825260c082019092526000916020820160a0803683370190505090506145f582611fea565b90508060008151811061460a5761460a6157d1565b60200260200101516011600084815260200190815260200160002060000160006101000a81548163ffffffff021916908363ffffffff16021790555080600181518110614659576146596157d1565b60200260200101516011600084815260200190815260200160002060000160046101000a81548163ffffffff021916908363ffffffff160217905550806002815181106146a8576146a86157d1565b60200260200101516011600084815260200190815260200160002060000160086101000a81548163ffffffff021916908363ffffffff160217905550806003815181106146f7576146f76157d1565b602002602001015160116000848152602001908152602001600020600001600c6101000a81548163ffffffff021916908363ffffffff16021790555080600481518110614746576147466157d1565b60200260200101516011600084815260200190815260200160002060000160106101000a81548163ffffffff021916908363ffffffff1602179055505050565b60155460ff1615613ab357600081815260116020526040902054600a600160801b90910463ffffffff161015613ab35760008181526011602052604090208054600160801b900463ffffffff1690819060106147e18361573a565b91906101000a81548163ffffffff021916908363ffffffff160217905550506040516148269072436f6d6d756e69636174696f6e536b696c6c7360681b815260130190565b60408051918290038220600085815260116020908152908390205463ffffffff8087168652600160801b90910416908401529184916000805160206158148339815191529101613c79565b6001600160a01b0382166148c75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d59565b6148d081613df6565b1561491d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d59565b61492960008383614387565b6001600160a01b03821660009081526003602052604081208054600192906149529084906155cd565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060016149bd8461211c565b6149c79190615662565b600083815260076020526040902054909150808214614a1a576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090614a5f90600190615662565b60008381526009602052604081205460088054939450909284908110614a8757614a876157d1565b906000526020600020015490508060088381548110614aa857614aa86157d1565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480614ae057614ae06157bb565b6001900381819060005260206000200160009055905550505050565b6000614b078361211c565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054614b4c906156e4565b90600052602060002090601f016020900481019282614b6e5760008555614bb4565b82601f10614b8757805160ff1916838001178555614bb4565b82800160010185558215614bb4579182015b82811115614bb4578251825591602001919060010190614b99565b50614bc0929150614bc4565b5090565b5b80821115614bc05760008155600101614bc5565b60006001600160401b03831115614bf257614bf26157e7565b614c05601f8401601f191660200161557a565b9050828152838383011115614c1957600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114611b1557600080fd5b600082601f830112614c5857600080fd5b81356020614c6d614c68836155aa565b61557a565b80838252828201915082860187848660051b8901011115614c8d57600080fd5b60005b85811015614cac57813584529284019290840190600101614c90565b5090979650505050505050565b600082601f830112614cca57600080fd5b6139f583833560208501614bd9565b803563ffffffff81168114611b1557600080fd5b600060208284031215614cff57600080fd5b6139f582614c30565b60008060408385031215614d1b57600080fd5b614d2483614c30565b9150614d3260208401614c30565b90509250929050565b600080600060608486031215614d5057600080fd5b614d5984614c30565b9250614d6760208501614c30565b9150604084013590509250925092565b60008060008060808587031215614d8d57600080fd5b614d9685614c30565b9350614da460208601614c30565b92506040850135915060608501356001600160401b03811115614dc657600080fd5b8501601f81018713614dd757600080fd5b614de687823560208401614bd9565b91505092959194509250565b60008060408385031215614e0557600080fd5b614e0e83614c30565b915060208301358015158114614e2357600080fd5b809150509250929050565b60008060408385031215614e4157600080fd5b614e4a83614c30565b946020939093013593505050565b60006020808385031215614e6b57600080fd5b82356001600160401b03811115614e8157600080fd5b8301601f81018513614e9257600080fd5b8035614ea0614c68826155aa565b80828252848201915084840188868560051b8701011115614ec057600080fd5b600094505b83851015614eea57614ed681614c30565b835260019490940193918501918501614ec5565b50979650505050505050565b600060208284031215614f0857600080fd5b81356001600160401b03811115614f1e57600080fd5b613f5284828501614c47565b600080600060608486031215614f3f57600080fd5b83356001600160401b03811115614f5557600080fd5b614f6186828701614c47565b93505060208401359150614f7760408501614cd9565b90509250925092565b600060208284031215614f9257600080fd5b81356139f5816157fd565b600060208284031215614faf57600080fd5b81516139f5816157fd565b600060208284031215614fcc57600080fd5b81356001600160401b03811115614fe257600080fd5b613f5284828501614cb9565b60006020828403121561500057600080fd5b5035919050565b6000806040838503121561501a57600080fd5b8235915060208301356001600160401b0381111561503757600080fd5b61504385828601614cb9565b9150509250929050565b60008060006060848603121561506257600080fd5b8335925060208401356001600160401b038082111561508057600080fd5b61508c87838801614cb9565b935060408601359150808211156150a257600080fd5b506150af86828701614cb9565b9150509250925092565b600080604083850312156150cc57600080fd5b50508035926020909101359150565b600080604083850312156150ee57600080fd5b82359150614d3260208401614cd9565b60006020828403121561511057600080fd5b81356001600160401b03811681146139f557600080fd5b6000815180845261513f8160208601602086016156a1565b601f01601f19169290920160200192915050565b600081516151658185602086016156a1565b9290920192915050565b600082516151818184602087016156a1565b9190910192915050565b600080845481600182811c9150808316806151a757607f831692505b60208084108214156151c757634e487b7160e01b86526022600452602486fd5b8180156151db57600181146151ec57615219565b60ff19861689528489019650615219565b60008b81526020902060005b868110156152115781548b8201529085019083016151f8565b505084890196505b50505050505061523d61522c8286615153565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061527990830184615127565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156152c45783516001600160a01b03168352928401929184019160010161529f565b50909695505050505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561532557603f19888603018452615313858351615127565b945092850192908501906001016152f7565b5092979650505050505050565b6020808252825182820181905260009190848201906040850190845b818110156152c45783518352928401929184019160010161534e565b6020808252825182820181905260009190848201906040850190845b818110156152c457835163ffffffff1683529284019291840191600101615386565b6020815260006139f56020830184615127565b6040815260006153ce6040830185615127565b828103602084015261523d8185615127565b60208082526026908201527f5265717565737420636861726163746572206973206e6f7420617661696c61626040820152651b19481e595d60d21b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526025908201527f5265717565737420746f6b656e2068617320616c7265616479206265656e206d6040820152641a5b9d195960da1b606082015260800190565b6020808252601e908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f191681016001600160401b03811182821017156155a2576155a26157e7565b604052919050565b60006001600160401b038211156155c3576155c36157e7565b5060051b60200190565b600082198211156155e0576155e061578f565b500190565b600063ffffffff8083168185168083038211156156045761560461578f565b01949350505050565b60006001600160401b038083168185168083038211156156045761560461578f565b60008261563e5761563e6157a5565b500490565b600081600019048311821515161561565d5761565d61578f565b500290565b6000828210156156745761567461578f565b500390565b60006001600160401b03838116908316818110156156995761569961578f565b039392505050565b60005b838110156156bc5781810151838201526020016156a4565b83811115612e2e5750506000910152565b6000816156dc576156dc61578f565b506000190190565b600181811c908216806156f857607f821691505b6020821081141561571957634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156157335761573361578f565b5060010190565b600063ffffffff808316818114156157545761575461578f565b6001019392505050565b60006001600160401b03808316818114156157545761575461578f565b60008261578a5761578a6157a5565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114613ab357600080fdfeac0ccfe77cdfdb440579f367b2373c87a9b88ddfc59b0a307f7888451ba3379fa264697066735822122037c5bbd061ecb813307fb050c4f4026a192b2535f1cd50c28e011fa9c777263d64736f6c63430008070033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000b1a2bc2ec5000000000000000000000000000000000000000000000000000000f8b0a10e47000000000000000000000000000000000000000000000000000000000000000001900000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000002f68747470733a2f2f686f6b61676f2d6a736f6e2e73332e75732d776573742d312e616d617a6f6e6177732e636f6d2f0000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _preSalePriceWei (uint64): 50000000000000000
Arg [1] : _publicSalePriceWei (uint64): 70000000000000000
Arg [2] : _saleLimit (uint64): 400
Arg [3] : _baseTokenURI (string): https://hokago-json.s3.us-west-1.amazonaws.com/

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000b1a2bc2ec50000
Arg [1] : 00000000000000000000000000000000000000000000000000f8b0a10e470000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000190
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [4] : 000000000000000000000000000000000000000000000000000000000000002f
Arg [5] : 68747470733a2f2f686f6b61676f2d6a736f6e2e73332e75732d776573742d31
Arg [6] : 2e616d617a6f6e6177732e636f6d2f0000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.