ETH Price: $2,586.68 (-3.67%)
Gas: 4 Gwei

Token

LACGold (LACGold)
 

Overview

Max Total Supply

115 LACGold

Holders

25

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
insightmarketing.eth
Balance
3 LACGold
0xa77dd48864034de5732d1e91386cfce16aec3407
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:
LACGold

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

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

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./interfaces/IMinter.sol";

contract LACGold is ERC721Enumerable, Ownable {
    using SafeMath for uint256;

    uint256 public constant MAX_SUPPLY = 8888;
    uint256 public constant MAX_MINT_AMOUNT = 5;

    address erc20Contract = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48; // USDC ethereum mainnet
    uint256 public constant PRESALE_PRICE = 750 * 10 ** 6; // 750 USDC (mainnet value)
    uint256 public constant PUBLIC_PRICE = 2500 * 10 ** 6; // 2500 USDC (mainnet value)
    uint256 public constant UPGRADE_PRICE = 750 * 10 ** 6; // 750 USDC (mainnet value)

    // address erc20Contract = 0x07865c6E87B9F70255377e024ace6630C1Eaa37F; 
    // uint256 public constant PRESALE_PRICE = 1 * 10 ** 4; // 0.01 USDC (testnet value)
    // uint256 public constant PUBLIC_PRICE = 2 * 10 ** 4; // 0.02 USDC (testnet value)
    // uint256 public constant UPGRADE_PRICE = 3 * 10 ** 4; // 0.03 USDC (testnet value)

    uint256 public presaleAt;
    uint256 public launchAt;

    address public minterAddress;
    address public presaleSigner;

    uint256 public burnedTokenCount = 0;

    bool public operational = true;
    mapping(address => uint256) public addressMintBalance;

    constructor(
        string memory baseURI_,
        uint256 presaleAt_,
        uint256 launchAt_,
        address minterAddress_,
        address presaleSigner_
    ) ERC721("LACGold", "LACGold") {
        _baseTokenURI = baseURI_;

        presaleAt = presaleAt_;
        launchAt = launchAt_;

        minterAddress = minterAddress_;
        presaleSigner = presaleSigner_;
    }

    modifier mintValidation(uint256 _mintQty) {
        uint256 supply = totalSupply();
        require(operational, "Operation is paused");
        require(_mintQty > 0, "Must mint minimum of 1 token");
        require(burnedTokenCount + supply + _mintQty <= MAX_SUPPLY, "Exceeds maximum token supply");

        uint256 ownerMintedCount = addressMintBalance[msg.sender];
        require(ownerMintedCount + _mintQty <= MAX_MINT_AMOUNT, "Max NFT per address exceeded");
        _;
    }

    function isPresale() public view returns (bool) {
        return block.timestamp >= presaleAt && block.timestamp < launchAt;
    }

    function isLaunched() public view returns (bool) {
        return block.timestamp >= launchAt;
    }

    function presaleMint(
        uint256 _mintQty,
        bytes32 r,
        bytes32 s,
        uint8 v
    ) external mintValidation(_mintQty) {
        require(block.timestamp >= presaleAt, "Presale has not begun");
        require(block.timestamp < launchAt, "Presale has ended");

        bytes32 digest = keccak256(abi.encode(msg.sender));

        require(_validMint(presaleSigner, digest, r, s, v), "Invalid mint signature");

        uint256 totalPrice = _mintQty * PRESALE_PRICE;

        IERC20 tokenContract = IERC20(erc20Contract);

        bool transferred = tokenContract.transferFrom(msg.sender, address(this), totalPrice);
        require(transferred, "ERC20 tokens failed to transfer");
        
        mint(msg.sender, _mintQty);
    }

    function launchMint(uint256 _mintQty) external mintValidation(_mintQty) {
        require(block.timestamp >= launchAt, "Public sale has not begun");

        uint256 totalPrice = _mintQty * PUBLIC_PRICE;

        IERC20 tokenContract = IERC20(erc20Contract);

        bool transferred = tokenContract.transferFrom(msg.sender, address(this), totalPrice);
        require(transferred, "ERC20 tokens failed to transfer");
        
        mint(msg.sender, _mintQty);
    }

    function devMint(uint256 _mintQty) external onlyOwner {
        uint256 supply = totalSupply();

        require(burnedTokenCount + supply + _mintQty <= MAX_SUPPLY, "Exceeds maximum token supply");
        
        for (uint256 i = 1; i <= _mintQty; i++) {
            _safeMint(msg.sender, burnedTokenCount + supply + i);
        }
    }

    function mint(address _to, uint256 _mintQty) internal {
        uint256 supply = totalSupply();

        addressMintBalance[msg.sender] += _mintQty;

        for (uint256 i = 1; i <= _mintQty; i++) {
            _safeMint(_to, burnedTokenCount + supply + i);
        }
    }

    function upgrade(uint256[2] calldata tokenIds) external {
        IMinter minter = IMinter(minterAddress);
        IERC20 tokenContract = IERC20(erc20Contract);
        
        bool canUpgrade = false;
        bool transferred = tokenContract.transferFrom(msg.sender, address(this), UPGRADE_PRICE);

        require(transferred, "ERC20 tokens failed to transfer");

        for (uint256 i = 0; i < 2; i++) {
            address owner = ERC721.ownerOf(tokenIds[i]);
            if (msg.sender == owner) {
                canUpgrade = true;
            } else {
                canUpgrade = false;
            }
        }

        if (canUpgrade) {
            for (uint256 i = 0; i < 2; i++) {
                _burn(tokenIds[i]);
            }

            burnedTokenCount += 2;
            minter.mint(msg.sender);
        }
    }

    function _validMint(
        address administrator,
        bytes32 digest,
        bytes32 r,
        bytes32 s,
        uint8 v
    )
        internal view
        returns (bool)
    {
        address signer = ecrecover(digest, v, r, s);
        return signer == administrator;
    }

    function setPresaleAt(uint256 value) external onlyOwner {
        presaleAt = value;
    }

    function setLaunchAt(uint256 value) external onlyOwner {
        launchAt = value;
    }

    function setMinter(address _minterAddress) external onlyOwner {
        minterAddress = _minterAddress;
    }

    function toggleOperational() external onlyOwner {
        operational = !operational;
    }

    function walletOfOwner(address _owner) public view returns (uint256[] memory) {
        uint256 ownerTokenCount = balanceOf(_owner);
        uint256[] memory tokenIds = new uint256[](ownerTokenCount);
        for (uint256 i; i < ownerTokenCount; i++) {
            tokenIds[i] = tokenOfOwnerByIndex(_owner, i);
        }
        return tokenIds;
    }

    string private _baseTokenURI;

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

    function setBaseURI(string memory baseURI) external onlyOwner {
        _baseTokenURI = baseURI;
    }

    address private constant creator1Address = 0x24D76404CC8A641E74D06beE456587D11bE4B87D;
    address private constant creator2Address = 0x3004AacF8008E7e91048bd63da7444a0AA3d777b;
    address private constant creator3Address = 0xccdd6139f18dc9C5840F4Bed78217e2c4D0F7Cae;
    address private constant creator4Address = 0x21a49877B5c5fDd7BEB43911d632FB3F3cA14c6d;

    function withdraw() external onlyOwner {
        (bool success, ) = creator1Address.call{value: address(this).balance}("");
        require(success, "Withdraw failed.");
    }

    function withdrawERC20() external onlyOwner
    {
        IERC20 tokenContract = IERC20(erc20Contract);

        uint256 totalBalance = tokenContract.balanceOf(address(this));

        bool transfer1 = tokenContract.transfer(payable(creator2Address), totalBalance.mul(7).div(100));
        bool transfer2 = tokenContract.transfer(payable(creator3Address), totalBalance.mul(7).div(100));
        bool transfer3 = tokenContract.transfer(payable(creator4Address), totalBalance.mul(7).div(100));
        bool transfer4 = tokenContract.transfer(payable(creator1Address), tokenContract.balanceOf(address(this)));

        require(transfer1, "Creator 2 transfer failed");
        require(transfer2, "Creator 3 transfer failed");
        require(transfer3, "Creator 4 transfer failed");
        require(transfer4, "Creator 1 transfer failed");
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 3 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 4 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 5 of 16 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

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 generally not needed starting with Solidity 0.8, since 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 subtraction 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 6 of 16 : IMinter.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface IMinter {
  function mint(address _to) external;
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        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: invalid token ID");
        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) {
        _requireMinted(tokenId);

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

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

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token 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: caller is not token 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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 9 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 12 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 14 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

    /**
     * @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);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"},{"internalType":"uint256","name":"presaleAt_","type":"uint256"},{"internalType":"uint256","name":"launchAt_","type":"uint256"},{"internalType":"address","name":"minterAddress_","type":"address"},{"internalType":"address","name":"presaleSigner_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_MINT_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UPGRADE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnedTokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintQty","type":"uint256"}],"name":"devMint","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":"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":"isLaunched","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launchAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintQty","type":"uint256"}],"name":"launchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operational","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintQty","type":"uint256"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"name":"presaleMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"presaleSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setLaunchAt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minterAddress","type":"address"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setPresaleAt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleOperational","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[2]","name":"tokenIds","type":"uint256[2]"}],"name":"upgrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060006010556001601160006101000a81548160ff0219169083151502179055503480156200008657600080fd5b5060405162005cb238038062005cb28339818101604052810190620000ac91906200043e565b6040518060400160405280600781526020017f4c4143476f6c64000000000000000000000000000000000000000000000000008152506040518060400160405280600781526020017f4c4143476f6c6400000000000000000000000000000000000000000000000000815250816000908051906020019062000130929190620002ee565b50806001908051906020019062000149929190620002ee565b5050506200016c620001606200022060201b60201c565b6200022860201b60201c565b846013908051906020019062000184929190620002ee565b5083600c8190555082600d8190555081600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050620006bb565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002fc90620005ac565b90600052602060002090601f0160209004810192826200032057600085556200036c565b82601f106200033b57805160ff19168380011785556200036c565b828001600101855582156200036c579182015b828111156200036b5782518255916020019190600101906200034e565b5b5090506200037b91906200037f565b5090565b5b808211156200039a57600081600090555060010162000380565b5090565b6000620003b5620003af8462000502565b620004d9565b905082815260208101848484011115620003ce57600080fd5b620003db84828562000576565b509392505050565b600081519050620003f48162000687565b92915050565b600082601f8301126200040c57600080fd5b81516200041e8482602086016200039e565b91505092915050565b6000815190506200043881620006a1565b92915050565b600080600080600060a086880312156200045757600080fd5b600086015167ffffffffffffffff8111156200047257600080fd5b6200048088828901620003fa565b9550506020620004938882890162000427565b9450506040620004a68882890162000427565b9350506060620004b988828901620003e3565b9250506080620004cc88828901620003e3565b9150509295509295909350565b6000620004e5620004f8565b9050620004f38282620005e2565b919050565b6000604051905090565b600067ffffffffffffffff82111562000520576200051f62000647565b5b6200052b8262000676565b9050602081019050919050565b600062000545826200054c565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b838110156200059657808201518184015260208101905062000579565b83811115620005a6576000848401525b50505050565b60006002820490506001821680620005c557607f821691505b60208210811415620005dc57620005db62000618565b5b50919050565b620005ed8262000676565b810181811067ffffffffffffffff821117156200060f576200060e62000647565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b620006928162000538565b81146200069e57600080fd5b50565b620006ac816200056c565b8114620006b857600080fd5b50565b6155e780620006cb6000396000f3fe608060405234801561001057600080fd5b506004361061027f5760003560e01c8063611f3f101161015c578063a22cb465116100ce578063e985e9c511610087578063e985e9c514610752578063f2c5751314610782578063f2fde38b1461079e578063fa9b7018146107ba578063fca3b5aa146107d8578063ff688979146107f45761027f565b8063a22cb46514610690578063a5e70340146106ac578063b88d4fde146106ca578063c3454bcc146106e6578063c87b56dd14610704578063e32a748f146107345761027f565b8063715018a611610120578063715018a6146105f45780637c311388146105fe5780638da5cb5b1461061a57806392d7eacd1461063857806395364a841461065457806395d89b41146106725761027f565b8063611f3f101461053c57806362dc6e211461055a5780636352211e146105785780636ead6781146105a857806370a08231146105c45761027f565b806332cb6b0c116101f55780633ccfd60b116101b95780633ccfd60b1461047c5780633ea85b901461048657806342842e0e146104a4578063438b6300146104c05780634f6ccce7146104f057806355f804b3146105205761027f565b806332cb6b0c146103ea57806333fcaa51146104085780633406c7261461041257806334d722c914610442578063375a069a146104605761027f565b80631749dc26116102475780631749dc261461033c57806318160ddd1461035857806323b872dd146103765780632ed6d5e8146103925780632f745c591461039c578063307aebc9146103cc5761027f565b806301ffc9a71461028457806306fdde03146102b4578063081812fc146102d2578063095ea7b3146103025780630a4010861461031e575b600080fd5b61029e60048036038101906102999190613df0565b610812565b6040516102ab91906145f6565b60405180910390f35b6102bc61088c565b6040516102c99190614656565b60405180910390f35b6102ec60048036038101906102e79190613e83565b61091e565b6040516102f9919061450d565b60405180910390f35b61031c60048036038101906103179190613d62565b610964565b005b610326610a7c565b60405161033391906145f6565b60405180910390f35b61035660048036038101906103519190613ed5565b610a8f565b005b610360610e65565b60405161036d9190614a18565b60405180910390f35b610390600480360381019061038b9190613c5c565b610e72565b005b61039a610ed2565b005b6103b660048036038101906103b19190613d62565b611424565b6040516103c39190614a18565b60405180910390f35b6103d46114c9565b6040516103e191906145f6565b60405180910390f35b6103f26114d6565b6040516103ff9190614a18565b60405180910390f35b6104106114dc565b005b61042c60048036038101906104279190613bf7565b611510565b6040516104399190614a18565b60405180910390f35b61044a611528565b604051610457919061450d565b60405180910390f35b61047a60048036038101906104759190613e83565b61154e565b005b610484611607565b005b61048e6116d2565b60405161049b919061450d565b60405180910390f35b6104be60048036038101906104b99190613c5c565b6116f8565b005b6104da60048036038101906104d59190613bf7565b611718565b6040516104e791906145d4565b60405180910390f35b61050a60048036038101906105059190613e83565b611812565b6040516105179190614a18565b60405180910390f35b61053a60048036038101906105359190613e42565b6118a9565b005b6105446118cb565b6040516105519190614a18565b60405180910390f35b6105626118d3565b60405161056f9190614a18565b60405180910390f35b610592600480360381019061058d9190613e83565b6118db565b60405161059f919061450d565b60405180910390f35b6105c260048036038101906105bd9190613d9e565b61198d565b005b6105de60048036038101906105d99190613bf7565b611c59565b6040516105eb9190614a18565b60405180910390f35b6105fc611d11565b005b61061860048036038101906106139190613e83565b611d25565b005b610622611d37565b60405161062f919061450d565b60405180910390f35b610652600480360381019061064d9190613e83565b611d61565b005b61065c611d73565b60405161066991906145f6565b60405180910390f35b61067a611d8d565b6040516106879190614656565b60405180910390f35b6106aa60048036038101906106a59190613d26565b611e1f565b005b6106b4611e35565b6040516106c19190614a18565b60405180910390f35b6106e460048036038101906106df9190613cab565b611e3b565b005b6106ee611e9d565b6040516106fb9190614a18565b60405180910390f35b61071e60048036038101906107199190613e83565b611ea3565b60405161072b9190614656565b60405180910390f35b61073c611f0b565b6040516107499190614a18565b60405180910390f35b61076c60048036038101906107679190613c20565b611f11565b60405161077991906145f6565b60405180910390f35b61079c60048036038101906107979190613e83565b611fa5565b005b6107b860048036038101906107b39190613bf7565b61229a565b005b6107c261231e565b6040516107cf9190614a18565b60405180910390f35b6107f260048036038101906107ed9190613bf7565b612323565b005b6107fc61236f565b6040516108099190614a18565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610885575061088482612377565b5b9050919050565b60606000805461089b90614d59565b80601f01602080910402602001604051908101604052809291908181526020018280546108c790614d59565b80156109145780601f106108e957610100808354040283529160200191610914565b820191906000526020600020905b8154815290600101906020018083116108f757829003601f168201915b5050505050905090565b600061092982612459565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061096f826118db565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d790614938565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109ff6124a4565b73ffffffffffffffffffffffffffffffffffffffff161480610a2e5750610a2d81610a286124a4565b611f11565b5b610a6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6490614858565b60405180910390fd5b610a7783836124ac565b505050565b601160009054906101000a900460ff1681565b836000610a9a610e65565b9050601160009054906101000a900460ff16610aeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae290614778565b60405180910390fd5b60008211610b2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2590614798565b60405180910390fd5b6122b88282601054610b409190614b41565b610b4a9190614b41565b1115610b8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b82906146b8565b60405180910390fd5b6000601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060058382610bdd9190614b41565b1115610c1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c15906148f8565b60405180910390fd5b600c54421015610c63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5a90614898565b60405180910390fd5b600d544210610ca7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9e90614678565b60405180910390fd5b600033604051602001610cba919061450d565b604051602081830303815290604052805190602001209050610d01600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682898989612565565b610d40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d37906149f8565b60405180910390fd5b6000632cb4178089610d529190614bc8565b90506000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166323b872dd3330866040518463ffffffff1660e01b8152600401610dba93929190614551565b602060405180830381600087803b158015610dd457600080fd5b505af1158015610de8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0c9190613dc7565b905080610e4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4590614698565b60405180910390fd5b610e58338c6125f4565b5050505050505050505050565b6000600880549050905090565b610e83610e7d6124a4565b8261269f565b610ec2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb9906149b8565b60405180910390fd5b610ecd838383612734565b505050565b610eda61299b565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610f3c919061450d565b60206040518083038186803b158015610f5457600080fd5b505afa158015610f68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8c9190613eac565b905060008273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb733004aacf8008e7e91048bd63da7444a0aa3d777b610fe86064610fda600788612a1990919063ffffffff16565b612a2f90919063ffffffff16565b6040518363ffffffff1660e01b8152600401611005929190614528565b602060405180830381600087803b15801561101f57600080fd5b505af1158015611033573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110579190613dc7565b905060008373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb73ccdd6139f18dc9c5840f4bed78217e2c4d0f7cae6110b360646110a5600789612a1990919063ffffffff16565b612a2f90919063ffffffff16565b6040518363ffffffff1660e01b81526004016110d0929190614528565b602060405180830381600087803b1580156110ea57600080fd5b505af11580156110fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111229190613dc7565b905060008473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb7321a49877b5c5fdd7beb43911d632fb3f3ca14c6d61117e606461117060078a612a1990919063ffffffff16565b612a2f90919063ffffffff16565b6040518363ffffffff1660e01b815260040161119b929190614528565b602060405180830381600087803b1580156111b557600080fd5b505af11580156111c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ed9190613dc7565b905060008573ffffffffffffffffffffffffffffffffffffffff1663a9059cbb7324d76404cc8a641e74d06bee456587d11be4b87d8873ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161125b919061450d565b60206040518083038186803b15801561127357600080fd5b505afa158015611287573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ab9190613eac565b6040518363ffffffff1660e01b81526004016112c8929190614528565b602060405180830381600087803b1580156112e257600080fd5b505af11580156112f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061131a9190613dc7565b90508361135c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135390614838565b60405180910390fd5b8261139c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139390614978565b60405180910390fd5b816113dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d3906149d8565b60405180910390fd5b8061141c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611413906148d8565b60405180910390fd5b505050505050565b600061142f83611c59565b8210611470576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611467906146d8565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6000600d54421015905090565b6122b881565b6114e461299b565b601160009054906101000a900460ff1615601160006101000a81548160ff021916908315150217905550565b60126020528060005260406000206000915090505481565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61155661299b565b6000611560610e65565b90506122b882826010546115749190614b41565b61157e9190614b41565b11156115bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b6906146b8565b60405180910390fd5b6000600190505b828111611602576115ef3382846010546115e09190614b41565b6115ea9190614b41565b612a45565b80806115fa90614dbc565b9150506115c6565b505050565b61160f61299b565b60007324d76404cc8a641e74d06bee456587d11be4b87d73ffffffffffffffffffffffffffffffffffffffff1647604051611649906144f8565b60006040518083038185875af1925050503d8060008114611686576040519150601f19603f3d011682016040523d82523d6000602084013e61168b565b606091505b50509050806116cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c6906147f8565b60405180910390fd5b50565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61171383838360405180602001604052806000815250611e3b565b505050565b6060600061172583611c59565b905060008167ffffffffffffffff811115611769577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156117975781602001602082028036833780820191505090505b50905060005b82811015611807576117af8582611424565b8282815181106117e8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080806117ff90614dbc565b91505061179d565b508092505050919050565b600061181c610e65565b821061185d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185490614998565b60405180910390fd5b60088281548110611897577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6118b161299b565b80601390805190602001906118c79291906139a9565b5050565b639502f90081565b632cb4178081565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611984576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197b90614918565b60405180910390fd5b80915050919050565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000808273ffffffffffffffffffffffffffffffffffffffff166323b872dd3330632cb417806040518463ffffffff1660e01b8152600401611a1f93929190614551565b602060405180830381600087803b158015611a3957600080fd5b505af1158015611a4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a719190613dc7565b905080611ab3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aaa90614698565b60405180910390fd5b60005b6002811015611b5f576000611b07878360028110611afd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201356118db565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415611b465760019350611b4b565b600093505b508080611b5790614dbc565b915050611ab6565b508115611c525760005b6002811015611bcb57611bb8868260028110611bae577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020135612a63565b8080611bc390614dbc565b915050611b69565b50600260106000828254611bdf9190614b41565b925050819055508373ffffffffffffffffffffffffffffffffffffffff16636a627842336040518263ffffffff1660e01b8152600401611c1f919061450d565b600060405180830381600087803b158015611c3957600080fd5b505af1158015611c4d573d6000803e3d6000fd5b505050505b5050505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc190614818565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611d1961299b565b611d236000612b80565b565b611d2d61299b565b80600c8190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611d6961299b565b80600d8190555050565b6000600c544210158015611d885750600d5442105b905090565b606060018054611d9c90614d59565b80601f0160208091040260200160405190810160405280929190818152602001828054611dc890614d59565b8015611e155780601f10611dea57610100808354040283529160200191611e15565b820191906000526020600020905b815481529060010190602001808311611df857829003601f168201915b5050505050905090565b611e31611e2a6124a4565b8383612c46565b5050565b600d5481565b611e4c611e466124a4565b8361269f565b611e8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e82906149b8565b60405180910390fd5b611e9784848484612db3565b50505050565b600c5481565b6060611eae82612459565b6000611eb8612e0f565b90506000815111611ed85760405180602001604052806000815250611f03565b80611ee284612ea1565b604051602001611ef39291906144d4565b6040516020818303038152906040525b915050919050565b60105481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b806000611fb0610e65565b9050601160009054906101000a900460ff16612001576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ff890614778565b60405180910390fd5b60008211612044576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203b90614798565b60405180910390fd5b6122b882826010546120569190614b41565b6120609190614b41565b11156120a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612098906146b8565b60405180910390fd5b6000601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600583826120f39190614b41565b1115612134576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212b906148f8565b60405180910390fd5b600d54421015612179576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217090614958565b60405180910390fd5b6000639502f9008561218b9190614bc8565b90506000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166323b872dd3330866040518463ffffffff1660e01b81526004016121f393929190614551565b602060405180830381600087803b15801561220d57600080fd5b505af1158015612221573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122459190613dc7565b905080612287576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227e90614698565b60405180910390fd5b61229133886125f4565b50505050505050565b6122a261299b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612312576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230990614718565b60405180910390fd5b61231b81612b80565b50565b600581565b61232b61299b565b80600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b632cb4178081565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061244257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061245257506124518261304e565b5b9050919050565b612462816130b8565b6124a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249890614918565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661251f836118db565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806001868487876040516000815260200160405260405161258b9493929190614611565b6020604051602081039080840390855afa1580156125ad573d6000803e3d6000fd5b5050506020604051035190508673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161491505095945050505050565b60006125fe610e65565b905081601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461264f9190614b41565b925050819055506000600190505b828111612699576126868482846010546126779190614b41565b6126819190614b41565b612a45565b808061269190614dbc565b91505061265d565b50505050565b6000806126ab836118db565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806126ed57506126ec8185611f11565b5b8061272b57508373ffffffffffffffffffffffffffffffffffffffff166127138461091e565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612754826118db565b73ffffffffffffffffffffffffffffffffffffffff16146127aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a190614738565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561281a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612811906147b8565b60405180910390fd5b612825838383613124565b6128306000826124ac565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128809190614c22565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128d79190614b41565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612996838383613238565b505050565b6129a36124a4565b73ffffffffffffffffffffffffffffffffffffffff166129c1611d37565b73ffffffffffffffffffffffffffffffffffffffff1614612a17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a0e906148b8565b60405180910390fd5b565b60008183612a279190614bc8565b905092915050565b60008183612a3d9190614b97565b905092915050565b612a5f82826040518060200160405280600081525061323d565b5050565b6000612a6e826118db565b9050612a7c81600084613124565b612a876000836124ac565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ad79190614c22565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b7c81600084613238565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612cb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cac906147d8565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612da691906145f6565b60405180910390a3505050565b612dbe848484612734565b612dca84848484613298565b612e09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e00906146f8565b60405180910390fd5b50505050565b606060138054612e1e90614d59565b80601f0160208091040260200160405190810160405280929190818152602001828054612e4a90614d59565b8015612e975780601f10612e6c57610100808354040283529160200191612e97565b820191906000526020600020905b815481529060010190602001808311612e7a57829003601f168201915b5050505050905090565b60606000821415612ee9576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613049565b600082905060005b60008214612f1b578080612f0490614dbc565b915050600a82612f149190614b97565b9150612ef1565b60008167ffffffffffffffff811115612f5d577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612f8f5781602001600182028036833780820191505090505b5090505b6000851461304257600182612fa89190614c22565b9150600a85612fb79190614e05565b6030612fc39190614b41565b60f81b818381518110612fff577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561303b9190614b97565b9450612f93565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b61312f83838361342f565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156131725761316d81613434565b6131b1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146131b0576131af838261347d565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156131f4576131ef816135ea565b613233565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461323257613231828261372d565b5b5b505050565b505050565b61324783836137ac565b6132546000848484613298565b613293576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161328a906146f8565b60405180910390fd5b505050565b60006132b98473ffffffffffffffffffffffffffffffffffffffff16613986565b15613422578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026132e26124a4565b8786866040518563ffffffff1660e01b81526004016133049493929190614588565b602060405180830381600087803b15801561331e57600080fd5b505af192505050801561334f57506040513d601f19601f8201168201806040525081019061334c9190613e19565b60015b6133d2573d806000811461337f576040519150601f19603f3d011682016040523d82523d6000602084013e613384565b606091505b506000815114156133ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133c1906146f8565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613427565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161348a84611c59565b6134949190614c22565b9050600060076000848152602001908152602001600020549050818114613579576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506135fe9190614c22565b9050600060096000848152602001908152602001600020549050600060088381548110613654577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050806008838154811061369c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613711577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061373883611c59565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561381c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161381390614878565b60405180910390fd5b613825816130b8565b15613865576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161385c90614758565b60405180910390fd5b61387160008383613124565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546138c19190614b41565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461398260008383613238565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b8280546139b590614d59565b90600052602060002090601f0160209004810192826139d75760008555613a1e565b82601f106139f057805160ff1916838001178555613a1e565b82800160010185558215613a1e579182015b82811115613a1d578251825591602001919060010190613a02565b5b509050613a2b9190613a2f565b5090565b5b80821115613a48576000816000905550600101613a30565b5090565b6000613a5f613a5a84614a58565b614a33565b905082815260208101848484011115613a7757600080fd5b613a82848285614d17565b509392505050565b6000613a9d613a9884614a89565b614a33565b905082815260208101848484011115613ab557600080fd5b613ac0848285614d17565b509392505050565b600081359050613ad781615527565b92915050565b600081905082602060020282011115613af557600080fd5b92915050565b600081359050613b0a8161553e565b92915050565b600081519050613b1f8161553e565b92915050565b600081359050613b3481615555565b92915050565b600081359050613b498161556c565b92915050565b600081519050613b5e8161556c565b92915050565b600082601f830112613b7557600080fd5b8135613b85848260208601613a4c565b91505092915050565b600082601f830112613b9f57600080fd5b8135613baf848260208601613a8a565b91505092915050565b600081359050613bc781615583565b92915050565b600081519050613bdc81615583565b92915050565b600081359050613bf18161559a565b92915050565b600060208284031215613c0957600080fd5b6000613c1784828501613ac8565b91505092915050565b60008060408385031215613c3357600080fd5b6000613c4185828601613ac8565b9250506020613c5285828601613ac8565b9150509250929050565b600080600060608486031215613c7157600080fd5b6000613c7f86828701613ac8565b9350506020613c9086828701613ac8565b9250506040613ca186828701613bb8565b9150509250925092565b60008060008060808587031215613cc157600080fd5b6000613ccf87828801613ac8565b9450506020613ce087828801613ac8565b9350506040613cf187828801613bb8565b925050606085013567ffffffffffffffff811115613d0e57600080fd5b613d1a87828801613b64565b91505092959194509250565b60008060408385031215613d3957600080fd5b6000613d4785828601613ac8565b9250506020613d5885828601613afb565b9150509250929050565b60008060408385031215613d7557600080fd5b6000613d8385828601613ac8565b9250506020613d9485828601613bb8565b9150509250929050565b600060408284031215613db057600080fd5b6000613dbe84828501613add565b91505092915050565b600060208284031215613dd957600080fd5b6000613de784828501613b10565b91505092915050565b600060208284031215613e0257600080fd5b6000613e1084828501613b3a565b91505092915050565b600060208284031215613e2b57600080fd5b6000613e3984828501613b4f565b91505092915050565b600060208284031215613e5457600080fd5b600082013567ffffffffffffffff811115613e6e57600080fd5b613e7a84828501613b8e565b91505092915050565b600060208284031215613e9557600080fd5b6000613ea384828501613bb8565b91505092915050565b600060208284031215613ebe57600080fd5b6000613ecc84828501613bcd565b91505092915050565b60008060008060808587031215613eeb57600080fd5b6000613ef987828801613bb8565b9450506020613f0a87828801613b25565b9350506040613f1b87828801613b25565b9250506060613f2c87828801613be2565b91505092959194509250565b6000613f4483836144a7565b60208301905092915050565b613f5981614ce1565b82525050565b613f6881614c56565b82525050565b6000613f7982614aca565b613f838185614af8565b9350613f8e83614aba565b8060005b83811015613fbf578151613fa68882613f38565b9750613fb183614aeb565b925050600181019050613f92565b5085935050505092915050565b613fd581614c68565b82525050565b613fe481614c74565b82525050565b6000613ff582614ad5565b613fff8185614b09565b935061400f818560208601614d26565b61401881614ef2565b840191505092915050565b600061402e82614ae0565b6140388185614b25565b9350614048818560208601614d26565b61405181614ef2565b840191505092915050565b600061406782614ae0565b6140718185614b36565b9350614081818560208601614d26565b80840191505092915050565b600061409a601183614b25565b91506140a582614f03565b602082019050919050565b60006140bd601f83614b25565b91506140c882614f2c565b602082019050919050565b60006140e0601c83614b25565b91506140eb82614f55565b602082019050919050565b6000614103602b83614b25565b915061410e82614f7e565b604082019050919050565b6000614126603283614b25565b915061413182614fcd565b604082019050919050565b6000614149602683614b25565b91506141548261501c565b604082019050919050565b600061416c602583614b25565b91506141778261506b565b604082019050919050565b600061418f601c83614b25565b915061419a826150ba565b602082019050919050565b60006141b2601383614b25565b91506141bd826150e3565b602082019050919050565b60006141d5601c83614b25565b91506141e08261510c565b602082019050919050565b60006141f8602483614b25565b915061420382615135565b604082019050919050565b600061421b601983614b25565b915061422682615184565b602082019050919050565b600061423e601083614b25565b9150614249826151ad565b602082019050919050565b6000614261602983614b25565b915061426c826151d6565b604082019050919050565b6000614284601983614b25565b915061428f82615225565b602082019050919050565b60006142a7603e83614b25565b91506142b28261524e565b604082019050919050565b60006142ca602083614b25565b91506142d58261529d565b602082019050919050565b60006142ed601583614b25565b91506142f8826152c6565b602082019050919050565b6000614310602083614b25565b915061431b826152ef565b602082019050919050565b6000614333601983614b25565b915061433e82615318565b602082019050919050565b6000614356601c83614b25565b915061436182615341565b602082019050919050565b6000614379601883614b25565b91506143848261536a565b602082019050919050565b600061439c602183614b25565b91506143a782615393565b604082019050919050565b60006143bf601983614b25565b91506143ca826153e2565b602082019050919050565b60006143e2600083614b1a565b91506143ed8261540b565b600082019050919050565b6000614405601983614b25565b91506144108261540e565b602082019050919050565b6000614428602c83614b25565b915061443382615437565b604082019050919050565b600061444b602e83614b25565b915061445682615486565b604082019050919050565b600061446e601983614b25565b9150614479826154d5565b602082019050919050565b6000614491601683614b25565b915061449c826154fe565b602082019050919050565b6144b081614cca565b82525050565b6144bf81614cca565b82525050565b6144ce81614cd4565b82525050565b60006144e0828561405c565b91506144ec828461405c565b91508190509392505050565b6000614503826143d5565b9150819050919050565b60006020820190506145226000830184613f5f565b92915050565b600060408201905061453d6000830185613f50565b61454a60208301846144b6565b9392505050565b60006060820190506145666000830186613f5f565b6145736020830185613f5f565b61458060408301846144b6565b949350505050565b600060808201905061459d6000830187613f5f565b6145aa6020830186613f5f565b6145b760408301856144b6565b81810360608301526145c98184613fea565b905095945050505050565b600060208201905081810360008301526145ee8184613f6e565b905092915050565b600060208201905061460b6000830184613fcc565b92915050565b60006080820190506146266000830187613fdb565b61463360208301866144c5565b6146406040830185613fdb565b61464d6060830184613fdb565b95945050505050565b600060208201905081810360008301526146708184614023565b905092915050565b600060208201905081810360008301526146918161408d565b9050919050565b600060208201905081810360008301526146b1816140b0565b9050919050565b600060208201905081810360008301526146d1816140d3565b9050919050565b600060208201905081810360008301526146f1816140f6565b9050919050565b6000602082019050818103600083015261471181614119565b9050919050565b600060208201905081810360008301526147318161413c565b9050919050565b600060208201905081810360008301526147518161415f565b9050919050565b6000602082019050818103600083015261477181614182565b9050919050565b60006020820190508181036000830152614791816141a5565b9050919050565b600060208201905081810360008301526147b1816141c8565b9050919050565b600060208201905081810360008301526147d1816141eb565b9050919050565b600060208201905081810360008301526147f18161420e565b9050919050565b6000602082019050818103600083015261481181614231565b9050919050565b6000602082019050818103600083015261483181614254565b9050919050565b6000602082019050818103600083015261485181614277565b9050919050565b600060208201905081810360008301526148718161429a565b9050919050565b60006020820190508181036000830152614891816142bd565b9050919050565b600060208201905081810360008301526148b1816142e0565b9050919050565b600060208201905081810360008301526148d181614303565b9050919050565b600060208201905081810360008301526148f181614326565b9050919050565b6000602082019050818103600083015261491181614349565b9050919050565b600060208201905081810360008301526149318161436c565b9050919050565b600060208201905081810360008301526149518161438f565b9050919050565b60006020820190508181036000830152614971816143b2565b9050919050565b60006020820190508181036000830152614991816143f8565b9050919050565b600060208201905081810360008301526149b18161441b565b9050919050565b600060208201905081810360008301526149d18161443e565b9050919050565b600060208201905081810360008301526149f181614461565b9050919050565b60006020820190508181036000830152614a1181614484565b9050919050565b6000602082019050614a2d60008301846144b6565b92915050565b6000614a3d614a4e565b9050614a498282614d8b565b919050565b6000604051905090565b600067ffffffffffffffff821115614a7357614a72614ec3565b5b614a7c82614ef2565b9050602081019050919050565b600067ffffffffffffffff821115614aa457614aa3614ec3565b5b614aad82614ef2565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614b4c82614cca565b9150614b5783614cca565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614b8c57614b8b614e36565b5b828201905092915050565b6000614ba282614cca565b9150614bad83614cca565b925082614bbd57614bbc614e65565b5b828204905092915050565b6000614bd382614cca565b9150614bde83614cca565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614c1757614c16614e36565b5b828202905092915050565b6000614c2d82614cca565b9150614c3883614cca565b925082821015614c4b57614c4a614e36565b5b828203905092915050565b6000614c6182614caa565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000614cec82614cf3565b9050919050565b6000614cfe82614d05565b9050919050565b6000614d1082614caa565b9050919050565b82818337600083830152505050565b60005b83811015614d44578082015181840152602081019050614d29565b83811115614d53576000848401525b50505050565b60006002820490506001821680614d7157607f821691505b60208210811415614d8557614d84614e94565b5b50919050565b614d9482614ef2565b810181811067ffffffffffffffff82111715614db357614db2614ec3565b5b80604052505050565b6000614dc782614cca565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614dfa57614df9614e36565b5b600182019050919050565b6000614e1082614cca565b9150614e1b83614cca565b925082614e2b57614e2a614e65565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f50726573616c652068617320656e646564000000000000000000000000000000600082015250565b7f455243323020746f6b656e73206661696c656420746f207472616e7366657200600082015250565b7f45786365656473206d6178696d756d20746f6b656e20737570706c7900000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4f7065726174696f6e2069732070617573656400000000000000000000000000600082015250565b7f4d757374206d696e74206d696e696d756d206f66203120746f6b656e00000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f5769746864726177206661696c65642e00000000000000000000000000000000600082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f43726561746f722032207472616e73666572206661696c656400000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f50726573616c6520686173206e6f7420626567756e0000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f43726561746f722031207472616e73666572206661696c656400000000000000600082015250565b7f4d6178204e465420706572206164647265737320657863656564656400000000600082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f5075626c69632073616c6520686173206e6f7420626567756e00000000000000600082015250565b50565b7f43726561746f722033207472616e73666572206661696c656400000000000000600082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b7f43726561746f722034207472616e73666572206661696c656400000000000000600082015250565b7f496e76616c6964206d696e74207369676e617475726500000000000000000000600082015250565b61553081614c56565b811461553b57600080fd5b50565b61554781614c68565b811461555257600080fd5b50565b61555e81614c74565b811461556957600080fd5b50565b61557581614c7e565b811461558057600080fd5b50565b61558c81614cca565b811461559757600080fd5b50565b6155a381614cd4565b81146155ae57600080fd5b5056fea26469706673582212206165479fdb16ec86369bb5ca18da5025438eb12ec15af8877752fa37a3e95f0564736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000062e323000000000000000000000000000000000000000000000000000000000062f15d3000000000000000000000000038ea593c3ae5b8aa1fff989d12b70fb17466c99c00000000000000000000000086d7e462cf786db3cd375f9a938265454ea5560f000000000000000000000000000000000000000000000000000000000000003568747470733a2f2f6c75787572792d6175746f2d636c75622e6865726f6b756170702e636f6d2f6d657461646174612f676f6c642f0000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061027f5760003560e01c8063611f3f101161015c578063a22cb465116100ce578063e985e9c511610087578063e985e9c514610752578063f2c5751314610782578063f2fde38b1461079e578063fa9b7018146107ba578063fca3b5aa146107d8578063ff688979146107f45761027f565b8063a22cb46514610690578063a5e70340146106ac578063b88d4fde146106ca578063c3454bcc146106e6578063c87b56dd14610704578063e32a748f146107345761027f565b8063715018a611610120578063715018a6146105f45780637c311388146105fe5780638da5cb5b1461061a57806392d7eacd1461063857806395364a841461065457806395d89b41146106725761027f565b8063611f3f101461053c57806362dc6e211461055a5780636352211e146105785780636ead6781146105a857806370a08231146105c45761027f565b806332cb6b0c116101f55780633ccfd60b116101b95780633ccfd60b1461047c5780633ea85b901461048657806342842e0e146104a4578063438b6300146104c05780634f6ccce7146104f057806355f804b3146105205761027f565b806332cb6b0c146103ea57806333fcaa51146104085780633406c7261461041257806334d722c914610442578063375a069a146104605761027f565b80631749dc26116102475780631749dc261461033c57806318160ddd1461035857806323b872dd146103765780632ed6d5e8146103925780632f745c591461039c578063307aebc9146103cc5761027f565b806301ffc9a71461028457806306fdde03146102b4578063081812fc146102d2578063095ea7b3146103025780630a4010861461031e575b600080fd5b61029e60048036038101906102999190613df0565b610812565b6040516102ab91906145f6565b60405180910390f35b6102bc61088c565b6040516102c99190614656565b60405180910390f35b6102ec60048036038101906102e79190613e83565b61091e565b6040516102f9919061450d565b60405180910390f35b61031c60048036038101906103179190613d62565b610964565b005b610326610a7c565b60405161033391906145f6565b60405180910390f35b61035660048036038101906103519190613ed5565b610a8f565b005b610360610e65565b60405161036d9190614a18565b60405180910390f35b610390600480360381019061038b9190613c5c565b610e72565b005b61039a610ed2565b005b6103b660048036038101906103b19190613d62565b611424565b6040516103c39190614a18565b60405180910390f35b6103d46114c9565b6040516103e191906145f6565b60405180910390f35b6103f26114d6565b6040516103ff9190614a18565b60405180910390f35b6104106114dc565b005b61042c60048036038101906104279190613bf7565b611510565b6040516104399190614a18565b60405180910390f35b61044a611528565b604051610457919061450d565b60405180910390f35b61047a60048036038101906104759190613e83565b61154e565b005b610484611607565b005b61048e6116d2565b60405161049b919061450d565b60405180910390f35b6104be60048036038101906104b99190613c5c565b6116f8565b005b6104da60048036038101906104d59190613bf7565b611718565b6040516104e791906145d4565b60405180910390f35b61050a60048036038101906105059190613e83565b611812565b6040516105179190614a18565b60405180910390f35b61053a60048036038101906105359190613e42565b6118a9565b005b6105446118cb565b6040516105519190614a18565b60405180910390f35b6105626118d3565b60405161056f9190614a18565b60405180910390f35b610592600480360381019061058d9190613e83565b6118db565b60405161059f919061450d565b60405180910390f35b6105c260048036038101906105bd9190613d9e565b61198d565b005b6105de60048036038101906105d99190613bf7565b611c59565b6040516105eb9190614a18565b60405180910390f35b6105fc611d11565b005b61061860048036038101906106139190613e83565b611d25565b005b610622611d37565b60405161062f919061450d565b60405180910390f35b610652600480360381019061064d9190613e83565b611d61565b005b61065c611d73565b60405161066991906145f6565b60405180910390f35b61067a611d8d565b6040516106879190614656565b60405180910390f35b6106aa60048036038101906106a59190613d26565b611e1f565b005b6106b4611e35565b6040516106c19190614a18565b60405180910390f35b6106e460048036038101906106df9190613cab565b611e3b565b005b6106ee611e9d565b6040516106fb9190614a18565b60405180910390f35b61071e60048036038101906107199190613e83565b611ea3565b60405161072b9190614656565b60405180910390f35b61073c611f0b565b6040516107499190614a18565b60405180910390f35b61076c60048036038101906107679190613c20565b611f11565b60405161077991906145f6565b60405180910390f35b61079c60048036038101906107979190613e83565b611fa5565b005b6107b860048036038101906107b39190613bf7565b61229a565b005b6107c261231e565b6040516107cf9190614a18565b60405180910390f35b6107f260048036038101906107ed9190613bf7565b612323565b005b6107fc61236f565b6040516108099190614a18565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610885575061088482612377565b5b9050919050565b60606000805461089b90614d59565b80601f01602080910402602001604051908101604052809291908181526020018280546108c790614d59565b80156109145780601f106108e957610100808354040283529160200191610914565b820191906000526020600020905b8154815290600101906020018083116108f757829003601f168201915b5050505050905090565b600061092982612459565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061096f826118db565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d790614938565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109ff6124a4565b73ffffffffffffffffffffffffffffffffffffffff161480610a2e5750610a2d81610a286124a4565b611f11565b5b610a6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6490614858565b60405180910390fd5b610a7783836124ac565b505050565b601160009054906101000a900460ff1681565b836000610a9a610e65565b9050601160009054906101000a900460ff16610aeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae290614778565b60405180910390fd5b60008211610b2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2590614798565b60405180910390fd5b6122b88282601054610b409190614b41565b610b4a9190614b41565b1115610b8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b82906146b8565b60405180910390fd5b6000601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060058382610bdd9190614b41565b1115610c1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c15906148f8565b60405180910390fd5b600c54421015610c63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5a90614898565b60405180910390fd5b600d544210610ca7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9e90614678565b60405180910390fd5b600033604051602001610cba919061450d565b604051602081830303815290604052805190602001209050610d01600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682898989612565565b610d40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d37906149f8565b60405180910390fd5b6000632cb4178089610d529190614bc8565b90506000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166323b872dd3330866040518463ffffffff1660e01b8152600401610dba93929190614551565b602060405180830381600087803b158015610dd457600080fd5b505af1158015610de8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0c9190613dc7565b905080610e4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4590614698565b60405180910390fd5b610e58338c6125f4565b5050505050505050505050565b6000600880549050905090565b610e83610e7d6124a4565b8261269f565b610ec2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb9906149b8565b60405180910390fd5b610ecd838383612734565b505050565b610eda61299b565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610f3c919061450d565b60206040518083038186803b158015610f5457600080fd5b505afa158015610f68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8c9190613eac565b905060008273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb733004aacf8008e7e91048bd63da7444a0aa3d777b610fe86064610fda600788612a1990919063ffffffff16565b612a2f90919063ffffffff16565b6040518363ffffffff1660e01b8152600401611005929190614528565b602060405180830381600087803b15801561101f57600080fd5b505af1158015611033573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110579190613dc7565b905060008373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb73ccdd6139f18dc9c5840f4bed78217e2c4d0f7cae6110b360646110a5600789612a1990919063ffffffff16565b612a2f90919063ffffffff16565b6040518363ffffffff1660e01b81526004016110d0929190614528565b602060405180830381600087803b1580156110ea57600080fd5b505af11580156110fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111229190613dc7565b905060008473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb7321a49877b5c5fdd7beb43911d632fb3f3ca14c6d61117e606461117060078a612a1990919063ffffffff16565b612a2f90919063ffffffff16565b6040518363ffffffff1660e01b815260040161119b929190614528565b602060405180830381600087803b1580156111b557600080fd5b505af11580156111c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ed9190613dc7565b905060008573ffffffffffffffffffffffffffffffffffffffff1663a9059cbb7324d76404cc8a641e74d06bee456587d11be4b87d8873ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161125b919061450d565b60206040518083038186803b15801561127357600080fd5b505afa158015611287573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ab9190613eac565b6040518363ffffffff1660e01b81526004016112c8929190614528565b602060405180830381600087803b1580156112e257600080fd5b505af11580156112f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061131a9190613dc7565b90508361135c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135390614838565b60405180910390fd5b8261139c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139390614978565b60405180910390fd5b816113dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d3906149d8565b60405180910390fd5b8061141c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611413906148d8565b60405180910390fd5b505050505050565b600061142f83611c59565b8210611470576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611467906146d8565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6000600d54421015905090565b6122b881565b6114e461299b565b601160009054906101000a900460ff1615601160006101000a81548160ff021916908315150217905550565b60126020528060005260406000206000915090505481565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61155661299b565b6000611560610e65565b90506122b882826010546115749190614b41565b61157e9190614b41565b11156115bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b6906146b8565b60405180910390fd5b6000600190505b828111611602576115ef3382846010546115e09190614b41565b6115ea9190614b41565b612a45565b80806115fa90614dbc565b9150506115c6565b505050565b61160f61299b565b60007324d76404cc8a641e74d06bee456587d11be4b87d73ffffffffffffffffffffffffffffffffffffffff1647604051611649906144f8565b60006040518083038185875af1925050503d8060008114611686576040519150601f19603f3d011682016040523d82523d6000602084013e61168b565b606091505b50509050806116cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c6906147f8565b60405180910390fd5b50565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61171383838360405180602001604052806000815250611e3b565b505050565b6060600061172583611c59565b905060008167ffffffffffffffff811115611769577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156117975781602001602082028036833780820191505090505b50905060005b82811015611807576117af8582611424565b8282815181106117e8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080806117ff90614dbc565b91505061179d565b508092505050919050565b600061181c610e65565b821061185d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185490614998565b60405180910390fd5b60088281548110611897577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6118b161299b565b80601390805190602001906118c79291906139a9565b5050565b639502f90081565b632cb4178081565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611984576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197b90614918565b60405180910390fd5b80915050919050565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000808273ffffffffffffffffffffffffffffffffffffffff166323b872dd3330632cb417806040518463ffffffff1660e01b8152600401611a1f93929190614551565b602060405180830381600087803b158015611a3957600080fd5b505af1158015611a4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a719190613dc7565b905080611ab3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aaa90614698565b60405180910390fd5b60005b6002811015611b5f576000611b07878360028110611afd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201356118db565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415611b465760019350611b4b565b600093505b508080611b5790614dbc565b915050611ab6565b508115611c525760005b6002811015611bcb57611bb8868260028110611bae577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020135612a63565b8080611bc390614dbc565b915050611b69565b50600260106000828254611bdf9190614b41565b925050819055508373ffffffffffffffffffffffffffffffffffffffff16636a627842336040518263ffffffff1660e01b8152600401611c1f919061450d565b600060405180830381600087803b158015611c3957600080fd5b505af1158015611c4d573d6000803e3d6000fd5b505050505b5050505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc190614818565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611d1961299b565b611d236000612b80565b565b611d2d61299b565b80600c8190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611d6961299b565b80600d8190555050565b6000600c544210158015611d885750600d5442105b905090565b606060018054611d9c90614d59565b80601f0160208091040260200160405190810160405280929190818152602001828054611dc890614d59565b8015611e155780601f10611dea57610100808354040283529160200191611e15565b820191906000526020600020905b815481529060010190602001808311611df857829003601f168201915b5050505050905090565b611e31611e2a6124a4565b8383612c46565b5050565b600d5481565b611e4c611e466124a4565b8361269f565b611e8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e82906149b8565b60405180910390fd5b611e9784848484612db3565b50505050565b600c5481565b6060611eae82612459565b6000611eb8612e0f565b90506000815111611ed85760405180602001604052806000815250611f03565b80611ee284612ea1565b604051602001611ef39291906144d4565b6040516020818303038152906040525b915050919050565b60105481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b806000611fb0610e65565b9050601160009054906101000a900460ff16612001576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ff890614778565b60405180910390fd5b60008211612044576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203b90614798565b60405180910390fd5b6122b882826010546120569190614b41565b6120609190614b41565b11156120a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612098906146b8565b60405180910390fd5b6000601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600583826120f39190614b41565b1115612134576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212b906148f8565b60405180910390fd5b600d54421015612179576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217090614958565b60405180910390fd5b6000639502f9008561218b9190614bc8565b90506000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166323b872dd3330866040518463ffffffff1660e01b81526004016121f393929190614551565b602060405180830381600087803b15801561220d57600080fd5b505af1158015612221573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122459190613dc7565b905080612287576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227e90614698565b60405180910390fd5b61229133886125f4565b50505050505050565b6122a261299b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612312576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230990614718565b60405180910390fd5b61231b81612b80565b50565b600581565b61232b61299b565b80600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b632cb4178081565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061244257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061245257506124518261304e565b5b9050919050565b612462816130b8565b6124a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249890614918565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661251f836118db565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806001868487876040516000815260200160405260405161258b9493929190614611565b6020604051602081039080840390855afa1580156125ad573d6000803e3d6000fd5b5050506020604051035190508673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161491505095945050505050565b60006125fe610e65565b905081601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461264f9190614b41565b925050819055506000600190505b828111612699576126868482846010546126779190614b41565b6126819190614b41565b612a45565b808061269190614dbc565b91505061265d565b50505050565b6000806126ab836118db565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806126ed57506126ec8185611f11565b5b8061272b57508373ffffffffffffffffffffffffffffffffffffffff166127138461091e565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612754826118db565b73ffffffffffffffffffffffffffffffffffffffff16146127aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a190614738565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561281a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612811906147b8565b60405180910390fd5b612825838383613124565b6128306000826124ac565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128809190614c22565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128d79190614b41565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612996838383613238565b505050565b6129a36124a4565b73ffffffffffffffffffffffffffffffffffffffff166129c1611d37565b73ffffffffffffffffffffffffffffffffffffffff1614612a17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a0e906148b8565b60405180910390fd5b565b60008183612a279190614bc8565b905092915050565b60008183612a3d9190614b97565b905092915050565b612a5f82826040518060200160405280600081525061323d565b5050565b6000612a6e826118db565b9050612a7c81600084613124565b612a876000836124ac565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ad79190614c22565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b7c81600084613238565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612cb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cac906147d8565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612da691906145f6565b60405180910390a3505050565b612dbe848484612734565b612dca84848484613298565b612e09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e00906146f8565b60405180910390fd5b50505050565b606060138054612e1e90614d59565b80601f0160208091040260200160405190810160405280929190818152602001828054612e4a90614d59565b8015612e975780601f10612e6c57610100808354040283529160200191612e97565b820191906000526020600020905b815481529060010190602001808311612e7a57829003601f168201915b5050505050905090565b60606000821415612ee9576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613049565b600082905060005b60008214612f1b578080612f0490614dbc565b915050600a82612f149190614b97565b9150612ef1565b60008167ffffffffffffffff811115612f5d577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612f8f5781602001600182028036833780820191505090505b5090505b6000851461304257600182612fa89190614c22565b9150600a85612fb79190614e05565b6030612fc39190614b41565b60f81b818381518110612fff577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561303b9190614b97565b9450612f93565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b61312f83838361342f565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156131725761316d81613434565b6131b1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146131b0576131af838261347d565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156131f4576131ef816135ea565b613233565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461323257613231828261372d565b5b5b505050565b505050565b61324783836137ac565b6132546000848484613298565b613293576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161328a906146f8565b60405180910390fd5b505050565b60006132b98473ffffffffffffffffffffffffffffffffffffffff16613986565b15613422578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026132e26124a4565b8786866040518563ffffffff1660e01b81526004016133049493929190614588565b602060405180830381600087803b15801561331e57600080fd5b505af192505050801561334f57506040513d601f19601f8201168201806040525081019061334c9190613e19565b60015b6133d2573d806000811461337f576040519150601f19603f3d011682016040523d82523d6000602084013e613384565b606091505b506000815114156133ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133c1906146f8565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613427565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161348a84611c59565b6134949190614c22565b9050600060076000848152602001908152602001600020549050818114613579576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506135fe9190614c22565b9050600060096000848152602001908152602001600020549050600060088381548110613654577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050806008838154811061369c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613711577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061373883611c59565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561381c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161381390614878565b60405180910390fd5b613825816130b8565b15613865576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161385c90614758565b60405180910390fd5b61387160008383613124565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546138c19190614b41565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461398260008383613238565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b8280546139b590614d59565b90600052602060002090601f0160209004810192826139d75760008555613a1e565b82601f106139f057805160ff1916838001178555613a1e565b82800160010185558215613a1e579182015b82811115613a1d578251825591602001919060010190613a02565b5b509050613a2b9190613a2f565b5090565b5b80821115613a48576000816000905550600101613a30565b5090565b6000613a5f613a5a84614a58565b614a33565b905082815260208101848484011115613a7757600080fd5b613a82848285614d17565b509392505050565b6000613a9d613a9884614a89565b614a33565b905082815260208101848484011115613ab557600080fd5b613ac0848285614d17565b509392505050565b600081359050613ad781615527565b92915050565b600081905082602060020282011115613af557600080fd5b92915050565b600081359050613b0a8161553e565b92915050565b600081519050613b1f8161553e565b92915050565b600081359050613b3481615555565b92915050565b600081359050613b498161556c565b92915050565b600081519050613b5e8161556c565b92915050565b600082601f830112613b7557600080fd5b8135613b85848260208601613a4c565b91505092915050565b600082601f830112613b9f57600080fd5b8135613baf848260208601613a8a565b91505092915050565b600081359050613bc781615583565b92915050565b600081519050613bdc81615583565b92915050565b600081359050613bf18161559a565b92915050565b600060208284031215613c0957600080fd5b6000613c1784828501613ac8565b91505092915050565b60008060408385031215613c3357600080fd5b6000613c4185828601613ac8565b9250506020613c5285828601613ac8565b9150509250929050565b600080600060608486031215613c7157600080fd5b6000613c7f86828701613ac8565b9350506020613c9086828701613ac8565b9250506040613ca186828701613bb8565b9150509250925092565b60008060008060808587031215613cc157600080fd5b6000613ccf87828801613ac8565b9450506020613ce087828801613ac8565b9350506040613cf187828801613bb8565b925050606085013567ffffffffffffffff811115613d0e57600080fd5b613d1a87828801613b64565b91505092959194509250565b60008060408385031215613d3957600080fd5b6000613d4785828601613ac8565b9250506020613d5885828601613afb565b9150509250929050565b60008060408385031215613d7557600080fd5b6000613d8385828601613ac8565b9250506020613d9485828601613bb8565b9150509250929050565b600060408284031215613db057600080fd5b6000613dbe84828501613add565b91505092915050565b600060208284031215613dd957600080fd5b6000613de784828501613b10565b91505092915050565b600060208284031215613e0257600080fd5b6000613e1084828501613b3a565b91505092915050565b600060208284031215613e2b57600080fd5b6000613e3984828501613b4f565b91505092915050565b600060208284031215613e5457600080fd5b600082013567ffffffffffffffff811115613e6e57600080fd5b613e7a84828501613b8e565b91505092915050565b600060208284031215613e9557600080fd5b6000613ea384828501613bb8565b91505092915050565b600060208284031215613ebe57600080fd5b6000613ecc84828501613bcd565b91505092915050565b60008060008060808587031215613eeb57600080fd5b6000613ef987828801613bb8565b9450506020613f0a87828801613b25565b9350506040613f1b87828801613b25565b9250506060613f2c87828801613be2565b91505092959194509250565b6000613f4483836144a7565b60208301905092915050565b613f5981614ce1565b82525050565b613f6881614c56565b82525050565b6000613f7982614aca565b613f838185614af8565b9350613f8e83614aba565b8060005b83811015613fbf578151613fa68882613f38565b9750613fb183614aeb565b925050600181019050613f92565b5085935050505092915050565b613fd581614c68565b82525050565b613fe481614c74565b82525050565b6000613ff582614ad5565b613fff8185614b09565b935061400f818560208601614d26565b61401881614ef2565b840191505092915050565b600061402e82614ae0565b6140388185614b25565b9350614048818560208601614d26565b61405181614ef2565b840191505092915050565b600061406782614ae0565b6140718185614b36565b9350614081818560208601614d26565b80840191505092915050565b600061409a601183614b25565b91506140a582614f03565b602082019050919050565b60006140bd601f83614b25565b91506140c882614f2c565b602082019050919050565b60006140e0601c83614b25565b91506140eb82614f55565b602082019050919050565b6000614103602b83614b25565b915061410e82614f7e565b604082019050919050565b6000614126603283614b25565b915061413182614fcd565b604082019050919050565b6000614149602683614b25565b91506141548261501c565b604082019050919050565b600061416c602583614b25565b91506141778261506b565b604082019050919050565b600061418f601c83614b25565b915061419a826150ba565b602082019050919050565b60006141b2601383614b25565b91506141bd826150e3565b602082019050919050565b60006141d5601c83614b25565b91506141e08261510c565b602082019050919050565b60006141f8602483614b25565b915061420382615135565b604082019050919050565b600061421b601983614b25565b915061422682615184565b602082019050919050565b600061423e601083614b25565b9150614249826151ad565b602082019050919050565b6000614261602983614b25565b915061426c826151d6565b604082019050919050565b6000614284601983614b25565b915061428f82615225565b602082019050919050565b60006142a7603e83614b25565b91506142b28261524e565b604082019050919050565b60006142ca602083614b25565b91506142d58261529d565b602082019050919050565b60006142ed601583614b25565b91506142f8826152c6565b602082019050919050565b6000614310602083614b25565b915061431b826152ef565b602082019050919050565b6000614333601983614b25565b915061433e82615318565b602082019050919050565b6000614356601c83614b25565b915061436182615341565b602082019050919050565b6000614379601883614b25565b91506143848261536a565b602082019050919050565b600061439c602183614b25565b91506143a782615393565b604082019050919050565b60006143bf601983614b25565b91506143ca826153e2565b602082019050919050565b60006143e2600083614b1a565b91506143ed8261540b565b600082019050919050565b6000614405601983614b25565b91506144108261540e565b602082019050919050565b6000614428602c83614b25565b915061443382615437565b604082019050919050565b600061444b602e83614b25565b915061445682615486565b604082019050919050565b600061446e601983614b25565b9150614479826154d5565b602082019050919050565b6000614491601683614b25565b915061449c826154fe565b602082019050919050565b6144b081614cca565b82525050565b6144bf81614cca565b82525050565b6144ce81614cd4565b82525050565b60006144e0828561405c565b91506144ec828461405c565b91508190509392505050565b6000614503826143d5565b9150819050919050565b60006020820190506145226000830184613f5f565b92915050565b600060408201905061453d6000830185613f50565b61454a60208301846144b6565b9392505050565b60006060820190506145666000830186613f5f565b6145736020830185613f5f565b61458060408301846144b6565b949350505050565b600060808201905061459d6000830187613f5f565b6145aa6020830186613f5f565b6145b760408301856144b6565b81810360608301526145c98184613fea565b905095945050505050565b600060208201905081810360008301526145ee8184613f6e565b905092915050565b600060208201905061460b6000830184613fcc565b92915050565b60006080820190506146266000830187613fdb565b61463360208301866144c5565b6146406040830185613fdb565b61464d6060830184613fdb565b95945050505050565b600060208201905081810360008301526146708184614023565b905092915050565b600060208201905081810360008301526146918161408d565b9050919050565b600060208201905081810360008301526146b1816140b0565b9050919050565b600060208201905081810360008301526146d1816140d3565b9050919050565b600060208201905081810360008301526146f1816140f6565b9050919050565b6000602082019050818103600083015261471181614119565b9050919050565b600060208201905081810360008301526147318161413c565b9050919050565b600060208201905081810360008301526147518161415f565b9050919050565b6000602082019050818103600083015261477181614182565b9050919050565b60006020820190508181036000830152614791816141a5565b9050919050565b600060208201905081810360008301526147b1816141c8565b9050919050565b600060208201905081810360008301526147d1816141eb565b9050919050565b600060208201905081810360008301526147f18161420e565b9050919050565b6000602082019050818103600083015261481181614231565b9050919050565b6000602082019050818103600083015261483181614254565b9050919050565b6000602082019050818103600083015261485181614277565b9050919050565b600060208201905081810360008301526148718161429a565b9050919050565b60006020820190508181036000830152614891816142bd565b9050919050565b600060208201905081810360008301526148b1816142e0565b9050919050565b600060208201905081810360008301526148d181614303565b9050919050565b600060208201905081810360008301526148f181614326565b9050919050565b6000602082019050818103600083015261491181614349565b9050919050565b600060208201905081810360008301526149318161436c565b9050919050565b600060208201905081810360008301526149518161438f565b9050919050565b60006020820190508181036000830152614971816143b2565b9050919050565b60006020820190508181036000830152614991816143f8565b9050919050565b600060208201905081810360008301526149b18161441b565b9050919050565b600060208201905081810360008301526149d18161443e565b9050919050565b600060208201905081810360008301526149f181614461565b9050919050565b60006020820190508181036000830152614a1181614484565b9050919050565b6000602082019050614a2d60008301846144b6565b92915050565b6000614a3d614a4e565b9050614a498282614d8b565b919050565b6000604051905090565b600067ffffffffffffffff821115614a7357614a72614ec3565b5b614a7c82614ef2565b9050602081019050919050565b600067ffffffffffffffff821115614aa457614aa3614ec3565b5b614aad82614ef2565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614b4c82614cca565b9150614b5783614cca565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614b8c57614b8b614e36565b5b828201905092915050565b6000614ba282614cca565b9150614bad83614cca565b925082614bbd57614bbc614e65565b5b828204905092915050565b6000614bd382614cca565b9150614bde83614cca565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614c1757614c16614e36565b5b828202905092915050565b6000614c2d82614cca565b9150614c3883614cca565b925082821015614c4b57614c4a614e36565b5b828203905092915050565b6000614c6182614caa565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000614cec82614cf3565b9050919050565b6000614cfe82614d05565b9050919050565b6000614d1082614caa565b9050919050565b82818337600083830152505050565b60005b83811015614d44578082015181840152602081019050614d29565b83811115614d53576000848401525b50505050565b60006002820490506001821680614d7157607f821691505b60208210811415614d8557614d84614e94565b5b50919050565b614d9482614ef2565b810181811067ffffffffffffffff82111715614db357614db2614ec3565b5b80604052505050565b6000614dc782614cca565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614dfa57614df9614e36565b5b600182019050919050565b6000614e1082614cca565b9150614e1b83614cca565b925082614e2b57614e2a614e65565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f50726573616c652068617320656e646564000000000000000000000000000000600082015250565b7f455243323020746f6b656e73206661696c656420746f207472616e7366657200600082015250565b7f45786365656473206d6178696d756d20746f6b656e20737570706c7900000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4f7065726174696f6e2069732070617573656400000000000000000000000000600082015250565b7f4d757374206d696e74206d696e696d756d206f66203120746f6b656e00000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f5769746864726177206661696c65642e00000000000000000000000000000000600082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f43726561746f722032207472616e73666572206661696c656400000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f50726573616c6520686173206e6f7420626567756e0000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f43726561746f722031207472616e73666572206661696c656400000000000000600082015250565b7f4d6178204e465420706572206164647265737320657863656564656400000000600082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f5075626c69632073616c6520686173206e6f7420626567756e00000000000000600082015250565b50565b7f43726561746f722033207472616e73666572206661696c656400000000000000600082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b7f43726561746f722034207472616e73666572206661696c656400000000000000600082015250565b7f496e76616c6964206d696e74207369676e617475726500000000000000000000600082015250565b61553081614c56565b811461553b57600080fd5b50565b61554781614c68565b811461555257600080fd5b50565b61555e81614c74565b811461556957600080fd5b50565b61557581614c7e565b811461558057600080fd5b50565b61558c81614cca565b811461559757600080fd5b50565b6155a381614cd4565b81146155ae57600080fd5b5056fea26469706673582212206165479fdb16ec86369bb5ca18da5025438eb12ec15af8877752fa37a3e95f0564736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000062e323000000000000000000000000000000000000000000000000000000000062f15d3000000000000000000000000038ea593c3ae5b8aa1fff989d12b70fb17466c99c00000000000000000000000086d7e462cf786db3cd375f9a938265454ea5560f000000000000000000000000000000000000000000000000000000000000003568747470733a2f2f6c75787572792d6175746f2d636c75622e6865726f6b756170702e636f6d2f6d657461646174612f676f6c642f0000000000000000000000

-----Decoded View---------------
Arg [0] : baseURI_ (string): https://luxury-auto-club.herokuapp.com/metadata/gold/
Arg [1] : presaleAt_ (uint256): 1659052800
Arg [2] : launchAt_ (uint256): 1659985200
Arg [3] : minterAddress_ (address): 0x38Ea593C3aE5b8aA1FFf989D12b70fb17466c99C
Arg [4] : presaleSigner_ (address): 0x86D7E462CF786DB3Cd375F9a938265454ea5560f

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 0000000000000000000000000000000000000000000000000000000062e32300
Arg [2] : 0000000000000000000000000000000000000000000000000000000062f15d30
Arg [3] : 00000000000000000000000038ea593c3ae5b8aa1fff989d12b70fb17466c99c
Arg [4] : 00000000000000000000000086d7e462cf786db3cd375f9a938265454ea5560f
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [6] : 68747470733a2f2f6c75787572792d6175746f2d636c75622e6865726f6b7561
Arg [7] : 70702e636f6d2f6d657461646174612f676f6c642f0000000000000000000000


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.