ETH Price: $3,301.55 (-3.23%)
Gas: 20 Gwei

Token

CryptoTodlers (TODLERS)
 

Overview

Max Total Supply

1,169 TODLERS

Holders

399

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
dmor0x.eth
Balance
7 TODLERS
0x5e03b07ae157ee1ca5bf2f3cbe5bc8dc38f3e965
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:
CryptoTodlers

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : CryptoTodlers.sol
// contracts/CryptoTodlers.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./INCT.sol";

contract CryptoTodlers is ERC721Enumerable, Ownable {
    using Strings  for uint256;
    using SafeMath for uint256;

    // data structure defining a baby parents couple of crypto hodlers
    struct CryptoParents {
        uint256 parent1;
        uint256 parent2;
    }

    // The name change price
    uint256 public constant NAME_CHANGE_PRICE = 200 * (10 ** 18);

    // mapping babyId to name
    mapping (uint256 => string) private _tokenName;

    // mapping name to used flag
    mapping (string => bool) private _nameReserved;

    // mapping baby to parents. Parents are 0-based.
    // shall use _exists(babyId) to verify babyId exists and the parents key are valid
    mapping (uint256 => CryptoParents) private _babyToParentsMap;

    // mapping parent to babyId. Baby id is 1-based, so 0 babyId means not available
    mapping (uint256 => uint256) private _parentToBabyMap;

    // base URI
    string private _rootURI;

    // flag to signal if mint is active or not
    bool _mintIsActive;

    // the crypto hodlers pointer
    IERC721Enumerable private _nft;
    // the NCT contract pointer
    INCT private _nct;

    // Events
    event NameChange (uint256 indexed tokenIdx, string newName);


    /**
     * @dev Constructor that stores the NCT pointer
     * The parameters are:
     * nftAddress - address of the CryptoHodlers
     * nctAddress - address of the NCT contract
     */
    constructor(address nftAddress, address nctAddress) ERC721("CryptoTodlers", "TODLERS") {
        _mintIsActive = false;
        _nft = IERC721Enumerable(nftAddress);
        _nct = INCT(nctAddress);
    }

    /**
     * @dev Returns name of the NFT at index.
     */
    function tokenNameByIndex(uint256 index) public view returns (string memory) {
        return _tokenName[index];
    }

    /**
     * @dev Returns if the name has been reserved.
     */
    function isNameReserved(string memory nameString) public view returns (bool) {
        return _nameReserved[toLower(nameString)];
    }

    /**
     * @dev Changes the name for Hashmask tokenId
     */
    function changeName(uint256 tokenId, string memory newName) public {
        address owner = ownerOf(tokenId);

        require(_msgSender() == owner, "ERC721: caller is not the owner");
        require(validateName(newName) == true, "Not a valid new name");
        require(sha256(bytes(newName)) != sha256(bytes(_tokenName[tokenId])), "New name is same as the current one");
        require(isNameReserved(newName) == false, "Name already reserved");

        _nct.transferFrom(msg.sender, address(this), NAME_CHANGE_PRICE);

        // If already named, dereserve old name
        if (bytes(_tokenName[tokenId]).length > 0) {
            toggleReserveName(_tokenName[tokenId], false);
        }
        toggleReserveName(newName, true);
        _tokenName[tokenId] = newName;
        _nct.burn(NAME_CHANGE_PRICE);
        emit NameChange(tokenId, newName);
    }

    /**
    * @dev Flip mint state
    */
    function flipMintState() public onlyOwner() {
        _mintIsActive = !_mintIsActive;
    }

    /**
    * @dev Returns true if  mint is active
    */
    function isMintActive() public view returns (bool) {
        return _mintIsActive;
    }

    /**
    * @dev Returns the parents ids of a baby
    */
    function getParentsId(uint256 tokenId) public view returns (uint256, uint256) {
        require(_exists(tokenId), "token ID not valid");

        return (_babyToParentsMap[tokenId].parent1, _babyToParentsMap[tokenId].parent2);
    }

    /**
    * @dev Returns the baby id from the parentId, 0 if does not exist
    */
    function getBabyId(uint256 parentId) public view returns (uint256) {
        return _parentToBabyMap[parentId];
    }

    /**
   * @dev Returns the number of parents without a baby for a specific owner
   */
    function getNumParentsWithoutBaby(address owner) public view returns (uint256) {

        uint256 toRemove  = 0;
        uint256 numTokens = _nft.balanceOf(owner);

        for(uint256 i = 0; i < numTokens; i++){
            if(hasParentOneBaby(_nft.tokenOfOwnerByIndex(owner, i))){
                toRemove += 1;
            }
        }

        return numTokens - toRemove;
    }

    /**
   * @dev Returns the i-th parentID that do not have an baby, owned by the given wallet
   */
    function parentWithoutBabyByIndex(address owner, uint256 index) public view returns (uint256) {

        uint256 numParentsCanMint = getNumParentsWithoutBaby(owner);

        require(index < numParentsCanMint, "index out of value");

        uint256 k = 0;
        uint256 numAllTokens = _nft.balanceOf(owner);

        for(uint256 i = 0; i < numAllTokens; i++){
            uint256 pid = _nft.tokenOfOwnerByIndex(owner, i);

            if(!hasParentOneBaby(pid)){
                k += 1; // the k-th parent that can be selected
            }

            // the k-th is the one we are looking for
            if(k > index){
                return pid;
            }
        }

        revert("no parent found");
    }

  /**
  * @dev Returns the i-th parentID that do not have an baby, owned by the given wallet
  */
    function getNextAvailableParent(address owner, uint256 numAllTokens, uint256 index) internal view returns (uint256, uint256) {

        for(uint256 i = index; i < numAllTokens; i++){
            uint256 pid = _nft.tokenOfOwnerByIndex(owner, i);

            if(!hasParentOneBaby(pid)){
                return (pid, i + 1);
            }
        }

        revert("no parent found");
    }

    /**
    * @dev Returns true if the parent has a baby
    */
    function hasParentOneBaby(uint256 parentId) public view returns (bool) {
        return _parentToBabyMap[parentId] != 0;
    }

    /**
    * @dev Internal function to mint a new token using 'parent1' and 'parent2'
    */
    function _mintNFT(uint256 parent1, uint256 parent2) internal {
        require(!hasParentOneBaby(parent1), "parent already has a baby");
        require(!hasParentOneBaby(parent2), "parent already has a baby");

        // the first token will have id set to 1
        uint256 newTokenId = totalSupply() + 1;

        _safeMint(msg.sender, newTokenId);

        CryptoParents memory parents = CryptoParents(parent1, parent2);

        _babyToParentsMap[newTokenId] = parents;
        _parentToBabyMap[parent1]     = newTokenId;
        _parentToBabyMap[parent2]     = newTokenId;

    }

    /**
     * @dev Mint a new token using 'parent1' and 'parent2'
     */
    function mintNFT(uint256 parent1, uint256 parent2) public {
        require(_mintIsActive,                         "mint is not active");
        require(_nft.ownerOf(parent1) == _msgSender(), "caller is not the parent owner");
        require(_nft.ownerOf(parent2) == _msgSender(), "caller is not the parent owner");
        require(parent1 != parent2,                    "same parent");

        _mintNFT(parent1, parent2);
    }


    /**
      * @dev Mint 'numTodlers' new tokens
    */
    function bulkMint(uint256 numTodlers) public {
        require(_mintIsActive,  "mint is not active");
        require(numTodlers > 0, "numTodlers not valid");

        uint256 p1;
        uint256 p2;
        uint256 k = 0;
        uint256 numParents   = getNumParentsWithoutBaby(_msgSender());
        uint256 numAllTokens = _nft.balanceOf(_msgSender());

        require(numParents >= numTodlers.mul(2), "not enough parents");

        for(uint256 i = 0; i < numTodlers; i++){

            (p1, k) = getNextAvailableParent(_msgSender(), numAllTokens, k);
            (p2, k) = getNextAvailableParent(_msgSender(), numAllTokens, k);

            _mintNFT(p1, p2);
        }
    }


    /**
     * @dev Reserves the name if isReserve is set to true, de-reserves if set to false
     */
    function toggleReserveName(string memory str, bool isReserve) internal {
        _nameReserved[toLower(str)] = isReserve;
    }

    /**
     * @dev Check if the name string is valid (Alphanumeric and spaces without leading or trailing space)
     */
    function validateName(string memory str) public pure returns (bool){
        bytes memory b = bytes(str);
        if(b.length < 1) return false;
        if(b.length > 25) return false; // Cannot be longer than 25 characters
        if(b[0] == 0x20) return false; // Leading space
        if (b[b.length - 1] == 0x20) return false; // Trailing space

        bytes1 lastChar = b[0];

        for(uint i; i<b.length; i++){
            bytes1 char = b[i];

            if (char == 0x20 && lastChar == 0x20) return false; // Cannot contain continous spaces

            if(!(char >= 0x30 && char <= 0x39) && //9-0
               !(char >= 0x41 && char <= 0x5A) && //A-Z
               !(char >= 0x61 && char <= 0x7A) && //a-z
               !(char == 0x20) //space
            ) return false;


            lastChar = char;
        }

        return true;
    }

    /**
     * @dev Converts the string to lowercase
     */
    function toLower(string memory str) public pure returns (string memory){
        bytes memory bStr = bytes(str);
        bytes memory bLower = new bytes(bStr.length);
        for (uint i = 0; i < bStr.length; i++) {
            // Uppercase character
            if ((uint8(bStr[i]) >= 65) && (uint8(bStr[i]) <= 90)) {
                bLower[i] = bytes1(uint8(bStr[i]) + 32);
            } else {
                bLower[i] = bStr[i];
            }
        }
        return string(bLower);
    }

    function setBaseURI(string memory uri) external onlyOwner() {
        _rootURI = uri;
    }

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

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId),           "Token ID not valid");
        require(bytes(_rootURI).length > 0, "Base URI not yet set");

        // concatenate the baseURI and tokenId (via abi.encodePacked).
        return string(abi.encodePacked(_baseURI(), tokenId.toString()));
    }
}

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

