ETH Price: $2,613.01 (+1.57%)

Token

Catryoshkas (Catryoshkas)
 

Overview

Max Total Supply

1,110 Catryoshkas

Holders

263

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 Catryoshkas
0xfa9812f92a66eab059b2d085ec524d119ca9a090
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:
Catryoshkas

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 16 : Catryoshkas.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^ 0.8.0;
import "../shared/Ownables.sol";
import "../shared/IE721Comp.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
contract Catryoshkas is ERC721, IE721Comp, ERC721Enumerable, Ownables {

    using SafeMath for uint256;

    string private _metadataAPI;

    bool private _hasSaleStarted = false;
    bool private _hasPresaleStarted = true;

    uint256 private _drops;
    uint256 private _kittensMinted;
    uint256 private _bigCatsMinted;
    uint256 private _MINT_PRICE = 0.06 ether;
    uint256 private constant _MAX_MINT_SUPPLY = 8888;
    uint256 private constant _PRESALE_MAX_SUPPLY = 1000;

    mapping(uint256 => bool) private _catsBreed;
    
    constructor(
        string memory tokenName_,
        string memory tokenSymbol_,
        string memory initMetadataAPI_,
        address secondOwner_
    ) ERC721(tokenName_, tokenSymbol_) {

        _metadataAPI = initMetadataAPI_;
        _setSecondOwner(secondOwner_);

    }
  
    function mintTokens(uint256 numberOfTokens_) public payable {
        
        require(_hasSaleStarted || _hasPresaleStarted,  "Invalid mint action");
        require(msg.value >= numberOfTokens_.mul(_MINT_PRICE),  "Invalid ether value");
        
        if(_hasPresaleStarted){

            require(totalMintedSupply().add(numberOfTokens_) <= _PRESALE_MAX_SUPPLY, "Exceeds presale limit");

        }

        if(_hasSaleStarted){

             require(
                totalMintedSupply().add(numberOfTokens_) <= _MAX_MINT_SUPPLY,
                "Exceeds mint supply"
            );

        }

        _mintTokens(numberOfTokens_);
        
    }

    function _mintTokens(uint256 numberOfTokens_) internal {
        
        for (uint256 index = 0; index < numberOfTokens_; index++) {

            uint256 nextKittenIndex = _MAX_MINT_SUPPLY.add(111).add(_kittensMinted);

            _safeMint(_msgSender(), totalMintedSupply());
            
            if(isKittenCreator(totalMintedSupply())) {

                _safeMint(_msgSender(), nextKittenIndex);

                _kittensMinted = _kittensMinted.add(1);

            }
           

        }

    }

   
    function breed(uint256 idCat1_ , uint256 idCat2_) public {

        require(_bigCatsMinted <= 111, "all big cats minted");

        require( ownerOf(idCat1_) == _msgSender(), "cat1 not owned");
        require( ownerOf(idCat2_) == _msgSender(), "cat2 not owned");

        require(isSpecialCat(idCat1_), "cat1 not special");
        require(isSpecialCat(idCat2_), "cat2 not special");

        require(!hasBreed(idCat1_), "cat1 has breed");
        require(!hasBreed(idCat2_), "cat2 has breed");

        _safeMint(_msgSender(), _MAX_MINT_SUPPLY.add(_bigCatsMinted));

        _bigCatsMinted = _bigCatsMinted.add(1);

        _catsBreed[idCat1_] = true;
        _catsBreed[idCat2_] = true;

    }

    function setMetadataAPI(string memory newMetadataAPI_) public onlyOwner {

        _metadataAPI = newMetadataAPI_;

    }

    function toggleSaleStarted() public onlyOwners {

        _hasSaleStarted = !_hasSaleStarted;

    }

    function togglePresaleStarted() public onlyOwners {

        _hasPresaleStarted = !_hasPresaleStarted;

    }
    
    function setMintPrice(uint newPrice_) public onlyOwners {
        _MINT_PRICE = newPrice_;
    }

    function maxMintSupply() public pure returns (uint256) {
        return _MAX_MINT_SUPPLY;
    }
    
    function mintPrice() public view returns (uint256) {
        return _MINT_PRICE;
    }
    
    function bigCatsMinted() public view returns (uint256) {
        return _bigCatsMinted;
    }

    function kittensMinted() public view returns (uint256) {
        return _kittensMinted;
    }

    function drops() public view returns (uint256) {
        return _drops;
    }

    function hasBreed(uint256 id_) public view returns(bool) {

        require(isSpecialCat(id_), "Not special cat");

        return _catsBreed[id_];

    }

    function hasSaleStarted() public view returns(bool) {

        return _hasSaleStarted;

    }
    
    function hasPresaleStarted() public view returns(bool) {

        return _hasPresaleStarted;

    }

    function totalMintedSupply() public view returns(uint256) {

        return totalSupply().sub(reserveSupplyMinted());

    }

    function reserveSupplyMinted() public view returns(uint256) {

        return _drops.add(_kittensMinted).add(_bigCatsMinted); 

    }
    
    function giveAway(uint256[] memory numberOfTokens_, address[] memory toAddresses_) public onlyOwners {

        require(totalSupply() <= 10000);

        for (uint256 addressIndex = 0; addressIndex < toAddresses_.length; addressIndex++) {

            address reciever = toAddresses_[addressIndex];
            uint256 amount = numberOfTokens_[addressIndex];

            for (uint256 counter = 0; counter < amount; counter++) {
                    
                uint256 nextDropIndex = _MAX_MINT_SUPPLY.add(222).add(_drops);
                
                _safeMint(reciever, nextDropIndex);
                
                _drops = _drops.add(1);

            }

        }       

    }

    function _baseURI() internal view override returns(string memory) {
        return _metadataAPI;
    }

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

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC721Enumerable) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    receive() external payable {}

}

File 2 of 16 : Ownables.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^ 0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";


abstract contract Ownables is Ownable {

    using SafeMath for uint256;
    
    struct TransferController {

        uint256 amount;
        address sendToAddress;

    }

    address private _secondOwner;
    
    TransferController private _ownerController;
    TransferController private _secondOwnerController;

    modifier onlySecondOwner() {
        require(secondOwner() == _msgSender(), "Not second owner");
        _;
    }

    modifier onlyOwners () {
         require(
            owner() == _msgSender() || secondOwner() == _msgSender(), 
            "Owners only");
        _;
    }

    modifier ownersAgreed () {
         require(
            isAmountAgreed() && isAddressAgreed(), 
            "Not agreed");
        _;
    }

    function transferSecondOwnership(address newSecondOwner_) public virtual onlySecondOwner {
        require(newSecondOwner_ != address(0), "zero address owner");
       _setSecondOwner(newSecondOwner_);
    }

    function renounceSecondOwnership() public virtual onlySecondOwner {
        _setSecondOwner(address(0));
    }

    function setOwnerTransaction(uint256 amount_, address sendToAddress_) public onlyOwners {

        if ( _msgSender() == owner() ) {

               _ownerController.amount = amount_; 
               _ownerController.sendToAddress = sendToAddress_;

        }

        if ( _msgSender() == secondOwner() ) {

               _secondOwnerController.amount = amount_; 
               _secondOwnerController.sendToAddress = sendToAddress_;
               
        }

    }
    
    function withdraw() public onlyOwners {

        uint256 balance = address(this).balance;
        uint256 share = balance.div(2);

        payable(owner()).transfer(share);
        payable(secondOwner()).transfer(share);

    }
    
    function withdrawTo(uint256 amount_ , address to_) public onlyOwners ownersAgreed {
        
        _resetAgreement(owner());
        _resetAgreement(secondOwner());

        payable(to_).transfer(amount_);

    }


    function resetOwnerAgreement() public onlyOwners {

        _resetAgreement(_msgSender());

    }

    function _resetAgreement(address owner_) internal {

        if ( owner_ == owner() ){
            
            _ownerController.amount = 0; 
            _ownerController.sendToAddress = address(0);
        
        }

        if( owner_ == secondOwner() ){

            _secondOwnerController.amount = 0; 
            _secondOwnerController.sendToAddress = address(0);

        }

    }

    function _setSecondOwner(address newSecondOwner_) internal {
         _secondOwner = newSecondOwner_;
    }
    
    function secondOwner() public view virtual returns (address) {
        return _secondOwner;
    }

    function isAmountAgreed() public view returns (bool) {

        bool isNotNullValue = _ownerController.amount != 0 && _secondOwnerController.amount != 0;
        bool isSameAmount = _ownerController.amount == _secondOwnerController.amount;
        
        return (isNotNullValue && isSameAmount);
        
    }
    
    function isAddressAgreed() public view returns (bool) {
        
        bool isNotZeroAddress = _ownerController.sendToAddress != address(0) && _secondOwnerController.sendToAddress != address(0);
        bool isSameAddress = _ownerController.sendToAddress == _secondOwnerController.sendToAddress;
        
        return (isNotZeroAddress && isSameAddress);
        
    }


}

