ETH Price: $2,472.38 (+0.73%)
 

Overview

Max Total Supply

6,472 CnM

Holders

415

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 CnM
0x20f8b8b376853851f84a85892fbba40c1c02dd1c
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
CnM

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : CnM.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "./interfaces/ICnM.sol";
import "./interfaces/IHabitat.sol";
import "./interfaces/ITraits.sol";
import "./interfaces/IRandomizer.sol";

contract CnM is ICnM, ERC721Enumerable, Ownable, Pausable {
    struct LastWrite {
        uint64 time;
        uint64 blockNum;
    }

    event TokenMinted(address indexed owner, uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp);
    event TestTokenMinted(address indexed owner, uint256 indexed tokenId);

    event CatMinted(address indexed owner, uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp);
    event CrazyCatLadyMinted(address indexed owner, uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp);
    event MouseMinted(address indexed owner, uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp);

    event CatStolen(uint256 indexed tokenId, address indexed owner, address indexed previous, uint256 blockNum, uint256 timeStamp);
    event CrazyCatLadyStolen(uint256 indexed tokenId, address indexed owner, address indexed previous, uint256 blockNum, uint256 timeStamp);
    event MouseStolen(uint256 indexed tokenId, address indexed owner, address indexed previous, uint256 blockNum, uint256 timeStamp);

    event CatBurned(uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp);
    event CrazyCatLadyBurned(uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp);
    event MouseBurned(uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp);

    event CatStaked(address indexed owner, uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp);
    event CrazyCatLadyStaked(address indexed owner, uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp);
    event MouseStaked(address indexed owner, uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp);

    event CatUnStaked(address indexed owner, uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp);
    event CrazyCatLadyUnStaked(address indexed owner, uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp);
    event MouseUnStaked(address indexed owner, uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp);
    event RollChanged(address indexed owner, uint256 tokenId, uint8 roll);

    // max number of tokens that can be minted: 50,000 in production
    uint256 public maxTokens;
    // number of tokens that minted by ethereum - initial 10,000
    uint256 public PAID_TOKENS;
    // number of tokens have been minted so far
    uint16 public override minted;
    // mapping tokenId => token's traits
    mapping(uint256 => CatMouse) private tokenTraits;
    // mapping from hashed(tokenTrait) to the tokenId it's associated with
    // used to ensure there are no duplicates
    mapping(uint256 => uint256) public existingCombinations;
    // Tracks the last block and timestamp that a caller has written to state.
    // Disallow some access to functions if they occur while a change is being written.
    mapping(address => LastWrite) private lastWriteAddress;
    mapping(uint256 => LastWrite) private lastWriteToken;

    // list of probabilities for each trait type
    // 0 - 12 are associated with Cats , 13 - 25 are Crazy Cat Lady, 26 - 38 are associated with Mice
    uint8[][39] public rarities;
    // list of aliases for Walker's Alias algorithm
    // 0 - 12 are associated with Cats , 13 - 25 are Crazy Cat Lady, 26 - 38 are associated with Mice
    uint8[][39] public aliases;

    // reference to the Habitat contract to allow transfers to it without any approval
    IHabitat public habitat;
    // reference to Traits
    ITraits public traits;
    // reference to Randomizer
    IRandomizer public randomizer;
    // mapping address => allowedToCallFunctions
    mapping(address => bool) private admins;


    constructor(uint256 _maxTokens) ERC721("Cat & Mouse game", "CnM") {
        updateMaxToken(_maxTokens);
        _pause();

        // A.J. Walker's Alias Algorithm


        // Cats

        // body
        rarities[0] = [80];
        aliases[0] = [4];
        // color
        rarities[1] = [150, 40, 240, 90, 115];
        aliases[1] = [0, 1, 2, 3, 4];
        // eyes
        rarities[2] = [255, 135, 60, 130, 190, 156, 250, 120, 60, 25, 190];
        aliases[2] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
        // eyebrows
        rarities[3] = [221];
        aliases[3] = [1];
        // neck
        rarities[4] = [175];
        aliases[4] = [3];
        // glasses
        rarities[5] = [80];
        aliases[5] = [1];
        // hair
        rarities[6] = [255];
        aliases[6] = [0];
        // head
        rarities[7] = [243];
        aliases[7] = [1];
        // markings
        rarities[8] = [243, 189, 50];
        aliases[8] = [0, 1, 2];
        // mouth
        rarities[9] = [243, 124, 107];
        aliases[9] = [0, 1, 2];
        // nose
        rarities[10] = [243];
        aliases[10] = [1];
        // props
        rarities[11] = [243, 115, 178, 120, 36, 56, 78];
        aliases[11] = [0, 1, 2, 3, 4, 5, 6];
        // shirts
        rarities[12] = [243];
        aliases[12] = [1];


        // Crazy

        // body
        rarities[13] = [80, 40];
        aliases[13] = [0, 1];
        // color
        rarities[14] = [150];
        aliases[14] = [3];
        // eyes
        rarities[15] = [255, 135];
        aliases[15] = [0, 1];
        // eyebrows
        rarities[16] = [221, 100, 181];
        aliases[16] = [0, 1, 2];
        // neck
        rarities[17] = [175];
        aliases[17] = [3];
        // glasses
        rarities[18] = [80, 225, 220];
        aliases[18] = [0, 1, 2];
        // hair
        rarities[19] = [243, 189, 50, 30, 55, 180, 80, 90];
        aliases[19] = [0, 1, 2, 3, 4, 5, 6, 7];
        // head
        rarities[20] = [243];
        aliases[20] = [1];
        // markings
        rarities[21] = [243];
        aliases[21] = [1];
        // mouth
        rarities[22] = [243];
        aliases[22] = [1];
        // nose
        rarities[23] = [243];
        aliases[23] = [1];
        // props
        rarities[24] = [243];
        aliases[24] = [1];
        // shirts
        rarities[25] = [30, 222, 255];
        aliases[25] = [0, 1, 2];


        // Mice

        // body
        rarities[26] = [150, 40, 240, 90];
        aliases[26] = [0, 1, 2, 3];
        // color
        rarities[27] = [150, 241, 40, 240, 90, 115, 135, 40, 199, 100];
        aliases[27] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
        // eyes
        rarities[28] = [135, 60, 130, 190, 156, 250, 120, 60, 25, 190];
        aliases[28] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
        // eyebrows
        rarities[29] = [221];
        aliases[29] = [1];
        // neck
        rarities[30] = [175];
        aliases[30] = [3];
        // glasses
        rarities[31] = [80];
        aliases[31] = [1];
        // hair
        rarities[32] = [255];
        aliases[32] = [0];
        // head
        rarities[33] = [243, 189, 50, 30, 55, 180, 80, 90, 155];
        aliases[33] = [0, 1, 2, 3, 4, 5, 6, 7, 8];
        // markings
        rarities[34] = [24];
        aliases[34] = [1];
        // mouth
        rarities[35] = [90, 155, 30, 222, 255];
        aliases[35] = [0, 1, 2, 3, 4];
        // nose
        rarities[36] = [80, 255];
        aliases[36] = [0, 1];
        // props
        rarities[37] = [243];
        aliases[37] = [1];
        // shirts
        rarities[38] = [243];
        aliases[38] = [1];
    }
    /** CRITICAL TO SETUP / MODIFIERS */
    modifier requireContractsSet() {
        require(address(traits) != address(0) && address(habitat) != address(0) && address(randomizer) != address(0), "Contracts not set");
        _;
    }
    modifier blockIfChangingAddress() {
        // frens can always call whenever they want :)
        require(admins[_msgSender()] || lastWriteAddress[tx.origin].blockNum < block.number, "hmmmm what doing?");
        _;
    }
    modifier blockIfChangingToken(uint256 tokenId) {
        // frens can always call whenever they want :)
        require(admins[_msgSender()] || lastWriteToken[tokenId].blockNum < block.number, "hmmmm what doing?");
        _;
    }
    function setContracts(address _traits, address _habitat, address _rand) external onlyOwner {
        traits = ITraits(_traits);
        habitat = IHabitat(_habitat);
        randomizer = IRandomizer(_rand);
    }

    function getTokenWriteBlock(uint256 tokenId) external view override returns (uint64) {
        require(admins[_msgSender()], "Only admins can call this");
        return lastWriteToken[tokenId].blockNum;
    }
    /**
    * Mint a token - any payment / game logic should be handled in the game contract.
    * This will just generate random traits and mint a token to a designated address.
    */
    function mint(address recipient, uint256 seed) external override whenNotPaused {
        require(admins[_msgSender()], "Only admins can call this");
        require(minted + 1 <= maxTokens, "All tokens minted");
        minted++;
        generate(recipient, minted, seed, lastWriteAddress[tx.origin]);
        if (tx.origin != recipient && recipient != address(habitat)) {
            // Stolen!
            if (tokenTraits[minted].isCat) {
                if (tokenTraits[minted].isCrazy) {
                    emit CrazyCatLadyStolen(minted, recipient, tx.origin, block.number, block.timestamp);
                } else {
                    emit CatStolen(minted, recipient, tx.origin, block.number, block.timestamp);
                }
            }
            else {
                emit MouseStolen(minted, recipient, tx.origin, block.number, block.timestamp);
            }
        }
        _safeMint(recipient, minted);
    }
    /**
   * generates traits for a specific token, checking to make sure it's unique
   * @param tokenId the id of the token to generate traits for
    * @param seed a pseudorandom 256 bit number to derive traits from
    * @return t - a struct of traits for the given token ID
    */
    function generate(address recipient, uint256 tokenId, uint256 seed, LastWrite memory lw) internal returns (CatMouse memory t){
        t = selectTraits(seed);
        t.roll = 0;
        if (existingCombinations[structToHash(t)] == 0) {
            tokenTraits[tokenId] = t;
            existingCombinations[structToHash(t)] = tokenId;
            emit TokenMinted(recipient, tokenId, block.number, block.timestamp);
            emit TestTokenMinted(recipient, tokenId);
            if (t.isCat) {
                if (t.isCrazy) {
                    emit CrazyCatLadyMinted(recipient, tokenId, block.number, block.timestamp);
                } else {
                    emit CatMinted(recipient, tokenId, block.number, block.timestamp);
                }
            } else {
                emit MouseMinted(recipient, tokenId, block.number, block.timestamp);
            }
            return t;
        }
        return generate(recipient, tokenId, randomizer.random(), lw);
    }

    /**
    * selects the species and all of its traits based on the seed value
    * @param seed a pseudorandom 256 bit number to derive traits from
    * @return t -  a struct of randomly selected traits
    */
    function selectTraits(uint256 seed) internal view returns (CatMouse memory t) {
        // Mouse & Cat percet is 90% & 10%
        t.isCat = uint16(seed & 0xFFFF) % 100 < 10;
        if (minted > PAID_TOKENS) {
            if (t.isCat) {
                // CrazyCats has 20% chance of cats to be minted
                t.isCrazy = (seed & 0xFFFF) % 10 < 2;
            } else {
                // CrazyCat is only true when it is cat
                t.isCrazy = false;
            }
        } else {
            // CrazyCat only minted after 10000 NFTs are minted
            t.isCrazy = false;
        }
        uint8 shift = t.isCat ? t.isCrazy ? 13 : 0 : 26;
        seed >>= 16;
        t.body = selectTrait(uint16(seed & 0xFFFF), 0 + shift);
        seed >>= 16;
        t.color = selectTrait(uint16(seed & 0xFFFF), 1 + shift);
        seed >>= 16;
        t.eyes = selectTrait(uint16(seed & 0xFFFF), 2 + shift);
        seed >>= 16;
        t.eyebrows = selectTrait(uint16(seed & 0xFFFF), 3 + shift);
        seed >>= 16;
        t.neck = selectTrait(uint16(seed & 0xFFFF), 4 + shift);
        seed >>= 16;
        t.glasses = selectTrait(uint16(seed & 0xFFFF), 5 + shift);
        seed >>= 16;
        t.hair = selectTrait(uint16(seed & 0xFFFF), 6 + shift);
        seed >>= 16;
        t.head = selectTrait(uint16(seed & 0xFFFF), 7 + shift);
        seed >>= 16;
        t.markings = selectTrait(uint16(seed & 0xFFFF), 8 + shift);
        seed >>= 16;
        t.mouth = selectTrait(uint16(seed & 0xFFFF), 9 + shift);
        seed >>= 16;
        t.nose = selectTrait(uint16(seed & 0xFFFF), 10 + shift);
        seed >>= 16;
        t.props = selectTrait(uint16(seed & 0xFFFF), 11 + shift);
        seed >>= 16;
        t.shirts = selectTrait(uint16(seed & 0xFFFF), 12 + shift);
        return t;
    }
    /**
    * uses A.J. Walker's Alias algorithm for O(1) rarity table lookup
    * ensuring O(1) instead of O(n) reduces mint cost by more than 50%
    * probability & alias tables are generated off-chain beforehand
    * @param seed portion of the 256 bit seed to remove trait correlation
    * @param traitType the trait type to select a trait for
    * @return the ID of the randomly selected trait
    */
    function selectTrait(uint16 seed, uint8 traitType) internal view returns (uint8) {
        uint8 trait = uint8(seed) % uint8(rarities[traitType].length);
        /* // If a selected random trait probability is selected (biased coin) return that trait
         if (seed >> 8 < rarities[traitType][trait]) return trait;
         return aliases[traitType][trait];*/
        return aliases[traitType][trait];
    }
    /**
    * converts a struct to a 256 bit hash to check for uniqueness
    * @param s the struct to pack into a hash
    * @return the 256 bit hash of the struct
    */
    function structToHash(CatMouse memory s) internal pure returns (uint256) {
        return uint256(keccak256(
                abi.encodePacked(
                    s.body,
                    s.color,
                    s.eyes,
                    s.eyebrows,
                    s.neck,
                    s.glasses,
                    s.hair,
                    s.head,
                    s.markings,
                    s.mouth,
                    s.nose,
                    s.props,
                    s.shirts
                )
            ));
    }
    /**
    * Burn a token - any game logic should be handled before this function.
    */
    function burn(uint256 tokenId) external override whenNotPaused {
        require(admins[_msgSender()], "Only admins can call this");
        _burn(tokenId);
        minted -= 1;
        if (tokenTraits[tokenId].isCat) {
            if (tokenTraits[tokenId].isCrazy) {
                emit CrazyCatLadyBurned(tokenId, block.number, block.timestamp);
            } else {
                emit CatBurned(tokenId, block.number, block.timestamp);
            }
        } else {
            emit MouseBurned(tokenId, block.number, block.timestamp);
        }
    }
    /**
    * Set roll to the Mouse
    */
    /*    function setRoll(uint256 seed, uint256 tokenId, address addr) external override whenNotPaused {
            ICnM.CatMouse memory s = tokenTraits[tokenId];
            *//*
        * Odds to Roll:
        * Habitatless: Default
        * Shack: 70%
        * Ranch: 20%
        * Mansion: 10%
        *//*

        if ((seed & 0xFFFF) % 100 < 10) {
            s.roll = 3;
        } else if ((seed & 0xFFFF) % 100 < 30) {
            s.roll = 2;
        } else {
            s.roll = 1;
        }
    }*/

    function setRoll(uint256 tokenId, uint8 habitatType) external override whenNotPaused {
        require(admins[_msgSender()], "Only admins can call this");
        if (!tokenTraits[tokenId].isCat) {
            tokenTraits[tokenId].roll = habitatType;
            emit RollChanged(msg.sender, tokenId, habitatType);
        }
    }

    /**
    * emit cat stacked event
    * @param tokenId the ID of the token stacked
    */
    function emitCatStakedEvent(address owner, uint256 tokenId) external override whenNotPaused {
        emit CatStaked(owner, tokenId, block.number, block.timestamp);
    }

    /**
    * emit crazy cat stacked event
    * @param tokenId the ID of the token stacked
    */
    function emitCrazyCatStakedEvent(address owner, uint256 tokenId) external override whenNotPaused {
        emit CrazyCatLadyStaked(owner, tokenId, block.number, block.timestamp);
    }

    /**
    * emit mouse stacked event
    * @param tokenId the ID of the token stacked
    */
    function emitMouseStakedEvent(address owner, uint256 tokenId) external override whenNotPaused {
        emit MouseStaked(owner, tokenId, block.number, block.timestamp);
    }

    //----------------friedrich--------------
    /**
    * emit cat stacked event
    * @param tokenId the ID of the token stacked
    */
    function emitCatUnStakedEvent(address owner, uint256 tokenId) external override whenNotPaused {
        emit CatUnStaked(owner, tokenId, block.number, block.timestamp);
    }

    /**
    * emit crazy cat stacked event
    * @param tokenId the ID of the token stacked
    */
    function emitCrazyCatUnStakedEvent(address owner, uint256 tokenId) external override whenNotPaused {
        emit CrazyCatLadyUnStaked(owner, tokenId, block.number, block.timestamp);
    }

    /**
    * emit mouse stacked event
    * @param tokenId the ID of the token stacked
    */
    function emitMouseUnStakedEvent(address owner, uint256 tokenId) external override whenNotPaused {
        emit MouseUnStaked(owner, tokenId, block.number, block.timestamp);
    }
    //---------------------------------------------

    function updateOriginAccess(uint16[] memory tokenIds) external override {
        require(admins[_msgSender()], "Only admins can call this");
        uint64 blockNum = uint64(block.number);
        uint64 time = uint64(block.timestamp);
        lastWriteAddress[tx.origin] = LastWrite(time, blockNum);
        for (uint256 i = 0; i < tokenIds.length; i++) {
            lastWriteToken[tokenIds[i]] = LastWrite(time, blockNum);
        }
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override(ERC721, IERC721) blockIfChangingToken(tokenId) {
        // allow admin contracts to be send without approval
        if (!admins[_msgSender()]) {
            require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        }
        _transfer(from, to, tokenId);
    }
    /**
    * checks if a token is a Cat/Mouse
    * @param tokenId the ID of the token to check
    * @return bool - whether or not a token is a Cat
    */
    function isCat(uint256 tokenId) external view override blockIfChangingToken(tokenId) returns (bool) {
        // Sneaky cats will be slain if they try to peep this after mint. Nice try.
        ICnM.CatMouse memory s = tokenTraits[tokenId];
        return s.isCat;
    }

    function isClaimable() external view override returns (bool) {
        return minted > PAID_TOKENS;
    }
    /**
    * checks if a token is a CrazyCatLady
    * @param tokenId the ID of the token to check
    * @return bool - whether or not a token is a CrazyCatLady
    */
    function isCrazyCatLady(uint256 tokenId) external view override blockIfChangingToken(tokenId) returns (bool) {
        // Sneaky cats will be slain if they try to peep this after mint. Nice try.
        ICnM.CatMouse memory s = tokenTraits[tokenId];
        return s.isCrazy;
    }

    /**
    * returns the value of Mouse NFT's roll
    * @param tokenId the ID of the token to check
    * @return uint8 - 0, 1, 2, 3
    */
    function getTokenRoll(uint256 tokenId) external view override returns (uint8) {
        ICnM.CatMouse memory s = tokenTraits[tokenId];
        return s.roll;
    }

    function getMaxTokens() external view override returns (uint256) {
        return maxTokens;
    }

    function getPaidTokens() external view override returns (uint256) {
        return PAID_TOKENS;
    }
    /** ADMIN */
    /**
    * updates the number of tokens for sale
    */
    function setPaidTokens(uint256 _paidTokens) external onlyOwner {
        PAID_TOKENS = uint16(_paidTokens);
    }
    /**
    * enables owner to pause / unpause minting
    */
    function setPaused(bool _paused) external requireContractsSet onlyOwner {
        if (_paused) _pause();
        else _unpause();
    }
    /**
    * enables an address to mint / burn
    * @param addr the address to enable
    */
    function addAdmin(address addr) external onlyOwner {
        admins[addr] = true;
    }
    /**
    * disables an address from minting / burning
    * @param addr the address to disbale
    */
    function removeAdmin(address addr) external onlyOwner {
        admins[addr] = false;
    }

    /** Traits */

    function getTokenTraits(uint256 tokenId) external view override blockIfChangingAddress blockIfChangingToken(tokenId) returns (CatMouse memory) {
        return tokenTraits[tokenId];
    }

    function tokenURI(uint256 tokenId) public view override blockIfChangingAddress blockIfChangingToken(tokenId) returns (string memory) {
        require(_exists(tokenId), "Token ID does not exist");
        return traits.tokenURI(tokenId);
    }
    /** OVERRIDES FOR SAFETY */

    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override(ERC721Enumerable, IERC721Enumerable) blockIfChangingAddress returns (uint256) {
        // Y U checking on this address in the same block it's being modified... hmmmm
        require(admins[_msgSender()] || lastWriteAddress[owner].blockNum < block.number, "hmmmm what doing?");
        uint256 tokenId = super.tokenOfOwnerByIndex(owner, index);
        require(admins[_msgSender()] || lastWriteToken[tokenId].blockNum < block.number, "hmmmm what doing?");
        return tokenId;
    }

    function balanceOf(address owner) public view virtual override(ERC721, IERC721) blockIfChangingAddress returns (uint256) {
        // Y U checking on this address in the same block it's being modified... hmmmm
        require(admins[_msgSender()] || lastWriteAddress[owner].blockNum < block.number, "hmmmm what doing?");
        return super.balanceOf(owner);
    }


    function ownerOf(uint256 tokenId) public view virtual override(ERC721, IERC721) blockIfChangingAddress blockIfChangingToken(tokenId) returns (address) {
        address addr = super.ownerOf(tokenId);
        // Y U checking on this address in the same block it's being modified... hmmmm
        require(admins[_msgSender()] || lastWriteAddress[addr].blockNum < block.number, "hmmmm what doing?");
        return addr;
    }


    function tokenByIndex(uint256 index) public view virtual override(ERC721Enumerable, IERC721Enumerable) returns (uint256) {
        uint256 tokenId = super.tokenByIndex(index);
        // NICE TRY TOAD DRAGON
        require(admins[_msgSender()] || lastWriteToken[tokenId].blockNum < block.number, "hmmmm what doing?");
        return tokenId;
    }

    function approve(address to, uint256 tokenId) public virtual override(ERC721, IERC721) blockIfChangingToken(tokenId) {
        super.approve(to, tokenId);
    }

    function getApproved(uint256 tokenId) public view virtual override(ERC721, IERC721) blockIfChangingToken(tokenId) returns (address) {
        return super.getApproved(tokenId);
    }

    function setApprovalForAll(address operator, bool approved) public virtual override(ERC721, IERC721) blockIfChangingAddress {
        super.setApprovalForAll(operator, approved);
    }

    function isApprovedForAll(address owner, address operator) public view virtual override(ERC721, IERC721) blockIfChangingAddress returns (bool) {
        return super.isApprovedForAll(owner, operator);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override(ERC721, IERC721) blockIfChangingToken(tokenId) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override(ERC721, IERC721) blockIfChangingToken(tokenId) {
        super.safeTransferFrom(from, to, tokenId, _data);
    }

    function updateMaxToken(uint256 limit) public onlyOwner {
        maxTokens = limit;
        PAID_TOKENS = limit / 5;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev 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 3 of 18 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 4 of 18 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 5 of 18 : ICnM.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

interface ICnM is IERC721Enumerable {
    
    // Character NFT struct
    struct CatMouse {
        bool isCat; // true if cat
        bool isCrazy; // true if cat is CrazyCatLady, only check if isCat equals to true
        uint8 roll; //0 - habitatless, 1 - Shack, 2 - Ranch, 3 - Mansion

        uint8 body;
        uint8 color;
        uint8 eyes;
        uint8 eyebrows;
        uint8 neck;
        uint8 glasses;
        uint8 hair;
        uint8 head;
        uint8 markings;
        uint8 mouth;
        uint8 nose;
        uint8 props;
        uint8 shirts;
    }

    function getTokenWriteBlock(uint256 tokenId) external view returns(uint64);
    function mint(address recipient, uint256 seed) external;
    // function setRoll(uint256 seed, uint256 tokenId, address addr) external;
    function setRoll(uint256 tokenId, uint8 habitatType) external;

    function emitCatStakedEvent(address owner,uint256 tokenId) external;
    function emitCrazyCatStakedEvent(address owner, uint256 tokenId) external;
    function emitMouseStakedEvent(address owner, uint256 tokenId) external;
    
    function emitCatUnStakedEvent(address owner, uint256 tokenId) external;
    function emitCrazyCatUnStakedEvent(address owner, uint256 tokenId) external;
    function emitMouseUnStakedEvent(address owner, uint256 tokenId) external;
    
    function burn(uint256 tokenId) external;
    function getPaidTokens() external view returns (uint256);
    function updateOriginAccess(uint16[] memory tokenIds) external;
    function isCat(uint256 tokenId) external view returns(bool);
    function isClaimable() external view returns(bool);
    function isCrazyCatLady(uint256 tokenId) external view returns(bool);
    function getTokenRoll(uint256 tokenId) external view returns(uint8);
    function getMaxTokens() external view returns (uint256);
    function getTokenTraits(uint256 tokenId) external view returns (CatMouse memory);
    function minted() external view returns (uint16);
}

File 6 of 18 : IHabitat.sol
// SPDX-License-Identifier: MIT LICENSE 

pragma solidity ^0.8.0;

interface IHabitat {
  function addManyToStakingPool(address account, uint16[] calldata tokenIds) external;
  function addManyHouseToStakingPool(address account, uint16[] calldata tokenIds) external;
  function randomCatOwner(uint256 seed) external view returns (address);
  function randomCrazyCatOwner(uint256 seed) external view returns (address);
  function isOwner(uint256 tokenId, address owner) external view returns (bool);
}

File 7 of 18 : ITraits.sol
// SPDX-License-Identifier: MIT LICENSE 

pragma solidity ^0.8.0;

interface ITraits {
  function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 8 of 18 : IRandomizer.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.0;

interface IRandomizer {
    function commitId() external view returns (uint16);
    function getCommitRandom(uint16 id) external view returns (uint256);
    function random() external returns (uint256);
    function sRandom(uint256 tokenId) external returns (uint256);
}

File 9 of 18 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 10 of 18 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev 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 {}
}

File 11 of 18 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 tokenId);

    /**
     * @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 12 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

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

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

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

File 13 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 14 of 18 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 15 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 16 of 18 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 17 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 18 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_maxTokens","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"CatBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"CatMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"CatStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"previous","type":"address"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"CatStolen","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"CatUnStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"CrazyCatLadyBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"CrazyCatLadyMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"CrazyCatLadyStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"previous","type":"address"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"CrazyCatLadyStolen","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"CrazyCatLadyUnStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"MouseBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"MouseMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"MouseStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"previous","type":"address"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"MouseStolen","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"MouseUnStaked","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"roll","type":"uint8"}],"name":"RollChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TestTokenMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"TokenMinted","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"PAID_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"addAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"aliases","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"emitCatStakedEvent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"emitCatUnStakedEvent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"emitCrazyCatStakedEvent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"emitCrazyCatUnStakedEvent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"emitMouseStakedEvent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"emitMouseUnStakedEvent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"existingCombinations","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":[],"name":"getMaxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPaidTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenRoll","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenTraits","outputs":[{"components":[{"internalType":"bool","name":"isCat","type":"bool"},{"internalType":"bool","name":"isCrazy","type":"bool"},{"internalType":"uint8","name":"roll","type":"uint8"},{"internalType":"uint8","name":"body","type":"uint8"},{"internalType":"uint8","name":"color","type":"uint8"},{"internalType":"uint8","name":"eyes","type":"uint8"},{"internalType":"uint8","name":"eyebrows","type":"uint8"},{"internalType":"uint8","name":"neck","type":"uint8"},{"internalType":"uint8","name":"glasses","type":"uint8"},{"internalType":"uint8","name":"hair","type":"uint8"},{"internalType":"uint8","name":"head","type":"uint8"},{"internalType":"uint8","name":"markings","type":"uint8"},{"internalType":"uint8","name":"mouth","type":"uint8"},{"internalType":"uint8","name":"nose","type":"uint8"},{"internalType":"uint8","name":"props","type":"uint8"},{"internalType":"uint8","name":"shirts","type":"uint8"}],"internalType":"struct ICnM.CatMouse","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenWriteBlock","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"habitat","outputs":[{"internalType":"contract IHabitat","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isCat","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isClaimable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isCrazyCatLady","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"seed","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minted","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomizer","outputs":[{"internalType":"contract IRandomizer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"rarities","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"removeAdmin","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_traits","type":"address"},{"internalType":"address","name":"_habitat","type":"address"},{"internalType":"address","name":"_rand","type":"address"}],"name":"setContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_paidTokens","type":"uint256"}],"name":"setPaidTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8","name":"habitatType","type":"uint8"}],"name":"setRoll","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":[],"name":"traits","outputs":[{"internalType":"contract ITraits","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"updateMaxToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"}],"name":"updateOriginAccess","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620056e5380380620056e583398101604081905262000034916200118e565b604080518082018252601081526f4361742026204d6f7573652067616d6560801b602080830191825283518085019094526003845262436e4d60e81b908401528151919291620000879160009162001045565b5080516200009d90600190602084019062001045565b505050620000ba620000b462000ec860201b60201c565b62000ecc565b600a805460ff60a01b19169055620000d28162000f1e565b620000dc62000f96565b604080516020810190915260508152620000fb906012906001620010d4565b506040805160208101909152600481526200011b906039906001620010d4565b506040805160a081018252609681526028602082015260f091810191909152605a60608201526073608082015262000158906013906005620010d4565b506040805160a081018252600081526001602082015260029181019190915260036060820152600460808201526200019590603a906005620010d4565b50604080516101608101825260ff815260876020820152603c9181018290526082606082015260be60808201819052609c60a083015260fa60c0830152607860e083015261010082019290925260196101208201526101408101919091526200020390601490600b620010d4565b50604080516101608101825260008152600160208201526002918101919091526003606082015260046080820152600560a0820152600660c0820152600760e082015260086101008201526009610120820152600a6101408201526200026e90603b90600b620010d4565b50604080516020810190915260dd81526200028e906015906001620010d4565b5060408051602081019091526001808252620002ad91603c91620010d4565b50604080516020810190915260af8152620002cd906016906001620010d4565b50604080516020810190915260038152620002ed90603d906001620010d4565b506040805160208101909152605081526200030d906017906001620010d4565b50604080516020810190915260018082526200032c91603e91620010d4565b50604080516020810190915260ff81526200034c906018906001620010d4565b506040805160208101909152600081526200036c90603f906001620010d4565b50604080516020810190915260f381526200038c906019906001620010d4565b50604080516020810182526001808252620003a9929190620010d4565b506040805160608101825260f3815260bd6020820152603291810191909152620003d890601a906003620010d4565b5060408051606081018252600081526001602082015260029181019190915262000407906041906003620010d4565b506040805160608101825260f38152607c6020820152606b918101919091526200043690601b906003620010d4565b5060408051606081018252600081526001602082015260029181019190915262000465906042906003620010d4565b50604080516020810190915260f381526200048590601c906001620010d4565b5060408051602081019091526001808252620004a491604391620010d4565b506040805160e08101825260f381526073602082015260b2918101919091526078606082015260246080820152603860a0820152604e60c0820152620004ef90601d906007620010d4565b506040805160e08101825260008152600160208201526002918101919091526003606082015260046080820152600560a0820152600660c08201526200053a906044906007620010d4565b50604080516020810190915260f381526200055a90601e906001620010d4565b50604080516020810190915260018082526200057991604591620010d4565b506040805180820190915260508152602860208201526200059f90601f906002620010d4565b50604080518082019091526000815260016020820152620005c5906046906002620010d4565b5060408051602080820190925260968152620005e491906001620010d4565b5060408051602081019091526003815262000604906047906001620010d4565b506040805180820190915260ff8152608760208201526200062a906021906002620010d4565b5060408051808201909152600081526001602082015262000650906048906002620010d4565b506040805160608101825260dd81526064602082015260b5918101919091526200067f906022906003620010d4565b50604080516060810182526000815260016020820152600291810191909152620006ae906049906003620010d4565b50604080516020810190915260af8152620006ce906023906001620010d4565b50604080516020810190915260038152620006ee90604a906001620010d4565b50604080516060810182526050815260e1602082015260dc918101919091526200071d906024906003620010d4565b506040805160608101825260008152600160208201526002918101919091526200074c90604b906003620010d4565b50604080516101008101825260f3815260bd6020820152603291810191909152601e60608201526037608082015260b460a0820152605060c0820152605a60e08201526200079f906025906008620010d4565b50604080516101008101825260008152600160208201526002918101919091526003606082015260046080820152600560a0820152600660c0820152600760e0820152620007f290604c906008620010d4565b50604080516020810190915260f3815262000812906026906001620010d4565b50604080516020810190915260018082526200083191604d91620010d4565b50604080516020810190915260f3815262000851906027906001620010d4565b50604080516020810190915260018082526200087091604e91620010d4565b50604080516020810190915260f3815262000890906028906001620010d4565b5060408051602081019091526001808252620008af91604f91620010d4565b50604080516020810190915260f38152620008cf906029906001620010d4565b5060408051602081019091526001808252620008ee91605091620010d4565b50604080516020810190915260f381526200090e90602a906001620010d4565b50604080516020810190915260018082526200092d91605191620010d4565b5060408051606081018252601e815260de602082015260ff918101919091526200095c90602b906003620010d4565b506040805160608101825260008152600160208201526002918101919091526200098b906052906003620010d4565b5060408051608081018252609681526028602082015260f091810191909152605a6060820152620009c190602c906004620010d4565b5060408051608081018252600081526001602082015260029181019190915260036060820152620009f7906053906004620010d4565b5060408051610140810182526096815260f16020820152602891810182905260f06060820152605a6080820152607360a0820152608760c082015260e081019190915260c7610100820152606461012082015262000a5a90602d90600a620010d4565b50604080516101408101825260008152600160208201526002918101919091526003606082015260046080820152600560a0820152600660c0820152600760e08201526008610100820152600961012082015262000abd90605490600a620010d4565b50604080516101408101825260878152603c6020820181905260829282019290925260be60608201819052609c608083015260fa60a0830152607860c083015260e0820192909252601961010082015261012081019190915262000b2690602e90600a620010d4565b50604080516101408101825260008152600160208201526002918101919091526003606082015260046080820152600560a0820152600660c0820152600760e08201526008610100820152600961012082015262000b8990605590600a620010d4565b50604080516020810190915260dd815262000ba990602f906001620010d4565b506040805160208101909152600180825262000bc891605691620010d4565b50604080516020810190915260af815262000be8906030906001620010d4565b5060408051602081019091526003815262000c08906057906001620010d4565b5060408051602081019091526050815262000c28906031906001620010d4565b506040805160208101909152600180825262000c4791605891620010d4565b50604080516020810190915260ff815262000c67906032906001620010d4565b5060408051602081019091526000815262000c87906059906001620010d4565b50604080516101208101825260f3815260bd6020820152603291810191909152601e60608201526037608082015260b460a0820152605060c0820152605a60e0820152609b61010082015262000ce2906033906009620010d4565b50604080516101208101825260008152600160208201526002918101919091526003606082015260046080820152600560a0820152600660c0820152600760e0820152600861010082015262000d3d90605a906009620010d4565b5060408051602081019091526018815262000d5d906034906001620010d4565b506040805160208101909152600180825262000d7c91605b91620010d4565b506040805160a081018252605a8152609b6020820152601e9181019190915260de606082015260ff608082015262000db9906035906005620010d4565b506040805160a0810182526000815260016020820152600291810191909152600360608201526004608082015262000df690605c906005620010d4565b50604080518082019091526050815260ff602082015262000e1c906036906002620010d4565b5060408051808201909152600081526001602082015262000e4290605d906002620010d4565b50604080516020810190915260f3815262000e62906037906001620010d4565b506040805160208101909152600180825262000e8191605e91620010d4565b50604080516020810190915260f3815262000ea1906038906001620010d4565b506040805160208101909152600180825262000ec091605f91620010d4565b505062001205565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a546001600160a01b0316331462000f7e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600b81905562000f90600582620011a7565b600c5550565b62000faa600a54600160a01b900460ff1690565b1562000fec5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640162000f75565b600a805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620010283390565b6040516001600160a01b03909116815260200160405180910390a1565b8280546200105390620011c8565b90600052602060002090601f016020900481019282620010775760008555620010c2565b82601f106200109257805160ff1916838001178555620010c2565b82800160010185558215620010c2579182015b82811115620010c2578251825591602001919060010190620010a5565b50620010d092915062001177565b5090565b82805482825590600052602060002090601f01602090048101928215620010c25791602002820160005b838211156200113e57835183826101000a81548160ff021916908360ff1602179055509260200192600101602081600001049283019260010302620010fe565b80156200116d5782816101000a81549060ff02191690556001016020816000010492830192600103026200113e565b5050620010d09291505b5b80821115620010d0576000815560010162001178565b600060208284031215620011a0578081fd5b5051919050565b600082620011c357634e487b7160e01b81526012600452602481fd5b500490565b600181811c90821680620011dd57607f821691505b60208210811415620011ff57634e487b7160e01b600052602260045260246000fd5b50919050565b6144d080620012156000396000f3fe608060405234801561001057600080fd5b50600436106103275760003560e01c806370480275116101b8578063bf20740e11610104578063e86eadcd116100a2578063ef34789d1161007c578063ef34789d14610810578063f10fb58414610823578063f2fde38b14610836578063f31c996c1461084957600080fd5b8063e86eadcd146107bf578063e985e9c5146107d2578063ebd17368146107e557600080fd5b8063c87b56dd116100de578063c87b56dd1461077d578063d63a417a14610790578063e1fc334f146107a3578063e8315742146107b657600080fd5b8063bf20740e1461074e578063bf97180b14610761578063c084f5401461077457600080fd5b806395d89b4111610171578063af1af34a1161014b578063af1af34a14610702578063b3066d4914610715578063b631844614610728578063b88d4fde1461073b57600080fd5b806395d89b41146106c7578063a1b8f374146106cf578063a22cb465146106ef57600080fd5b8063704802751461065857806370a082311461066b578063715018a61461067e57806374478bb3146106865780638da5cb5b1461069657806394e56847146106a757600080fd5b80633995acfe116102775780634b584daa116102305780635c975abb1161020a5780635c975abb14610513578063607f454e146105255780636352211e1461063d5780636abcded11461065057600080fd5b80634b584daa146104cc5780634f02c420146104df5780634f6ccce71461050057600080fd5b80633995acfe146104655780634018b1f81461047857806340c10f191461048057806342842e0e1461049357806342966c68146104a65780634354873a146104b957600080fd5b806318160ddd116102e457806333df4b2c116102be57806333df4b2c146104075780633431a7531461042c57806335ca838b1461043f578063368383911461045257600080fd5b806318160ddd146103cf57806323b872dd146103e15780632f745c59146103f457600080fd5b806301ffc9a71461032c57806306fdde0314610354578063081812fc14610369578063095ea7b31461039457806316c38b3c146103a95780631785f53c146103bc575b600080fd5b61033f61033a366004613d62565b61085c565b60405190151581526020015b60405180910390f35b61035c610887565b60405161034b9190613fbd565b61037c610377366004613e03565b610919565b6040516001600160a01b03909116815260200161034b565b6103a76103a2366004613c66565b61098e565b005b6103a76103b7366004613d48565b6109f7565b6103a76103ca366004613ad2565b610ab4565b6008545b60405190815260200161034b565b6103a76103ef366004613b60565b610aff565b6103d3610402366004613c66565b610ba8565b61041a610415366004613e33565b610cd1565b60405160ff909116815260200161034b565b6103a761043a366004613e03565b610d17565b6103a761044d366004613c8f565b610d4a565b61041a610460366004613e33565b610e8a565b6103a7610473366004613c66565b610e9a565b600c546103d3565b6103a761048e366004613c66565b610f0e565b6103a76104a1366004613b60565b6111b2565b6103a76104b4366004613e03565b611217565b61033f6104c7366004613e03565b611396565b6103a76104da366004613c66565b6114ff565b600d546104ed9061ffff1681565b60405161ffff909116815260200161034b565b6103d361050e366004613e03565b61156b565b600a54600160a01b900460ff1661033f565b61041a610533366004613e03565b6000908152600e6020908152604091829020825161020081018452905460ff80821615158352610100808304821615159484019490945262010000820481169483018590526301000000820481166060840152640100000000820481166080840152600160281b8204811660a0840152600160301b8204811660c0840152600160381b8204811660e0840152600160401b8204811693830193909352600160481b81048316610120830152600160501b81048316610140830152600160581b81048316610160830152600160601b81048316610180830152600160681b810483166101a0830152600160701b810483166101c0830152600160781b90049091166101e09091015290565b61037c61064b366004613e03565b6115d2565b600b546103d3565b6103a7610666366004613ad2565b6116f5565b6103d3610679366004613ad2565b611743565b6103a761180c565b600c54600d5461ffff161161033f565b600a546001600160a01b031661037c565b6106ba6106b5366004613e03565b611842565b60405161034b9190614134565b61035c611a0a565b6103d36106dd366004613e03565b600f6020526000908152604090205481565b6103a76106fd366004613c3d565b611a19565b61033f610710366004613e03565b611a7c565b6103a7610723366004613b1e565b611be4565b6103a7610736366004613c66565b611c4d565b6103a7610749366004613b9b565b611cb9565b6103a761075c366004613c66565b611d26565b6103a761076f366004613e03565b611d92565b6103d3600c5481565b61035c61078b366004613e03565b611dd2565b6103a761079e366004613c66565b611f6c565b60615461037c906001600160a01b031681565b6103d3600b5481565b60605461037c906001600160a01b031681565b61033f6107e0366004613aec565b611fd8565b6107f86107f3366004613e03565b61205f565b6040516001600160401b03909116815260200161034b565b6103a761081e366004613c66565b6120b1565b60625461037c906001600160a01b031681565b6103a7610844366004613ad2565b61211d565b6103a7610857366004613e54565b6121b5565b60006001600160e01b0319821663780e9d6360e01b148061088157506108818261228a565b92915050565b60606000805461089690614379565b80601f01602080910402602001604051908101604052809291908181526020018280546108c290614379565b801561090f5780601f106108e45761010080835404028352916020019161090f565b820191906000526020600020905b8154815290600101906020018083116108f257829003601f168201915b5050505050905090565b33600090815260636020526040812054829060ff1680610957575060008181526011602052604090205443600160401b9091046001600160401b0316105b61097c5760405162461bcd60e51b815260040161097390614059565b60405180910390fd5b610985836122da565b91505b50919050565b33600090815260636020526040902054819060ff16806109cc575060008181526011602052604090205443600160401b9091046001600160401b0316105b6109e85760405162461bcd60e51b815260040161097390614059565b6109f2838361236f565b505050565b6061546001600160a01b031615801590610a1b57506060546001600160a01b031615155b8015610a3157506062546001600160a01b031615155b610a715760405162461bcd60e51b815260206004820152601160248201527010dbdb9d1c9858dd1cc81b9bdd081cd95d607a1b6044820152606401610973565b600a546001600160a01b03163314610a9b5760405162461bcd60e51b8152600401610973906140ae565b8015610aac57610aa9612480565b50565b610aa9612502565b600a546001600160a01b03163314610ade5760405162461bcd60e51b8152600401610973906140ae565b6001600160a01b03166000908152606360205260409020805460ff19169055565b33600090815260636020526040902054819060ff1680610b3d575060008181526011602052604090205443600160401b9091046001600160401b0316105b610b595760405162461bcd60e51b815260040161097390614059565b3360009081526063602052604090205460ff16610b9757610b7b335b83612586565b610b975760405162461bcd60e51b8152600401610973906140e3565b610ba284848461265d565b50505050565b3360009081526063602052604081205460ff1680610be557503260009081526010602052604090205443600160401b9091046001600160401b0316105b610c015760405162461bcd60e51b815260040161097390614059565b3360009081526063602052604090205460ff1680610c4757506001600160a01b03831660009081526010602052604090205443600160401b9091046001600160401b0316105b610c635760405162461bcd60e51b815260040161097390614059565b6000610c6f8484612808565b3360009081526063602052604090205490915060ff1680610cae575060008181526011602052604090205443600160401b9091046001600160401b0316105b610cca5760405162461bcd60e51b815260040161097390614059565b9392505050565b60128260278110610ce157600080fd5b018181548110610cf057600080fd5b9060005260206000209060209182820401919006915091509054906101000a900460ff1681565b600a546001600160a01b03163314610d415760405162461bcd60e51b8152600401610973906140ae565b61ffff16600c55565b3360009081526063602052604090205460ff16610d795760405162461bcd60e51b815260040161097390614022565b6040805180820182526001600160401b0342818116835243828116602080860191825232600090815260109091529586209451855491518516600160401b026001600160801b031990921694169390931792909217909255915b8351811015610ba2576040518060400160405280836001600160401b03168152602001846001600160401b031681525060116000868481518110610e2757634e487b7160e01b600052603260045260246000fd5b60209081029190910181015161ffff168252818101929092526040016000208251815493909201516001600160401b03908116600160401b026001600160801b031990941692169190911791909117905580610e82816143d0565b915050610dd3565b60398260278110610ce157600080fd5b600a54600160a01b900460ff1615610ec45760405162461bcd60e51b815260040161097390614084565b6040805143815242602082015282916001600160a01b038516917f4fa32c2b0aa5253823355304f7938ca3c6d11068bed4b77cebc3ebd0c344bd4791015b60405180910390a35050565b600a54600160a01b900460ff1615610f385760405162461bcd60e51b815260040161097390614084565b3360009081526063602052604090205460ff16610f675760405162461bcd60e51b815260040161097390614022565b600b54600d54610f7c9061ffff16600161429c565b61ffff161115610fc25760405162461bcd60e51b8152602060048201526011602482015270105b1b081d1bdad95b9cc81b5a5b9d1959607a1b6044820152606401610973565b600d805461ffff16906000610fd6836143ae565b82546101009290920a61ffff818102199093169183160217909155600d54326000908152601060209081526040918290208251808401909352546001600160401b038082168452600160401b909104169082015261103d935085929190911690849061289e565b50326001600160a01b0383161480159061106557506060546001600160a01b03838116911614155b1561119c57600d5461ffff166000908152600e602052604090205460ff161561114c57600d5461ffff166000908152600e6020526040902054610100900460ff161561110057600d546040805143815242602082015232926001600160a01b0386169261ffff909116917f6136abbe50a1ef0e1aec7d2ba8b5e021f5372e6c4d99d0ec6ebfe9c76a330dc991015b60405180910390a461119c565b600d546040805143815242602082015232926001600160a01b0386169261ffff909116917f37ae59e1f5e1d70d70ee5360765bdde09b82c4998154cf6fa065f95e63f0959191016110f3565b600d546040805143815242602082015232926001600160a01b0386169261ffff909116917f80aeaf4d1762bc16a3803b0075f5b50de10a831f917ce325e3f6d53123c66bda910160405180910390a45b600d546111ae90839061ffff16612d2a565b5050565b33600090815260636020526040902054819060ff16806111f0575060008181526011602052604090205443600160401b9091046001600160401b0316105b61120c5760405162461bcd60e51b815260040161097390614059565b610ba2848484612d44565b600a54600160a01b900460ff16156112415760405162461bcd60e51b815260040161097390614084565b3360009081526063602052604090205460ff166112705760405162461bcd60e51b815260040161097390614022565b61127981612d5f565b600d80546001919060009061129390849061ffff16614313565b825461ffff9182166101009390930a9283029190920219909116179055506000818152600e602052604090205460ff1615611359576000818152600e6020526040902054610100900460ff1615611322576040805143815242602082015282917f9966b7e70d3ababe80955c13252aaaee4f11c14be860f7e3dde308516e8fbc7691015b60405180910390a250565b6040805143815242602082015282917f95c67930bb5b8a6a9b4000118e3f3a430855679494651c1d1ac56bbfd1f9fd1d9101611317565b6040805143815242602082015282917f7fcdc9026a933b36f60d53e9a47a4e8e2af1a2dbd4ff7e187417d5ea39bcfe53910160405180910390a250565b33600090815260636020526040812054829060ff16806113d4575060008181526011602052604090205443600160401b9091046001600160401b0316105b6113f05760405162461bcd60e51b815260040161097390614059565b50506000908152600e6020908152604091829020825161020081018452905460ff80821615158352610100808304821615159484018590526201000083048216958401959095526301000000820481166060840152640100000000820481166080840152600160281b8204811660a0840152600160301b8204811660c0840152600160381b8204811660e0840152600160401b8204811694830194909452600160481b81048416610120830152600160501b81048416610140830152600160581b81048416610160830152600160601b81048416610180830152600160681b810484166101a0830152600160701b810484166101c0830152600160781b90049092166101e09092019190915290565b600a54600160a01b900460ff16156115295760405162461bcd60e51b815260040161097390614084565b6040805143815242602082015282916001600160a01b038516917ff73abb164b1a2be75fb965419f5e4adc4b4a0276a2d38393c5d3fcbaf56baef89101610f02565b60008061157783612e06565b3360009081526063602052604090205490915060ff16806115b6575060008181526011602052604090205443600160401b9091046001600160401b0316105b6108815760405162461bcd60e51b815260040161097390614059565b3360009081526063602052604081205460ff168061160f57503260009081526010602052604090205443600160401b9091046001600160401b0316105b61162b5760405162461bcd60e51b815260040161097390614059565b33600090815260636020526040902054829060ff1680611669575060008181526011602052604090205443600160401b9091046001600160401b0316105b6116855760405162461bcd60e51b815260040161097390614059565b600061169084612ea7565b3360009081526063602052604090205490915060ff16806116d957506001600160a01b03811660009081526010602052604090205443600160401b9091046001600160401b0316105b6109855760405162461bcd60e51b815260040161097390614059565b600a546001600160a01b0316331461171f5760405162461bcd60e51b8152600401610973906140ae565b6001600160a01b03166000908152606360205260409020805460ff19166001179055565b3360009081526063602052604081205460ff168061178057503260009081526010602052604090205443600160401b9091046001600160401b0316105b61179c5760405162461bcd60e51b815260040161097390614059565b3360009081526063602052604090205460ff16806117e257506001600160a01b03821660009081526010602052604090205443600160401b9091046001600160401b0316105b6117fe5760405162461bcd60e51b815260040161097390614059565b61088182612f1e565b919050565b600a546001600160a01b031633146118365760405162461bcd60e51b8152600401610973906140ae565b6118406000612fa5565b565b61184a613a27565b3360009081526063602052604090205460ff168061188757503260009081526010602052604090205443600160401b9091046001600160401b0316105b6118a35760405162461bcd60e51b815260040161097390614059565b33600090815260636020526040902054829060ff16806118e1575060008181526011602052604090205443600160401b9091046001600160401b0316105b6118fd5760405162461bcd60e51b815260040161097390614059565b50506000908152600e6020908152604091829020825161020081018452905460ff8082161515835261010080830482161515948401949094526201000082048116948301949094526301000000810484166060830152640100000000810484166080830152600160281b8104841660a0830152600160301b8104841660c0830152600160381b8104841660e0830152600160401b8104841692820192909252600160481b82048316610120820152600160501b82048316610140820152600160581b82048316610160820152600160601b82048316610180820152600160681b820483166101a0820152600160701b820483166101c0820152600160781b9091049091166101e082015290565b60606001805461089690614379565b3360009081526063602052604090205460ff1680611a5657503260009081526010602052604090205443600160401b9091046001600160401b0316105b611a725760405162461bcd60e51b815260040161097390614059565b6111ae8282612ff7565b33600090815260636020526040812054829060ff1680611aba575060008181526011602052604090205443600160401b9091046001600160401b0316105b611ad65760405162461bcd60e51b815260040161097390614059565b50506000908152600e6020908152604091829020825161020081018452905460ff808216151580845261010080840483161515958501959095526201000083048216958401959095526301000000820481166060840152640100000000820481166080840152600160281b8204811660a0840152600160301b8204811660c0840152600160381b8204811660e0840152600160401b8204811693830193909352600160481b81048316610120830152600160501b81048316610140830152600160581b81048316610160830152600160601b81048316610180830152600160681b810483166101a0830152600160701b810483166101c0830152600160781b90049091166101e09091015290565b600a546001600160a01b03163314611c0e5760405162461bcd60e51b8152600401610973906140ae565b606180546001600160a01b039485166001600160a01b031991821617909155606080549385169382169390931790925560628054919093169116179055565b600a54600160a01b900460ff1615611c775760405162461bcd60e51b815260040161097390614084565b6040805143815242602082015282916001600160a01b038516917ff841d299607438478e405c305817bab7d5ae24540c4b84ab4407aa40bfa698169101610f02565b33600090815260636020526040902054829060ff1680611cf7575060008181526011602052604090205443600160401b9091046001600160401b0316105b611d135760405162461bcd60e51b815260040161097390614059565b611d1f85858585613002565b5050505050565b600a54600160a01b900460ff1615611d505760405162461bcd60e51b815260040161097390614084565b6040805143815242602082015282916001600160a01b038516917f76b5f35e80089203e2412b07430e059b3cb41ac9a79d20a6fd2dd3f30416032e9101610f02565b600a546001600160a01b03163314611dbc5760405162461bcd60e51b8152600401610973906140ae565b600b819055611dcc6005826142ff565b600c5550565b3360009081526063602052604090205460609060ff1680611e1257503260009081526010602052604090205443600160401b9091046001600160401b0316105b611e2e5760405162461bcd60e51b815260040161097390614059565b33600090815260636020526040902054829060ff1680611e6c575060008181526011602052604090205443600160401b9091046001600160401b0316105b611e885760405162461bcd60e51b815260040161097390614059565b6000838152600260205260409020546001600160a01b0316611eec5760405162461bcd60e51b815260206004820152601760248201527f546f6b656e20494420646f6573206e6f742065786973740000000000000000006044820152606401610973565b60615460405163c87b56dd60e01b8152600481018590526001600160a01b039091169063c87b56dd9060240160006040518083038186803b158015611f3057600080fd5b505afa158015611f44573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109859190810190613d9a565b600a54600160a01b900460ff1615611f965760405162461bcd60e51b815260040161097390614084565b6040805143815242602082015282916001600160a01b038516917f5ad0199d300cba765326ad96e454b10ea5241f286963ede1e48814c049dc562d9101610f02565b3360009081526063602052604081205460ff168061201557503260009081526010602052604090205443600160401b9091046001600160401b0316105b6120315760405162461bcd60e51b815260040161097390614059565b6001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff16610cca565b3360009081526063602052604081205460ff1661208e5760405162461bcd60e51b815260040161097390614022565b50600090815260116020526040902054600160401b90046001600160401b031690565b600a54600160a01b900460ff16156120db5760405162461bcd60e51b815260040161097390614084565b6040805143815242602082015282916001600160a01b038516917faee5470e3296fcb7e6ea886c9255768548a79ff1e19ca76660039475b442dd479101610f02565b600a546001600160a01b031633146121475760405162461bcd60e51b8152600401610973906140ae565b6001600160a01b0381166121ac5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610973565b610aa981612fa5565b600a54600160a01b900460ff16156121df5760405162461bcd60e51b815260040161097390614084565b3360009081526063602052604090205460ff1661220e5760405162461bcd60e51b815260040161097390614022565b6000828152600e602052604090205460ff166111ae576000828152600e6020908152604091829020805462ff000019166201000060ff86169081029190911790915582518581529182015233917ff47173ac58b5ee21979af58ee2c69b2cddddb4f90eb80845f917867d091137c1910160405180910390a25050565b60006001600160e01b031982166380ac58cd60e01b14806122bb57506001600160e01b03198216635b5e139f60e01b145b8061088157506301ffc9a760e01b6001600160e01b0319831614610881565b6000818152600260205260408120546001600160a01b03166123535760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610973565b506000908152600460205260409020546001600160a01b031690565b600061237a82612ea7565b9050806001600160a01b0316836001600160a01b031614156123e85760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610973565b336001600160a01b038216148061240457506124048133611fd8565b6124765760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610973565b6109f28383613033565b600a54600160a01b900460ff16156124aa5760405162461bcd60e51b815260040161097390614084565b600a805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586124e53390565b6040516001600160a01b03909116815260200160405180910390a1565b600a54600160a01b900460ff166125525760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610973565b600a805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336124e5565b6000818152600260205260408120546001600160a01b03166125ff5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610973565b600061260a83612ea7565b9050806001600160a01b0316846001600160a01b031614806126455750836001600160a01b031661263a84610919565b6001600160a01b0316145b8061265557506126558185611fd8565b949350505050565b826001600160a01b031661267082612ea7565b6001600160a01b0316146126d85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610973565b6001600160a01b03821661273a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610973565b6127458383836130a1565b612750600082613033565b6001600160a01b0383166000908152600360205260408120805460019290612779908490614336565b90915550506001600160a01b03821660009081526003602052604081208054600192906127a79084906142c2565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061281383612f1e565b82106128755760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610973565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6128a6613a27565b6128af83613159565b600060408201819052909150600f906128c7836133b6565b81526020019081526020016000205460001415612c8e5780600e600086815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548160ff021916908360ff16021790555060608201518160000160036101000a81548160ff021916908360ff16021790555060808201518160000160046101000a81548160ff021916908360ff16021790555060a08201518160000160056101000a81548160ff021916908360ff16021790555060c08201518160000160066101000a81548160ff021916908360ff16021790555060e08201518160000160076101000a81548160ff021916908360ff1602179055506101008201518160000160086101000a81548160ff021916908360ff1602179055506101208201518160000160096101000a81548160ff021916908360ff16021790555061014082015181600001600a6101000a81548160ff021916908360ff16021790555061016082015181600001600b6101000a81548160ff021916908360ff16021790555061018082015181600001600c6101000a81548160ff021916908360ff1602179055506101a082015181600001600d6101000a81548160ff021916908360ff1602179055506101c082015181600001600e6101000a81548160ff021916908360ff1602179055506101e082015181600001600f6101000a81548160ff021916908360ff16021790555090505083600f6000612b19846133b6565b81526020019081526020016000208190555083856001600160a01b03167f10546b1a6f5245ff0ffa18c256b9e46859c585cbb473b453fcd4c2dc39ae08db4342604051612b70929190918252602082015260400190565b60405180910390a360405184906001600160a01b038716907f1d04698a6dbf374136f42777ac79734bb996c66d2a6fca12e56889849a59fbb790600090a3805115612c4c57806020015115612c0a576040805143815242602082015285916001600160a01b038816917ffee439a66e6badac6d1cf73de0da635d973f368e1d49af27be9afd48ee29e18691015b60405180910390a3612655565b6040805143815242602082015285916001600160a01b038816917f6e4b82e9559cc0878d5d1bf4b563e9d27b45a340f649eddb2071f0f98aeeba259101612bfd565b6040805143815242602082015285916001600160a01b038816917f1f8ee631377b66b98264b5a73b7caf17af5ce10af0b7fe36ad4483801ed91b3f9101612bfd565b612d218585606260009054906101000a90046001600160a01b03166001600160a01b0316635ec01e4d6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015612ce357600080fd5b505af1158015612cf7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d1b9190613e1b565b8561289e565b95945050505050565b6111ae82826040518060200160405280600081525061343b565b6109f283838360405180602001604052806000815250611cb9565b6000612d6a82612ea7565b9050612d78816000846130a1565b612d83600083613033565b6001600160a01b0381166000908152600360205260408120805460019290612dac908490614336565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000612e1160085490565b8210612e745760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610973565b60088281548110612e9557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806108815760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610973565b60006001600160a01b038216612f895760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610973565b506001600160a01b031660009081526003602052604090205490565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6111ae33838361346e565b61300b33610b75565b6130275760405162461bcd60e51b8152600401610973906140e3565b610ba28484848461353d565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061306882612ea7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b0383166130fc576130f781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61311f565b816001600160a01b0316836001600160a01b03161461311f5761311f8382613570565b6001600160a01b038216613136576109f28161360d565b826001600160a01b0316826001600160a01b0316146109f2576109f282826136e6565b613161613a27565b600a613172606461ffff85166143eb565b61ffff908116919091108252600c54600d5490911611156131bc578051156131b05760026131a5600a61ffff851661440c565b1060208201526131c4565b600060208201526131c4565b600060208201525b80516000906131d457601a6131e7565b81602001516131e45760006131e7565b600d5b60109390931c92905061320861ffff84166132038360006142da565b61372a565b60ff16606083015260109290921c9161322a61ffff84166132038360016142da565b60ff16608083015260109290921c9161324c61ffff84166132038360026142da565b60ff1660a083015260109290921c9161326e61ffff84166132038360036142da565b60ff1660c083015260109290921c9161329061ffff84166132038360046142da565b60ff1660e083015260109290921c916132b261ffff84166132038360056142da565b60ff1661010083015260109290921c916132d561ffff84166132038360066142da565b60ff1661012083015260109290921c916132f861ffff84166132038360076142da565b60ff1661014083015260109290921c9161331b61ffff84166132038360086142da565b60ff1661016083015260109290921c9161333e61ffff84166132038360096142da565b60ff1661018083015260109290921c9161336161ffff841661320383600a6142da565b60ff166101a083015260109290921c9161338461ffff841661320383600b6142da565b60ff166101c083015260109290921c916133a761ffff841661320383600c6142da565b60ff166101e083015250919050565b6000816060015182608001518360a001518460c001518560e001518661010001518761012001518861014001518961016001518a61018001518b6101a001518c6101c001518d6101e0015160405160200161341d9d9c9b9a99989796959493929190613ec5565b60408051601f19818403018152919052805160209091012092915050565b61344583836137cf565b613452600084848461391d565b6109f25760405162461bcd60e51b815260040161097390613fd0565b816001600160a01b0316836001600160a01b031614156134d05760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610973565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61354884848461265d565b6135548484848461391d565b610ba25760405162461bcd60e51b815260040161097390613fd0565b6000600161357d84612f1e565b6135879190614336565b6000838152600760205260409020549091508082146135da576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061361f90600190614336565b6000838152600960205260408120546008805493945090928490811061365557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061368457634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806136ca57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006136f183612f1e565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60008060128360ff166027811061375157634e487b7160e01b600052603260045260246000fd5b015461375d9085614420565b905060398360ff166027811061378357634e487b7160e01b600052603260045260246000fd5b018160ff16815481106137a657634e487b7160e01b600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff1691505092915050565b6001600160a01b0382166138255760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610973565b6000818152600260205260409020546001600160a01b03161561388a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610973565b613896600083836130a1565b6001600160a01b03821660009081526003602052604081208054600192906138bf9084906142c2565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15613a1f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613961903390899088908890600401613f80565b602060405180830381600087803b15801561397b57600080fd5b505af19250505080156139ab575060408051601f3d908101601f191682019092526139a891810190613d7e565b60015b613a05573d8080156139d9576040519150601f19603f3d011682016040523d82523d6000602084013e6139de565b606091505b5080516139fd5760405162461bcd60e51b815260040161097390613fd0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612655565b506001612655565b6040805161020081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101829052610160810182905261018081018290526101a081018290526101c081018290526101e081019190915290565b80356001600160a01b038116811461180757600080fd5b8035801515811461180757600080fd5b600060208284031215613ae3578081fd5b610cca82613aab565b60008060408385031215613afe578081fd5b613b0783613aab565b9150613b1560208401613aab565b90509250929050565b600080600060608486031215613b32578081fd5b613b3b84613aab565b9250613b4960208501613aab565b9150613b5760408501613aab565b90509250925092565b600080600060608486031215613b74578283fd5b613b7d84613aab565b9250613b8b60208501613aab565b9150604084013590509250925092565b60008060008060808587031215613bb0578081fd5b613bb985613aab565b9350613bc760208601613aab565b92506040850135915060608501356001600160401b03811115613be8578182fd5b8501601f81018713613bf8578182fd5b8035613c0b613c0682614275565b614245565b818152886020838501011115613c1f578384fd5b81602084016020830137908101602001929092525092959194509250565b60008060408385031215613c4f578182fd5b613c5883613aab565b9150613b1560208401613ac2565b60008060408385031215613c78578182fd5b613c8183613aab565b946020939093013593505050565b60006020808385031215613ca1578182fd5b82356001600160401b0380821115613cb7578384fd5b818501915085601f830112613cca578384fd5b813581811115613cdc57613cdc61446e565b8060051b9150613ced848301614245565b8181528481019084860184860187018a1015613d07578788fd5b8795505b83861015613d3b578035945061ffff85168514613d26578788fd5b84835260019590950194918601918601613d0b565b5098975050505050505050565b600060208284031215613d59578081fd5b610cca82613ac2565b600060208284031215613d73578081fd5b8135610cca81614484565b600060208284031215613d8f578081fd5b8151610cca81614484565b600060208284031215613dab578081fd5b81516001600160401b03811115613dc0578182fd5b8201601f81018413613dd0578182fd5b8051613dde613c0682614275565b818152856020838501011115613df2578384fd5b612d2182602083016020860161434d565b600060208284031215613e14578081fd5b5035919050565b600060208284031215613e2c578081fd5b5051919050565b60008060408385031215613e45578182fd5b50508035926020909101359150565b60008060408385031215613e66578182fd5b82359150602083013560ff81168114613e7d578182fd5b809150509250929050565b60008151808452613ea081602086016020860161434d565b601f01601f19169290920160200192915050565b60f81b6001600160f81b0319169052565b6001600160f81b031960f88f811b821683528e811b821660018401528d901b166002820152613ef7600382018c613eb4565b613f04600482018b613eb4565b613f11600582018a613eb4565b613f1e6006820189613eb4565b613f2b6007820188613eb4565b613f386008820187613eb4565b613f456009820186613eb4565b613f52600a820185613eb4565b613f5f600b820184613eb4565b613f6c600c820183613eb4565b600d019d9c50505050505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613fb390830184613e88565b9695505050505050565b602081526000610cca6020830184613e88565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526019908201527f4f6e6c792061646d696e732063616e2063616c6c207468697300000000000000604082015260600190565b602080825260119082015270686d6d6d6d207768617420646f696e673f60781b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b81511515815261020081016020830151614152602084018215159052565b506040830151614167604084018260ff169052565b50606083015161417c606084018260ff169052565b506080830151614191608084018260ff169052565b5060a08301516141a660a084018260ff169052565b5060c08301516141bb60c084018260ff169052565b5060e08301516141d060e084018260ff169052565b506101008381015160ff90811691840191909152610120808501518216908401526101408085015182169084015261016080850151821690840152610180808501518216908401526101a0808501518216908401526101c0808501518216908401526101e09384015116929091019190915290565b604051601f8201601f191681016001600160401b038111828210171561426d5761426d61446e565b604052919050565b60006001600160401b0382111561428e5761428e61446e565b50601f01601f191660200190565b600061ffff8083168185168083038211156142b9576142b9614442565b01949350505050565b600082198211156142d5576142d5614442565b500190565b600060ff821660ff84168060ff038211156142f7576142f7614442565b019392505050565b60008261430e5761430e614458565b500490565b600061ffff8381169083168181101561432e5761432e614442565b039392505050565b60008282101561434857614348614442565b500390565b60005b83811015614368578181015183820152602001614350565b83811115610ba25750506000910152565b600181811c9082168061438d57607f821691505b6020821081141561098857634e487b7160e01b600052602260045260246000fd5b600061ffff808316818114156143c6576143c6614442565b6001019392505050565b60006000198214156143e4576143e4614442565b5060010190565b600061ffff8084168061440057614400614458565b92169190910692915050565b60008261441b5761441b614458565b500690565b600060ff83168061443357614433614458565b8060ff84160691505092915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610aa957600080fdfea2646970667358221220233205eac0e12c2efae87b38b6699bf421ea91015f4dbfa2f899164da8110d1f64736f6c63430008040033000000000000000000000000000000000000000000000000000000000000c350

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103275760003560e01c806370480275116101b8578063bf20740e11610104578063e86eadcd116100a2578063ef34789d1161007c578063ef34789d14610810578063f10fb58414610823578063f2fde38b14610836578063f31c996c1461084957600080fd5b8063e86eadcd146107bf578063e985e9c5146107d2578063ebd17368146107e557600080fd5b8063c87b56dd116100de578063c87b56dd1461077d578063d63a417a14610790578063e1fc334f146107a3578063e8315742146107b657600080fd5b8063bf20740e1461074e578063bf97180b14610761578063c084f5401461077457600080fd5b806395d89b4111610171578063af1af34a1161014b578063af1af34a14610702578063b3066d4914610715578063b631844614610728578063b88d4fde1461073b57600080fd5b806395d89b41146106c7578063a1b8f374146106cf578063a22cb465146106ef57600080fd5b8063704802751461065857806370a082311461066b578063715018a61461067e57806374478bb3146106865780638da5cb5b1461069657806394e56847146106a757600080fd5b80633995acfe116102775780634b584daa116102305780635c975abb1161020a5780635c975abb14610513578063607f454e146105255780636352211e1461063d5780636abcded11461065057600080fd5b80634b584daa146104cc5780634f02c420146104df5780634f6ccce71461050057600080fd5b80633995acfe146104655780634018b1f81461047857806340c10f191461048057806342842e0e1461049357806342966c68146104a65780634354873a146104b957600080fd5b806318160ddd116102e457806333df4b2c116102be57806333df4b2c146104075780633431a7531461042c57806335ca838b1461043f578063368383911461045257600080fd5b806318160ddd146103cf57806323b872dd146103e15780632f745c59146103f457600080fd5b806301ffc9a71461032c57806306fdde0314610354578063081812fc14610369578063095ea7b31461039457806316c38b3c146103a95780631785f53c146103bc575b600080fd5b61033f61033a366004613d62565b61085c565b60405190151581526020015b60405180910390f35b61035c610887565b60405161034b9190613fbd565b61037c610377366004613e03565b610919565b6040516001600160a01b03909116815260200161034b565b6103a76103a2366004613c66565b61098e565b005b6103a76103b7366004613d48565b6109f7565b6103a76103ca366004613ad2565b610ab4565b6008545b60405190815260200161034b565b6103a76103ef366004613b60565b610aff565b6103d3610402366004613c66565b610ba8565b61041a610415366004613e33565b610cd1565b60405160ff909116815260200161034b565b6103a761043a366004613e03565b610d17565b6103a761044d366004613c8f565b610d4a565b61041a610460366004613e33565b610e8a565b6103a7610473366004613c66565b610e9a565b600c546103d3565b6103a761048e366004613c66565b610f0e565b6103a76104a1366004613b60565b6111b2565b6103a76104b4366004613e03565b611217565b61033f6104c7366004613e03565b611396565b6103a76104da366004613c66565b6114ff565b600d546104ed9061ffff1681565b60405161ffff909116815260200161034b565b6103d361050e366004613e03565b61156b565b600a54600160a01b900460ff1661033f565b61041a610533366004613e03565b6000908152600e6020908152604091829020825161020081018452905460ff80821615158352610100808304821615159484019490945262010000820481169483018590526301000000820481166060840152640100000000820481166080840152600160281b8204811660a0840152600160301b8204811660c0840152600160381b8204811660e0840152600160401b8204811693830193909352600160481b81048316610120830152600160501b81048316610140830152600160581b81048316610160830152600160601b81048316610180830152600160681b810483166101a0830152600160701b810483166101c0830152600160781b90049091166101e09091015290565b61037c61064b366004613e03565b6115d2565b600b546103d3565b6103a7610666366004613ad2565b6116f5565b6103d3610679366004613ad2565b611743565b6103a761180c565b600c54600d5461ffff161161033f565b600a546001600160a01b031661037c565b6106ba6106b5366004613e03565b611842565b60405161034b9190614134565b61035c611a0a565b6103d36106dd366004613e03565b600f6020526000908152604090205481565b6103a76106fd366004613c3d565b611a19565b61033f610710366004613e03565b611a7c565b6103a7610723366004613b1e565b611be4565b6103a7610736366004613c66565b611c4d565b6103a7610749366004613b9b565b611cb9565b6103a761075c366004613c66565b611d26565b6103a761076f366004613e03565b611d92565b6103d3600c5481565b61035c61078b366004613e03565b611dd2565b6103a761079e366004613c66565b611f6c565b60615461037c906001600160a01b031681565b6103d3600b5481565b60605461037c906001600160a01b031681565b61033f6107e0366004613aec565b611fd8565b6107f86107f3366004613e03565b61205f565b6040516001600160401b03909116815260200161034b565b6103a761081e366004613c66565b6120b1565b60625461037c906001600160a01b031681565b6103a7610844366004613ad2565b61211d565b6103a7610857366004613e54565b6121b5565b60006001600160e01b0319821663780e9d6360e01b148061088157506108818261228a565b92915050565b60606000805461089690614379565b80601f01602080910402602001604051908101604052809291908181526020018280546108c290614379565b801561090f5780601f106108e45761010080835404028352916020019161090f565b820191906000526020600020905b8154815290600101906020018083116108f257829003601f168201915b5050505050905090565b33600090815260636020526040812054829060ff1680610957575060008181526011602052604090205443600160401b9091046001600160401b0316105b61097c5760405162461bcd60e51b815260040161097390614059565b60405180910390fd5b610985836122da565b91505b50919050565b33600090815260636020526040902054819060ff16806109cc575060008181526011602052604090205443600160401b9091046001600160401b0316105b6109e85760405162461bcd60e51b815260040161097390614059565b6109f2838361236f565b505050565b6061546001600160a01b031615801590610a1b57506060546001600160a01b031615155b8015610a3157506062546001600160a01b031615155b610a715760405162461bcd60e51b815260206004820152601160248201527010dbdb9d1c9858dd1cc81b9bdd081cd95d607a1b6044820152606401610973565b600a546001600160a01b03163314610a9b5760405162461bcd60e51b8152600401610973906140ae565b8015610aac57610aa9612480565b50565b610aa9612502565b600a546001600160a01b03163314610ade5760405162461bcd60e51b8152600401610973906140ae565b6001600160a01b03166000908152606360205260409020805460ff19169055565b33600090815260636020526040902054819060ff1680610b3d575060008181526011602052604090205443600160401b9091046001600160401b0316105b610b595760405162461bcd60e51b815260040161097390614059565b3360009081526063602052604090205460ff16610b9757610b7b335b83612586565b610b975760405162461bcd60e51b8152600401610973906140e3565b610ba284848461265d565b50505050565b3360009081526063602052604081205460ff1680610be557503260009081526010602052604090205443600160401b9091046001600160401b0316105b610c015760405162461bcd60e51b815260040161097390614059565b3360009081526063602052604090205460ff1680610c4757506001600160a01b03831660009081526010602052604090205443600160401b9091046001600160401b0316105b610c635760405162461bcd60e51b815260040161097390614059565b6000610c6f8484612808565b3360009081526063602052604090205490915060ff1680610cae575060008181526011602052604090205443600160401b9091046001600160401b0316105b610cca5760405162461bcd60e51b815260040161097390614059565b9392505050565b60128260278110610ce157600080fd5b018181548110610cf057600080fd5b9060005260206000209060209182820401919006915091509054906101000a900460ff1681565b600a546001600160a01b03163314610d415760405162461bcd60e51b8152600401610973906140ae565b61ffff16600c55565b3360009081526063602052604090205460ff16610d795760405162461bcd60e51b815260040161097390614022565b6040805180820182526001600160401b0342818116835243828116602080860191825232600090815260109091529586209451855491518516600160401b026001600160801b031990921694169390931792909217909255915b8351811015610ba2576040518060400160405280836001600160401b03168152602001846001600160401b031681525060116000868481518110610e2757634e487b7160e01b600052603260045260246000fd5b60209081029190910181015161ffff168252818101929092526040016000208251815493909201516001600160401b03908116600160401b026001600160801b031990941692169190911791909117905580610e82816143d0565b915050610dd3565b60398260278110610ce157600080fd5b600a54600160a01b900460ff1615610ec45760405162461bcd60e51b815260040161097390614084565b6040805143815242602082015282916001600160a01b038516917f4fa32c2b0aa5253823355304f7938ca3c6d11068bed4b77cebc3ebd0c344bd4791015b60405180910390a35050565b600a54600160a01b900460ff1615610f385760405162461bcd60e51b815260040161097390614084565b3360009081526063602052604090205460ff16610f675760405162461bcd60e51b815260040161097390614022565b600b54600d54610f7c9061ffff16600161429c565b61ffff161115610fc25760405162461bcd60e51b8152602060048201526011602482015270105b1b081d1bdad95b9cc81b5a5b9d1959607a1b6044820152606401610973565b600d805461ffff16906000610fd6836143ae565b82546101009290920a61ffff818102199093169183160217909155600d54326000908152601060209081526040918290208251808401909352546001600160401b038082168452600160401b909104169082015261103d935085929190911690849061289e565b50326001600160a01b0383161480159061106557506060546001600160a01b03838116911614155b1561119c57600d5461ffff166000908152600e602052604090205460ff161561114c57600d5461ffff166000908152600e6020526040902054610100900460ff161561110057600d546040805143815242602082015232926001600160a01b0386169261ffff909116917f6136abbe50a1ef0e1aec7d2ba8b5e021f5372e6c4d99d0ec6ebfe9c76a330dc991015b60405180910390a461119c565b600d546040805143815242602082015232926001600160a01b0386169261ffff909116917f37ae59e1f5e1d70d70ee5360765bdde09b82c4998154cf6fa065f95e63f0959191016110f3565b600d546040805143815242602082015232926001600160a01b0386169261ffff909116917f80aeaf4d1762bc16a3803b0075f5b50de10a831f917ce325e3f6d53123c66bda910160405180910390a45b600d546111ae90839061ffff16612d2a565b5050565b33600090815260636020526040902054819060ff16806111f0575060008181526011602052604090205443600160401b9091046001600160401b0316105b61120c5760405162461bcd60e51b815260040161097390614059565b610ba2848484612d44565b600a54600160a01b900460ff16156112415760405162461bcd60e51b815260040161097390614084565b3360009081526063602052604090205460ff166112705760405162461bcd60e51b815260040161097390614022565b61127981612d5f565b600d80546001919060009061129390849061ffff16614313565b825461ffff9182166101009390930a9283029190920219909116179055506000818152600e602052604090205460ff1615611359576000818152600e6020526040902054610100900460ff1615611322576040805143815242602082015282917f9966b7e70d3ababe80955c13252aaaee4f11c14be860f7e3dde308516e8fbc7691015b60405180910390a250565b6040805143815242602082015282917f95c67930bb5b8a6a9b4000118e3f3a430855679494651c1d1ac56bbfd1f9fd1d9101611317565b6040805143815242602082015282917f7fcdc9026a933b36f60d53e9a47a4e8e2af1a2dbd4ff7e187417d5ea39bcfe53910160405180910390a250565b33600090815260636020526040812054829060ff16806113d4575060008181526011602052604090205443600160401b9091046001600160401b0316105b6113f05760405162461bcd60e51b815260040161097390614059565b50506000908152600e6020908152604091829020825161020081018452905460ff80821615158352610100808304821615159484018590526201000083048216958401959095526301000000820481166060840152640100000000820481166080840152600160281b8204811660a0840152600160301b8204811660c0840152600160381b8204811660e0840152600160401b8204811694830194909452600160481b81048416610120830152600160501b81048416610140830152600160581b81048416610160830152600160601b81048416610180830152600160681b810484166101a0830152600160701b810484166101c0830152600160781b90049092166101e09092019190915290565b600a54600160a01b900460ff16156115295760405162461bcd60e51b815260040161097390614084565b6040805143815242602082015282916001600160a01b038516917ff73abb164b1a2be75fb965419f5e4adc4b4a0276a2d38393c5d3fcbaf56baef89101610f02565b60008061157783612e06565b3360009081526063602052604090205490915060ff16806115b6575060008181526011602052604090205443600160401b9091046001600160401b0316105b6108815760405162461bcd60e51b815260040161097390614059565b3360009081526063602052604081205460ff168061160f57503260009081526010602052604090205443600160401b9091046001600160401b0316105b61162b5760405162461bcd60e51b815260040161097390614059565b33600090815260636020526040902054829060ff1680611669575060008181526011602052604090205443600160401b9091046001600160401b0316105b6116855760405162461bcd60e51b815260040161097390614059565b600061169084612ea7565b3360009081526063602052604090205490915060ff16806116d957506001600160a01b03811660009081526010602052604090205443600160401b9091046001600160401b0316105b6109855760405162461bcd60e51b815260040161097390614059565b600a546001600160a01b0316331461171f5760405162461bcd60e51b8152600401610973906140ae565b6001600160a01b03166000908152606360205260409020805460ff19166001179055565b3360009081526063602052604081205460ff168061178057503260009081526010602052604090205443600160401b9091046001600160401b0316105b61179c5760405162461bcd60e51b815260040161097390614059565b3360009081526063602052604090205460ff16806117e257506001600160a01b03821660009081526010602052604090205443600160401b9091046001600160401b0316105b6117fe5760405162461bcd60e51b815260040161097390614059565b61088182612f1e565b919050565b600a546001600160a01b031633146118365760405162461bcd60e51b8152600401610973906140ae565b6118406000612fa5565b565b61184a613a27565b3360009081526063602052604090205460ff168061188757503260009081526010602052604090205443600160401b9091046001600160401b0316105b6118a35760405162461bcd60e51b815260040161097390614059565b33600090815260636020526040902054829060ff16806118e1575060008181526011602052604090205443600160401b9091046001600160401b0316105b6118fd5760405162461bcd60e51b815260040161097390614059565b50506000908152600e6020908152604091829020825161020081018452905460ff8082161515835261010080830482161515948401949094526201000082048116948301949094526301000000810484166060830152640100000000810484166080830152600160281b8104841660a0830152600160301b8104841660c0830152600160381b8104841660e0830152600160401b8104841692820192909252600160481b82048316610120820152600160501b82048316610140820152600160581b82048316610160820152600160601b82048316610180820152600160681b820483166101a0820152600160701b820483166101c0820152600160781b9091049091166101e082015290565b60606001805461089690614379565b3360009081526063602052604090205460ff1680611a5657503260009081526010602052604090205443600160401b9091046001600160401b0316105b611a725760405162461bcd60e51b815260040161097390614059565b6111ae8282612ff7565b33600090815260636020526040812054829060ff1680611aba575060008181526011602052604090205443600160401b9091046001600160401b0316105b611ad65760405162461bcd60e51b815260040161097390614059565b50506000908152600e6020908152604091829020825161020081018452905460ff808216151580845261010080840483161515958501959095526201000083048216958401959095526301000000820481166060840152640100000000820481166080840152600160281b8204811660a0840152600160301b8204811660c0840152600160381b8204811660e0840152600160401b8204811693830193909352600160481b81048316610120830152600160501b81048316610140830152600160581b81048316610160830152600160601b81048316610180830152600160681b810483166101a0830152600160701b810483166101c0830152600160781b90049091166101e09091015290565b600a546001600160a01b03163314611c0e5760405162461bcd60e51b8152600401610973906140ae565b606180546001600160a01b039485166001600160a01b031991821617909155606080549385169382169390931790925560628054919093169116179055565b600a54600160a01b900460ff1615611c775760405162461bcd60e51b815260040161097390614084565b6040805143815242602082015282916001600160a01b038516917ff841d299607438478e405c305817bab7d5ae24540c4b84ab4407aa40bfa698169101610f02565b33600090815260636020526040902054829060ff1680611cf7575060008181526011602052604090205443600160401b9091046001600160401b0316105b611d135760405162461bcd60e51b815260040161097390614059565b611d1f85858585613002565b5050505050565b600a54600160a01b900460ff1615611d505760405162461bcd60e51b815260040161097390614084565b6040805143815242602082015282916001600160a01b038516917f76b5f35e80089203e2412b07430e059b3cb41ac9a79d20a6fd2dd3f30416032e9101610f02565b600a546001600160a01b03163314611dbc5760405162461bcd60e51b8152600401610973906140ae565b600b819055611dcc6005826142ff565b600c5550565b3360009081526063602052604090205460609060ff1680611e1257503260009081526010602052604090205443600160401b9091046001600160401b0316105b611e2e5760405162461bcd60e51b815260040161097390614059565b33600090815260636020526040902054829060ff1680611e6c575060008181526011602052604090205443600160401b9091046001600160401b0316105b611e885760405162461bcd60e51b815260040161097390614059565b6000838152600260205260409020546001600160a01b0316611eec5760405162461bcd60e51b815260206004820152601760248201527f546f6b656e20494420646f6573206e6f742065786973740000000000000000006044820152606401610973565b60615460405163c87b56dd60e01b8152600481018590526001600160a01b039091169063c87b56dd9060240160006040518083038186803b158015611f3057600080fd5b505afa158015611f44573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109859190810190613d9a565b600a54600160a01b900460ff1615611f965760405162461bcd60e51b815260040161097390614084565b6040805143815242602082015282916001600160a01b038516917f5ad0199d300cba765326ad96e454b10ea5241f286963ede1e48814c049dc562d9101610f02565b3360009081526063602052604081205460ff168061201557503260009081526010602052604090205443600160401b9091046001600160401b0316105b6120315760405162461bcd60e51b815260040161097390614059565b6001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff16610cca565b3360009081526063602052604081205460ff1661208e5760405162461bcd60e51b815260040161097390614022565b50600090815260116020526040902054600160401b90046001600160401b031690565b600a54600160a01b900460ff16156120db5760405162461bcd60e51b815260040161097390614084565b6040805143815242602082015282916001600160a01b038516917faee5470e3296fcb7e6ea886c9255768548a79ff1e19ca76660039475b442dd479101610f02565b600a546001600160a01b031633146121475760405162461bcd60e51b8152600401610973906140ae565b6001600160a01b0381166121ac5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610973565b610aa981612fa5565b600a54600160a01b900460ff16156121df5760405162461bcd60e51b815260040161097390614084565b3360009081526063602052604090205460ff1661220e5760405162461bcd60e51b815260040161097390614022565b6000828152600e602052604090205460ff166111ae576000828152600e6020908152604091829020805462ff000019166201000060ff86169081029190911790915582518581529182015233917ff47173ac58b5ee21979af58ee2c69b2cddddb4f90eb80845f917867d091137c1910160405180910390a25050565b60006001600160e01b031982166380ac58cd60e01b14806122bb57506001600160e01b03198216635b5e139f60e01b145b8061088157506301ffc9a760e01b6001600160e01b0319831614610881565b6000818152600260205260408120546001600160a01b03166123535760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610973565b506000908152600460205260409020546001600160a01b031690565b600061237a82612ea7565b9050806001600160a01b0316836001600160a01b031614156123e85760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610973565b336001600160a01b038216148061240457506124048133611fd8565b6124765760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610973565b6109f28383613033565b600a54600160a01b900460ff16156124aa5760405162461bcd60e51b815260040161097390614084565b600a805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586124e53390565b6040516001600160a01b03909116815260200160405180910390a1565b600a54600160a01b900460ff166125525760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610973565b600a805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336124e5565b6000818152600260205260408120546001600160a01b03166125ff5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610973565b600061260a83612ea7565b9050806001600160a01b0316846001600160a01b031614806126455750836001600160a01b031661263a84610919565b6001600160a01b0316145b8061265557506126558185611fd8565b949350505050565b826001600160a01b031661267082612ea7565b6001600160a01b0316146126d85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610973565b6001600160a01b03821661273a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610973565b6127458383836130a1565b612750600082613033565b6001600160a01b0383166000908152600360205260408120805460019290612779908490614336565b90915550506001600160a01b03821660009081526003602052604081208054600192906127a79084906142c2565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061281383612f1e565b82106128755760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610973565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6128a6613a27565b6128af83613159565b600060408201819052909150600f906128c7836133b6565b81526020019081526020016000205460001415612c8e5780600e600086815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548160ff021916908360ff16021790555060608201518160000160036101000a81548160ff021916908360ff16021790555060808201518160000160046101000a81548160ff021916908360ff16021790555060a08201518160000160056101000a81548160ff021916908360ff16021790555060c08201518160000160066101000a81548160ff021916908360ff16021790555060e08201518160000160076101000a81548160ff021916908360ff1602179055506101008201518160000160086101000a81548160ff021916908360ff1602179055506101208201518160000160096101000a81548160ff021916908360ff16021790555061014082015181600001600a6101000a81548160ff021916908360ff16021790555061016082015181600001600b6101000a81548160ff021916908360ff16021790555061018082015181600001600c6101000a81548160ff021916908360ff1602179055506101a082015181600001600d6101000a81548160ff021916908360ff1602179055506101c082015181600001600e6101000a81548160ff021916908360ff1602179055506101e082015181600001600f6101000a81548160ff021916908360ff16021790555090505083600f6000612b19846133b6565b81526020019081526020016000208190555083856001600160a01b03167f10546b1a6f5245ff0ffa18c256b9e46859c585cbb473b453fcd4c2dc39ae08db4342604051612b70929190918252602082015260400190565b60405180910390a360405184906001600160a01b038716907f1d04698a6dbf374136f42777ac79734bb996c66d2a6fca12e56889849a59fbb790600090a3805115612c4c57806020015115612c0a576040805143815242602082015285916001600160a01b038816917ffee439a66e6badac6d1cf73de0da635d973f368e1d49af27be9afd48ee29e18691015b60405180910390a3612655565b6040805143815242602082015285916001600160a01b038816917f6e4b82e9559cc0878d5d1bf4b563e9d27b45a340f649eddb2071f0f98aeeba259101612bfd565b6040805143815242602082015285916001600160a01b038816917f1f8ee631377b66b98264b5a73b7caf17af5ce10af0b7fe36ad4483801ed91b3f9101612bfd565b612d218585606260009054906101000a90046001600160a01b03166001600160a01b0316635ec01e4d6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015612ce357600080fd5b505af1158015612cf7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d1b9190613e1b565b8561289e565b95945050505050565b6111ae82826040518060200160405280600081525061343b565b6109f283838360405180602001604052806000815250611cb9565b6000612d6a82612ea7565b9050612d78816000846130a1565b612d83600083613033565b6001600160a01b0381166000908152600360205260408120805460019290612dac908490614336565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000612e1160085490565b8210612e745760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610973565b60088281548110612e9557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806108815760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610973565b60006001600160a01b038216612f895760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610973565b506001600160a01b031660009081526003602052604090205490565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6111ae33838361346e565b61300b33610b75565b6130275760405162461bcd60e51b8152600401610973906140e3565b610ba28484848461353d565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061306882612ea7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b0383166130fc576130f781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61311f565b816001600160a01b0316836001600160a01b03161461311f5761311f8382613570565b6001600160a01b038216613136576109f28161360d565b826001600160a01b0316826001600160a01b0316146109f2576109f282826136e6565b613161613a27565b600a613172606461ffff85166143eb565b61ffff908116919091108252600c54600d5490911611156131bc578051156131b05760026131a5600a61ffff851661440c565b1060208201526131c4565b600060208201526131c4565b600060208201525b80516000906131d457601a6131e7565b81602001516131e45760006131e7565b600d5b60109390931c92905061320861ffff84166132038360006142da565b61372a565b60ff16606083015260109290921c9161322a61ffff84166132038360016142da565b60ff16608083015260109290921c9161324c61ffff84166132038360026142da565b60ff1660a083015260109290921c9161326e61ffff84166132038360036142da565b60ff1660c083015260109290921c9161329061ffff84166132038360046142da565b60ff1660e083015260109290921c916132b261ffff84166132038360056142da565b60ff1661010083015260109290921c916132d561ffff84166132038360066142da565b60ff1661012083015260109290921c916132f861ffff84166132038360076142da565b60ff1661014083015260109290921c9161331b61ffff84166132038360086142da565b60ff1661016083015260109290921c9161333e61ffff84166132038360096142da565b60ff1661018083015260109290921c9161336161ffff841661320383600a6142da565b60ff166101a083015260109290921c9161338461ffff841661320383600b6142da565b60ff166101c083015260109290921c916133a761ffff841661320383600c6142da565b60ff166101e083015250919050565b6000816060015182608001518360a001518460c001518560e001518661010001518761012001518861014001518961016001518a61018001518b6101a001518c6101c001518d6101e0015160405160200161341d9d9c9b9a99989796959493929190613ec5565b60408051601f19818403018152919052805160209091012092915050565b61344583836137cf565b613452600084848461391d565b6109f25760405162461bcd60e51b815260040161097390613fd0565b816001600160a01b0316836001600160a01b031614156134d05760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610973565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61354884848461265d565b6135548484848461391d565b610ba25760405162461bcd60e51b815260040161097390613fd0565b6000600161357d84612f1e565b6135879190614336565b6000838152600760205260409020549091508082146135da576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061361f90600190614336565b6000838152600960205260408120546008805493945090928490811061365557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061368457634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806136ca57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006136f183612f1e565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60008060128360ff166027811061375157634e487b7160e01b600052603260045260246000fd5b015461375d9085614420565b905060398360ff166027811061378357634e487b7160e01b600052603260045260246000fd5b018160ff16815481106137a657634e487b7160e01b600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff1691505092915050565b6001600160a01b0382166138255760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610973565b6000818152600260205260409020546001600160a01b03161561388a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610973565b613896600083836130a1565b6001600160a01b03821660009081526003602052604081208054600192906138bf9084906142c2565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15613a1f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613961903390899088908890600401613f80565b602060405180830381600087803b15801561397b57600080fd5b505af19250505080156139ab575060408051601f3d908101601f191682019092526139a891810190613d7e565b60015b613a05573d8080156139d9576040519150601f19603f3d011682016040523d82523d6000602084013e6139de565b606091505b5080516139fd5760405162461bcd60e51b815260040161097390613fd0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612655565b506001612655565b6040805161020081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101829052610160810182905261018081018290526101a081018290526101c081018290526101e081019190915290565b80356001600160a01b038116811461180757600080fd5b8035801515811461180757600080fd5b600060208284031215613ae3578081fd5b610cca82613aab565b60008060408385031215613afe578081fd5b613b0783613aab565b9150613b1560208401613aab565b90509250929050565b600080600060608486031215613b32578081fd5b613b3b84613aab565b9250613b4960208501613aab565b9150613b5760408501613aab565b90509250925092565b600080600060608486031215613b74578283fd5b613b7d84613aab565b9250613b8b60208501613aab565b9150604084013590509250925092565b60008060008060808587031215613bb0578081fd5b613bb985613aab565b9350613bc760208601613aab565b92506040850135915060608501356001600160401b03811115613be8578182fd5b8501601f81018713613bf8578182fd5b8035613c0b613c0682614275565b614245565b818152886020838501011115613c1f578384fd5b81602084016020830137908101602001929092525092959194509250565b60008060408385031215613c4f578182fd5b613c5883613aab565b9150613b1560208401613ac2565b60008060408385031215613c78578182fd5b613c8183613aab565b946020939093013593505050565b60006020808385031215613ca1578182fd5b82356001600160401b0380821115613cb7578384fd5b818501915085601f830112613cca578384fd5b813581811115613cdc57613cdc61446e565b8060051b9150613ced848301614245565b8181528481019084860184860187018a1015613d07578788fd5b8795505b83861015613d3b578035945061ffff85168514613d26578788fd5b84835260019590950194918601918601613d0b565b5098975050505050505050565b600060208284031215613d59578081fd5b610cca82613ac2565b600060208284031215613d73578081fd5b8135610cca81614484565b600060208284031215613d8f578081fd5b8151610cca81614484565b600060208284031215613dab578081fd5b81516001600160401b03811115613dc0578182fd5b8201601f81018413613dd0578182fd5b8051613dde613c0682614275565b818152856020838501011115613df2578384fd5b612d2182602083016020860161434d565b600060208284031215613e14578081fd5b5035919050565b600060208284031215613e2c578081fd5b5051919050565b60008060408385031215613e45578182fd5b50508035926020909101359150565b60008060408385031215613e66578182fd5b82359150602083013560ff81168114613e7d578182fd5b809150509250929050565b60008151808452613ea081602086016020860161434d565b601f01601f19169290920160200192915050565b60f81b6001600160f81b0319169052565b6001600160f81b031960f88f811b821683528e811b821660018401528d901b166002820152613ef7600382018c613eb4565b613f04600482018b613eb4565b613f11600582018a613eb4565b613f1e6006820189613eb4565b613f2b6007820188613eb4565b613f386008820187613eb4565b613f456009820186613eb4565b613f52600a820185613eb4565b613f5f600b820184613eb4565b613f6c600c820183613eb4565b600d019d9c50505050505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613fb390830184613e88565b9695505050505050565b602081526000610cca6020830184613e88565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526019908201527f4f6e6c792061646d696e732063616e2063616c6c207468697300000000000000604082015260600190565b602080825260119082015270686d6d6d6d207768617420646f696e673f60781b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b81511515815261020081016020830151614152602084018215159052565b506040830151614167604084018260ff169052565b50606083015161417c606084018260ff169052565b506080830151614191608084018260ff169052565b5060a08301516141a660a084018260ff169052565b5060c08301516141bb60c084018260ff169052565b5060e08301516141d060e084018260ff169052565b506101008381015160ff90811691840191909152610120808501518216908401526101408085015182169084015261016080850151821690840152610180808501518216908401526101a0808501518216908401526101c0808501518216908401526101e09384015116929091019190915290565b604051601f8201601f191681016001600160401b038111828210171561426d5761426d61446e565b604052919050565b60006001600160401b0382111561428e5761428e61446e565b50601f01601f191660200190565b600061ffff8083168185168083038211156142b9576142b9614442565b01949350505050565b600082198211156142d5576142d5614442565b500190565b600060ff821660ff84168060ff038211156142f7576142f7614442565b019392505050565b60008261430e5761430e614458565b500490565b600061ffff8381169083168181101561432e5761432e614442565b039392505050565b60008282101561434857614348614442565b500390565b60005b83811015614368578181015183820152602001614350565b83811115610ba25750506000910152565b600181811c9082168061438d57607f821691505b6020821081141561098857634e487b7160e01b600052602260045260246000fd5b600061ffff808316818114156143c6576143c6614442565b6001019392505050565b60006000198214156143e4576143e4614442565b5060010190565b600061ffff8084168061440057614400614458565b92169190910692915050565b60008261441b5761441b614458565b500690565b600060ff83168061443357614433614458565b8060ff84160691505092915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610aa957600080fdfea2646970667358221220233205eac0e12c2efae87b38b6699bf421ea91015f4dbfa2f899164da8110d1f64736f6c63430008040033

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

000000000000000000000000000000000000000000000000000000000000c350

-----Decoded View---------------
Arg [0] : _maxTokens (uint256): 50000

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000000c350


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.