File 3 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 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 : 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 6 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 7 of 16 : INCT.sol
// contracts/INCT.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/**
 * @title INCT
 * @dev NCT minimal interface, it extends the IERC20 with a burn function
 *
 * Authors: s.imo
 * Created: 01.07.2021
 */
interface INCT is IERC20 {

    function burn(uint256 burnQuantity) external;

}

File 8 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 9 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 10 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 11 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 12 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 13 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 14 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 15 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 16 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"nftAddress","type":"address"},{"internalType":"address","name":"nctAddress","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":"uint256","name":"tokenIdx","type":"uint256"},{"indexed":false,"internalType":"string","name":"newName","type":"string"}],"name":"NameChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"NAME_CHANGE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numTodlers","type":"uint256"}],"name":"bulkMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"newName","type":"string"}],"name":"changeName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"parentId","type":"uint256"}],"name":"getBabyId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getNumParentsWithoutBaby","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getParentsId","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"parentId","type":"uint256"}],"name":"hasParentOneBaby","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":[],"name":"isMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"nameString","type":"string"}],"name":"isNameReserved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"parent1","type":"uint256"},{"internalType":"uint256","name":"parent2","type":"uint256"}],"name":"mintNFT","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"parentWithoutBabyByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"toLower","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenNameByIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"validateName","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"}]