File 3 of 16 : IE721Comp.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^ 0.8.0;
abstract contract IE721Comp {

    uint256[222] private _sC = [
        4738, 3511, 2730, 1350, 1656, 277, 667, 842, 1535, 799, 1799, 1057, 10,
        4077, 1510, 4008, 8235, 7032, 3855, 7592, 4552, 579, 8035, 1240, 6314, 693,
        6819, 2148, 1927, 309, 31, 6633, 1937, 2887, 5406, 4158, 328, 3689, 161,
        1786, 6644, 7553, 3586, 2177, 2210, 1680, 7112, 3437, 7894, 4530, 3585,
        1482, 371, 1781, 6725, 941, 5181, 1622, 894, 3849, 660, 7618, 8412, 158,
        7026, 5603, 1630, 3659, 6706, 7433, 4456, 607, 41, 1255, 7543, 5815, 5776,
        2547, 2741, 6698, 2865, 5934, 5705, 3813, 5287, 1169, 435, 8853, 7228, 3685,
        4759, 3115, 592, 5675, 3920, 6997, 4616, 4457, 4109, 8042, 3828, 7243, 8204,
        6238, 8509, 6178, 2327, 5595, 2992, 934, 6886, 296, 8004, 5707, 6208, 8548,
        1200, 6486, 1381, 7803, 2495, 2880, 2204, 519, 5149, 5486, 6484, 5171, 7432,
        7178, 3909, 5004, 921, 7429, 3958, 7917, 7063, 4880, 847, 911, 5360, 479,
        5238, 8497, 3314, 4101, 4131, 4067, 729, 8339, 1281, 1928, 1365, 7679, 641,
        8832, 145, 5829, 6392, 1179, 258, 2569, 6007, 5112, 4804, 8114, 4566, 388,
        7983, 1991, 2606, 5460, 252, 4551, 7529, 3836, 5987, 7475, 2792, 7373, 3590,
        3568, 3652, 8429, 6403, 8833, 6857, 8407, 3342, 5034, 8431, 3706, 5720,
        7793, 1377, 2697, 1545, 5901, 1729, 3732, 7244, 4754, 5375, 1520, 3729, 97,
        5358, 888, 8742, 8048, 4960, 7019, 2150, 8462, 4869, 6827, 2321, 8561, 5764,
        6539, 1644, 8521
    ];

    uint256[111] private _kC = [
        2975, 2782, 3031, 1, 444, 2777, 2819, 100, 775, 1486, 153, 2907, 996, 1636,
        200, 2102, 730, 2886, 2515, 447, 8786, 3895, 4549, 7899, 5396, 3137, 680,
        1826, 5950, 7809, 4184, 3410, 7233, 6648, 6956, 6364, 1746, 5425, 6438,
        3017, 4214, 5769, 7149, 4556, 12, 2977, 3512, 1131, 4345, 816, 461, 4529,
        3190, 2041, 44, 2191, 837, 3948, 6362, 1040, 2199, 1748, 2338, 134, 2328,
        1856, 8140, 222, 6385, 6457, 3821, 6192, 4, 723, 58, 7290, 1089, 8037, 3805,
        1509, 1274, 4512, 7603, 1158, 4113, 1705, 4454, 6284, 8801, 2932, 4595, 480,
        4317, 7332, 1269, 7723, 1768, 3396, 4743, 5362, 6856, 8065, 7687, 7075,
        7345, 7249, 5314, 5696, 4945, 6204, 7003
    ];



     function isSpecialCat(uint256 id_) public view returns(bool) {

        bool isSpecial = false;

        for (uint256 index = 0; index < _sC.length; index++) {

            if(_sC[index] == id_) {
                isSpecial = true;
            }
            
        }

        return isSpecial;

    }

    function isKittenCreator(uint256 id_) public view returns(bool) {

        bool isSpecial = false;

        for (uint256 index = 0; index < _kC.length; index++) {

            if(_kC[index] == id_) {
                isSpecial = true;
            }
            
        }

        return isSpecial;

    }


}

File 4 of 16 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 5 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver(to).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 6 of 16 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

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 7 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 8 of 16 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 9 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

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

File 10 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 11 of 16 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 12 of 16 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private 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 13 of 16 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 14 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 15 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface 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);
}

File 16 of 16 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

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);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"tokenName_","type":"string"},{"internalType":"string","name":"tokenSymbol_","type":"string"},{"internalType":"string","name":"initMetadataAPI_","type":"string"},{"internalType":"address","name":"secondOwner_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bigCatsMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"idCat1_","type":"uint256"},{"internalType":"uint256","name":"idCat2_","type":"uint256"}],"name":"breed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"drops","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"numberOfTokens_","type":"uint256[]"},{"internalType":"address[]","name":"toAddresses_","type":"address[]"}],"name":"giveAway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"hasBreed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasPresaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isAddressAgreed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isAmountAgreed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"id_","type":"uint256"}],"name":"isKittenCreator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"isSpecialCat","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"kittensMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens_","type":"uint256"}],"name":"mintTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceSecondOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveSupplyMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"resetOwnerAgreement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"secondOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newMetadataAPI_","type":"string"}],"name":"setMetadataAPI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice_","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount_","type":"uint256"},{"internalType":"address","name":"sendToAddress_","type":"address"}],"name":"setOwnerTransaction","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":[],"name":"togglePresaleStarted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSaleStarted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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":"totalMintedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSecondOwner_","type":"address"}],"name":"transferSecondOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount_","type":"uint256"},{"internalType":"address","name":"to_","type":"address"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

611c406040526112826080908152610db760a052610aaa60c05261054660e052610678610100526101156101205261029b6101405261034a610160526105ff6101805261031f6101a0526107076101c0526104216101e052600a61020052610fed610220526105e661024052610fa86102605261202b61028052611b786102a052610f0f6102c052611da86102e0526111c86103005261024361032052611f63610340526104d8610360526118aa610380526102b56103a052611aa36103c0526108646103e0526107876104005261013561042052601f610440526119e96104605261079161048052610b476104a05261151e6104c05261103e6104e05261014861050052610e696105205260a1610540526106fa610560526119f461058052611d816105a052610e026105c0526108816105e0526108a26106005261069061062052611bc861064052610d6d61066052611ed6610680526111b26106a052610e016106c0526105ca6106e052610173610700526106f561072052611a45610740526103ad6107605261143d610780526106566107a05261037e6107c052610f096107e05261029461080052611dc2610820526120dc61084052609e61086052611b72610880526115e36108a05261065e6108c052610e4b6108e052611a3261090052611d09610920526111686109405261025f610960526029610980526104e76109a052611d776109c0526116b76109e052611690610a00526109f3610a2052610ab5610a4052611a2a610a6052610b31610a805261172e610aa052611649610ac052610ee5610ae0526114a7610b0052610491610b20526101b3610b40908152612295610b6052611c3c610b8052610e65610ba052611297610bc052610c2b610be052610250610c005261162b610c2052610f50610c4052611b55610c6052611208610c8052611169610ca05261100d610cc052611f6a610ce052610ef4610d0052611c4b610d205261200c610d405261185e610d605261213d610d8052611822610da052610917610dc0526115db610de052610bb0610e00526103a6610e2052611ae6610e4052610128610e6052611f44610e805261164b610ea052611840610ec0819052612164610ee0526104b0610f0052611956610f2052610565610f4052611e7b610f60526109bf610f8052610fa09190915261089c610fc052610207610fe05261141d6110005261156e611020526119546110405261143361106052611d0861108052611c0a6110a052610f456110c05261138c6110e05261039961110052611d0561112052610f7661114052611eed61116052611b97611180526113106111a05261034f6111c05261038f6111e0526114f0611200526101df611220526114766112405261213161126052610cf2611280526110056112a0526110236112c052610fe36112e0526102d961130052612093611320526105016113405261078861136090815261055561138052611dff6113a0526102816113c0526122806113e0526091611400526116c5611420526118f86114405261049b6114605261010261148052610a096114a0526117776114c0526113f86114e0526112c461150052611fb2611520526111d66115405261018461156052611f2f611580526107c76115a052610a2e6115c0526115546115e05260fc611600526111c761162052611d6961164052610efc6116605261176361168052611d336116a052610ae86116c052611ccd6116e052610e0661170052610df061172052610e44611740526120ed61176052611903611780526122816117a052611ac96117c0526120d76117e052610d0e611800526113aa611820526120ef909152610e7a6118605261165861188052611e716118a0526105616118c052610a896118e0526106096119005261170d611920526106c161194052610e9461196052611c4c611980526112926119a0526114ff6119c0526105f06119e052610e91611a00526061611a20526114ee611a4052610378611a6052612226611a8052611f70611aa052611ac052611b6b611ae052610866611b005261210e611b2052611305611b4052611aab611b6052610911611b8052612171611ba052611684611bc05261198b611be05261066c611c0052612149611c20526200061f9060069060de62000b50565b5060408051610de081018252610b9f8152610ade6020820152610bd791810191909152600160608201526101bc6080820152610ad960a0820152610b0360c0820152606460e08201526103076101008201526105ce6101208201526099610140820152610b5b6101608201526103e46101808201526106646101a082015260c86101c08201526108366101e0808301919091526102da610200830152610b466102208301526109d36102408301526101bf610260830152612252610280830152610f376102a08301526111c56102c0830152611edb6102e0830152611514610300830152610c416103208301526102a861034083015261072261036083015261173e610380830152611e816103a08301526110586103c0830152610d526103e0830152611c416104008301526119f8610420830152611b2c6104408301526118dc6104608301526106d26104808301526115316104a08301526119266104c0830152610bc96104e0830152611076610500830152611689610520830152611bed6105408301526111cc610560830152600c610580830152610ba16105a0830152610db86105c083015261046b6105e08301526110f96106008301526103306106208301526101cd6106408301526111b1610660830152610c766106808301526107f96106a0830152602c6106c083015261088f6106e0830152610345610700830152610f6c6107208301526118da610740808401919091526104106107608401526108976107808401526106d46107a08401526109226107c084015260866107e0840152610918610800840152610820830152611fcc61084083015260de6108608301526118f16108808301526119396108a0830152610eed6108c08301526118306108e083015260046109008301526102d3610920830152603a610940830152611c7a610960830152610441610980830152611f656109a0830152610edd6109c08301526105e56109e08301526104fa610a008301526111a0610a20830152611db3610a40830152610486610a60830152611011610a808301526106a9610aa0830152611166610ac083015261188c610ae0830152612261610b00830152610b74610b208301526111f3610b40830152610b608201526110dd610b80820152611ca4610ba08201526104f5610bc0820152611e2b610be08201526106e8610c00820152610d44610c20820152611287610c408201526114f2610c60820152611ac8610c80820152611f81610ca0820152611e07610cc0820152611ba3610ce0820152611cb1610d00820152611c51610d208201526114c2610d40820152611640610d60820152611351610d8082015261183c610da0820152611b5b610dc082015262000a119060e490606f62000b99565b5061015e805461ffff191661010017905566d529ae9e8600006101625534801562000a3b57600080fd5b50604051620043503803806200435083398101604081905262000a5e9162000d0e565b83518490849062000a7790600090602085019062000bcf565b50805162000a8d90600190602084019062000bcf565b50505062000aaa62000aa462000ad660201b60201c565b62000ada565b815162000ac09061015d90602085019062000bcf565b5062000acc8162000b2d565b5050505062000e0f565b3390565b61015780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61015880546001600160a01b0319166001600160a01b0392909216919091179055565b8260de810192821562000b87579160200282015b8281111562000b87578251829061ffff1690559160200191906001019062000b64565b5062000b9592915062000c4c565b5090565b82606f810192821562000b87579160200282018281111562000b87578251829061ffff1690559160200191906001019062000b64565b82805462000bdd9062000dbc565b90600052602060002090601f01602090048101928262000c01576000855562000b87565b82601f1062000c1c57805160ff191683800117855562000b87565b8280016001018555821562000b87579182015b8281111562000b8757825182559160200191906001019062000c2f565b5b8082111562000b95576000815560010162000c4d565b600082601f83011262000c74578081fd5b81516001600160401b038082111562000c915762000c9162000df9565b6040516020601f8401601f191682018101838111838210171562000cb95762000cb962000df9565b604052838252858401810187101562000cd0578485fd5b8492505b8383101562000cf3578583018101518284018201529182019162000cd4565b8383111562000d0457848185840101525b5095945050505050565b6000806000806080858703121562000d24578384fd5b84516001600160401b038082111562000d3b578586fd5b62000d498883890162000c63565b9550602087015191508082111562000d5f578485fd5b62000d6d8883890162000c63565b9450604087015191508082111562000d83578384fd5b5062000d928782880162000c63565b606087015190935090506001600160a01b038116811462000db1578182fd5b939692955090935050565b60028104600182168062000dd157607f821691505b6020821081141562000df357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6135318062000e1f6000396000f3fe60806040526004361061030c5760003560e01c80638da5cb5b1161019a578063c21d59bb116100e1578063d8b7df0b1161008a578063ed1fc2a211610064578063ed1fc2a2146107e3578063f2fde38b146107f8578063f4a0a5281461081857610313565b8063d8b7df0b1461078e578063d9ecad7b146107a3578063e985e9c5146107c357610313565b8063c85fee8b116100bb578063c85fee8b1461072e578063c86283c81461074e578063c87b56dd1461076e57610313565b8063c21d59bb146106ef578063c285e10714610704578063c39a2f5d1461071957610313565b8063b1d51ad111610143578063bc6d26351161011d578063bc6d2635146106a5578063bd0cba76146106ba578063bd16c139146106cf57610313565b8063b1d51ad114610645578063b88d4fde14610665578063bac7f7841461068557610313565b8063a22cb46511610174578063a22cb465146105fb578063aeb8ef5a1461061b578063b02200151461063057610313565b80638da5cb5b146105be57806395d89b41146105d357806397304ced146105e857610313565b80632f745c591161025e5780636352211e1161020757806370a08231116101e157806370a0823114610569578063715018a6146105895780638bd6d0731461059e57610313565b80636352211e1461051f5780636817c76c1461053f57806368a9f31c1461055457610313565b806343a08b781161023857806343a08b78146104ca5780634f6ccce7146104ea578063601e26031461050a57610313565b80632f745c59146104755780633ccfd60b1461049557806342842e0e146104aa57610313565b806318160ddd116102c057806323b872dd1161029a57806323b872dd1461042b57806329dadda31461044b5780632aa071a81461046057610313565b806318160ddd146103e15780631c8b232d146103f65780631f9887d91461040b57610313565b806306fdde03116102f157806306fdde0314610370578063081812fc14610392578063095ea7b3146103bf57610313565b806301ffc9a7146103185780630674160a1461034e57610313565b3661031357005b600080fd5b34801561032457600080fd5b50610338610333366004612876565b610838565b60405161034591906129fa565b60405180910390f35b34801561035a57600080fd5b5061036361084b565b6040516103459190613354565b34801561037c57600080fd5b50610385610852565b6040516103459190612a05565b34801561039e57600080fd5b506103b26103ad3660046128f4565b6108e4565b60405161034591906129aa565b3480156103cb57600080fd5b506103df6103da366004612796565b610930565b005b3480156103ed57600080fd5b506103636109c8565b34801561040257600080fd5b506103386109cf565b34801561041757600080fd5b506103df6104263660046127bf565b6109d9565b34801561043757600080fd5b506103df6104463660046126a8565b610b2d565b34801561045757600080fd5b50610363610b65565b34801561046c57600080fd5b50610338610b6c565b34801561048157600080fd5b50610363610490366004612796565b610ba2565b3480156104a157600080fd5b506103df610bf5565b3480156104b657600080fd5b506103df6104c53660046126a8565b610cef565b3480156104d657600080fd5b506103df6104e536600461265c565b610d0a565b3480156104f657600080fd5b506103636105053660046128f4565b610d7b565b34801561051657600080fd5b50610363610dd7565b34801561052b57600080fd5b506103b261053a3660046128f4565b610df7565b34801561054b57600080fd5b50610363610e2c565b34801561056057600080fd5b506103b2610e33565b34801561057557600080fd5b5061036361058436600461265c565b610e43565b34801561059557600080fd5b506103df610e87565b3480156105aa57600080fd5b506103386105b93660046128f4565b610ed2565b3480156105ca57600080fd5b506103b2610f28565b3480156105df57600080fd5b50610385610f38565b6103df6105f63660046128f4565b610f47565b34801561060757600080fd5b506103df61061636600461275c565b61102b565b34801561062757600080fd5b506103df6110f9565b34801561063c57600080fd5b50610338611172565b34801561065157600080fd5b506103386106603660046128f4565b611181565b34801561067157600080fd5b506103df6106803660046126e3565b6111bf565b34801561069157600080fd5b506103386106a03660046128f4565b6111fe565b3480156106b157600080fd5b506103df61124d565b3480156106c657600080fd5b506103636112cb565b3480156106db57600080fd5b506103df6106ea3660046128ae565b6112ed565b3480156106fb57600080fd5b50610338611344565b34801561071057600080fd5b50610363611396565b34801561072557600080fd5b506103df61139c565b34801561073a57600080fd5b506103df61074936600461290c565b6113e5565b34801561075a57600080fd5b506103df61076936600461290c565b6114e9565b34801561077a57600080fd5b506103856107893660046128f4565b6115d1565b34801561079a57600080fd5b50610363611654565b3480156107af57600080fd5b506103df6107be36600461292e565b61165b565b3480156107cf57600080fd5b506103386107de366004612676565b6117f9565b3480156107ef57600080fd5b506103df611827565b34801561080457600080fd5b506103df61081336600461265c565b6118ae565b34801561082457600080fd5b506103df6108333660046128f4565b61191c565b60006108438261198b565b90505b919050565b61015f5490565b60606000805461086190613439565b80601f016020809104026020016040519081016040528092919081815260200182805461088d90613439565b80156108da5780601f106108af576101008083540402835291602001916108da565b820191906000526020600020905b8154815290600101906020018083116108bd57829003601f168201915b5050505050905090565b60006108ef826119c9565b6109145760405162461bcd60e51b815260040161090b90612f81565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061093b82610df7565b9050806001600160a01b0316836001600160a01b0316141561096f5760405162461bcd60e51b815260040161090b906130f3565b806001600160a01b03166109816119e6565b6001600160a01b0316148061099d575061099d816107de6119e6565b6109b95760405162461bcd60e51b815260040161090b90612d59565b6109c383836119ea565b505050565b6101555490565b61015e5460ff1690565b6109e16119e6565b6001600160a01b03166109f2610f28565b6001600160a01b03161480610a265750610a0a6119e6565b6001600160a01b0316610a1b610e33565b6001600160a01b0316145b610a425760405162461bcd60e51b815260040161090b906130bc565b612710610a4d6109c8565b1115610a5857600080fd5b60005b81518110156109c3576000828281518110610a8657634e487b7160e01b600052603260045260246000fd5b602002602001015190506000848381518110610ab257634e487b7160e01b600052603260045260246000fd5b6020026020010151905060005b81811015610b175761015f54600090610ae590610adf6122b860de611a58565b90611a58565b9050610af18482611a64565b61015f54610b00906001611a58565b61015f555080610b0f81613474565b915050610abf565b5050508080610b2590613474565b915050610a5b565b610b3e610b386119e6565b82611a7e565b610b5a5760405162461bcd60e51b815260040161090b90613187565b6109c3838383611b03565b6101605490565b61015954600090819015801590610b85575061015b5415155b61015b546101595491925014818015610b9b5750805b9250505090565b6000610bad83610e43565b8210610bcb5760405162461bcd60e51b815260040161090b90612a86565b506001600160a01b0391909116600090815261015360209081526040808320938352929052205490565b610bfd6119e6565b6001600160a01b0316610c0e610f28565b6001600160a01b03161480610c425750610c266119e6565b6001600160a01b0316610c37610e33565b6001600160a01b0316145b610c5e5760405162461bcd60e51b815260040161090b906130bc565b476000610c6c826002611c30565b9050610c76610f28565b6001600160a01b03166108fc829081150290604051600060405180830381858888f19350505050158015610cae573d6000803e3d6000fd5b50610cb7610e33565b6001600160a01b03166108fc829081150290604051600060405180830381858888f193505050501580156109c3573d6000803e3d6000fd5b6109c3838383604051806020016040528060008152506111bf565b610d126119e6565b6001600160a01b0316610d23610e33565b6001600160a01b031614610d495760405162461bcd60e51b815260040161090b90612c9f565b6001600160a01b038116610d6f5760405162461bcd60e51b815260040161090b90612d22565b610d7881611c3c565b50565b6000610d856109c8565b8210610da35760405162461bcd60e51b815260040161090b9061321b565b6101558281548110610dc557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000610df2610de46112cb565b610dec6109c8565b90611c5f565b905090565b6000818152600260205260408120546001600160a01b0316806108435760405162461bcd60e51b815260040161090b90612e4a565b6101625490565b610158546001600160a01b031690565b60006001600160a01b038216610e6b5760405162461bcd60e51b815260040161090b90612ded565b506001600160a01b031660009081526003602052604090205490565b610e8f6119e6565b6001600160a01b0316610ea0610f28565b6001600160a01b031614610ec65760405162461bcd60e51b815260040161090b90612fcd565b610ed06000611c6b565b565b600080805b606f811015610f21578360e482606f8110610f0257634e487b7160e01b600052603260045260246000fd5b01541415610f0f57600191505b80610f1981613474565b915050610ed7565b5092915050565b610157546001600160a01b031690565b60606001805461086190613439565b61015e5460ff1680610f61575061015e54610100900460ff165b610f7d5760405162461bcd60e51b815260040161090b906132af565b61016254610f8c908290611cbe565b341015610fab5760405162461bcd60e51b815260040161090b906131e4565b61015e54610100900460ff1615610fe9576103e8610fcb82610adf610dd7565b1115610fe95760405162461bcd60e51b815260040161090b90612a18565b61015e5460ff1615611022576122b861100482610adf610dd7565b11156110225760405162461bcd60e51b815260040161090b90612db6565b610d7881611cca565b6110336119e6565b6001600160a01b0316826001600160a01b031614156110645760405162461bcd60e51b815260040161090b90612c68565b80600560006110716119e6565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556110b56119e6565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516110ed91906129fa565b60405180910390a35050565b6111016119e6565b6001600160a01b0316611112610f28565b6001600160a01b03161480611146575061112a6119e6565b6001600160a01b031661113b610e33565b6001600160a01b0316145b6111625760405162461bcd60e51b815260040161090b906130bc565b610ed061116d6119e6565b611d4a565b61015e54610100900460ff1690565b600061118c826111fe565b6111a85760405162461bcd60e51b815260040161090b906132e6565b506000908152610163602052604090205460ff1690565b6111d06111ca6119e6565b83611a7e565b6111ec5760405162461bcd60e51b815260040161090b90613187565b6111f884848484611dbe565b50505050565b600080805b60de811015610f21578360068260de811061122e57634e487b7160e01b600052603260045260246000fd5b0154141561123b57600191505b8061124581613474565b915050611203565b6112556119e6565b6001600160a01b0316611266610f28565b6001600160a01b0316148061129a575061127e6119e6565b6001600160a01b031661128f610e33565b6001600160a01b0316145b6112b65760405162461bcd60e51b815260040161090b906130bc565b61015e805460ff19811660ff90911615179055565b6000610df261016154610adf6101605461015f54611a5890919063ffffffff16565b6112f56119e6565b6001600160a01b0316611306610f28565b6001600160a01b03161461132c5760405162461bcd60e51b815260040161090b90612fcd565b80516113409061015d9060208401906124e1565b5050565b61015a5460009081906001600160a01b03161580159061136f575061015c546001600160a01b031615155b61015c5461015a549192506001600160a01b03918216911614818015610b9b575092915050565b6122b890565b6113a46119e6565b6001600160a01b03166113b5610e33565b6001600160a01b0316146113db5760405162461bcd60e51b815260040161090b90612c9f565b610ed06000611c3c565b6113ed6119e6565b6001600160a01b03166113fe610f28565b6001600160a01b0316148061143257506114166119e6565b6001600160a01b0316611427610e33565b6001600160a01b0316145b61144e5760405162461bcd60e51b815260040161090b906130bc565b611456610f28565b6001600160a01b03166114676119e6565b6001600160a01b031614156114995761015982905561015a80546001600160a01b0319166001600160a01b0383161790555b6114a1610e33565b6001600160a01b03166114b26119e6565b6001600160a01b031614156113405761015b82905561015c80546001600160a01b0383166001600160a01b03199091161790555050565b6114f16119e6565b6001600160a01b0316611502610f28565b6001600160a01b03161480611536575061151a6119e6565b6001600160a01b031661152b610e33565b6001600160a01b0316145b6115525760405162461bcd60e51b815260040161090b906130bc565b61155a610b6c565b80156115695750611569611344565b6115855760405162461bcd60e51b815260040161090b90612f4a565b61159061116d610f28565b61159b61116d610e33565b6040516001600160a01b0382169083156108fc029084906000818181858888f193505050501580156109c3573d6000803e3d6000fd5b60606115dc826119c9565b6115f85760405162461bcd60e51b815260040161090b9061305f565b6000611602611df1565b90506000815111611622576040518060200160405280600081525061164d565b8061162c84611e01565b60405160200161163d92919061297b565b6040516020818303038152906040525b9392505050565b6101615490565b606f61016154111561167f5760405162461bcd60e51b815260040161090b90612f13565b6116876119e6565b6001600160a01b031661169983610df7565b6001600160a01b0316146116bf5760405162461bcd60e51b815260040161090b90613150565b6116c76119e6565b6001600160a01b03166116d982610df7565b6001600160a01b0316146116ff5760405162461bcd60e51b815260040161090b9061331d565b611708826111fe565b6117245760405162461bcd60e51b815260040161090b90612b40565b61172d816111fe565b6117495760405162461bcd60e51b815260040161090b90612a4f565b61175282611181565b1561176f5760405162461bcd60e51b815260040161090b90612ea7565b61177881611181565b156117955760405162461bcd60e51b815260040161090b90613278565b6117b66117a06119e6565b610161546117b1906122b890611a58565b611a64565b610161546117c5906001611a58565b61016155600091825261016360205260408083208054600160ff199182168117909255928452922080549091169091179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61182f6119e6565b6001600160a01b0316611840610f28565b6001600160a01b0316148061187457506118586119e6565b6001600160a01b0316611869610e33565b6001600160a01b0316145b6118905760405162461bcd60e51b815260040161090b906130bc565b61015e805461ff001981166101009182900460ff1615909102179055565b6118b66119e6565b6001600160a01b03166118c7610f28565b6001600160a01b0316146118ed5760405162461bcd60e51b815260040161090b90612fcd565b6001600160a01b0381166119135760405162461bcd60e51b815260040161090b90612b77565b610d7881611c6b565b6119246119e6565b6001600160a01b0316611935610f28565b6001600160a01b03161480611969575061194d6119e6565b6001600160a01b031661195e610e33565b6001600160a01b0316145b6119855760405162461bcd60e51b815260040161090b906130bc565b61016255565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610843575061084382611f50565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611a1f82610df7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061164d82846133ab565b611340828260405180602001604052806000815250611fc2565b6000611a89826119c9565b611aa55760405162461bcd60e51b815260040161090b90612cd6565b6000611ab083610df7565b9050806001600160a01b0316846001600160a01b03161480611aeb5750836001600160a01b0316611ae0846108e4565b6001600160a01b0316145b80611afb5750611afb81856117f9565b949350505050565b826001600160a01b0316611b1682610df7565b6001600160a01b031614611b3c5760405162461bcd60e51b815260040161090b90613002565b6001600160a01b038216611b625760405162461bcd60e51b815260040161090b90612c0b565b611b6d838383611ff5565b611b786000826119ea565b6001600160a01b0383166000908152600360205260408120805460019290611ba19084906133f6565b90915550506001600160a01b0382166000908152600360205260408120805460019290611bcf9084906133ab565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061164d82846133c3565b61015880546001600160a01b0319166001600160a01b0392909216919091179055565b600061164d82846133f6565b61015780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061164d82846133d7565b60005b818110156113405761016054600090611ced90610adf6122b8606f611a58565b9050611d02611cfa6119e6565b6117b1610dd7565b611d0d6105b9610dd7565b15611d3757611d23611d1d6119e6565b82611a64565b61016054611d32906001611a58565b610160555b5080611d4281613474565b915050611ccd565b611d52610f28565b6001600160a01b0316816001600160a01b03161415611d835760006101595561015a80546001600160a01b03191690555b611d8b610e33565b6001600160a01b0316816001600160a01b03161415610d7857600061015b5561015c80546001600160a01b031916905550565b611dc9848484611b03565b611dd584848484612000565b6111f85760405162461bcd60e51b815260040161090b90612ae3565b606061015d805461086190613439565b606081611e42575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610846565b8160005b8115611e6c5780611e5681613474565b9150611e659050600a836133c3565b9150611e46565b60008167ffffffffffffffff811115611e9557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611ebf576020820181803683370190505b5090505b8415611afb57611ed46001836133f6565b9150611ee1600a8661348f565b611eec9060306133ab565b60f81b818381518110611f0f57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611f49600a866133c3565b9450611ec3565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480611fb357506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610843575061084382612134565b611fcc8383612166565b611fd96000848484612000565b6109c35760405162461bcd60e51b815260040161090b90612ae3565b6109c3838383612245565b6000612014846001600160a01b03166122ce565b1561212957836001600160a01b031663150b7a026120306119e6565b8786866040518563ffffffff1660e01b815260040161205294939291906129be565b602060405180830381600087803b15801561206c57600080fd5b505af192505050801561209c575060408051601f3d908101601f1916820190925261209991810190612892565b60015b6120f6573d8080156120ca576040519150601f19603f3d011682016040523d82523d6000602084013e6120cf565b606091505b5080516120ee5760405162461bcd60e51b815260040161090b90612ae3565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611afb565b506001949350505050565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b6001600160a01b03821661218c5760405162461bcd60e51b815260040161090b90612ede565b612195816119c9565b156121b25760405162461bcd60e51b815260040161090b90612bd4565b6121be60008383611ff5565b6001600160a01b03821660009081526003602052604081208054600192906121e79084906133ab565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6122508383836109c3565b6001600160a01b03831661226c57612267816122d4565b61228f565b816001600160a01b0316836001600160a01b03161461228f5761228f838261231a565b6001600160a01b0382166122ab576122a6816123bc565b6109c3565b826001600160a01b0316826001600160a01b0316146109c3576109c3828261249b565b3b151590565b6101558054600083815261015660205260408120829055600182018355919091527f2d16324a3bb06d5c2c2ab04afb8e9104e6f2d7bfce57293a39179b5c11bdbcf70155565b6000600161232784610e43565b61233191906133f6565b60008381526101546020526040902054909150808214612387576001600160a01b038416600090815261015360209081526040808320858452825280832054848452818420819055835261015490915290208190555b506000918252610154602090815260408084208490556001600160a01b03909416835261015381528383209183525290812055565b610155546000906123cf906001906133f6565b60008381526101566020526040812054610155805493945090928490811061240757634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080610155838154811061243757634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152610156909152604080822084905585825281205561015580548061247f57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006124a683610e43565b6001600160a01b0390931660009081526101536020908152604080832086845282528083208590559382526101549052919091209190915550565b8280546124ed90613439565b90600052602060002090601f01602090048101928261250f5760008555612555565b82601f1061252857805160ff1916838001178555612555565b82800160010185558215612555579182015b8281111561255557825182559160200191906001019061253a565b50612561929150612565565b5090565b5b808211156125615760008155600101612566565b600067ffffffffffffffff831115612594576125946134cf565b6125a7601f8401601f191660200161335d565b90508281528383830111156125bb57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461084657600080fd5b600082601f8301126125f9578081fd5b8135602061260e61260983613387565b61335d565b828152818101908583018385028701840188101561262a578586fd5b855b8581101561264f5761263d826125d2565b8452928401929084019060010161262c565b5090979650505050505050565b60006020828403121561266d578081fd5b61164d826125d2565b60008060408385031215612688578081fd5b612691836125d2565b915061269f602084016125d2565b90509250929050565b6000806000606084860312156126bc578081fd5b6126c5846125d2565b92506126d3602085016125d2565b9150604084013590509250925092565b600080600080608085870312156126f8578081fd5b612701856125d2565b935061270f602086016125d2565b925060408501359150606085013567ffffffffffffffff811115612731578182fd5b8501601f81018713612741578182fd5b6127508782356020840161257a565b91505092959194509250565b6000806040838503121561276e578182fd5b612777836125d2565b91506020830135801515811461278b578182fd5b809150509250929050565b600080604083850312156127a8578182fd5b6127b1836125d2565b946020939093013593505050565b600080604083850312156127d1578182fd5b823567ffffffffffffffff808211156127e8578384fd5b818501915085601f8301126127fb578384fd5b8135602061280b61260983613387565b82815281810190858301838502870184018b1015612827578889fd5b8896505b8487101561284957803583526001969096019591830191830161282b565b509650508601359250508082111561285f578283fd5b5061286c858286016125e9565b9150509250929050565b600060208284031215612887578081fd5b813561164d816134e5565b6000602082840312156128a3578081fd5b815161164d816134e5565b6000602082840312156128bf578081fd5b813567ffffffffffffffff8111156128d5578182fd5b8201601f810184136128e5578182fd5b611afb8482356020840161257a565b600060208284031215612905578081fd5b5035919050565b6000806040838503121561291e578182fd5b8235915061269f602084016125d2565b60008060408385031215612940578182fd5b50508035926020909101359150565b6000815180845261296781602086016020860161340d565b601f01601f19169290920160200192915050565b6000835161298d81846020880161340d565b8351908301906129a181836020880161340d565b01949350505050565b6001600160a01b0391909116815260200190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526129f0608083018461294f565b9695505050505050565b901515815260200190565b60006020825261164d602083018461294f565b60208082526015908201527f457863656564732070726573616c65206c696d69740000000000000000000000604082015260600190565b60208082526010908201527f63617432206e6f74207370656369616c00000000000000000000000000000000604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201527f74206f6620626f756e6473000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526010908201527f63617431206e6f74207370656369616c00000000000000000000000000000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526010908201527f4e6f74207365636f6e64206f776e657200000000000000000000000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526012908201527f7a65726f2061646472657373206f776e65720000000000000000000000000000604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b60208082526013908201527f45786365656473206d696e7420737570706c7900000000000000000000000000604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252600e908201527f6361743120686173206272656564000000000000000000000000000000000000604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526013908201527f616c6c206269672063617473206d696e74656400000000000000000000000000604082015260600190565b6020808252600a908201527f4e6f742061677265656400000000000000000000000000000000000000000000604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b6020808252600b908201527f4f776e657273206f6e6c79000000000000000000000000000000000000000000604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252600e908201527f63617431206e6f74206f776e6564000000000000000000000000000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b60208082526013908201527f496e76616c69642065746865722076616c756500000000000000000000000000604082015260600190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201527f7574206f6620626f756e64730000000000000000000000000000000000000000606082015260800190565b6020808252600e908201527f6361743220686173206272656564000000000000000000000000000000000000604082015260600190565b60208082526013908201527f496e76616c6964206d696e7420616374696f6e00000000000000000000000000604082015260600190565b6020808252600f908201527f4e6f74207370656369616c206361740000000000000000000000000000000000604082015260600190565b6020808252600e908201527f63617432206e6f74206f776e6564000000000000000000000000000000000000604082015260600190565b90815260200190565b60405181810167ffffffffffffffff8111828210171561337f5761337f6134cf565b604052919050565b600067ffffffffffffffff8211156133a1576133a16134cf565b5060209081020190565b600082198211156133be576133be6134a3565b500190565b6000826133d2576133d26134b9565b500490565b60008160001904831182151516156133f1576133f16134a3565b500290565b600082821015613408576134086134a3565b500390565b60005b83811015613428578181015183820152602001613410565b838111156111f85750506000910152565b60028104600182168061344d57607f821691505b6020821081141561346e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613488576134886134a3565b5060010190565b60008261349e5761349e6134b9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610d7857600080fdfea2646970667358221220bed424c51affaf5c20e2081684172702d78b84784bbcc9a944d91206c3d6c63764736f6c63430008000033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000046c5975cd8311c7f3a896e501df22bb0015c624c000000000000000000000000000000000000000000000000000000000000000b43617472796f73686b6173000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b43617472796f73686b6173000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002868747470733a2f2f63617472796f73686b61732e6865726f6b756170702e636f6d2f746f6b656e2f000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061030c5760003560e01c80638da5cb5b1161019a578063c21d59bb116100e1578063d8b7df0b1161008a578063ed1fc2a211610064578063ed1fc2a2146107e3578063f2fde38b146107f8578063f4a0a5281461081857610313565b8063d8b7df0b1461078e578063d9ecad7b146107a3578063e985e9c5146107c357610313565b8063c85fee8b116100bb578063c85fee8b1461072e578063c86283c81461074e578063c87b56dd1461076e57610313565b8063c21d59bb146106ef578063c285e10714610704578063c39a2f5d1461071957610313565b8063b1d51ad111610143578063bc6d26351161011d578063bc6d2635146106a5578063bd0cba76146106ba578063bd16c139146106cf57610313565b8063b1d51ad114610645578063b88d4fde14610665578063bac7f7841461068557610313565b8063a22cb46511610174578063a22cb465146105fb578063aeb8ef5a1461061b578063b02200151461063057610313565b80638da5cb5b146105be57806395d89b41146105d357806397304ced146105e857610313565b80632f745c591161025e5780636352211e1161020757806370a08231116101e157806370a0823114610569578063715018a6146105895780638bd6d0731461059e57610313565b80636352211e1461051f5780636817c76c1461053f57806368a9f31c1461055457610313565b806343a08b781161023857806343a08b78146104ca5780634f6ccce7146104ea578063601e26031461050a57610313565b80632f745c59146104755780633ccfd60b1461049557806342842e0e146104aa57610313565b806318160ddd116102c057806323b872dd1161029a57806323b872dd1461042b57806329dadda31461044b5780632aa071a81461046057610313565b806318160ddd146103e15780631c8b232d146103f65780631f9887d91461040b57610313565b806306fdde03116102f157806306fdde0314610370578063081812fc14610392578063095ea7b3146103bf57610313565b806301ffc9a7146103185780630674160a1461034e57610313565b3661031357005b600080fd5b34801561032457600080fd5b50610338610333366004612876565b610838565b60405161034591906129fa565b60405180910390f35b34801561035a57600080fd5b5061036361084b565b6040516103459190613354565b34801561037c57600080fd5b50610385610852565b6040516103459190612a05565b34801561039e57600080fd5b506103b26103ad3660046128f4565b6108e4565b60405161034591906129aa565b3480156103cb57600080fd5b506103df6103da366004612796565b610930565b005b3480156103ed57600080fd5b506103636109c8565b34801561040257600080fd5b506103386109cf565b34801561041757600080fd5b506103df6104263660046127bf565b6109d9565b34801561043757600080fd5b506103df6104463660046126a8565b610b2d565b34801561045757600080fd5b50610363610b65565b34801561046c57600080fd5b50610338610b6c565b34801561048157600080fd5b50610363610490366004612796565b610ba2565b3480156104a157600080fd5b506103df610bf5565b3480156104b657600080fd5b506103df6104c53660046126a8565b610cef565b3480156104d657600080fd5b506103df6104e536600461265c565b610d0a565b3480156104f657600080fd5b506103636105053660046128f4565b610d7b565b34801561051657600080fd5b50610363610dd7565b34801561052b57600080fd5b506103b261053a3660046128f4565b610df7565b34801561054b57600080fd5b50610363610e2c565b34801561056057600080fd5b506103b2610e33565b34801561057557600080fd5b5061036361058436600461265c565b610e43565b34801561059557600080fd5b506103df610e87565b3480156105aa57600080fd5b506103386105b93660046128f4565b610ed2565b3480156105ca57600080fd5b506103b2610f28565b3480156105df57600080fd5b50610385610f38565b6103df6105f63660046128f4565b610f47565b34801561060757600080fd5b506103df61061636600461275c565b61102b565b34801561062757600080fd5b506103df6110f9565b34801561063c57600080fd5b50610338611172565b34801561065157600080fd5b506103386106603660046128f4565b611181565b34801561067157600080fd5b506103df6106803660046126e3565b6111bf565b34801561069157600080fd5b506103386106a03660046128f4565b6111fe565b3480156106b157600080fd5b506103df61124d565b3480156106c657600080fd5b506103636112cb565b3480156106db57600080fd5b506103df6106ea3660046128ae565b6112ed565b3480156106fb57600080fd5b50610338611344565b34801561071057600080fd5b50610363611396565b34801561072557600080fd5b506103df61139c565b34801561073a57600080fd5b506103df61074936600461290c565b6113e5565b34801561075a57600080fd5b506103df61076936600461290c565b6114e9565b34801561077a57600080fd5b506103856107893660046128f4565b6115d1565b34801561079a57600080fd5b50610363611654565b3480156107af57600080fd5b506103df6107be36600461292e565b61165b565b3480156107cf57600080fd5b506103386107de366004612676565b6117f9565b3480156107ef57600080fd5b506103df611827565b34801561080457600080fd5b506103df61081336600461265c565b6118ae565b34801561082457600080fd5b506103df6108333660046128f4565b61191c565b60006108438261198b565b90505b919050565b61015f5490565b60606000805461086190613439565b80601f016020809104026020016040519081016040528092919081815260200182805461088d90613439565b80156108da5780601f106108af576101008083540402835291602001916108da565b820191906000526020600020905b8154815290600101906020018083116108bd57829003601f168201915b5050505050905090565b60006108ef826119c9565b6109145760405162461bcd60e51b815260040161090b90612f81565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061093b82610df7565b9050806001600160a01b0316836001600160a01b0316141561096f5760405162461bcd60e51b815260040161090b906130f3565b806001600160a01b03166109816119e6565b6001600160a01b0316148061099d575061099d816107de6119e6565b6109b95760405162461bcd60e51b815260040161090b90612d59565b6109c383836119ea565b505050565b6101555490565b61015e5460ff1690565b6109e16119e6565b6001600160a01b03166109f2610f28565b6001600160a01b03161480610a265750610a0a6119e6565b6001600160a01b0316610a1b610e33565b6001600160a01b0316145b610a425760405162461bcd60e51b815260040161090b906130bc565b612710610a4d6109c8565b1115610a5857600080fd5b60005b81518110156109c3576000828281518110610a8657634e487b7160e01b600052603260045260246000fd5b602002602001015190506000848381518110610ab257634e487b7160e01b600052603260045260246000fd5b6020026020010151905060005b81811015610b175761015f54600090610ae590610adf6122b860de611a58565b90611a58565b9050610af18482611a64565b61015f54610b00906001611a58565b61015f555080610b0f81613474565b915050610abf565b5050508080610b2590613474565b915050610a5b565b610b3e610b386119e6565b82611a7e565b610b5a5760405162461bcd60e51b815260040161090b90613187565b6109c3838383611b03565b6101605490565b61015954600090819015801590610b85575061015b5415155b61015b546101595491925014818015610b9b5750805b9250505090565b6000610bad83610e43565b8210610bcb5760405162461bcd60e51b815260040161090b90612a86565b506001600160a01b0391909116600090815261015360209081526040808320938352929052205490565b610bfd6119e6565b6001600160a01b0316610c0e610f28565b6001600160a01b03161480610c425750610c266119e6565b6001600160a01b0316610c37610e33565b6001600160a01b0316145b610c5e5760405162461bcd60e51b815260040161090b906130bc565b476000610c6c826002611c30565b9050610c76610f28565b6001600160a01b03166108fc829081150290604051600060405180830381858888f19350505050158015610cae573d6000803e3d6000fd5b50610cb7610e33565b6001600160a01b03166108fc829081150290604051600060405180830381858888f193505050501580156109c3573d6000803e3d6000fd5b6109c3838383604051806020016040528060008152506111bf565b610d126119e6565b6001600160a01b0316610d23610e33565b6001600160a01b031614610d495760405162461bcd60e51b815260040161090b90612c9f565b6001600160a01b038116610d6f5760405162461bcd60e51b815260040161090b90612d22565b610d7881611c3c565b50565b6000610d856109c8565b8210610da35760405162461bcd60e51b815260040161090b9061321b565b6101558281548110610dc557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000610df2610de46112cb565b610dec6109c8565b90611c5f565b905090565b6000818152600260205260408120546001600160a01b0316806108435760405162461bcd60e51b815260040161090b90612e4a565b6101625490565b610158546001600160a01b031690565b60006001600160a01b038216610e6b5760405162461bcd60e51b815260040161090b90612ded565b506001600160a01b031660009081526003602052604090205490565b610e8f6119e6565b6001600160a01b0316610ea0610f28565b6001600160a01b031614610ec65760405162461bcd60e51b815260040161090b90612fcd565b610ed06000611c6b565b565b600080805b606f811015610f21578360e482606f8110610f0257634e487b7160e01b600052603260045260246000fd5b01541415610f0f57600191505b80610f1981613474565b915050610ed7565b5092915050565b610157546001600160a01b031690565b60606001805461086190613439565b61015e5460ff1680610f61575061015e54610100900460ff165b610f7d5760405162461bcd60e51b815260040161090b906132af565b61016254610f8c908290611cbe565b341015610fab5760405162461bcd60e51b815260040161090b906131e4565b61015e54610100900460ff1615610fe9576103e8610fcb82610adf610dd7565b1115610fe95760405162461bcd60e51b815260040161090b90612a18565b61015e5460ff1615611022576122b861100482610adf610dd7565b11156110225760405162461bcd60e51b815260040161090b90612db6565b610d7881611cca565b6110336119e6565b6001600160a01b0316826001600160a01b031614156110645760405162461bcd60e51b815260040161090b90612c68565b80600560006110716119e6565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556110b56119e6565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516110ed91906129fa565b60405180910390a35050565b6111016119e6565b6001600160a01b0316611112610f28565b6001600160a01b03161480611146575061112a6119e6565b6001600160a01b031661113b610e33565b6001600160a01b0316145b6111625760405162461bcd60e51b815260040161090b906130bc565b610ed061116d6119e6565b611d4a565b61015e54610100900460ff1690565b600061118c826111fe565b6111a85760405162461bcd60e51b815260040161090b906132e6565b506000908152610163602052604090205460ff1690565b6111d06111ca6119e6565b83611a7e565b6111ec5760405162461bcd60e51b815260040161090b90613187565b6111f884848484611dbe565b50505050565b600080805b60de811015610f21578360068260de811061122e57634e487b7160e01b600052603260045260246000fd5b0154141561123b57600191505b8061124581613474565b915050611203565b6112556119e6565b6001600160a01b0316611266610f28565b6001600160a01b0316148061129a575061127e6119e6565b6001600160a01b031661128f610e33565b6001600160a01b0316145b6112b65760405162461bcd60e51b815260040161090b906130bc565b61015e805460ff19811660ff90911615179055565b6000610df261016154610adf6101605461015f54611a5890919063ffffffff16565b6112f56119e6565b6001600160a01b0316611306610f28565b6001600160a01b03161461132c5760405162461bcd60e51b815260040161090b90612fcd565b80516113409061015d9060208401906124e1565b5050565b61015a5460009081906001600160a01b03161580159061136f575061015c546001600160a01b031615155b61015c5461015a549192506001600160a01b03918216911614818015610b9b575092915050565b6122b890565b6113a46119e6565b6001600160a01b03166113b5610e33565b6001600160a01b0316146113db5760405162461bcd60e51b815260040161090b90612c9f565b610ed06000611c3c565b6113ed6119e6565b6001600160a01b03166113fe610f28565b6001600160a01b0316148061143257506114166119e6565b6001600160a01b0316611427610e33565b6001600160a01b0316145b61144e5760405162461bcd60e51b815260040161090b906130bc565b611456610f28565b6001600160a01b03166114676119e6565b6001600160a01b031614156114995761015982905561015a80546001600160a01b0319166001600160a01b0383161790555b6114a1610e33565b6001600160a01b03166114b26119e6565b6001600160a01b031614156113405761015b82905561015c80546001600160a01b0383166001600160a01b03199091161790555050565b6114f16119e6565b6001600160a01b0316611502610f28565b6001600160a01b03161480611536575061151a6119e6565b6001600160a01b031661152b610e33565b6001600160a01b0316145b6115525760405162461bcd60e51b815260040161090b906130bc565b61155a610b6c565b80156115695750611569611344565b6115855760405162461bcd60e51b815260040161090b90612f4a565b61159061116d610f28565b61159b61116d610e33565b6040516001600160a01b0382169083156108fc029084906000818181858888f193505050501580156109c3573d6000803e3d6000fd5b60606115dc826119c9565b6115f85760405162461bcd60e51b815260040161090b9061305f565b6000611602611df1565b90506000815111611622576040518060200160405280600081525061164d565b8061162c84611e01565b60405160200161163d92919061297b565b6040516020818303038152906040525b9392505050565b6101615490565b606f61016154111561167f5760405162461bcd60e51b815260040161090b90612f13565b6116876119e6565b6001600160a01b031661169983610df7565b6001600160a01b0316146116bf5760405162461bcd60e51b815260040161090b90613150565b6116c76119e6565b6001600160a01b03166116d982610df7565b6001600160a01b0316146116ff5760405162461bcd60e51b815260040161090b9061331d565b611708826111fe565b6117245760405162461bcd60e51b815260040161090b90612b40565b61172d816111fe565b6117495760405162461bcd60e51b815260040161090b90612a4f565b61175282611181565b1561176f5760405162461bcd60e51b815260040161090b90612ea7565b61177881611181565b156117955760405162461bcd60e51b815260040161090b90613278565b6117b66117a06119e6565b610161546117b1906122b890611a58565b611a64565b610161546117c5906001611a58565b61016155600091825261016360205260408083208054600160ff199182168117909255928452922080549091169091179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61182f6119e6565b6001600160a01b0316611840610f28565b6001600160a01b0316148061187457506118586119e6565b6001600160a01b0316611869610e33565b6001600160a01b0316145b6118905760405162461bcd60e51b815260040161090b906130bc565b61015e805461ff001981166101009182900460ff1615909102179055565b6118b66119e6565b6001600160a01b03166118c7610f28565b6001600160a01b0316146118ed5760405162461bcd60e51b815260040161090b90612fcd565b6001600160a01b0381166119135760405162461bcd60e51b815260040161090b90612b77565b610d7881611c6b565b6119246119e6565b6001600160a01b0316611935610f28565b6001600160a01b03161480611969575061194d6119e6565b6001600160a01b031661195e610e33565b6001600160a01b0316145b6119855760405162461bcd60e51b815260040161090b906130bc565b61016255565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610843575061084382611f50565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611a1f82610df7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061164d82846133ab565b611340828260405180602001604052806000815250611fc2565b6000611a89826119c9565b611aa55760405162461bcd60e51b815260040161090b90612cd6565b6000611ab083610df7565b9050806001600160a01b0316846001600160a01b03161480611aeb5750836001600160a01b0316611ae0846108e4565b6001600160a01b0316145b80611afb5750611afb81856117f9565b949350505050565b826001600160a01b0316611b1682610df7565b6001600160a01b031614611b3c5760405162461bcd60e51b815260040161090b90613002565b6001600160a01b038216611b625760405162461bcd60e51b815260040161090b90612c0b565b611b6d838383611ff5565b611b786000826119ea565b6001600160a01b0383166000908152600360205260408120805460019290611ba19084906133f6565b90915550506001600160a01b0382166000908152600360205260408120805460019290611bcf9084906133ab565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061164d82846133c3565b61015880546001600160a01b0319166001600160a01b0392909216919091179055565b600061164d82846133f6565b61015780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061164d82846133d7565b60005b818110156113405761016054600090611ced90610adf6122b8606f611a58565b9050611d02611cfa6119e6565b6117b1610dd7565b611d0d6105b9610dd7565b15611d3757611d23611d1d6119e6565b82611a64565b61016054611d32906001611a58565b610160555b5080611d4281613474565b915050611ccd565b611d52610f28565b6001600160a01b0316816001600160a01b03161415611d835760006101595561015a80546001600160a01b03191690555b611d8b610e33565b6001600160a01b0316816001600160a01b03161415610d7857600061015b5561015c80546001600160a01b031916905550565b611dc9848484611b03565b611dd584848484612000565b6111f85760405162461bcd60e51b815260040161090b90612ae3565b606061015d805461086190613439565b606081611e42575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610846565b8160005b8115611e6c5780611e5681613474565b9150611e659050600a836133c3565b9150611e46565b60008167ffffffffffffffff811115611e9557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611ebf576020820181803683370190505b5090505b8415611afb57611ed46001836133f6565b9150611ee1600a8661348f565b611eec9060306133ab565b60f81b818381518110611f0f57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611f49600a866133c3565b9450611ec3565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480611fb357506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610843575061084382612134565b611fcc8383612166565b611fd96000848484612000565b6109c35760405162461bcd60e51b815260040161090b90612ae3565b6109c3838383612245565b6000612014846001600160a01b03166122ce565b1561212957836001600160a01b031663150b7a026120306119e6565b8786866040518563ffffffff1660e01b815260040161205294939291906129be565b602060405180830381600087803b15801561206c57600080fd5b505af192505050801561209c575060408051601f3d908101601f1916820190925261209991810190612892565b60015b6120f6573d8080156120ca576040519150601f19603f3d011682016040523d82523d6000602084013e6120cf565b606091505b5080516120ee5760405162461bcd60e51b815260040161090b90612ae3565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611afb565b506001949350505050565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b6001600160a01b03821661218c5760405162461bcd60e51b815260040161090b90612ede565b612195816119c9565b156121b25760405162461bcd60e51b815260040161090b90612bd4565b6121be60008383611ff5565b6001600160a01b03821660009081526003602052604081208054600192906121e79084906133ab565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6122508383836109c3565b6001600160a01b03831661226c57612267816122d4565b61228f565b816001600160a01b0316836001600160a01b03161461228f5761228f838261231a565b6001600160a01b0382166122ab576122a6816123bc565b6109c3565b826001600160a01b0316826001600160a01b0316146109c3576109c3828261249b565b3b151590565b6101558054600083815261015660205260408120829055600182018355919091527f2d16324a3bb06d5c2c2ab04afb8e9104e6f2d7bfce57293a39179b5c11bdbcf70155565b6000600161232784610e43565b61233191906133f6565b60008381526101546020526040902054909150808214612387576001600160a01b038416600090815261015360209081526040808320858452825280832054848452818420819055835261015490915290208190555b506000918252610154602090815260408084208490556001600160a01b03909416835261015381528383209183525290812055565b610155546000906123cf906001906133f6565b60008381526101566020526040812054610155805493945090928490811061240757634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080610155838154811061243757634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152610156909152604080822084905585825281205561015580548061247f57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006124a683610e43565b6001600160a01b0390931660009081526101536020908152604080832086845282528083208590559382526101549052919091209190915550565b8280546124ed90613439565b90600052602060002090601f01602090048101928261250f5760008555612555565b82601f1061252857805160ff1916838001178555612555565b82800160010185558215612555579182015b8281111561255557825182559160200191906001019061253a565b50612561929150612565565b5090565b5b808211156125615760008155600101612566565b600067ffffffffffffffff831115612594576125946134cf565b6125a7601f8401601f191660200161335d565b90508281528383830111156125bb57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461084657600080fd5b600082601f8301126125f9578081fd5b8135602061260e61260983613387565b61335d565b828152818101908583018385028701840188101561262a578586fd5b855b8581101561264f5761263d826125d2565b8452928401929084019060010161262c565b5090979650505050505050565b60006020828403121561266d578081fd5b61164d826125d2565b60008060408385031215612688578081fd5b612691836125d2565b915061269f602084016125d2565b90509250929050565b6000806000606084860312156126bc578081fd5b6126c5846125d2565b92506126d3602085016125d2565b9150604084013590509250925092565b600080600080608085870312156126f8578081fd5b612701856125d2565b935061270f602086016125d2565b925060408501359150606085013567ffffffffffffffff811115612731578182fd5b8501601f81018713612741578182fd5b6127508782356020840161257a565b91505092959194509250565b6000806040838503121561276e578182fd5b612777836125d2565b91506020830135801515811461278b578182fd5b809150509250929050565b600080604083850312156127a8578182fd5b6127b1836125d2565b946020939093013593505050565b600080604083850312156127d1578182fd5b823567ffffffffffffffff808211156127e8578384fd5b818501915085601f8301126127fb578384fd5b8135602061280b61260983613387565b82815281810190858301838502870184018b1015612827578889fd5b8896505b8487101561284957803583526001969096019591830191830161282b565b509650508601359250508082111561285f578283fd5b5061286c858286016125e9565b9150509250929050565b600060208284031215612887578081fd5b813561164d816134e5565b6000602082840312156128a3578081fd5b815161164d816134e5565b6000602082840312156128bf578081fd5b813567ffffffffffffffff8111156128d5578182fd5b8201601f810184136128e5578182fd5b611afb8482356020840161257a565b600060208284031215612905578081fd5b5035919050565b6000806040838503121561291e578182fd5b8235915061269f602084016125d2565b60008060408385031215612940578182fd5b50508035926020909101359150565b6000815180845261296781602086016020860161340d565b601f01601f19169290920160200192915050565b6000835161298d81846020880161340d565b8351908301906129a181836020880161340d565b01949350505050565b6001600160a01b0391909116815260200190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526129f0608083018461294f565b9695505050505050565b901515815260200190565b60006020825261164d602083018461294f565b60208082526015908201527f457863656564732070726573616c65206c696d69740000000000000000000000604082015260600190565b60208082526010908201527f63617432206e6f74207370656369616c00000000000000000000000000000000604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201527f74206f6620626f756e6473000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526010908201527f63617431206e6f74207370656369616c00000000000000000000000000000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526010908201527f4e6f74207365636f6e64206f776e657200000000000000000000000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526012908201527f7a65726f2061646472657373206f776e65720000000000000000000000000000604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b60208082526013908201527f45786365656473206d696e7420737570706c7900000000000000000000000000604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252600e908201527f6361743120686173206272656564000000000000000000000000000000000000604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526013908201527f616c6c206269672063617473206d696e74656400000000000000000000000000604082015260600190565b6020808252600a908201527f4e6f742061677265656400000000000000000000000000000000000000000000604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b6020808252600b908201527f4f776e657273206f6e6c79000000000000000000000000000000000000000000604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252600e908201527f63617431206e6f74206f776e6564000000000000000000000000000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b60208082526013908201527f496e76616c69642065746865722076616c756500000000000000000000000000604082015260600190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201527f7574206f6620626f756e64730000000000000000000000000000000000000000606082015260800190565b6020808252600e908201527f6361743220686173206272656564000000000000000000000000000000000000604082015260600190565b60208082526013908201527f496e76616c6964206d696e7420616374696f6e00000000000000000000000000604082015260600190565b6020808252600f908201527f4e6f74207370656369616c206361740000000000000000000000000000000000604082015260600190565b6020808252600e908201527f63617432206e6f74206f776e6564000000000000000000000000000000000000604082015260600190565b90815260200190565b60405181810167ffffffffffffffff8111828210171561337f5761337f6134cf565b604052919050565b600067ffffffffffffffff8211156133a1576133a16134cf565b5060209081020190565b600082198211156133be576133be6134a3565b500190565b6000826133d2576133d26134b9565b500490565b60008160001904831182151516156133f1576133f16134a3565b500290565b600082821015613408576134086134a3565b500390565b60005b83811015613428578181015183820152602001613410565b838111156111f85750506000910152565b60028104600182168061344d57607f821691505b6020821081141561346e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613488576134886134a3565b5060010190565b60008261349e5761349e6134b9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610d7857600080fdfea2646970667358221220bed424c51affaf5c20e2081684172702d78b84784bbcc9a944d91206c3d6c63764736f6c63430008000033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000046c5975cd8311c7f3a896e501df22bb0015c624c000000000000000000000000000000000000000000000000000000000000000b43617472796f73686b6173000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b43617472796f73686b6173000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002868747470733a2f2f63617472796f73686b61732e6865726f6b756170702e636f6d2f746f6b656e2f000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : tokenName_ (string): Catryoshkas
Arg [1] : tokenSymbol_ (string): Catryoshkas
Arg [2] : initMetadataAPI_ (string): https://catryoshkas.herokuapp.com/token/
Arg [3] : secondOwner_ (address): 0x46c5975CD8311c7f3A896E501Df22bb0015C624C

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 00000000000000000000000046c5975cd8311c7f3a896e501df22bb0015c624c
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [5] : 43617472796f73686b6173000000000000000000000000000000000000000000
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [7] : 43617472796f73686b6173000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000028
Arg [9] : 68747470733a2f2f63617472796f73686b61732e6865726f6b756170702e636f
Arg [10] : 6d2f746f6b656e2f000000000000000000000000000000000000000000000000


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.