60806040523480156200001157600080fd5b506040516200601e3803806200601e833981810160405281019062000037919062000331565b6040518060400160405280600d81526020017f43727970746f546f646c657273000000000000000000000000000000000000008152506040518060400160405280600781526020017f544f444c455253000000000000000000000000000000000000000000000000008152508160009080519060200190620000bb9291906200026a565b508060019080519060200190620000d49291906200026a565b505050620000f7620000eb6200019c60201b60201c565b620001a460201b60201c565b6000601060006101000a81548160ff02191690831515021790555081601060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505062000425565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200027890620003a6565b90600052602060002090601f0160209004810192826200029c5760008555620002e8565b82601f10620002b757805160ff1916838001178555620002e8565b82800160010185558215620002e8579182015b82811115620002e7578251825591602001919060010190620002ca565b5b509050620002f79190620002fb565b5090565b5b8082111562000316576000816000905550600101620002fc565b5090565b6000815190506200032b816200040b565b92915050565b600080604083850312156200034557600080fd5b600062000355858286016200031a565b925050602062000368858286016200031a565b9150509250929050565b60006200037f8262000386565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006002820490506001821680620003bf57607f821691505b60208210811415620003d657620003d5620003dc565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b620004168162000372565b81146200042257600080fd5b50565b615be980620004356000396000f3fe608060405234801561001057600080fd5b50600436106102105760003560e01c8063693882dd11610125578063a22cb465116100ad578063c39cbef11161007c578063c39cbef114610672578063c48283ff1461068e578063c87b56dd146106aa578063e985e9c5146106da578063f2fde38b1461070a57610210565b8063a22cb465146105d9578063ad5b4f8e146105f5578063b78af26b14610626578063b88d4fde1461065657610210565b806384c89bef116100f457806384c89bef1461050d5780638da5cb5b1461053d5780639416b4231461055b57806395d89b411461058b5780639ffdb65a146105a957610210565b8063693882dd146104735780636d522418146104a357806370a08231146104d3578063715018a61461050357610210565b80632f745c59116101a857806355f804b31161017757806355f804b3146103cf57806359c74f29146103eb5780635b92ac0d146103f55780636352211e14610413578063648152a71461044357610210565b80632f745c591461033557806342842e0e146103655780634f6ccce71461038157806354b6f161146103b157610210565b8063095ea7b3116101e4578063095ea7b3146102af57806315b56d10146102cb57806318160ddd146102fb57806323b872dd1461031957610210565b8062bc653c1461021557806301ffc9a71461023157806306fdde0314610261578063081812fc1461027f575b600080fd5b61022f600480360381019061022a91906142ec565b610726565b005b61024b60048036038101906102469190614259565b610941565b6040516102589190614ade565b60405180910390f35b6102696109bb565b6040516102769190614af9565b60405180910390f35b610299600480360381019061029491906142ec565b610a4d565b6040516102a69190614a17565b60405180910390f35b6102c960048036038101906102c491906141cb565b610ad2565b005b6102e560048036038101906102e091906142ab565b610bea565b6040516102f29190614ade565b60405180910390f35b610303610c27565b6040516103109190614f1b565b60405180910390f35b610333600480360381019061032e91906140c5565b610c34565b005b61034f600480360381019061034a91906141cb565b610c94565b60405161035c9190614f1b565b60405180910390f35b61037f600480360381019061037a91906140c5565b610d39565b005b61039b600480360381019061039691906142ec565b610d59565b6040516103a89190614f1b565b60405180910390f35b6103b9610df0565b6040516103c69190614f1b565b60405180910390f35b6103e960048036038101906103e491906142ab565b610dfd565b005b6103f3610e93565b005b6103fd610f3b565b60405161040a9190614ade565b60405180910390f35b61042d600480360381019061042891906142ec565b610f52565b60405161043a9190614a17565b60405180910390f35b61045d600480360381019061045891906141cb565b611004565b60405161046a9190614f1b565b60405180910390f35b61048d600480360381019061048891906142ec565b611248565b60405161049a9190614ade565b60405180910390f35b6104bd60048036038101906104b891906142ec565b611268565b6040516104ca9190614af9565b60405180910390f35b6104ed60048036038101906104e89190614037565b61130d565b6040516104fa9190614f1b565b60405180910390f35b61050b6113c5565b005b61052760048036038101906105229190614037565b61144d565b6040516105349190614f1b565b60405180910390f35b610545611601565b6040516105529190614a17565b60405180910390f35b610575600480360381019061057091906142ab565b61162b565b6040516105829190614af9565b60405180910390f35b6105936118ed565b6040516105a09190614af9565b60405180910390f35b6105c360048036038101906105be91906142ab565b61197f565b6040516105d09190614ade565b60405180910390f35b6105f360048036038101906105ee919061418f565b611d49565b005b61060f600480360381019061060a91906142ec565b611eca565b60405161061d929190614f36565b60405180910390f35b610640600480360381019061063b91906142ec565b611f4c565b60405161064d9190614f1b565b60405180910390f35b610670600480360381019061066b9190614114565b611f69565b005b61068c6004803603810190610687919061433e565b611fcb565b005b6106a860048036038101906106a39190614392565b61246e565b005b6106c460048036038101906106bf91906142ec565b61274c565b6040516106d19190614af9565b60405180910390f35b6106f460048036038101906106ef9190614089565b61281f565b6040516107019190614ade565b60405180910390f35b610724600480360381019061071f9190614037565b6128b3565b005b601060009054906101000a900460ff16610775576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161076c90614e7b565b60405180910390fd5b600081116107b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107af90614c1b565b60405180910390fd5b6000806000806107ce6107c96129ab565b61144d565b90506000601060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a082316108186129ab565b6040518263ffffffff1660e01b81526004016108349190614a17565b60206040518083038186803b15801561084c57600080fd5b505afa158015610860573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108849190614315565b905061089a6002876129b390919063ffffffff16565b8210156108dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d390614e3b565b60405180910390fd5b60005b86811015610938576108f96108f26129ab565b83866129c9565b809550819750505061091361090c6129ab565b83866129c9565b80955081965050506109258686612b09565b8080610930906152c5565b9150506108df565b50505050505050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109b457506109b382612c37565b5b9050919050565b6060600080546109ca90615262565b80601f01602080910402602001604051908101604052809291908181526020018280546109f690615262565b8015610a435780601f10610a1857610100808354040283529160200191610a43565b820191906000526020600020905b815481529060010190602001808311610a2657829003601f168201915b5050505050905090565b6000610a5882612d19565b610a97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8e90614ddb565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610add82610f52565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4590614e9b565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b6d6129ab565b73ffffffffffffffffffffffffffffffffffffffff161480610b9c5750610b9b81610b966129ab565b61281f565b5b610bdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd290614cfb565b60405180910390fd5b610be58383612d85565b505050565b6000600c610bf78361162b565b604051610c0491906149dc565b908152602001604051809103902060009054906101000a900460ff169050919050565b6000600880549050905090565b610c45610c3f6129ab565b82612e3e565b610c84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7b90614ebb565b60405180910390fd5b610c8f838383612f1c565b505050565b6000610c9f8361130d565b8210610ce0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd790614b9b565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610d5483838360405180602001604052806000815250611f69565b505050565b6000610d63610c27565b8210610da4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9b90614edb565b60405180910390fd5b60088281548110610dde577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b680ad78ebc5ac620000081565b610e056129ab565b73ffffffffffffffffffffffffffffffffffffffff16610e23611601565b73ffffffffffffffffffffffffffffffffffffffff1614610e79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7090614dfb565b60405180910390fd5b80600f9080519060200190610e8f929190613e07565b5050565b610e9b6129ab565b73ffffffffffffffffffffffffffffffffffffffff16610eb9611601565b73ffffffffffffffffffffffffffffffffffffffff1614610f0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0690614dfb565b60405180910390fd5b601060009054906101000a900460ff1615601060006101000a81548160ff021916908315150217905550565b6000601060009054906101000a900460ff16905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ffb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff290614d3b565b60405180910390fd5b80915050919050565b6000806110108461144d565b9050808310611054576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104b90614c9b565b60405180910390fd5b600080601060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231876040518263ffffffff1660e01b81526004016110b29190614a17565b60206040518083038186803b1580156110ca57600080fd5b505afa1580156110de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111029190614315565b905060005b81811015611206576000601060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5989846040518363ffffffff1660e01b815260040161116e929190614ab5565b60206040518083038186803b15801561118657600080fd5b505afa15801561119a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111be9190614315565b90506111c981611248565b6111dd576001846111da9190615049565b93505b868411156111f2578095505050505050611242565b5080806111fe906152c5565b915050611107565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123990614d7b565b60405180910390fd5b92915050565b600080600e60008481526020019081526020016000205414159050919050565b6060600b6000838152602001908152602001600020805461128890615262565b80601f01602080910402602001604051908101604052809291908181526020018280546112b490615262565b80156113015780601f106112d657610100808354040283529160200191611301565b820191906000526020600020905b8154815290600101906020018083116112e457829003601f168201915b50505050509050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561137e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137590614d1b565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6113cd6129ab565b73ffffffffffffffffffffffffffffffffffffffff166113eb611601565b73ffffffffffffffffffffffffffffffffffffffff1614611441576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143890614dfb565b60405180910390fd5b61144b6000613178565b565b600080600090506000601060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b81526004016114b19190614a17565b60206040518083038186803b1580156114c957600080fd5b505afa1580156114dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115019190614315565b905060005b818110156115eb576115c3601060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5987846040518363ffffffff1660e01b815260040161156e929190614ab5565b60206040518083038186803b15801561158657600080fd5b505afa15801561159a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115be9190614315565b611248565b156115d8576001836115d59190615049565b92505b80806115e3906152c5565b915050611506565b5081816115f89190615161565b92505050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060008290506000815167ffffffffffffffff811115611675577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156116a75781602001600182028036833780820191505090505b50905060005b82518110156118e25760418382815181106116f1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c60ff161015801561175a5750605a838281518110611746577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c60ff1611155b1561182257602083828151811061179a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c6117b2919061509f565b60f81b8282815181106117ee577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506118cf565b82818151811061185b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b82828151811061189f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505b80806118da906152c5565b9150506116ad565b508092505050919050565b6060600180546118fc90615262565b80601f016020809104026020016040519081016040528092919081815260200182805461192890615262565b80156119755780601f1061194a57610100808354040283529160200191611975565b820191906000526020600020905b81548152906001019060200180831161195857829003601f168201915b5050505050905090565b600080829050600181511015611999576000915050611d44565b6019815111156119ad576000915050611d44565b602060f81b816000815181106119ec577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415611a29576000915050611d44565b602060f81b8160018351611a3d9190615161565b81518110611a74577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415611ab1576000915050611d44565b600081600081518110611aed577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b905060005b8251811015611d3c576000838281518110611b41577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b9050602060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148015611ba85750602060f81b837effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b15611bba576000945050505050611d44565b603060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611c165750603960f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b158015611c7c5750604160f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611c7a5750605a60f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b155b8015611ce15750606160f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611cdf5750607a60f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b155b8015611d135750602060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b15611d25576000945050505050611d44565b809250508080611d34906152c5565b915050611afd565b506001925050505b919050565b611d516129ab565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611dbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db690614c7b565b60405180910390fd5b8060056000611dcc6129ab565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611e796129ab565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ebe9190614ade565b60405180910390a35050565b600080611ed683612d19565b611f15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0c90614cdb565b60405180910390fd5b600d600084815260200190815260200160002060000154600d60008581526020019081526020016000206001015491509150915091565b6000600e6000838152602001908152602001600020549050919050565b611f7a611f746129ab565b83612e3e565b611fb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb090614ebb565b60405180910390fd5b611fc58484848461323e565b50505050565b6000611fd683610f52565b90508073ffffffffffffffffffffffffffffffffffffffff16611ff76129ab565b73ffffffffffffffffffffffffffffffffffffffff161461204d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204490614b5b565b60405180910390fd5b6001151561205a8361197f565b15151461209c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209390614efb565b60405180910390fd5b6002600b60008581526020019081526020016000206040516120be91906149c5565b602060405180830381855afa1580156120db573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906120fe9190614230565b60028360405161210e91906149ae565b602060405180830381855afa15801561212b573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061214e9190614230565b141561218f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218690614e5b565b60405180910390fd5b6000151561219c83610bea565b1515146121de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d590614dbb565b60405180910390fd5b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330680ad78ebc5ac62000006040518463ffffffff1660e01b815260040161224693929190614a32565b602060405180830381600087803b15801561226057600080fd5b505af1158015612274573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122989190614207565b506000600b600085815260200190815260200160002080546122b990615262565b9050111561236857612367600b600085815260200190815260200160002080546122e290615262565b80601f016020809104026020016040519081016040528092919081815260200182805461230e90615262565b801561235b5780601f106123305761010080835404028352916020019161235b565b820191906000526020600020905b81548152906001019060200180831161233e57829003601f168201915b5050505050600061329a565b5b61237382600161329a565b81600b6000858152602001908152602001600020908051906020019061239a929190613e07565b50601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c68680ad78ebc5ac62000006040518263ffffffff1660e01b81526004016123ff9190614f1b565b600060405180830381600087803b15801561241957600080fd5b505af115801561242d573d6000803e3d6000fd5b50505050827f7e632a301794d8d4a81ea7e20f37d1947158d36e66403af04ba85dd194b66f1b836040516124619190614af9565b60405180910390a2505050565b601060009054906101000a900460ff166124bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b490614e7b565b60405180910390fd5b6124c56129ab565b73ffffffffffffffffffffffffffffffffffffffff16601060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b81526004016125369190614f1b565b60206040518083038186803b15801561254e57600080fd5b505afa158015612562573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125869190614060565b73ffffffffffffffffffffffffffffffffffffffff16146125dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125d390614d5b565b60405180910390fd5b6125e46129ab565b73ffffffffffffffffffffffffffffffffffffffff16601060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016126559190614f1b565b60206040518083038186803b15801561266d57600080fd5b505afa158015612681573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126a59190614060565b73ffffffffffffffffffffffffffffffffffffffff16146126fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f290614d5b565b60405180910390fd5b8082141561273e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161273590614b1b565b60405180910390fd5b6127488282612b09565b5050565b606061275782612d19565b612796576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278d90614b7b565b60405180910390fd5b6000600f80546127a590615262565b9050116127e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127de90614bbb565b60405180910390fd5b6127ef6132dc565b6127f88361336e565b6040516020016128099291906149f3565b6040516020818303038152906040529050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6128bb6129ab565b73ffffffffffffffffffffffffffffffffffffffff166128d9611601565b73ffffffffffffffffffffffffffffffffffffffff161461292f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292690614dfb565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561299f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161299690614bfb565b60405180910390fd5b6129a881613178565b50565b600033905090565b600081836129c19190615107565b905092915050565b60008060008390505b84811015612ac5576000601060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5988846040518363ffffffff1660e01b8152600401612a39929190614ab5565b60206040518083038186803b158015612a5157600080fd5b505afa158015612a65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a899190614315565b9050612a9481611248565b612ab15780600183612aa69190615049565b935093505050612b01565b508080612abd906152c5565b9150506129d2565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612af890614d7b565b60405180910390fd5b935093915050565b612b1282611248565b15612b52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b4990614b3b565b60405180910390fd5b612b5b81611248565b15612b9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9290614b3b565b60405180910390fd5b60006001612ba7610c27565b612bb19190615049565b9050612bbd338261351b565b6000604051806040016040528085815260200184815250905080600d6000848152602001908152602001600020600082015181600001556020820151816001015590505081600e60008681526020019081526020016000208190555081600e60008581526020019081526020016000208190555050505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d0257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612d125750612d1182613539565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612df883610f52565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612e4982612d19565b612e88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e7f90614cbb565b60405180910390fd5b6000612e9383610f52565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612f0257508373ffffffffffffffffffffffffffffffffffffffff16612eea84610a4d565b73ffffffffffffffffffffffffffffffffffffffff16145b80612f135750612f12818561281f565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612f3c82610f52565b73ffffffffffffffffffffffffffffffffffffffff1614612f92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f8990614e1b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613002576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff990614c5b565b60405180910390fd5b61300d8383836135a3565b613018600082612d85565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130689190615161565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130bf9190615049565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613249848484612f1c565b613255848484846136b7565b613294576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161328b90614bdb565b60405180910390fd5b50505050565b80600c6132a68461162b565b6040516132b391906149dc565b908152602001604051809103902060006101000a81548160ff0219169083151502179055505050565b6060600f80546132eb90615262565b80601f016020809104026020016040519081016040528092919081815260200182805461331790615262565b80156133645780601f1061333957610100808354040283529160200191613364565b820191906000526020600020905b81548152906001019060200180831161334757829003601f168201915b5050505050905090565b606060008214156133b6576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613516565b600082905060005b600082146133e85780806133d1906152c5565b915050600a826133e191906150d6565b91506133be565b60008167ffffffffffffffff81111561342a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561345c5781602001600182028036833780820191505090505b5090505b6000851461350f576001826134759190615161565b9150600a85613484919061530e565b60306134909190615049565b60f81b8183815181106134cc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561350891906150d6565b9450613460565b8093505050505b919050565b61353582826040518060200160405280600081525061384e565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6135ae8383836138a9565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156135f1576135ec816138ae565b613630565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461362f5761362e83826138f7565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156136735761366e81613a64565b6136b2565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146136b1576136b08282613ba7565b5b5b505050565b60006136d88473ffffffffffffffffffffffffffffffffffffffff16613c26565b15613841578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026137016129ab565b8786866040518563ffffffff1660e01b81526004016137239493929190614a69565b602060405180830381600087803b15801561373d57600080fd5b505af192505050801561376e57506040513d601f19601f8201168201806040525081019061376b9190614282565b60015b6137f1573d806000811461379e576040519150601f19603f3d011682016040523d82523d6000602084013e6137a3565b606091505b506000815114156137e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137e090614bdb565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613846565b600190505b949350505050565b6138588383613c39565b61386560008484846136b7565b6138a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161389b90614bdb565b60405180910390fd5b505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016139048461130d565b61390e9190615161565b90506000600760008481526020019081526020016000205490508181146139f3576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613a789190615161565b9050600060096000848152602001908152602001600020549050600060088381548110613ace577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060088381548110613b16577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613b8b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613bb28361130d565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613ca9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ca090614d9b565b60405180910390fd5b613cb281612d19565b15613cf2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ce990614c3b565b60405180910390fd5b613cfe600083836135a3565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613d4e9190615049565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b828054613e1390615262565b90600052602060002090601f016020900481019282613e355760008555613e7c565b82601f10613e4e57805160ff1916838001178555613e7c565b82800160010185558215613e7c579182015b82811115613e7b578251825591602001919060010190613e60565b5b509050613e899190613e8d565b5090565b5b80821115613ea6576000816000905550600101613e8e565b5090565b6000613ebd613eb884614f84565b614f5f565b905082815260208101848484011115613ed557600080fd5b613ee0848285615220565b509392505050565b6000613efb613ef684614fb5565b614f5f565b905082815260208101848484011115613f1357600080fd5b613f1e848285615220565b509392505050565b600081359050613f3581615b40565b92915050565b600081519050613f4a81615b40565b92915050565b600081359050613f5f81615b57565b92915050565b600081519050613f7481615b57565b92915050565b600081519050613f8981615b6e565b92915050565b600081359050613f9e81615b85565b92915050565b600081519050613fb381615b85565b92915050565b600082601f830112613fca57600080fd5b8135613fda848260208601613eaa565b91505092915050565b600082601f830112613ff457600080fd5b8135614004848260208601613ee8565b91505092915050565b60008135905061401c81615b9c565b92915050565b60008151905061403181615b9c565b92915050565b60006020828403121561404957600080fd5b600061405784828501613f26565b91505092915050565b60006020828403121561407257600080fd5b600061408084828501613f3b565b91505092915050565b6000806040838503121561409c57600080fd5b60006140aa85828601613f26565b92505060206140bb85828601613f26565b9150509250929050565b6000806000606084860312156140da57600080fd5b60006140e886828701613f26565b93505060206140f986828701613f26565b925050604061410a8682870161400d565b9150509250925092565b6000806000806080858703121561412a57600080fd5b600061413887828801613f26565b945050602061414987828801613f26565b935050604061415a8782880161400d565b925050606085013567ffffffffffffffff81111561417757600080fd5b61418387828801613fb9565b91505092959194509250565b600080604083850312156141a257600080fd5b60006141b085828601613f26565b92505060206141c185828601613f50565b9150509250929050565b600080604083850312156141de57600080fd5b60006141ec85828601613f26565b92505060206141fd8582860161400d565b9150509250929050565b60006020828403121561421957600080fd5b600061422784828501613f65565b91505092915050565b60006020828403121561424257600080fd5b600061425084828501613f7a565b91505092915050565b60006020828403121561426b57600080fd5b600061427984828501613f8f565b91505092915050565b60006020828403121561429457600080fd5b60006142a284828501613fa4565b91505092915050565b6000602082840312156142bd57600080fd5b600082013567ffffffffffffffff8111156142d757600080fd5b6142e384828501613fe3565b91505092915050565b6000602082840312156142fe57600080fd5b600061430c8482850161400d565b91505092915050565b60006020828403121561432757600080fd5b600061433584828501614022565b91505092915050565b6000806040838503121561435157600080fd5b600061435f8582860161400d565b925050602083013567ffffffffffffffff81111561437c57600080fd5b61438885828601613fe3565b9150509250929050565b600080604083850312156143a557600080fd5b60006143b38582860161400d565b92505060206143c48582860161400d565b9150509250929050565b6143d781615195565b82525050565b6143e6816151a7565b82525050565b60006143f782614ffb565b6144018185615011565b935061441181856020860161522f565b61441a816153fb565b840191505092915050565b600061443082614ffb565b61443a8185615022565b935061444a81856020860161522f565b80840191505092915050565b6000815461446381615262565b61446d8186615022565b945060018216600081146144885760018114614499576144cc565b60ff198316865281860193506144cc565b6144a285614fe6565b60005b838110156144c4578154818901526001820191506020810190506144a5565b838801955050505b50505092915050565b60006144e082615006565b6144ea818561502d565b93506144fa81856020860161522f565b614503816153fb565b840191505092915050565b600061451982615006565b614523818561503e565b935061453381856020860161522f565b80840191505092915050565b600061454c600b8361502d565b91506145578261540c565b602082019050919050565b600061456f60198361502d565b915061457a82615435565b602082019050919050565b6000614592601f8361502d565b915061459d8261545e565b602082019050919050565b60006145b560128361502d565b91506145c082615487565b602082019050919050565b60006145d8602b8361502d565b91506145e3826154b0565b604082019050919050565b60006145fb60148361502d565b9150614606826154ff565b602082019050919050565b600061461e60328361502d565b915061462982615528565b604082019050919050565b600061464160268361502d565b915061464c82615577565b604082019050919050565b600061466460148361502d565b915061466f826155c6565b602082019050919050565b6000614687601c8361502d565b9150614692826155ef565b602082019050919050565b60006146aa60248361502d565b91506146b582615618565b604082019050919050565b60006146cd60198361502d565b91506146d882615667565b602082019050919050565b60006146f060128361502d565b91506146fb82615690565b602082019050919050565b6000614713602c8361502d565b915061471e826156b9565b604082019050919050565b600061473660128361502d565b915061474182615708565b602082019050919050565b600061475960388361502d565b915061476482615731565b604082019050919050565b600061477c602a8361502d565b915061478782615780565b604082019050919050565b600061479f60298361502d565b91506147aa826157cf565b604082019050919050565b60006147c2601e8361502d565b91506147cd8261581e565b602082019050919050565b60006147e5600f8361502d565b91506147f082615847565b602082019050919050565b600061480860208361502d565b915061481382615870565b602082019050919050565b600061482b60158361502d565b915061483682615899565b602082019050919050565b600061484e602c8361502d565b9150614859826158c2565b604082019050919050565b600061487160208361502d565b915061487c82615911565b602082019050919050565b600061489460298361502d565b915061489f8261593a565b604082019050919050565b60006148b760128361502d565b91506148c282615989565b602082019050919050565b60006148da60238361502d565b91506148e5826159b2565b604082019050919050565b60006148fd60128361502d565b915061490882615a01565b602082019050919050565b600061492060218361502d565b915061492b82615a2a565b604082019050919050565b600061494360318361502d565b915061494e82615a79565b604082019050919050565b6000614966602c8361502d565b915061497182615ac8565b604082019050919050565b600061498960148361502d565b915061499482615b17565b602082019050919050565b6149a881615209565b82525050565b60006149ba8284614425565b915081905092915050565b60006149d18284614456565b915081905092915050565b60006149e8828461450e565b915081905092915050565b60006149ff828561450e565b9150614a0b828461450e565b91508190509392505050565b6000602082019050614a2c60008301846143ce565b92915050565b6000606082019050614a4760008301866143ce565b614a5460208301856143ce565b614a61604083018461499f565b949350505050565b6000608082019050614a7e60008301876143ce565b614a8b60208301866143ce565b614a98604083018561499f565b8181036060830152614aaa81846143ec565b905095945050505050565b6000604082019050614aca60008301856143ce565b614ad7602083018461499f565b9392505050565b6000602082019050614af360008301846143dd565b92915050565b60006020820190508181036000830152614b1381846144d5565b905092915050565b60006020820190508181036000830152614b348161453f565b9050919050565b60006020820190508181036000830152614b5481614562565b9050919050565b60006020820190508181036000830152614b7481614585565b9050919050565b60006020820190508181036000830152614b94816145a8565b9050919050565b60006020820190508181036000830152614bb4816145cb565b9050919050565b60006020820190508181036000830152614bd4816145ee565b9050919050565b60006020820190508181036000830152614bf481614611565b9050919050565b60006020820190508181036000830152614c1481614634565b9050919050565b60006020820190508181036000830152614c3481614657565b9050919050565b60006020820190508181036000830152614c548161467a565b9050919050565b60006020820190508181036000830152614c748161469d565b9050919050565b60006020820190508181036000830152614c94816146c0565b9050919050565b60006020820190508181036000830152614cb4816146e3565b9050919050565b60006020820190508181036000830152614cd481614706565b9050919050565b60006020820190508181036000830152614cf481614729565b9050919050565b60006020820190508181036000830152614d148161474c565b9050919050565b60006020820190508181036000830152614d348161476f565b9050919050565b60006020820190508181036000830152614d5481614792565b9050919050565b60006020820190508181036000830152614d74816147b5565b9050919050565b60006020820190508181036000830152614d94816147d8565b9050919050565b60006020820190508181036000830152614db4816147fb565b9050919050565b60006020820190508181036000830152614dd48161481e565b9050919050565b60006020820190508181036000830152614df481614841565b9050919050565b60006020820190508181036000830152614e1481614864565b9050919050565b60006020820190508181036000830152614e3481614887565b9050919050565b60006020820190508181036000830152614e54816148aa565b9050919050565b60006020820190508181036000830152614e74816148cd565b9050919050565b60006020820190508181036000830152614e94816148f0565b9050919050565b60006020820190508181036000830152614eb481614913565b9050919050565b60006020820190508181036000830152614ed481614936565b9050919050565b60006020820190508181036000830152614ef481614959565b9050919050565b60006020820190508181036000830152614f148161497c565b9050919050565b6000602082019050614f30600083018461499f565b92915050565b6000604082019050614f4b600083018561499f565b614f58602083018461499f565b9392505050565b6000614f69614f7a565b9050614f758282615294565b919050565b6000604051905090565b600067ffffffffffffffff821115614f9f57614f9e6153cc565b5b614fa8826153fb565b9050602081019050919050565b600067ffffffffffffffff821115614fd057614fcf6153cc565b5b614fd9826153fb565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061505482615209565b915061505f83615209565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156150945761509361533f565b5b828201905092915050565b60006150aa82615213565b91506150b583615213565b92508260ff038211156150cb576150ca61533f565b5b828201905092915050565b60006150e182615209565b91506150ec83615209565b9250826150fc576150fb61536e565b5b828204905092915050565b600061511282615209565b915061511d83615209565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156151565761515561533f565b5b828202905092915050565b600061516c82615209565b915061517783615209565b92508282101561518a5761518961533f565b5b828203905092915050565b60006151a0826151e9565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b8381101561524d578082015181840152602081019050615232565b8381111561525c576000848401525b50505050565b6000600282049050600182168061527a57607f821691505b6020821081141561528e5761528d61539d565b5b50919050565b61529d826153fb565b810181811067ffffffffffffffff821117156152bc576152bb6153cc565b5b80604052505050565b60006152d082615209565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156153035761530261533f565b5b600182019050919050565b600061531982615209565b915061532483615209565b9250826153345761533361536e565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f73616d6520706172656e74000000000000000000000000000000000000000000600082015250565b7f706172656e7420616c7265616479206861732061206261627900000000000000600082015250565b7f4552433732313a2063616c6c6572206973206e6f7420746865206f776e657200600082015250565b7f546f6b656e204944206e6f742076616c69640000000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4261736520555249206e6f742079657420736574000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f6e756d546f646c657273206e6f742076616c6964000000000000000000000000600082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f696e646578206f7574206f662076616c75650000000000000000000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f746f6b656e204944206e6f742076616c69640000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f63616c6c6572206973206e6f742074686520706172656e74206f776e65720000600082015250565b7f6e6f20706172656e7420666f756e640000000000000000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4e616d6520616c72656164792072657365727665640000000000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f6e6f7420656e6f75676820706172656e74730000000000000000000000000000600082015250565b7f4e6577206e616d652069732073616d65206173207468652063757272656e742060008201527f6f6e650000000000000000000000000000000000000000000000000000000000602082015250565b7f6d696e74206973206e6f74206163746976650000000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f4e6f7420612076616c6964206e6577206e616d65000000000000000000000000600082015250565b615b4981615195565b8114615b5457600080fd5b50565b615b60816151a7565b8114615b6b57600080fd5b50565b615b77816151b3565b8114615b8257600080fd5b50565b615b8e816151bd565b8114615b9957600080fd5b50565b615ba581615209565b8114615bb057600080fd5b5056fea2646970667358221220293e4dfc4d461d4af361392315f8362cd7606e80a870a00d9e22504acec7311464736f6c63430008040033000000000000000000000000e12a2a0fb3fb5089a498386a734df7060c1693b80000000000000000000000008a9c4dfe8b9d8962b31e4e16f8321c44d48e246e

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102105760003560e01c8063693882dd11610125578063a22cb465116100ad578063c39cbef11161007c578063c39cbef114610672578063c48283ff1461068e578063c87b56dd146106aa578063e985e9c5146106da578063f2fde38b1461070a57610210565b8063a22cb465146105d9578063ad5b4f8e146105f5578063b78af26b14610626578063b88d4fde1461065657610210565b806384c89bef116100f457806384c89bef1461050d5780638da5cb5b1461053d5780639416b4231461055b57806395d89b411461058b5780639ffdb65a146105a957610210565b8063693882dd146104735780636d522418146104a357806370a08231146104d3578063715018a61461050357610210565b80632f745c59116101a857806355f804b31161017757806355f804b3146103cf57806359c74f29146103eb5780635b92ac0d146103f55780636352211e14610413578063648152a71461044357610210565b80632f745c591461033557806342842e0e146103655780634f6ccce71461038157806354b6f161146103b157610210565b8063095ea7b3116101e4578063095ea7b3146102af57806315b56d10146102cb57806318160ddd146102fb57806323b872dd1461031957610210565b8062bc653c1461021557806301ffc9a71461023157806306fdde0314610261578063081812fc1461027f575b600080fd5b61022f600480360381019061022a91906142ec565b610726565b005b61024b60048036038101906102469190614259565b610941565b6040516102589190614ade565b60405180910390f35b6102696109bb565b6040516102769190614af9565b60405180910390f35b610299600480360381019061029491906142ec565b610a4d565b6040516102a69190614a17565b60405180910390f35b6102c960048036038101906102c491906141cb565b610ad2565b005b6102e560048036038101906102e091906142ab565b610bea565b6040516102f29190614ade565b60405180910390f35b610303610c27565b6040516103109190614f1b565b60405180910390f35b610333600480360381019061032e91906140c5565b610c34565b005b61034f600480360381019061034a91906141cb565b610c94565b60405161035c9190614f1b565b60405180910390f35b61037f600480360381019061037a91906140c5565b610d39565b005b61039b600480360381019061039691906142ec565b610d59565b6040516103a89190614f1b565b60405180910390f35b6103b9610df0565b6040516103c69190614f1b565b60405180910390f35b6103e960048036038101906103e491906142ab565b610dfd565b005b6103f3610e93565b005b6103fd610f3b565b60405161040a9190614ade565b60405180910390f35b61042d600480360381019061042891906142ec565b610f52565b60405161043a9190614a17565b60405180910390f35b61045d600480360381019061045891906141cb565b611004565b60405161046a9190614f1b565b60405180910390f35b61048d600480360381019061048891906142ec565b611248565b60405161049a9190614ade565b60405180910390f35b6104bd60048036038101906104b891906142ec565b611268565b6040516104ca9190614af9565b60405180910390f35b6104ed60048036038101906104e89190614037565b61130d565b6040516104fa9190614f1b565b60405180910390f35b61050b6113c5565b005b61052760048036038101906105229190614037565b61144d565b6040516105349190614f1b565b60405180910390f35b610545611601565b6040516105529190614a17565b60405180910390f35b610575600480360381019061057091906142ab565b61162b565b6040516105829190614af9565b60405180910390f35b6105936118ed565b6040516105a09190614af9565b60405180910390f35b6105c360048036038101906105be91906142ab565b61197f565b6040516105d09190614ade565b60405180910390f35b6105f360048036038101906105ee919061418f565b611d49565b005b61060f600480360381019061060a91906142ec565b611eca565b60405161061d929190614f36565b60405180910390f35b610640600480360381019061063b91906142ec565b611f4c565b60405161064d9190614f1b565b60405180910390f35b610670600480360381019061066b9190614114565b611f69565b005b61068c6004803603810190610687919061433e565b611fcb565b005b6106a860048036038101906106a39190614392565b61246e565b005b6106c460048036038101906106bf91906142ec565b61274c565b6040516106d19190614af9565b60405180910390f35b6106f460048036038101906106ef9190614089565b61281f565b6040516107019190614ade565b60405180910390f35b610724600480360381019061071f9190614037565b6128b3565b005b601060009054906101000a900460ff16610775576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161076c90614e7b565b60405180910390fd5b600081116107b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107af90614c1b565b60405180910390fd5b6000806000806107ce6107c96129ab565b61144d565b90506000601060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a082316108186129ab565b6040518263ffffffff1660e01b81526004016108349190614a17565b60206040518083038186803b15801561084c57600080fd5b505afa158015610860573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108849190614315565b905061089a6002876129b390919063ffffffff16565b8210156108dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d390614e3b565b60405180910390fd5b60005b86811015610938576108f96108f26129ab565b83866129c9565b809550819750505061091361090c6129ab565b83866129c9565b80955081965050506109258686612b09565b8080610930906152c5565b9150506108df565b50505050505050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109b457506109b382612c37565b5b9050919050565b6060600080546109ca90615262565b80601f01602080910402602001604051908101604052809291908181526020018280546109f690615262565b8015610a435780601f10610a1857610100808354040283529160200191610a43565b820191906000526020600020905b815481529060010190602001808311610a2657829003601f168201915b5050505050905090565b6000610a5882612d19565b610a97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8e90614ddb565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610add82610f52565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4590614e9b565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b6d6129ab565b73ffffffffffffffffffffffffffffffffffffffff161480610b9c5750610b9b81610b966129ab565b61281f565b5b610bdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd290614cfb565b60405180910390fd5b610be58383612d85565b505050565b6000600c610bf78361162b565b604051610c0491906149dc565b908152602001604051809103902060009054906101000a900460ff169050919050565b6000600880549050905090565b610c45610c3f6129ab565b82612e3e565b610c84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7b90614ebb565b60405180910390fd5b610c8f838383612f1c565b505050565b6000610c9f8361130d565b8210610ce0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd790614b9b565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610d5483838360405180602001604052806000815250611f69565b505050565b6000610d63610c27565b8210610da4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9b90614edb565b60405180910390fd5b60088281548110610dde577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b680ad78ebc5ac620000081565b610e056129ab565b73ffffffffffffffffffffffffffffffffffffffff16610e23611601565b73ffffffffffffffffffffffffffffffffffffffff1614610e79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7090614dfb565b60405180910390fd5b80600f9080519060200190610e8f929190613e07565b5050565b610e9b6129ab565b73ffffffffffffffffffffffffffffffffffffffff16610eb9611601565b73ffffffffffffffffffffffffffffffffffffffff1614610f0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0690614dfb565b60405180910390fd5b601060009054906101000a900460ff1615601060006101000a81548160ff021916908315150217905550565b6000601060009054906101000a900460ff16905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ffb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff290614d3b565b60405180910390fd5b80915050919050565b6000806110108461144d565b9050808310611054576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104b90614c9b565b60405180910390fd5b600080601060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231876040518263ffffffff1660e01b81526004016110b29190614a17565b60206040518083038186803b1580156110ca57600080fd5b505afa1580156110de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111029190614315565b905060005b81811015611206576000601060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5989846040518363ffffffff1660e01b815260040161116e929190614ab5565b60206040518083038186803b15801561118657600080fd5b505afa15801561119a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111be9190614315565b90506111c981611248565b6111dd576001846111da9190615049565b93505b868411156111f2578095505050505050611242565b5080806111fe906152c5565b915050611107565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123990614d7b565b60405180910390fd5b92915050565b600080600e60008481526020019081526020016000205414159050919050565b6060600b6000838152602001908152602001600020805461128890615262565b80601f01602080910402602001604051908101604052809291908181526020018280546112b490615262565b80156113015780601f106112d657610100808354040283529160200191611301565b820191906000526020600020905b8154815290600101906020018083116112e457829003601f168201915b50505050509050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561137e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137590614d1b565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6113cd6129ab565b73ffffffffffffffffffffffffffffffffffffffff166113eb611601565b73ffffffffffffffffffffffffffffffffffffffff1614611441576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143890614dfb565b60405180910390fd5b61144b6000613178565b565b600080600090506000601060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b81526004016114b19190614a17565b60206040518083038186803b1580156114c957600080fd5b505afa1580156114dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115019190614315565b905060005b818110156115eb576115c3601060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5987846040518363ffffffff1660e01b815260040161156e929190614ab5565b60206040518083038186803b15801561158657600080fd5b505afa15801561159a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115be9190614315565b611248565b156115d8576001836115d59190615049565b92505b80806115e3906152c5565b915050611506565b5081816115f89190615161565b92505050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060008290506000815167ffffffffffffffff811115611675577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156116a75781602001600182028036833780820191505090505b50905060005b82518110156118e25760418382815181106116f1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c60ff161015801561175a5750605a838281518110611746577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c60ff1611155b1561182257602083828151811061179a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c6117b2919061509f565b60f81b8282815181106117ee577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506118cf565b82818151811061185b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b82828151811061189f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505b80806118da906152c5565b9150506116ad565b508092505050919050565b6060600180546118fc90615262565b80601f016020809104026020016040519081016040528092919081815260200182805461192890615262565b80156119755780601f1061194a57610100808354040283529160200191611975565b820191906000526020600020905b81548152906001019060200180831161195857829003601f168201915b5050505050905090565b600080829050600181511015611999576000915050611d44565b6019815111156119ad576000915050611d44565b602060f81b816000815181106119ec577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415611a29576000915050611d44565b602060f81b8160018351611a3d9190615161565b81518110611a74577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415611ab1576000915050611d44565b600081600081518110611aed577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b905060005b8251811015611d3c576000838281518110611b41577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b9050602060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148015611ba85750602060f81b837effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b15611bba576000945050505050611d44565b603060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611c165750603960f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b158015611c7c5750604160f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611c7a5750605a60f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b155b8015611ce15750606160f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611cdf5750607a60f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b155b8015611d135750602060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b15611d25576000945050505050611d44565b809250508080611d34906152c5565b915050611afd565b506001925050505b919050565b611d516129ab565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611dbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db690614c7b565b60405180910390fd5b8060056000611dcc6129ab565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611e796129ab565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ebe9190614ade565b60405180910390a35050565b600080611ed683612d19565b611f15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0c90614cdb565b60405180910390fd5b600d600084815260200190815260200160002060000154600d60008581526020019081526020016000206001015491509150915091565b6000600e6000838152602001908152602001600020549050919050565b611f7a611f746129ab565b83612e3e565b611fb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb090614ebb565b60405180910390fd5b611fc58484848461323e565b50505050565b6000611fd683610f52565b90508073ffffffffffffffffffffffffffffffffffffffff16611ff76129ab565b73ffffffffffffffffffffffffffffffffffffffff161461204d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204490614b5b565b60405180910390fd5b6001151561205a8361197f565b15151461209c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209390614efb565b60405180910390fd5b6002600b60008581526020019081526020016000206040516120be91906149c5565b602060405180830381855afa1580156120db573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906120fe9190614230565b60028360405161210e91906149ae565b602060405180830381855afa15801561212b573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061214e9190614230565b141561218f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218690614e5b565b60405180910390fd5b6000151561219c83610bea565b1515146121de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d590614dbb565b60405180910390fd5b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330680ad78ebc5ac62000006040518463ffffffff1660e01b815260040161224693929190614a32565b602060405180830381600087803b15801561226057600080fd5b505af1158015612274573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122989190614207565b506000600b600085815260200190815260200160002080546122b990615262565b9050111561236857612367600b600085815260200190815260200160002080546122e290615262565b80601f016020809104026020016040519081016040528092919081815260200182805461230e90615262565b801561235b5780601f106123305761010080835404028352916020019161235b565b820191906000526020600020905b81548152906001019060200180831161233e57829003601f168201915b5050505050600061329a565b5b61237382600161329a565b81600b6000858152602001908152602001600020908051906020019061239a929190613e07565b50601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c68680ad78ebc5ac62000006040518263ffffffff1660e01b81526004016123ff9190614f1b565b600060405180830381600087803b15801561241957600080fd5b505af115801561242d573d6000803e3d6000fd5b50505050827f7e632a301794d8d4a81ea7e20f37d1947158d36e66403af04ba85dd194b66f1b836040516124619190614af9565b60405180910390a2505050565b601060009054906101000a900460ff166124bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b490614e7b565b60405180910390fd5b6124c56129ab565b73ffffffffffffffffffffffffffffffffffffffff16601060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b81526004016125369190614f1b565b60206040518083038186803b15801561254e57600080fd5b505afa158015612562573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125869190614060565b73ffffffffffffffffffffffffffffffffffffffff16146125dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125d390614d5b565b60405180910390fd5b6125e46129ab565b73ffffffffffffffffffffffffffffffffffffffff16601060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016126559190614f1b565b60206040518083038186803b15801561266d57600080fd5b505afa158015612681573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126a59190614060565b73ffffffffffffffffffffffffffffffffffffffff16146126fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f290614d5b565b60405180910390fd5b8082141561273e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161273590614b1b565b60405180910390fd5b6127488282612b09565b5050565b606061275782612d19565b612796576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278d90614b7b565b60405180910390fd5b6000600f80546127a590615262565b9050116127e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127de90614bbb565b60405180910390fd5b6127ef6132dc565b6127f88361336e565b6040516020016128099291906149f3565b6040516020818303038152906040529050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6128bb6129ab565b73ffffffffffffffffffffffffffffffffffffffff166128d9611601565b73ffffffffffffffffffffffffffffffffffffffff161461292f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292690614dfb565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561299f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161299690614bfb565b60405180910390fd5b6129a881613178565b50565b600033905090565b600081836129c19190615107565b905092915050565b60008060008390505b84811015612ac5576000601060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5988846040518363ffffffff1660e01b8152600401612a39929190614ab5565b60206040518083038186803b158015612a5157600080fd5b505afa158015612a65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a899190614315565b9050612a9481611248565b612ab15780600183612aa69190615049565b935093505050612b01565b508080612abd906152c5565b9150506129d2565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612af890614d7b565b60405180910390fd5b935093915050565b612b1282611248565b15612b52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b4990614b3b565b60405180910390fd5b612b5b81611248565b15612b9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9290614b3b565b60405180910390fd5b60006001612ba7610c27565b612bb19190615049565b9050612bbd338261351b565b6000604051806040016040528085815260200184815250905080600d6000848152602001908152602001600020600082015181600001556020820151816001015590505081600e60008681526020019081526020016000208190555081600e60008581526020019081526020016000208190555050505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d0257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612d125750612d1182613539565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612df883610f52565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612e4982612d19565b612e88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e7f90614cbb565b60405180910390fd5b6000612e9383610f52565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612f0257508373ffffffffffffffffffffffffffffffffffffffff16612eea84610a4d565b73ffffffffffffffffffffffffffffffffffffffff16145b80612f135750612f12818561281f565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612f3c82610f52565b73ffffffffffffffffffffffffffffffffffffffff1614612f92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f8990614e1b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613002576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff990614c5b565b60405180910390fd5b61300d8383836135a3565b613018600082612d85565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130689190615161565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130bf9190615049565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613249848484612f1c565b613255848484846136b7565b613294576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161328b90614bdb565b60405180910390fd5b50505050565b80600c6132a68461162b565b6040516132b391906149dc565b908152602001604051809103902060006101000a81548160ff0219169083151502179055505050565b6060600f80546132eb90615262565b80601f016020809104026020016040519081016040528092919081815260200182805461331790615262565b80156133645780601f1061333957610100808354040283529160200191613364565b820191906000526020600020905b81548152906001019060200180831161334757829003601f168201915b5050505050905090565b606060008214156133b6576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613516565b600082905060005b600082146133e85780806133d1906152c5565b915050600a826133e191906150d6565b91506133be565b60008167ffffffffffffffff81111561342a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561345c5781602001600182028036833780820191505090505b5090505b6000851461350f576001826134759190615161565b9150600a85613484919061530e565b60306134909190615049565b60f81b8183815181106134cc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561350891906150d6565b9450613460565b8093505050505b919050565b61353582826040518060200160405280600081525061384e565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6135ae8383836138a9565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156135f1576135ec816138ae565b613630565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461362f5761362e83826138f7565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156136735761366e81613a64565b6136b2565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146136b1576136b08282613ba7565b5b5b505050565b60006136d88473ffffffffffffffffffffffffffffffffffffffff16613c26565b15613841578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026137016129ab565b8786866040518563ffffffff1660e01b81526004016137239493929190614a69565b602060405180830381600087803b15801561373d57600080fd5b505af192505050801561376e57506040513d601f19601f8201168201806040525081019061376b9190614282565b60015b6137f1573d806000811461379e576040519150601f19603f3d011682016040523d82523d6000602084013e6137a3565b606091505b506000815114156137e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137e090614bdb565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613846565b600190505b949350505050565b6138588383613c39565b61386560008484846136b7565b6138a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161389b90614bdb565b60405180910390fd5b505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016139048461130d565b61390e9190615161565b90506000600760008481526020019081526020016000205490508181146139f3576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613a789190615161565b9050600060096000848152602001908152602001600020549050600060088381548110613ace577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060088381548110613b16577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613b8b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613bb28361130d565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613ca9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ca090614d9b565b60405180910390fd5b613cb281612d19565b15613cf2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ce990614c3b565b60405180910390fd5b613cfe600083836135a3565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613d4e9190615049565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b828054613e1390615262565b90600052602060002090601f016020900481019282613e355760008555613e7c565b82601f10613e4e57805160ff1916838001178555613e7c565b82800160010185558215613e7c579182015b82811115613e7b578251825591602001919060010190613e60565b5b509050613e899190613e8d565b5090565b5b80821115613ea6576000816000905550600101613e8e565b5090565b6000613ebd613eb884614f84565b614f5f565b905082815260208101848484011115613ed557600080fd5b613ee0848285615220565b509392505050565b6000613efb613ef684614fb5565b614f5f565b905082815260208101848484011115613f1357600080fd5b613f1e848285615220565b509392505050565b600081359050613f3581615b40565b92915050565b600081519050613f4a81615b40565b92915050565b600081359050613f5f81615b57565b92915050565b600081519050613f7481615b57565b92915050565b600081519050613f8981615b6e565b92915050565b600081359050613f9e81615b85565b92915050565b600081519050613fb381615b85565b92915050565b600082601f830112613fca57600080fd5b8135613fda848260208601613eaa565b91505092915050565b600082601f830112613ff457600080fd5b8135614004848260208601613ee8565b91505092915050565b60008135905061401c81615b9c565b92915050565b60008151905061403181615b9c565b92915050565b60006020828403121561404957600080fd5b600061405784828501613f26565b91505092915050565b60006020828403121561407257600080fd5b600061408084828501613f3b565b91505092915050565b6000806040838503121561409c57600080fd5b60006140aa85828601613f26565b92505060206140bb85828601613f26565b9150509250929050565b6000806000606084860312156140da57600080fd5b60006140e886828701613f26565b93505060206140f986828701613f26565b925050604061410a8682870161400d565b9150509250925092565b6000806000806080858703121561412a57600080fd5b600061413887828801613f26565b945050602061414987828801613f26565b935050604061415a8782880161400d565b925050606085013567ffffffffffffffff81111561417757600080fd5b61418387828801613fb9565b91505092959194509250565b600080604083850312156141a257600080fd5b60006141b085828601613f26565b92505060206141c185828601613f50565b9150509250929050565b600080604083850312156141de57600080fd5b60006141ec85828601613f26565b92505060206141fd8582860161400d565b9150509250929050565b60006020828403121561421957600080fd5b600061422784828501613f65565b91505092915050565b60006020828403121561424257600080fd5b600061425084828501613f7a565b91505092915050565b60006020828403121561426b57600080fd5b600061427984828501613f8f565b91505092915050565b60006020828403121561429457600080fd5b60006142a284828501613fa4565b91505092915050565b6000602082840312156142bd57600080fd5b600082013567ffffffffffffffff8111156142d757600080fd5b6142e384828501613fe3565b91505092915050565b6000602082840312156142fe57600080fd5b600061430c8482850161400d565b91505092915050565b60006020828403121561432757600080fd5b600061433584828501614022565b91505092915050565b6000806040838503121561435157600080fd5b600061435f8582860161400d565b925050602083013567ffffffffffffffff81111561437c57600080fd5b61438885828601613fe3565b9150509250929050565b600080604083850312156143a557600080fd5b60006143b38582860161400d565b92505060206143c48582860161400d565b9150509250929050565b6143d781615195565b82525050565b6143e6816151a7565b82525050565b60006143f782614ffb565b6144018185615011565b935061441181856020860161522f565b61441a816153fb565b840191505092915050565b600061443082614ffb565b61443a8185615022565b935061444a81856020860161522f565b80840191505092915050565b6000815461446381615262565b61446d8186615022565b945060018216600081146144885760018114614499576144cc565b60ff198316865281860193506144cc565b6144a285614fe6565b60005b838110156144c4578154818901526001820191506020810190506144a5565b838801955050505b50505092915050565b60006144e082615006565b6144ea818561502d565b93506144fa81856020860161522f565b614503816153fb565b840191505092915050565b600061451982615006565b614523818561503e565b935061453381856020860161522f565b80840191505092915050565b600061454c600b8361502d565b91506145578261540c565b602082019050919050565b600061456f60198361502d565b915061457a82615435565b602082019050919050565b6000614592601f8361502d565b915061459d8261545e565b602082019050919050565b60006145b560128361502d565b91506145c082615487565b602082019050919050565b60006145d8602b8361502d565b91506145e3826154b0565b604082019050919050565b60006145fb60148361502d565b9150614606826154ff565b602082019050919050565b600061461e60328361502d565b915061462982615528565b604082019050919050565b600061464160268361502d565b915061464c82615577565b604082019050919050565b600061466460148361502d565b915061466f826155c6565b602082019050919050565b6000614687601c8361502d565b9150614692826155ef565b602082019050919050565b60006146aa60248361502d565b91506146b582615618565b604082019050919050565b60006146cd60198361502d565b91506146d882615667565b602082019050919050565b60006146f060128361502d565b91506146fb82615690565b602082019050919050565b6000614713602c8361502d565b915061471e826156b9565b604082019050919050565b600061473660128361502d565b915061474182615708565b602082019050919050565b600061475960388361502d565b915061476482615731565b604082019050919050565b600061477c602a8361502d565b915061478782615780565b604082019050919050565b600061479f60298361502d565b91506147aa826157cf565b604082019050919050565b60006147c2601e8361502d565b91506147cd8261581e565b602082019050919050565b60006147e5600f8361502d565b91506147f082615847565b602082019050919050565b600061480860208361502d565b915061481382615870565b602082019050919050565b600061482b60158361502d565b915061483682615899565b602082019050919050565b600061484e602c8361502d565b9150614859826158c2565b604082019050919050565b600061487160208361502d565b915061487c82615911565b602082019050919050565b600061489460298361502d565b915061489f8261593a565b604082019050919050565b60006148b760128361502d565b91506148c282615989565b602082019050919050565b60006148da60238361502d565b91506148e5826159b2565b604082019050919050565b60006148fd60128361502d565b915061490882615a01565b602082019050919050565b600061492060218361502d565b915061492b82615a2a565b604082019050919050565b600061494360318361502d565b915061494e82615a79565b604082019050919050565b6000614966602c8361502d565b915061497182615ac8565b604082019050919050565b600061498960148361502d565b915061499482615b17565b602082019050919050565b6149a881615209565b82525050565b60006149ba8284614425565b915081905092915050565b60006149d18284614456565b915081905092915050565b60006149e8828461450e565b915081905092915050565b60006149ff828561450e565b9150614a0b828461450e565b91508190509392505050565b6000602082019050614a2c60008301846143ce565b92915050565b6000606082019050614a4760008301866143ce565b614a5460208301856143ce565b614a61604083018461499f565b949350505050565b6000608082019050614a7e60008301876143ce565b614a8b60208301866143ce565b614a98604083018561499f565b8181036060830152614aaa81846143ec565b905095945050505050565b6000604082019050614aca60008301856143ce565b614ad7602083018461499f565b9392505050565b6000602082019050614af360008301846143dd565b92915050565b60006020820190508181036000830152614b1381846144d5565b905092915050565b60006020820190508181036000830152614b348161453f565b9050919050565b60006020820190508181036000830152614b5481614562565b9050919050565b60006020820190508181036000830152614b7481614585565b9050919050565b60006020820190508181036000830152614b94816145a8565b9050919050565b60006020820190508181036000830152614bb4816145cb565b9050919050565b60006020820190508181036000830152614bd4816145ee565b9050919050565b60006020820190508181036000830152614bf481614611565b9050919050565b60006020820190508181036000830152614c1481614634565b9050919050565b60006020820190508181036000830152614c3481614657565b9050919050565b60006020820190508181036000830152614c548161467a565b9050919050565b60006020820190508181036000830152614c748161469d565b9050919050565b60006020820190508181036000830152614c94816146c0565b9050919050565b60006020820190508181036000830152614cb4816146e3565b9050919050565b60006020820190508181036000830152614cd481614706565b9050919050565b60006020820190508181036000830152614cf481614729565b9050919050565b60006020820190508181036000830152614d148161474c565b9050919050565b60006020820190508181036000830152614d348161476f565b9050919050565b60006020820190508181036000830152614d5481614792565b9050919050565b60006020820190508181036000830152614d74816147b5565b9050919050565b60006020820190508181036000830152614d94816147d8565b9050919050565b60006020820190508181036000830152614db4816147fb565b9050919050565b60006020820190508181036000830152614dd48161481e565b9050919050565b60006020820190508181036000830152614df481614841565b9050919050565b60006020820190508181036000830152614e1481614864565b9050919050565b60006020820190508181036000830152614e3481614887565b9050919050565b60006020820190508181036000830152614e54816148aa565b9050919050565b60006020820190508181036000830152614e74816148cd565b9050919050565b60006020820190508181036000830152614e94816148f0565b9050919050565b60006020820190508181036000830152614eb481614913565b9050919050565b60006020820190508181036000830152614ed481614936565b9050919050565b60006020820190508181036000830152614ef481614959565b9050919050565b60006020820190508181036000830152614f148161497c565b9050919050565b6000602082019050614f30600083018461499f565b92915050565b6000604082019050614f4b600083018561499f565b614f58602083018461499f565b9392505050565b6000614f69614f7a565b9050614f758282615294565b919050565b6000604051905090565b600067ffffffffffffffff821115614f9f57614f9e6153cc565b5b614fa8826153fb565b9050602081019050919050565b600067ffffffffffffffff821115614fd057614fcf6153cc565b5b614fd9826153fb565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061505482615209565b915061505f83615209565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156150945761509361533f565b5b828201905092915050565b60006150aa82615213565b91506150b583615213565b92508260ff038211156150cb576150ca61533f565b5b828201905092915050565b60006150e182615209565b91506150ec83615209565b9250826150fc576150fb61536e565b5b828204905092915050565b600061511282615209565b915061511d83615209565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156151565761515561533f565b5b828202905092915050565b600061516c82615209565b915061517783615209565b92508282101561518a5761518961533f565b5b828203905092915050565b60006151a0826151e9565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b8381101561524d578082015181840152602081019050615232565b8381111561525c576000848401525b50505050565b6000600282049050600182168061527a57607f821691505b6020821081141561528e5761528d61539d565b5b50919050565b61529d826153fb565b810181811067ffffffffffffffff821117156152bc576152bb6153cc565b5b80604052505050565b60006152d082615209565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156153035761530261533f565b5b600182019050919050565b600061531982615209565b915061532483615209565b9250826153345761533361536e565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f73616d6520706172656e74000000000000000000000000000000000000000000600082015250565b7f706172656e7420616c7265616479206861732061206261627900000000000000600082015250565b7f4552433732313a2063616c6c6572206973206e6f7420746865206f776e657200600082015250565b7f546f6b656e204944206e6f742076616c69640000000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4261736520555249206e6f742079657420736574000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f6e756d546f646c657273206e6f742076616c6964000000000000000000000000600082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f696e646578206f7574206f662076616c75650000000000000000000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f746f6b656e204944206e6f742076616c69640000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f63616c6c6572206973206e6f742074686520706172656e74206f776e65720000600082015250565b7f6e6f20706172656e7420666f756e640000000000000000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4e616d6520616c72656164792072657365727665640000000000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f6e6f7420656e6f75676820706172656e74730000000000000000000000000000600082015250565b7f4e6577206e616d652069732073616d65206173207468652063757272656e742060008201527f6f6e650000000000000000000000000000000000000000000000000000000000602082015250565b7f6d696e74206973206e6f74206163746976650000000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f4e6f7420612076616c6964206e6577206e616d65000000000000000000000000600082015250565b615b4981615195565b8114615b5457600080fd5b50565b615b60816151a7565b8114615b6b57600080fd5b50565b615b77816151b3565b8114615b8257600080fd5b50565b615b8e816151bd565b8114615b9957600080fd5b50565b615ba581615209565b8114615bb057600080fd5b5056fea2646970667358221220293e4dfc4d461d4af361392315f8362cd7606e80a870a00d9e22504acec7311464736f6c63430008040033

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

000000000000000000000000e12a2a0fb3fb5089a498386a734df7060c1693b80000000000000000000000008a9c4dfe8b9d8962b31e4e16f8321c44d48e246e

-----Decoded View---------------
Arg [0] : nftAddress (address): 0xe12a2A0Fb3fB5089A498386A734DF7060c1693b8
Arg [1] : nctAddress (address): 0x8A9c4dfe8b9D8962B31e4e16F8321C44d48e246E

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000e12a2a0fb3fb5089a498386a734df7060c1693b8
Arg [1] : 0000000000000000000000008a9c4dfe8b9d8962b31e4e16f8321c44d48e246e


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.