ETH Price: $2,853.13 (-10.27%)
Gas: 12 Gwei

Token

Staked SAC (stSAC)
 

Overview

Max Total Supply

0 stSAC

Holders

410

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
wateringthegrass.eth
Balance
1 stSAC
0xb1e62b474b2adb7a8be35fec37350cddf61f4010
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:
Staking

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : sac-staking.sol
// SPDX-License-Identifier: MIT

//███████╗ █████╗  ██████╗
//██╔════╝██╔══██╗██╔════╝
//███████╗███████║██║
//╚════██║██╔══██║██║
//███████║██║  ██║╚██████╗
//╚══════╝╚═╝  ╚═╝ ╚═════╝

// Advanced Triple-Power Staking System created by MisterSausage NFT Elite Consulting x SausageLabs.io for STONER APE CLUB

pragma solidity ^0.8.4;

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

abstract contract SAC is ERC721Enumerable, Ownable {}

contract Staking is ERC721, ReentrancyGuard, Ownable {
	using SafeMath for uint256;
    using Strings for uint256;
    string baseTokenURI;
    constructor() ERC721("Staked SAC", "stSAC") {}
    SAC public sac;
    IERC20 public token;
    address private rewardWallet;
    bool public stakingFlag;
    uint256 public lockTime;


    struct BaseRewards {
        uint256 rewardsPerDay;
        uint256 updateTimestamp;
    }

    mapping(uint256 => BaseRewards) public baseRewardsData;
    uint256 baseRewardsIndex;
	uint256 public currentBaseReward;

    struct Bundle {
        uint256 rewardsEarned;
        uint256 tokensStaked;
        uint256 lastUpdateTimestamp;
        uint256 currentRewardsIndex;
    }

    mapping(uint256 => Bundle) public bundles;
    mapping(uint256 => uint256[]) public bundleTokenMap;
    uint256 public currentBundleId = 1;

    mapping(uint256 => uint256) tokenBundleMap;

    function onERC721Received(address, address, uint256, bytes calldata) external pure returns(bytes4) {
        return bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"));
    }

	function setToken(address _addr) external onlyOwner {
		token = IERC20(_addr);
	}

    function setNFTContract(address _addr) external onlyOwner {
        sac = SAC(_addr);
    }

    function setLockTime(uint256 _lockTime) external onlyOwner {
		lockTime = _lockTime;
	}
    function _baseURI() internal view virtual override returns (string memory) {
        return baseTokenURI;
    }


    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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


    function setBaseURI(string memory baseURI) public onlyOwner {
        baseTokenURI = baseURI;
    }

    function flipStakingFlag() external onlyOwner {
        stakingFlag = !stakingFlag;
    }

    function setRewardWallet(address _rewardWallet) external onlyOwner {
        rewardWallet = _rewardWallet;
    }

    function getBundleToToken(uint256 bundleId) public view returns(uint256[] memory) {
		return(bundleTokenMap[bundleId]);

	}


    function updateBaseRewards(uint256 _rewardsPerDay) external onlyOwner {
        BaseRewards storage baseRewards = baseRewardsData[baseRewardsIndex];
        baseRewards.rewardsPerDay = _rewardsPerDay;
		currentBaseReward = _rewardsPerDay;
        baseRewards.updateTimestamp = block.timestamp;
        baseRewardsIndex++;
    }

    function stakeNFT(uint256[] memory tokenIDs) public nonReentrant {
		require(stakingFlag,"Staking window not open");

        uint len = tokenIDs.length;

		for(uint i; i < len; i++) {
        require(msg.sender == sac.ownerOf(tokenIDs[i]), "Caller not owner of SAC tokenId.");
		}

        for(uint i; i < len; i++) {
            sac.safeTransferFrom(msg.sender, address(this), tokenIDs[i]);
			bundleTokenMap[currentBundleId].push(tokenIDs[i]);
            tokenBundleMap[tokenIDs[i]]	= currentBundleId;
        }

            Bundle storage bundle = bundles[currentBundleId];
            bundle.tokensStaked = len;
            bundle.lastUpdateTimestamp = block.timestamp;
            bundle.currentRewardsIndex = baseRewardsIndex -1;
			_safeMint(msg.sender, currentBundleId);

			currentBundleId++;
    }

    function calculateReward(uint256 bundleId) public view returns(uint256) {
        if (ownerOf(bundleId) == address(this)) {
            return 0;
        }
        else {
            uint256 currentIndex = bundles[bundleId].currentRewardsIndex;
            uint256 previousTimestamp = bundles[bundleId].lastUpdateTimestamp;
            uint256 totalRewardsTemp;
			uint256 totalRewards;
            //uint256 bonusTier = bundles[bundleId].tokensStaked<=2 ? 0 : (bundles[bundleId].tokensStaked>2 && bundles[bundleId].tokensStaked<=5) ? 10 : 25;
			uint256 bonusTier = bundles[bundleId].tokensStaked<6 ? 0 : (bundles[bundleId].tokensStaked>=6 && bundles[bundleId].tokensStaked<=11) ? 1 : (bundles[bundleId].tokensStaked>=12 && bundles[bundleId].tokensStaked<=23) ? 2 : (bundles[bundleId].tokensStaked>=24 && bundles[bundleId].tokensStaked<=49) ? 4 : (bundles[bundleId].tokensStaked>=50 && bundles[bundleId].tokensStaked<=74) ? 6 : (bundles[bundleId].tokensStaked>=75 && bundles[bundleId].tokensStaked<=99) ? 8 :  10;

            //Add rewards for past indices if necessary
            for(currentIndex; currentIndex < baseRewardsIndex - 1; currentIndex++)   {
                uint256 nextTimestamp = baseRewardsData[currentIndex+1].updateTimestamp;
				totalRewardsTemp = totalRewardsTemp.add(((nextTimestamp - previousTimestamp).div(86400)).mul(baseRewardsData[currentIndex].rewardsPerDay));
                previousTimestamp = nextTimestamp;
            }

            //Add rewards for current index
            totalRewardsTemp = bundles[bundleId].tokensStaked.mul(totalRewardsTemp.add(((block.timestamp - previousTimestamp).div(86400)).mul(baseRewardsData[currentIndex].rewardsPerDay)));
			totalRewards = totalRewardsTemp.add((totalRewardsTemp).mul(bonusTier).div(200));
            return totalRewards;
        }

    }

    function claimReward(uint256 bundleId) private {
        require(msg.sender == ownerOf(bundleId),"Caller not eligible to claim rewards");
		uint256 rewards = calculateReward(bundleId);
        bundles[bundleId].rewardsEarned += rewards;
        bundles[bundleId].lastUpdateTimestamp = block.timestamp;
        bundles[bundleId].currentRewardsIndex = baseRewardsIndex - 1;
    }


    function withdrawRewards(uint256 bundleId) public {
        require(msg.sender == ownerOf(bundleId),"Caller not eligible to claim rewards");
        claimReward(bundleId);
        uint256 claimedRewards = bundles[bundleId].rewardsEarned;
        if (claimedRewards > 0)  {
            bundles[bundleId].rewardsEarned = 0;
            token.transferFrom(rewardWallet, msg.sender, claimedRewards * 10 ** 18);
        }
    }

    function unstakeAll(uint256 bundleId) public nonReentrant {
        require(msg.sender == ownerOf(bundleId), "Caller not owner of bundleId.");
		require((block.timestamp - bundles[bundleId].lastUpdateTimestamp) > lockTime, "Min. stake duration not met");
        withdrawRewards(bundleId);
        _transfer(msg.sender,address(this),bundleId);

        for(uint i; i<bundleTokenMap[bundleId].length; i++) {
            tokenBundleMap[bundleTokenMap[bundleId][i]] = 0;
            bundles[bundleId].tokensStaked = 0;
            sac.safeTransferFrom(address(this),msg.sender,bundleTokenMap[bundleId][i]);
        }
    }

    function partialUnstake(uint256 bundleId, uint256[] memory keepTokenIds, uint256[] memory unstakeTokenIds) public nonReentrant {
        require(msg.sender == ownerOf(bundleId), "Caller not owner of bundleId.");
		require((block.timestamp - bundles[bundleId].lastUpdateTimestamp) > lockTime, "Min. stake duration not met");
        require(keepTokenIds.length + unstakeTokenIds.length == bundleTokenMap[bundleId].length,"Invalid call");

        withdrawRewards(bundleId);
        _transfer(msg.sender,address(this),bundleId);

        for(uint i; i<unstakeTokenIds.length; i++) {
            require(tokenBundleMap[unstakeTokenIds[i]] == bundleId,"Invalid");
            tokenBundleMap[unstakeTokenIds[i]] = 0;
            sac.safeTransferFrom(address(this),msg.sender,unstakeTokenIds[i]);
        }

        bundles[bundleId].tokensStaked = 0;

        for(uint i; i < keepTokenIds.length; i++) {
            require(tokenBundleMap[keepTokenIds[i]] == bundleId,"Invalid");
			bundleTokenMap[currentBundleId].push(keepTokenIds[i]);
            tokenBundleMap[keepTokenIds[i]]	= currentBundleId;
        }

            Bundle storage bundle = bundles[currentBundleId];
            bundle.tokensStaked = keepTokenIds.length;
            bundle.lastUpdateTimestamp = block.timestamp;
            bundle.currentRewardsIndex = baseRewardsIndex -1;
			_safeMint(msg.sender, currentBundleId);

			currentBundleId++;

    }

}

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 3 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 4 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 5 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 6 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 7 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

File 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 : 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 10 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 11 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 12 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 13 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 14 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 15 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 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"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"baseRewardsData","outputs":[{"internalType":"uint256","name":"rewardsPerDay","type":"uint256"},{"internalType":"uint256","name":"updateTimestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"bundleTokenMap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bundles","outputs":[{"internalType":"uint256","name":"rewardsEarned","type":"uint256"},{"internalType":"uint256","name":"tokensStaked","type":"uint256"},{"internalType":"uint256","name":"lastUpdateTimestamp","type":"uint256"},{"internalType":"uint256","name":"currentRewardsIndex","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bundleId","type":"uint256"}],"name":"calculateReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentBaseReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentBundleId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipStakingFlag","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bundleId","type":"uint256"}],"name":"getBundleToToken","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"lockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bundleId","type":"uint256"},{"internalType":"uint256[]","name":"keepTokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"unstakeTokenIds","type":"uint256[]"}],"name":"partialUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sac","outputs":[{"internalType":"contract SAC","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":"_lockTime","type":"uint256"}],"name":"setLockTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setNFTContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardWallet","type":"address"}],"name":"setRewardWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIDs","type":"uint256[]"}],"name":"stakeNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingFlag","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bundleId","type":"uint256"}],"name":"unstakeAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardsPerDay","type":"uint256"}],"name":"updateBaseRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bundleId","type":"uint256"}],"name":"withdrawRewards","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260016012553480156200001657600080fd5b506040518060400160405280600a81526020017f5374616b656420534143000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f737453414300000000000000000000000000000000000000000000000000000081525081600090805190602001906200009b929190620001b3565b508060019080519060200190620000b4929190620001b3565b5050506001600681905550620000df620000d3620000e560201b60201c565b620000ed60201b60201c565b620002c8565b600033905090565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620001c19062000292565b90600052602060002090601f016020900481019282620001e5576000855562000231565b82601f106200020057805160ff191683800117855562000231565b8280016001018555821562000231579182015b828111156200023057825182559160200191906001019062000213565b5b50905062000240919062000244565b5090565b5b808211156200025f57600081600090555060010162000245565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620002ab57607f821691505b60208210811415620002c257620002c162000263565b5b50919050565b6152e480620002d86000396000f3fe608060405234801561001057600080fd5b506004361061023d5760003560e01c80639342c8f41161013b578063c421a516116100b8578063dfa701261161007c578063dfa701261461069d578063e985e9c5146106ce578063f2fde38b146106fe578063f5afa8181461071a578063fc0c546a1461074a5761023d565b8063c421a516146105ce578063c87b56dd146105ec578063cf19384b1461061c578063d2d7231f1461064f578063d641e81c1461067f5761023d565b8063ab0f1530116100ff578063ab0f15301461052c578063ae04d45d1461055c578063afedeec414610578578063b075087514610596578063b88d4fde146105b25761023d565b80639342c8f4146104b057806395d89b41146104cc578063a22cb465146104ea578063a7ccabdf14610506578063a979d468146105225761023d565b806342146855116101c95780636352211e1161018d5780636352211e1461040c57806363ac358f1461043c57806370a0823114610458578063715018a6146104885780638da5cb5b146104925761023d565b8063421468551461037e57806342842e0e1461039c57806350a5671e146103b857806355f804b3146103d45780635958621e146103f05761023d565b80630d668087116102105780630d668087146102dc578063144fa6d7146102fa578063150b7a0214610316578063182c57441461034657806323b872dd146103625761023d565b806301ffc9a71461024257806306fdde0314610272578063081812fc14610290578063095ea7b3146102c0575b600080fd5b61025c600480360381019061025791906136a0565b610768565b60405161026991906136e8565b60405180910390f35b61027a61084a565b604051610287919061379c565b60405180910390f35b6102aa60048036038101906102a591906137f4565b6108dc565b6040516102b79190613862565b60405180910390f35b6102da60048036038101906102d591906138a9565b610961565b005b6102e4610a79565b6040516102f191906138f8565b60405180910390f35b610314600480360381019061030f9190613913565b610a7f565b005b610330600480360381019061032b91906139a5565b610b3f565b60405161033d9190613a3c565b60405180910390f35b610360600480360381019061035b9190613b95565b610b6d565b005b61037c60048036038101906103779190613bde565b610f19565b005b610386610f79565b60405161039391906138f8565b60405180910390f35b6103b660048036038101906103b19190613bde565b610f7f565b005b6103d260048036038101906103cd91906137f4565b610f9f565b005b6103ee60048036038101906103e99190613ce6565b611240565b005b61040a60048036038101906104059190613913565b6112d6565b005b610426600480360381019061042191906137f4565b611396565b6040516104339190613862565b60405180910390f35b61045660048036038101906104519190613d2f565b611448565b005b610472600480360381019061046d9190613913565b611901565b60405161047f91906138f8565b60405180910390f35b6104906119b9565b005b61049a611a41565b6040516104a79190613862565b60405180910390f35b6104ca60048036038101906104c591906137f4565b611a6b565b005b6104d4611c07565b6040516104e1919061379c565b60405180910390f35b61050460048036038101906104ff9190613de6565b611c99565b005b610520600480360381019061051b9190613913565b611caf565b005b61052a611d6f565b005b610546600480360381019061054191906137f4565b611e17565b6040516105539190613ee4565b60405180910390f35b610576600480360381019061057191906137f4565b611e82565b005b610580611f08565b60405161058d91906138f8565b60405180910390f35b6105b060048036038101906105ab91906137f4565b611f0e565b005b6105cc60048036038101906105c79190613fa7565b611fd8565b005b6105d661203a565b6040516105e391906136e8565b60405180910390f35b610606600480360381019061060191906137f4565b61204d565b604051610613919061379c565b60405180910390f35b610636600480360381019061063191906137f4565b6120f4565b604051610646949392919061402a565b60405180910390f35b610669600480360381019061066491906137f4565b612124565b60405161067691906138f8565b60405180910390f35b6106876124c4565b60405161069491906140ce565b60405180910390f35b6106b760048036038101906106b291906137f4565b6124ea565b6040516106c59291906140e9565b60405180910390f35b6106e860048036038101906106e39190614112565b61250e565b6040516106f591906136e8565b60405180910390f35b61071860048036038101906107139190613913565b6125a2565b005b610734600480360381019061072f9190614152565b61269a565b60405161074191906138f8565b60405180910390f35b6107526126cb565b60405161075f91906141b3565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061083357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108435750610842826126f1565b5b9050919050565b606060008054610859906141fd565b80601f0160208091040260200160405190810160405280929190818152602001828054610885906141fd565b80156108d25780601f106108a7576101008083540402835291602001916108d2565b820191906000526020600020905b8154815290600101906020018083116108b557829003601f168201915b5050505050905090565b60006108e78261275b565b610926576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091d906142a1565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061096c82611396565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d490614333565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109fc6127c7565b73ffffffffffffffffffffffffffffffffffffffff161480610a2b5750610a2a81610a256127c7565b61250e565b5b610a6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a61906143c5565b60405180910390fd5b610a7483836127cf565b505050565b600c5481565b610a876127c7565b73ffffffffffffffffffffffffffffffffffffffff16610aa5611a41565b73ffffffffffffffffffffffffffffffffffffffff1614610afb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af290614431565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f150b7a023d4804d13e8c85fb27262cb750cf6ba9f9dd3bb30d90f482ceeb4b1f905095945050505050565b60026006541415610bb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610baa9061449d565b60405180910390fd5b6002600681905550600b60149054906101000a900460ff16610c0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0190614509565b60405180910390fd5b60008151905060005b81811015610d5157600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e848381518110610c6c57610c6b614529565b5b60200260200101516040518263ffffffff1660e01b8152600401610c9091906138f8565b602060405180830381865afa158015610cad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd1919061456d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d35906145e6565b60405180910390fd5b8080610d4990614635565b915050610c13565b5060005b81811015610ea557600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3330868581518110610db057610daf614529565b5b60200260200101516040518463ffffffff1660e01b8152600401610dd69392919061467e565b600060405180830381600087803b158015610df057600080fd5b505af1158015610e04573d6000803e3d6000fd5b50505050601160006012548152602001908152602001600020838281518110610e3057610e2f614529565b5b6020026020010151908060018154018082558091505060019003906000526020600020016000909190919091505560125460136000858481518110610e7857610e77614529565b5b60200260200101518152602001908152602001600020819055508080610e9d90614635565b915050610d55565b50600060106000601254815260200190815260200160002090508181600101819055504281600201819055506001600e54610ee091906146b5565b8160030181905550610ef433601254612888565b60126000815480929190610f0790614635565b91905055505050600160068190555050565b610f2a610f246127c7565b826128a6565b610f69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f609061475b565b60405180910390fd5b610f74838383612984565b505050565b600f5481565b610f9a83838360405180602001604052806000815250611fd8565b505050565b60026006541415610fe5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdc9061449d565b60405180910390fd5b6002600681905550610ff681611396565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611063576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105a906147c7565b60405180910390fd5b600c5460106000838152602001908152602001600020600201544261108891906146b5565b116110c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110bf90614833565b60405180910390fd5b6110d181611a6b565b6110dc333083612984565b60005b60116000838152602001908152602001600020805490508110156112345760006013600060116000868152602001908152602001600020848154811061112857611127614529565b5b906000526020600020015481526020019081526020016000208190555060006010600084815260200190815260200160002060010181905550600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e30336011600087815260200190815260200160002085815481106111c6576111c5614529565b5b90600052602060002001546040518463ffffffff1660e01b81526004016111ef9392919061467e565b600060405180830381600087803b15801561120957600080fd5b505af115801561121d573d6000803e3d6000fd5b50505050808061122c90614635565b9150506110df565b50600160068190555050565b6112486127c7565b73ffffffffffffffffffffffffffffffffffffffff16611266611a41565b73ffffffffffffffffffffffffffffffffffffffff16146112bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b390614431565b60405180910390fd5b80600890805190602001906112d2929190613591565b5050565b6112de6127c7565b73ffffffffffffffffffffffffffffffffffffffff166112fc611a41565b73ffffffffffffffffffffffffffffffffffffffff1614611352576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134990614431565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561143f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611436906148c5565b60405180910390fd5b80915050919050565b6002600654141561148e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114859061449d565b60405180910390fd5b600260068190555061149f83611396565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461150c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611503906147c7565b60405180910390fd5b600c5460106000858152602001908152602001600020600201544261153191906146b5565b11611571576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156890614833565b60405180910390fd5b60116000848152602001908152602001600020805490508151835161159691906148e5565b146115d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cd90614987565b60405180910390fd5b6115df83611a6b565b6115ea333085612984565b60005b815181101561175657836013600084848151811061160e5761160d614529565b5b602002602001015181526020019081526020016000205414611665576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165c906149f3565b60405180910390fd5b60006013600084848151811061167e5761167d614529565b5b6020026020010151815260200190815260200160002081905550600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e30338585815181106116eb576116ea614529565b5b60200260200101516040518463ffffffff1660e01b81526004016117119392919061467e565b600060405180830381600087803b15801561172b57600080fd5b505af115801561173f573d6000803e3d6000fd5b50505050808061174e90614635565b9150506115ed565b506000601060008581526020019081526020016000206001018190555060005b825181101561188b57836013600085848151811061179757611796614529565b5b6020026020010151815260200190815260200160002054146117ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e5906149f3565b60405180910390fd5b60116000601254815260200190815260200160002083828151811061181657611815614529565b5b602002602001015190806001815401808255809150506001900390600052602060002001600090919091909150556012546013600085848151811061185e5761185d614529565b5b6020026020010151815260200190815260200160002081905550808061188390614635565b915050611776565b5060006010600060125481526020019081526020016000209050825181600101819055504281600201819055506001600e546118c791906146b5565b81600301819055506118db33601254612888565b601260008154809291906118ee90614635565b9190505550506001600681905550505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611972576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196990614a85565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6119c16127c7565b73ffffffffffffffffffffffffffffffffffffffff166119df611a41565b73ffffffffffffffffffffffffffffffffffffffff1614611a35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2c90614431565b60405180910390fd5b611a3f6000612beb565b565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611a7481611396565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611ae1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad890614b17565b60405180910390fd5b611aea81612cb1565b6000601060008381526020019081526020016000206000015490506000811115611c035760006010600084815260200190815260200160002060000181905550600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1633670de0b6b3a764000085611ba09190614b37565b6040518463ffffffff1660e01b8152600401611bbe9392919061467e565b6020604051808303816000875af1158015611bdd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c019190614ba6565b505b5050565b606060018054611c16906141fd565b80601f0160208091040260200160405190810160405280929190818152602001828054611c42906141fd565b8015611c8f5780601f10611c6457610100808354040283529160200191611c8f565b820191906000526020600020905b815481529060010190602001808311611c7257829003601f168201915b5050505050905090565b611cab611ca46127c7565b8383612da9565b5050565b611cb76127c7565b73ffffffffffffffffffffffffffffffffffffffff16611cd5611a41565b73ffffffffffffffffffffffffffffffffffffffff1614611d2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2290614431565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611d776127c7565b73ffffffffffffffffffffffffffffffffffffffff16611d95611a41565b73ffffffffffffffffffffffffffffffffffffffff1614611deb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de290614431565b60405180910390fd5b600b60149054906101000a900460ff1615600b60146101000a81548160ff021916908315150217905550565b606060116000838152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015611e7657602002820191906000526020600020905b815481526020019060010190808311611e62575b50505050509050919050565b611e8a6127c7565b73ffffffffffffffffffffffffffffffffffffffff16611ea8611a41565b73ffffffffffffffffffffffffffffffffffffffff1614611efe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef590614431565b60405180910390fd5b80600c8190555050565b60125481565b611f166127c7565b73ffffffffffffffffffffffffffffffffffffffff16611f34611a41565b73ffffffffffffffffffffffffffffffffffffffff1614611f8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8190614431565b60405180910390fd5b6000600d6000600e548152602001908152602001600020905081816000018190555081600f81905550428160010181905550600e6000815480929190611fcf90614635565b91905055505050565b611fe9611fe36127c7565b836128a6565b612028576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201f9061475b565b60405180910390fd5b61203484848484612f16565b50505050565b600b60149054906101000a900460ff1681565b60606120588261275b565b612097576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208e90614c45565b60405180910390fd5b60006120a1612f72565b905060008151116120c157604051806020016040528060008152506120ec565b806120cb84613004565b6040516020016120dc929190614ced565b6040516020818303038152906040525b915050919050565b60106020528060005260406000206000915090508060000154908060010154908060020154908060030154905084565b60003073ffffffffffffffffffffffffffffffffffffffff1661214683611396565b73ffffffffffffffffffffffffffffffffffffffff16141561216b57600090506124bf565b6000601060008481526020019081526020016000206003015490506000601060008581526020019081526020016000206002015490506000806000600660106000898152602001908152602001600020600101541061233d5760066010600089815260200190815260200160002060010154101580156122025750600b601060008981526020019081526020016000206001015411155b61233557600c60106000898152602001908152602001600020600101541015801561224457506017601060008981526020019081526020016000206001015411155b61232d57601860106000898152602001908152602001600020600101541015801561228657506031601060008981526020019081526020016000206001015411155b6123255760326010600089815260200190815260200160002060010154101580156122c85750604a601060008981526020019081526020016000206001015411155b61231d57604b60106000898152602001908152602001600020600101541015801561230a57506063601060008981526020019081526020016000206001015411155b61231557600a612318565b60085b612320565b60065b612328565b60045b612330565b60025b612338565b60015b612340565b60005b60ff1690505b6001600e5461235591906146b5565b8510156123f7576000600d600060018861236f91906148e5565b81526020019081526020016000206001015490506123de6123cf600d6000898152602001908152602001600020600001546123c16201518089866123b391906146b5565b61316590919063ffffffff16565b61317b90919063ffffffff16565b8561319190919063ffffffff16565b93508094505084806123ef90614635565b955050612346565b61247a612455612446600d60008981526020019081526020016000206000015461243862015180894261242a91906146b5565b61316590919063ffffffff16565b61317b90919063ffffffff16565b8561319190919063ffffffff16565b601060008a81526020019081526020016000206001015461317b90919063ffffffff16565b92506124b46124a560c8612497848761317b90919063ffffffff16565b61316590919063ffffffff16565b8461319190919063ffffffff16565b915081955050505050505b919050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d6020528060005260406000206000915090508060000154908060010154905082565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6125aa6127c7565b73ffffffffffffffffffffffffffffffffffffffff166125c8611a41565b73ffffffffffffffffffffffffffffffffffffffff161461261e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261590614431565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561268e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161268590614d8e565b60405180910390fd5b61269781612beb565b50565b601160205281600052604060002081815481106126b657600080fd5b90600052602060002001600091509150505481565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661284283611396565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6128a28282604051806020016040528060008152506131a7565b5050565b60006128b18261275b565b6128f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e790614e20565b60405180910390fd5b60006128fb83611396565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061293d575061293c818561250e565b5b8061297b57508373ffffffffffffffffffffffffffffffffffffffff16612963846108dc565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166129a482611396565b73ffffffffffffffffffffffffffffffffffffffff16146129fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f190614eb2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a6190614f44565b60405180910390fd5b612a75838383613202565b612a806000826127cf565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ad091906146b5565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b2791906148e5565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612be6838383613207565b505050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612cba81611396565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612d27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1e90614b17565b60405180910390fd5b6000612d3282612124565b905080601060008481526020019081526020016000206000016000828254612d5a91906148e5565b925050819055504260106000848152602001908152602001600020600201819055506001600e54612d8b91906146b5565b60106000848152602001908152602001600020600301819055505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612e18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e0f90614fb0565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612f0991906136e8565b60405180910390a3505050565b612f21848484612984565b612f2d8484848461320c565b612f6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f6390615042565b60405180910390fd5b50505050565b606060088054612f81906141fd565b80601f0160208091040260200160405190810160405280929190818152602001828054612fad906141fd565b8015612ffa5780601f10612fcf57610100808354040283529160200191612ffa565b820191906000526020600020905b815481529060010190602001808311612fdd57829003601f168201915b5050505050905090565b6060600082141561304c576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613160565b600082905060005b6000821461307e57808061306790614635565b915050600a826130779190615091565b9150613054565b60008167ffffffffffffffff81111561309a57613099613a57565b5b6040519080825280601f01601f1916602001820160405280156130cc5781602001600182028036833780820191505090505b5090505b60008514613159576001826130e591906146b5565b9150600a856130f491906150c2565b603061310091906148e5565b60f81b81838151811061311657613115614529565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856131529190615091565b94506130d0565b8093505050505b919050565b600081836131739190615091565b905092915050565b600081836131899190614b37565b905092915050565b6000818361319f91906148e5565b905092915050565b6131b18383613394565b6131be600084848461320c565b6131fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131f490615042565b60405180910390fd5b505050565b505050565b505050565b600061322d8473ffffffffffffffffffffffffffffffffffffffff1661356e565b15613387578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026132566127c7565b8786866040518563ffffffff1660e01b81526004016132789493929190615148565b6020604051808303816000875af19250505080156132b457506040513d601f19601f820116820180604052508101906132b191906151a9565b60015b613337573d80600081146132e4576040519150601f19603f3d011682016040523d82523d6000602084013e6132e9565b606091505b5060008151141561332f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161332690615042565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061338c565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613404576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133fb90615222565b60405180910390fd5b61340d8161275b565b1561344d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134449061528e565b60405180910390fd5b61345960008383613202565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134a991906148e5565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461356a60008383613207565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b82805461359d906141fd565b90600052602060002090601f0160209004810192826135bf5760008555613606565b82601f106135d857805160ff1916838001178555613606565b82800160010185558215613606579182015b828111156136055782518255916020019190600101906135ea565b5b5090506136139190613617565b5090565b5b80821115613630576000816000905550600101613618565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61367d81613648565b811461368857600080fd5b50565b60008135905061369a81613674565b92915050565b6000602082840312156136b6576136b561363e565b5b60006136c48482850161368b565b91505092915050565b60008115159050919050565b6136e2816136cd565b82525050565b60006020820190506136fd60008301846136d9565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561373d578082015181840152602081019050613722565b8381111561374c576000848401525b50505050565b6000601f19601f8301169050919050565b600061376e82613703565b613778818561370e565b935061378881856020860161371f565b61379181613752565b840191505092915050565b600060208201905081810360008301526137b68184613763565b905092915050565b6000819050919050565b6137d1816137be565b81146137dc57600080fd5b50565b6000813590506137ee816137c8565b92915050565b60006020828403121561380a5761380961363e565b5b6000613818848285016137df565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061384c82613821565b9050919050565b61385c81613841565b82525050565b60006020820190506138776000830184613853565b92915050565b61388681613841565b811461389157600080fd5b50565b6000813590506138a38161387d565b92915050565b600080604083850312156138c0576138bf61363e565b5b60006138ce85828601613894565b92505060206138df858286016137df565b9150509250929050565b6138f2816137be565b82525050565b600060208201905061390d60008301846138e9565b92915050565b6000602082840312156139295761392861363e565b5b600061393784828501613894565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261396557613964613940565b5b8235905067ffffffffffffffff81111561398257613981613945565b5b60208301915083600182028301111561399e5761399d61394a565b5b9250929050565b6000806000806000608086880312156139c1576139c061363e565b5b60006139cf88828901613894565b95505060206139e088828901613894565b94505060406139f1888289016137df565b935050606086013567ffffffffffffffff811115613a1257613a11613643565b5b613a1e8882890161394f565b92509250509295509295909350565b613a3681613648565b82525050565b6000602082019050613a516000830184613a2d565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613a8f82613752565b810181811067ffffffffffffffff82111715613aae57613aad613a57565b5b80604052505050565b6000613ac1613634565b9050613acd8282613a86565b919050565b600067ffffffffffffffff821115613aed57613aec613a57565b5b602082029050602081019050919050565b6000613b11613b0c84613ad2565b613ab7565b90508083825260208201905060208402830185811115613b3457613b3361394a565b5b835b81811015613b5d5780613b4988826137df565b845260208401935050602081019050613b36565b5050509392505050565b600082601f830112613b7c57613b7b613940565b5b8135613b8c848260208601613afe565b91505092915050565b600060208284031215613bab57613baa61363e565b5b600082013567ffffffffffffffff811115613bc957613bc8613643565b5b613bd584828501613b67565b91505092915050565b600080600060608486031215613bf757613bf661363e565b5b6000613c0586828701613894565b9350506020613c1686828701613894565b9250506040613c27868287016137df565b9150509250925092565b600080fd5b600067ffffffffffffffff821115613c5157613c50613a57565b5b613c5a82613752565b9050602081019050919050565b82818337600083830152505050565b6000613c89613c8484613c36565b613ab7565b905082815260208101848484011115613ca557613ca4613c31565b5b613cb0848285613c67565b509392505050565b600082601f830112613ccd57613ccc613940565b5b8135613cdd848260208601613c76565b91505092915050565b600060208284031215613cfc57613cfb61363e565b5b600082013567ffffffffffffffff811115613d1a57613d19613643565b5b613d2684828501613cb8565b91505092915050565b600080600060608486031215613d4857613d4761363e565b5b6000613d56868287016137df565b935050602084013567ffffffffffffffff811115613d7757613d76613643565b5b613d8386828701613b67565b925050604084013567ffffffffffffffff811115613da457613da3613643565b5b613db086828701613b67565b9150509250925092565b613dc3816136cd565b8114613dce57600080fd5b50565b600081359050613de081613dba565b92915050565b60008060408385031215613dfd57613dfc61363e565b5b6000613e0b85828601613894565b9250506020613e1c85828601613dd1565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613e5b816137be565b82525050565b6000613e6d8383613e52565b60208301905092915050565b6000602082019050919050565b6000613e9182613e26565b613e9b8185613e31565b9350613ea683613e42565b8060005b83811015613ed7578151613ebe8882613e61565b9750613ec983613e79565b925050600181019050613eaa565b5085935050505092915050565b60006020820190508181036000830152613efe8184613e86565b905092915050565b600067ffffffffffffffff821115613f2157613f20613a57565b5b613f2a82613752565b9050602081019050919050565b6000613f4a613f4584613f06565b613ab7565b905082815260208101848484011115613f6657613f65613c31565b5b613f71848285613c67565b509392505050565b600082601f830112613f8e57613f8d613940565b5b8135613f9e848260208601613f37565b91505092915050565b60008060008060808587031215613fc157613fc061363e565b5b6000613fcf87828801613894565b9450506020613fe087828801613894565b9350506040613ff1878288016137df565b925050606085013567ffffffffffffffff81111561401257614011613643565b5b61401e87828801613f79565b91505092959194509250565b600060808201905061403f60008301876138e9565b61404c60208301866138e9565b61405960408301856138e9565b61406660608301846138e9565b95945050505050565b6000819050919050565b600061409461408f61408a84613821565b61406f565b613821565b9050919050565b60006140a682614079565b9050919050565b60006140b88261409b565b9050919050565b6140c8816140ad565b82525050565b60006020820190506140e360008301846140bf565b92915050565b60006040820190506140fe60008301856138e9565b61410b60208301846138e9565b9392505050565b600080604083850312156141295761412861363e565b5b600061413785828601613894565b925050602061414885828601613894565b9150509250929050565b600080604083850312156141695761416861363e565b5b6000614177858286016137df565b9250506020614188858286016137df565b9150509250929050565b600061419d8261409b565b9050919050565b6141ad81614192565b82525050565b60006020820190506141c860008301846141a4565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061421557607f821691505b60208210811415614229576142286141ce565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061428b602c8361370e565b91506142968261422f565b604082019050919050565b600060208201905081810360008301526142ba8161427e565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061431d60218361370e565b9150614328826142c1565b604082019050919050565b6000602082019050818103600083015261434c81614310565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b60006143af60388361370e565b91506143ba82614353565b604082019050919050565b600060208201905081810360008301526143de816143a2565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061441b60208361370e565b9150614426826143e5565b602082019050919050565b6000602082019050818103600083015261444a8161440e565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614487601f8361370e565b915061449282614451565b602082019050919050565b600060208201905081810360008301526144b68161447a565b9050919050565b7f5374616b696e672077696e646f77206e6f74206f70656e000000000000000000600082015250565b60006144f360178361370e565b91506144fe826144bd565b602082019050919050565b60006020820190508181036000830152614522816144e6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000815190506145678161387d565b92915050565b6000602082840312156145835761458261363e565b5b600061459184828501614558565b91505092915050565b7f43616c6c6572206e6f74206f776e6572206f662053414320746f6b656e49642e600082015250565b60006145d060208361370e565b91506145db8261459a565b602082019050919050565b600060208201905081810360008301526145ff816145c3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614640826137be565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561467357614672614606565b5b600182019050919050565b60006060820190506146936000830186613853565b6146a06020830185613853565b6146ad60408301846138e9565b949350505050565b60006146c0826137be565b91506146cb836137be565b9250828210156146de576146dd614606565b5b828203905092915050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b600061474560318361370e565b9150614750826146e9565b604082019050919050565b6000602082019050818103600083015261477481614738565b9050919050565b7f43616c6c6572206e6f74206f776e6572206f662062756e646c6549642e000000600082015250565b60006147b1601d8361370e565b91506147bc8261477b565b602082019050919050565b600060208201905081810360008301526147e0816147a4565b9050919050565b7f4d696e2e207374616b65206475726174696f6e206e6f74206d65740000000000600082015250565b600061481d601b8361370e565b9150614828826147e7565b602082019050919050565b6000602082019050818103600083015261484c81614810565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b60006148af60298361370e565b91506148ba82614853565b604082019050919050565b600060208201905081810360008301526148de816148a2565b9050919050565b60006148f0826137be565b91506148fb836137be565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156149305761492f614606565b5b828201905092915050565b7f496e76616c69642063616c6c0000000000000000000000000000000000000000600082015250565b6000614971600c8361370e565b915061497c8261493b565b602082019050919050565b600060208201905081810360008301526149a081614964565b9050919050565b7f496e76616c696400000000000000000000000000000000000000000000000000600082015250565b60006149dd60078361370e565b91506149e8826149a7565b602082019050919050565b60006020820190508181036000830152614a0c816149d0565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000614a6f602a8361370e565b9150614a7a82614a13565b604082019050919050565b60006020820190508181036000830152614a9e81614a62565b9050919050565b7f43616c6c6572206e6f7420656c696769626c6520746f20636c61696d2072657760008201527f6172647300000000000000000000000000000000000000000000000000000000602082015250565b6000614b0160248361370e565b9150614b0c82614aa5565b604082019050919050565b60006020820190508181036000830152614b3081614af4565b9050919050565b6000614b42826137be565b9150614b4d836137be565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614b8657614b85614606565b5b828202905092915050565b600081519050614ba081613dba565b92915050565b600060208284031215614bbc57614bbb61363e565b5b6000614bca84828501614b91565b91505092915050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614c2f602f8361370e565b9150614c3a82614bd3565b604082019050919050565b60006020820190508181036000830152614c5e81614c22565b9050919050565b600081905092915050565b6000614c7b82613703565b614c858185614c65565b9350614c9581856020860161371f565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614cd7600583614c65565b9150614ce282614ca1565b600582019050919050565b6000614cf98285614c70565b9150614d058284614c70565b9150614d1082614cca565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614d7860268361370e565b9150614d8382614d1c565b604082019050919050565b60006020820190508181036000830152614da781614d6b565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614e0a602c8361370e565b9150614e1582614dae565b604082019050919050565b60006020820190508181036000830152614e3981614dfd565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614e9c60258361370e565b9150614ea782614e40565b604082019050919050565b60006020820190508181036000830152614ecb81614e8f565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614f2e60248361370e565b9150614f3982614ed2565b604082019050919050565b60006020820190508181036000830152614f5d81614f21565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614f9a60198361370e565b9150614fa582614f64565b602082019050919050565b60006020820190508181036000830152614fc981614f8d565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061502c60328361370e565b915061503782614fd0565b604082019050919050565b6000602082019050818103600083015261505b8161501f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061509c826137be565b91506150a7836137be565b9250826150b7576150b6615062565b5b828204905092915050565b60006150cd826137be565b91506150d8836137be565b9250826150e8576150e7615062565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b600061511a826150f3565b61512481856150fe565b935061513481856020860161371f565b61513d81613752565b840191505092915050565b600060808201905061515d6000830187613853565b61516a6020830186613853565b61517760408301856138e9565b8181036060830152615189818461510f565b905095945050505050565b6000815190506151a381613674565b92915050565b6000602082840312156151bf576151be61363e565b5b60006151cd84828501615194565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061520c60208361370e565b9150615217826151d6565b602082019050919050565b6000602082019050818103600083015261523b816151ff565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615278601c8361370e565b915061528382615242565b602082019050919050565b600060208201905081810360008301526152a78161526b565b905091905056fea264697066735822122087b7c0e4157e61ae76cf31ab311ca47e34ed8c0a79cb89c5837efce0b46fc80764736f6c634300080a0033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061023d5760003560e01c80639342c8f41161013b578063c421a516116100b8578063dfa701261161007c578063dfa701261461069d578063e985e9c5146106ce578063f2fde38b146106fe578063f5afa8181461071a578063fc0c546a1461074a5761023d565b8063c421a516146105ce578063c87b56dd146105ec578063cf19384b1461061c578063d2d7231f1461064f578063d641e81c1461067f5761023d565b8063ab0f1530116100ff578063ab0f15301461052c578063ae04d45d1461055c578063afedeec414610578578063b075087514610596578063b88d4fde146105b25761023d565b80639342c8f4146104b057806395d89b41146104cc578063a22cb465146104ea578063a7ccabdf14610506578063a979d468146105225761023d565b806342146855116101c95780636352211e1161018d5780636352211e1461040c57806363ac358f1461043c57806370a0823114610458578063715018a6146104885780638da5cb5b146104925761023d565b8063421468551461037e57806342842e0e1461039c57806350a5671e146103b857806355f804b3146103d45780635958621e146103f05761023d565b80630d668087116102105780630d668087146102dc578063144fa6d7146102fa578063150b7a0214610316578063182c57441461034657806323b872dd146103625761023d565b806301ffc9a71461024257806306fdde0314610272578063081812fc14610290578063095ea7b3146102c0575b600080fd5b61025c600480360381019061025791906136a0565b610768565b60405161026991906136e8565b60405180910390f35b61027a61084a565b604051610287919061379c565b60405180910390f35b6102aa60048036038101906102a591906137f4565b6108dc565b6040516102b79190613862565b60405180910390f35b6102da60048036038101906102d591906138a9565b610961565b005b6102e4610a79565b6040516102f191906138f8565b60405180910390f35b610314600480360381019061030f9190613913565b610a7f565b005b610330600480360381019061032b91906139a5565b610b3f565b60405161033d9190613a3c565b60405180910390f35b610360600480360381019061035b9190613b95565b610b6d565b005b61037c60048036038101906103779190613bde565b610f19565b005b610386610f79565b60405161039391906138f8565b60405180910390f35b6103b660048036038101906103b19190613bde565b610f7f565b005b6103d260048036038101906103cd91906137f4565b610f9f565b005b6103ee60048036038101906103e99190613ce6565b611240565b005b61040a60048036038101906104059190613913565b6112d6565b005b610426600480360381019061042191906137f4565b611396565b6040516104339190613862565b60405180910390f35b61045660048036038101906104519190613d2f565b611448565b005b610472600480360381019061046d9190613913565b611901565b60405161047f91906138f8565b60405180910390f35b6104906119b9565b005b61049a611a41565b6040516104a79190613862565b60405180910390f35b6104ca60048036038101906104c591906137f4565b611a6b565b005b6104d4611c07565b6040516104e1919061379c565b60405180910390f35b61050460048036038101906104ff9190613de6565b611c99565b005b610520600480360381019061051b9190613913565b611caf565b005b61052a611d6f565b005b610546600480360381019061054191906137f4565b611e17565b6040516105539190613ee4565b60405180910390f35b610576600480360381019061057191906137f4565b611e82565b005b610580611f08565b60405161058d91906138f8565b60405180910390f35b6105b060048036038101906105ab91906137f4565b611f0e565b005b6105cc60048036038101906105c79190613fa7565b611fd8565b005b6105d661203a565b6040516105e391906136e8565b60405180910390f35b610606600480360381019061060191906137f4565b61204d565b604051610613919061379c565b60405180910390f35b610636600480360381019061063191906137f4565b6120f4565b604051610646949392919061402a565b60405180910390f35b610669600480360381019061066491906137f4565b612124565b60405161067691906138f8565b60405180910390f35b6106876124c4565b60405161069491906140ce565b60405180910390f35b6106b760048036038101906106b291906137f4565b6124ea565b6040516106c59291906140e9565b60405180910390f35b6106e860048036038101906106e39190614112565b61250e565b6040516106f591906136e8565b60405180910390f35b61071860048036038101906107139190613913565b6125a2565b005b610734600480360381019061072f9190614152565b61269a565b60405161074191906138f8565b60405180910390f35b6107526126cb565b60405161075f91906141b3565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061083357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108435750610842826126f1565b5b9050919050565b606060008054610859906141fd565b80601f0160208091040260200160405190810160405280929190818152602001828054610885906141fd565b80156108d25780601f106108a7576101008083540402835291602001916108d2565b820191906000526020600020905b8154815290600101906020018083116108b557829003601f168201915b5050505050905090565b60006108e78261275b565b610926576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091d906142a1565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061096c82611396565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d490614333565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109fc6127c7565b73ffffffffffffffffffffffffffffffffffffffff161480610a2b5750610a2a81610a256127c7565b61250e565b5b610a6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a61906143c5565b60405180910390fd5b610a7483836127cf565b505050565b600c5481565b610a876127c7565b73ffffffffffffffffffffffffffffffffffffffff16610aa5611a41565b73ffffffffffffffffffffffffffffffffffffffff1614610afb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af290614431565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f150b7a023d4804d13e8c85fb27262cb750cf6ba9f9dd3bb30d90f482ceeb4b1f905095945050505050565b60026006541415610bb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610baa9061449d565b60405180910390fd5b6002600681905550600b60149054906101000a900460ff16610c0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0190614509565b60405180910390fd5b60008151905060005b81811015610d5157600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e848381518110610c6c57610c6b614529565b5b60200260200101516040518263ffffffff1660e01b8152600401610c9091906138f8565b602060405180830381865afa158015610cad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd1919061456d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d35906145e6565b60405180910390fd5b8080610d4990614635565b915050610c13565b5060005b81811015610ea557600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3330868581518110610db057610daf614529565b5b60200260200101516040518463ffffffff1660e01b8152600401610dd69392919061467e565b600060405180830381600087803b158015610df057600080fd5b505af1158015610e04573d6000803e3d6000fd5b50505050601160006012548152602001908152602001600020838281518110610e3057610e2f614529565b5b6020026020010151908060018154018082558091505060019003906000526020600020016000909190919091505560125460136000858481518110610e7857610e77614529565b5b60200260200101518152602001908152602001600020819055508080610e9d90614635565b915050610d55565b50600060106000601254815260200190815260200160002090508181600101819055504281600201819055506001600e54610ee091906146b5565b8160030181905550610ef433601254612888565b60126000815480929190610f0790614635565b91905055505050600160068190555050565b610f2a610f246127c7565b826128a6565b610f69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f609061475b565b60405180910390fd5b610f74838383612984565b505050565b600f5481565b610f9a83838360405180602001604052806000815250611fd8565b505050565b60026006541415610fe5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdc9061449d565b60405180910390fd5b6002600681905550610ff681611396565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611063576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105a906147c7565b60405180910390fd5b600c5460106000838152602001908152602001600020600201544261108891906146b5565b116110c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110bf90614833565b60405180910390fd5b6110d181611a6b565b6110dc333083612984565b60005b60116000838152602001908152602001600020805490508110156112345760006013600060116000868152602001908152602001600020848154811061112857611127614529565b5b906000526020600020015481526020019081526020016000208190555060006010600084815260200190815260200160002060010181905550600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e30336011600087815260200190815260200160002085815481106111c6576111c5614529565b5b90600052602060002001546040518463ffffffff1660e01b81526004016111ef9392919061467e565b600060405180830381600087803b15801561120957600080fd5b505af115801561121d573d6000803e3d6000fd5b50505050808061122c90614635565b9150506110df565b50600160068190555050565b6112486127c7565b73ffffffffffffffffffffffffffffffffffffffff16611266611a41565b73ffffffffffffffffffffffffffffffffffffffff16146112bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b390614431565b60405180910390fd5b80600890805190602001906112d2929190613591565b5050565b6112de6127c7565b73ffffffffffffffffffffffffffffffffffffffff166112fc611a41565b73ffffffffffffffffffffffffffffffffffffffff1614611352576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134990614431565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561143f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611436906148c5565b60405180910390fd5b80915050919050565b6002600654141561148e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114859061449d565b60405180910390fd5b600260068190555061149f83611396565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461150c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611503906147c7565b60405180910390fd5b600c5460106000858152602001908152602001600020600201544261153191906146b5565b11611571576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156890614833565b60405180910390fd5b60116000848152602001908152602001600020805490508151835161159691906148e5565b146115d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cd90614987565b60405180910390fd5b6115df83611a6b565b6115ea333085612984565b60005b815181101561175657836013600084848151811061160e5761160d614529565b5b602002602001015181526020019081526020016000205414611665576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165c906149f3565b60405180910390fd5b60006013600084848151811061167e5761167d614529565b5b6020026020010151815260200190815260200160002081905550600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e30338585815181106116eb576116ea614529565b5b60200260200101516040518463ffffffff1660e01b81526004016117119392919061467e565b600060405180830381600087803b15801561172b57600080fd5b505af115801561173f573d6000803e3d6000fd5b50505050808061174e90614635565b9150506115ed565b506000601060008581526020019081526020016000206001018190555060005b825181101561188b57836013600085848151811061179757611796614529565b5b6020026020010151815260200190815260200160002054146117ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e5906149f3565b60405180910390fd5b60116000601254815260200190815260200160002083828151811061181657611815614529565b5b602002602001015190806001815401808255809150506001900390600052602060002001600090919091909150556012546013600085848151811061185e5761185d614529565b5b6020026020010151815260200190815260200160002081905550808061188390614635565b915050611776565b5060006010600060125481526020019081526020016000209050825181600101819055504281600201819055506001600e546118c791906146b5565b81600301819055506118db33601254612888565b601260008154809291906118ee90614635565b9190505550506001600681905550505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611972576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196990614a85565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6119c16127c7565b73ffffffffffffffffffffffffffffffffffffffff166119df611a41565b73ffffffffffffffffffffffffffffffffffffffff1614611a35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2c90614431565b60405180910390fd5b611a3f6000612beb565b565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611a7481611396565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611ae1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad890614b17565b60405180910390fd5b611aea81612cb1565b6000601060008381526020019081526020016000206000015490506000811115611c035760006010600084815260200190815260200160002060000181905550600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1633670de0b6b3a764000085611ba09190614b37565b6040518463ffffffff1660e01b8152600401611bbe9392919061467e565b6020604051808303816000875af1158015611bdd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c019190614ba6565b505b5050565b606060018054611c16906141fd565b80601f0160208091040260200160405190810160405280929190818152602001828054611c42906141fd565b8015611c8f5780601f10611c6457610100808354040283529160200191611c8f565b820191906000526020600020905b815481529060010190602001808311611c7257829003601f168201915b5050505050905090565b611cab611ca46127c7565b8383612da9565b5050565b611cb76127c7565b73ffffffffffffffffffffffffffffffffffffffff16611cd5611a41565b73ffffffffffffffffffffffffffffffffffffffff1614611d2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2290614431565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611d776127c7565b73ffffffffffffffffffffffffffffffffffffffff16611d95611a41565b73ffffffffffffffffffffffffffffffffffffffff1614611deb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de290614431565b60405180910390fd5b600b60149054906101000a900460ff1615600b60146101000a81548160ff021916908315150217905550565b606060116000838152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015611e7657602002820191906000526020600020905b815481526020019060010190808311611e62575b50505050509050919050565b611e8a6127c7565b73ffffffffffffffffffffffffffffffffffffffff16611ea8611a41565b73ffffffffffffffffffffffffffffffffffffffff1614611efe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef590614431565b60405180910390fd5b80600c8190555050565b60125481565b611f166127c7565b73ffffffffffffffffffffffffffffffffffffffff16611f34611a41565b73ffffffffffffffffffffffffffffffffffffffff1614611f8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8190614431565b60405180910390fd5b6000600d6000600e548152602001908152602001600020905081816000018190555081600f81905550428160010181905550600e6000815480929190611fcf90614635565b91905055505050565b611fe9611fe36127c7565b836128a6565b612028576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201f9061475b565b60405180910390fd5b61203484848484612f16565b50505050565b600b60149054906101000a900460ff1681565b60606120588261275b565b612097576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208e90614c45565b60405180910390fd5b60006120a1612f72565b905060008151116120c157604051806020016040528060008152506120ec565b806120cb84613004565b6040516020016120dc929190614ced565b6040516020818303038152906040525b915050919050565b60106020528060005260406000206000915090508060000154908060010154908060020154908060030154905084565b60003073ffffffffffffffffffffffffffffffffffffffff1661214683611396565b73ffffffffffffffffffffffffffffffffffffffff16141561216b57600090506124bf565b6000601060008481526020019081526020016000206003015490506000601060008581526020019081526020016000206002015490506000806000600660106000898152602001908152602001600020600101541061233d5760066010600089815260200190815260200160002060010154101580156122025750600b601060008981526020019081526020016000206001015411155b61233557600c60106000898152602001908152602001600020600101541015801561224457506017601060008981526020019081526020016000206001015411155b61232d57601860106000898152602001908152602001600020600101541015801561228657506031601060008981526020019081526020016000206001015411155b6123255760326010600089815260200190815260200160002060010154101580156122c85750604a601060008981526020019081526020016000206001015411155b61231d57604b60106000898152602001908152602001600020600101541015801561230a57506063601060008981526020019081526020016000206001015411155b61231557600a612318565b60085b612320565b60065b612328565b60045b612330565b60025b612338565b60015b612340565b60005b60ff1690505b6001600e5461235591906146b5565b8510156123f7576000600d600060018861236f91906148e5565b81526020019081526020016000206001015490506123de6123cf600d6000898152602001908152602001600020600001546123c16201518089866123b391906146b5565b61316590919063ffffffff16565b61317b90919063ffffffff16565b8561319190919063ffffffff16565b93508094505084806123ef90614635565b955050612346565b61247a612455612446600d60008981526020019081526020016000206000015461243862015180894261242a91906146b5565b61316590919063ffffffff16565b61317b90919063ffffffff16565b8561319190919063ffffffff16565b601060008a81526020019081526020016000206001015461317b90919063ffffffff16565b92506124b46124a560c8612497848761317b90919063ffffffff16565b61316590919063ffffffff16565b8461319190919063ffffffff16565b915081955050505050505b919050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d6020528060005260406000206000915090508060000154908060010154905082565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6125aa6127c7565b73ffffffffffffffffffffffffffffffffffffffff166125c8611a41565b73ffffffffffffffffffffffffffffffffffffffff161461261e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261590614431565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561268e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161268590614d8e565b60405180910390fd5b61269781612beb565b50565b601160205281600052604060002081815481106126b657600080fd5b90600052602060002001600091509150505481565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661284283611396565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6128a28282604051806020016040528060008152506131a7565b5050565b60006128b18261275b565b6128f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e790614e20565b60405180910390fd5b60006128fb83611396565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061293d575061293c818561250e565b5b8061297b57508373ffffffffffffffffffffffffffffffffffffffff16612963846108dc565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166129a482611396565b73ffffffffffffffffffffffffffffffffffffffff16146129fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f190614eb2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a6190614f44565b60405180910390fd5b612a75838383613202565b612a806000826127cf565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ad091906146b5565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b2791906148e5565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612be6838383613207565b505050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612cba81611396565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612d27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1e90614b17565b60405180910390fd5b6000612d3282612124565b905080601060008481526020019081526020016000206000016000828254612d5a91906148e5565b925050819055504260106000848152602001908152602001600020600201819055506001600e54612d8b91906146b5565b60106000848152602001908152602001600020600301819055505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612e18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e0f90614fb0565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612f0991906136e8565b60405180910390a3505050565b612f21848484612984565b612f2d8484848461320c565b612f6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f6390615042565b60405180910390fd5b50505050565b606060088054612f81906141fd565b80601f0160208091040260200160405190810160405280929190818152602001828054612fad906141fd565b8015612ffa5780601f10612fcf57610100808354040283529160200191612ffa565b820191906000526020600020905b815481529060010190602001808311612fdd57829003601f168201915b5050505050905090565b6060600082141561304c576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613160565b600082905060005b6000821461307e57808061306790614635565b915050600a826130779190615091565b9150613054565b60008167ffffffffffffffff81111561309a57613099613a57565b5b6040519080825280601f01601f1916602001820160405280156130cc5781602001600182028036833780820191505090505b5090505b60008514613159576001826130e591906146b5565b9150600a856130f491906150c2565b603061310091906148e5565b60f81b81838151811061311657613115614529565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856131529190615091565b94506130d0565b8093505050505b919050565b600081836131739190615091565b905092915050565b600081836131899190614b37565b905092915050565b6000818361319f91906148e5565b905092915050565b6131b18383613394565b6131be600084848461320c565b6131fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131f490615042565b60405180910390fd5b505050565b505050565b505050565b600061322d8473ffffffffffffffffffffffffffffffffffffffff1661356e565b15613387578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026132566127c7565b8786866040518563ffffffff1660e01b81526004016132789493929190615148565b6020604051808303816000875af19250505080156132b457506040513d601f19601f820116820180604052508101906132b191906151a9565b60015b613337573d80600081146132e4576040519150601f19603f3d011682016040523d82523d6000602084013e6132e9565b606091505b5060008151141561332f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161332690615042565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061338c565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613404576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133fb90615222565b60405180910390fd5b61340d8161275b565b1561344d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134449061528e565b60405180910390fd5b61345960008383613202565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134a991906148e5565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461356a60008383613207565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b82805461359d906141fd565b90600052602060002090601f0160209004810192826135bf5760008555613606565b82601f106135d857805160ff1916838001178555613606565b82800160010185558215613606579182015b828111156136055782518255916020019190600101906135ea565b5b5090506136139190613617565b5090565b5b80821115613630576000816000905550600101613618565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61367d81613648565b811461368857600080fd5b50565b60008135905061369a81613674565b92915050565b6000602082840312156136b6576136b561363e565b5b60006136c48482850161368b565b91505092915050565b60008115159050919050565b6136e2816136cd565b82525050565b60006020820190506136fd60008301846136d9565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561373d578082015181840152602081019050613722565b8381111561374c576000848401525b50505050565b6000601f19601f8301169050919050565b600061376e82613703565b613778818561370e565b935061378881856020860161371f565b61379181613752565b840191505092915050565b600060208201905081810360008301526137b68184613763565b905092915050565b6000819050919050565b6137d1816137be565b81146137dc57600080fd5b50565b6000813590506137ee816137c8565b92915050565b60006020828403121561380a5761380961363e565b5b6000613818848285016137df565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061384c82613821565b9050919050565b61385c81613841565b82525050565b60006020820190506138776000830184613853565b92915050565b61388681613841565b811461389157600080fd5b50565b6000813590506138a38161387d565b92915050565b600080604083850312156138c0576138bf61363e565b5b60006138ce85828601613894565b92505060206138df858286016137df565b9150509250929050565b6138f2816137be565b82525050565b600060208201905061390d60008301846138e9565b92915050565b6000602082840312156139295761392861363e565b5b600061393784828501613894565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261396557613964613940565b5b8235905067ffffffffffffffff81111561398257613981613945565b5b60208301915083600182028301111561399e5761399d61394a565b5b9250929050565b6000806000806000608086880312156139c1576139c061363e565b5b60006139cf88828901613894565b95505060206139e088828901613894565b94505060406139f1888289016137df565b935050606086013567ffffffffffffffff811115613a1257613a11613643565b5b613a1e8882890161394f565b92509250509295509295909350565b613a3681613648565b82525050565b6000602082019050613a516000830184613a2d565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613a8f82613752565b810181811067ffffffffffffffff82111715613aae57613aad613a57565b5b80604052505050565b6000613ac1613634565b9050613acd8282613a86565b919050565b600067ffffffffffffffff821115613aed57613aec613a57565b5b602082029050602081019050919050565b6000613b11613b0c84613ad2565b613ab7565b90508083825260208201905060208402830185811115613b3457613b3361394a565b5b835b81811015613b5d5780613b4988826137df565b845260208401935050602081019050613b36565b5050509392505050565b600082601f830112613b7c57613b7b613940565b5b8135613b8c848260208601613afe565b91505092915050565b600060208284031215613bab57613baa61363e565b5b600082013567ffffffffffffffff811115613bc957613bc8613643565b5b613bd584828501613b67565b91505092915050565b600080600060608486031215613bf757613bf661363e565b5b6000613c0586828701613894565b9350506020613c1686828701613894565b9250506040613c27868287016137df565b9150509250925092565b600080fd5b600067ffffffffffffffff821115613c5157613c50613a57565b5b613c5a82613752565b9050602081019050919050565b82818337600083830152505050565b6000613c89613c8484613c36565b613ab7565b905082815260208101848484011115613ca557613ca4613c31565b5b613cb0848285613c67565b509392505050565b600082601f830112613ccd57613ccc613940565b5b8135613cdd848260208601613c76565b91505092915050565b600060208284031215613cfc57613cfb61363e565b5b600082013567ffffffffffffffff811115613d1a57613d19613643565b5b613d2684828501613cb8565b91505092915050565b600080600060608486031215613d4857613d4761363e565b5b6000613d56868287016137df565b935050602084013567ffffffffffffffff811115613d7757613d76613643565b5b613d8386828701613b67565b925050604084013567ffffffffffffffff811115613da457613da3613643565b5b613db086828701613b67565b9150509250925092565b613dc3816136cd565b8114613dce57600080fd5b50565b600081359050613de081613dba565b92915050565b60008060408385031215613dfd57613dfc61363e565b5b6000613e0b85828601613894565b9250506020613e1c85828601613dd1565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613e5b816137be565b82525050565b6000613e6d8383613e52565b60208301905092915050565b6000602082019050919050565b6000613e9182613e26565b613e9b8185613e31565b9350613ea683613e42565b8060005b83811015613ed7578151613ebe8882613e61565b9750613ec983613e79565b925050600181019050613eaa565b5085935050505092915050565b60006020820190508181036000830152613efe8184613e86565b905092915050565b600067ffffffffffffffff821115613f2157613f20613a57565b5b613f2a82613752565b9050602081019050919050565b6000613f4a613f4584613f06565b613ab7565b905082815260208101848484011115613f6657613f65613c31565b5b613f71848285613c67565b509392505050565b600082601f830112613f8e57613f8d613940565b5b8135613f9e848260208601613f37565b91505092915050565b60008060008060808587031215613fc157613fc061363e565b5b6000613fcf87828801613894565b9450506020613fe087828801613894565b9350506040613ff1878288016137df565b925050606085013567ffffffffffffffff81111561401257614011613643565b5b61401e87828801613f79565b91505092959194509250565b600060808201905061403f60008301876138e9565b61404c60208301866138e9565b61405960408301856138e9565b61406660608301846138e9565b95945050505050565b6000819050919050565b600061409461408f61408a84613821565b61406f565b613821565b9050919050565b60006140a682614079565b9050919050565b60006140b88261409b565b9050919050565b6140c8816140ad565b82525050565b60006020820190506140e360008301846140bf565b92915050565b60006040820190506140fe60008301856138e9565b61410b60208301846138e9565b9392505050565b600080604083850312156141295761412861363e565b5b600061413785828601613894565b925050602061414885828601613894565b9150509250929050565b600080604083850312156141695761416861363e565b5b6000614177858286016137df565b9250506020614188858286016137df565b9150509250929050565b600061419d8261409b565b9050919050565b6141ad81614192565b82525050565b60006020820190506141c860008301846141a4565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061421557607f821691505b60208210811415614229576142286141ce565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061428b602c8361370e565b91506142968261422f565b604082019050919050565b600060208201905081810360008301526142ba8161427e565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061431d60218361370e565b9150614328826142c1565b604082019050919050565b6000602082019050818103600083015261434c81614310565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b60006143af60388361370e565b91506143ba82614353565b604082019050919050565b600060208201905081810360008301526143de816143a2565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061441b60208361370e565b9150614426826143e5565b602082019050919050565b6000602082019050818103600083015261444a8161440e565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614487601f8361370e565b915061449282614451565b602082019050919050565b600060208201905081810360008301526144b68161447a565b9050919050565b7f5374616b696e672077696e646f77206e6f74206f70656e000000000000000000600082015250565b60006144f360178361370e565b91506144fe826144bd565b602082019050919050565b60006020820190508181036000830152614522816144e6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000815190506145678161387d565b92915050565b6000602082840312156145835761458261363e565b5b600061459184828501614558565b91505092915050565b7f43616c6c6572206e6f74206f776e6572206f662053414320746f6b656e49642e600082015250565b60006145d060208361370e565b91506145db8261459a565b602082019050919050565b600060208201905081810360008301526145ff816145c3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614640826137be565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561467357614672614606565b5b600182019050919050565b60006060820190506146936000830186613853565b6146a06020830185613853565b6146ad60408301846138e9565b949350505050565b60006146c0826137be565b91506146cb836137be565b9250828210156146de576146dd614606565b5b828203905092915050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b600061474560318361370e565b9150614750826146e9565b604082019050919050565b6000602082019050818103600083015261477481614738565b9050919050565b7f43616c6c6572206e6f74206f776e6572206f662062756e646c6549642e000000600082015250565b60006147b1601d8361370e565b91506147bc8261477b565b602082019050919050565b600060208201905081810360008301526147e0816147a4565b9050919050565b7f4d696e2e207374616b65206475726174696f6e206e6f74206d65740000000000600082015250565b600061481d601b8361370e565b9150614828826147e7565b602082019050919050565b6000602082019050818103600083015261484c81614810565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b60006148af60298361370e565b91506148ba82614853565b604082019050919050565b600060208201905081810360008301526148de816148a2565b9050919050565b60006148f0826137be565b91506148fb836137be565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156149305761492f614606565b5b828201905092915050565b7f496e76616c69642063616c6c0000000000000000000000000000000000000000600082015250565b6000614971600c8361370e565b915061497c8261493b565b602082019050919050565b600060208201905081810360008301526149a081614964565b9050919050565b7f496e76616c696400000000000000000000000000000000000000000000000000600082015250565b60006149dd60078361370e565b91506149e8826149a7565b602082019050919050565b60006020820190508181036000830152614a0c816149d0565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000614a6f602a8361370e565b9150614a7a82614a13565b604082019050919050565b60006020820190508181036000830152614a9e81614a62565b9050919050565b7f43616c6c6572206e6f7420656c696769626c6520746f20636c61696d2072657760008201527f6172647300000000000000000000000000000000000000000000000000000000602082015250565b6000614b0160248361370e565b9150614b0c82614aa5565b604082019050919050565b60006020820190508181036000830152614b3081614af4565b9050919050565b6000614b42826137be565b9150614b4d836137be565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614b8657614b85614606565b5b828202905092915050565b600081519050614ba081613dba565b92915050565b600060208284031215614bbc57614bbb61363e565b5b6000614bca84828501614b91565b91505092915050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614c2f602f8361370e565b9150614c3a82614bd3565b604082019050919050565b60006020820190508181036000830152614c5e81614c22565b9050919050565b600081905092915050565b6000614c7b82613703565b614c858185614c65565b9350614c9581856020860161371f565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614cd7600583614c65565b9150614ce282614ca1565b600582019050919050565b6000614cf98285614c70565b9150614d058284614c70565b9150614d1082614cca565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614d7860268361370e565b9150614d8382614d1c565b604082019050919050565b60006020820190508181036000830152614da781614d6b565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614e0a602c8361370e565b9150614e1582614dae565b604082019050919050565b60006020820190508181036000830152614e3981614dfd565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614e9c60258361370e565b9150614ea782614e40565b604082019050919050565b60006020820190508181036000830152614ecb81614e8f565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614f2e60248361370e565b9150614f3982614ed2565b604082019050919050565b60006020820190508181036000830152614f5d81614f21565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614f9a60198361370e565b9150614fa582614f64565b602082019050919050565b60006020820190508181036000830152614fc981614f8d565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061502c60328361370e565b915061503782614fd0565b604082019050919050565b6000602082019050818103600083015261505b8161501f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061509c826137be565b91506150a7836137be565b9250826150b7576150b6615062565b5b828204905092915050565b60006150cd826137be565b91506150d8836137be565b9250826150e8576150e7615062565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b600061511a826150f3565b61512481856150fe565b935061513481856020860161371f565b61513d81613752565b840191505092915050565b600060808201905061515d6000830187613853565b61516a6020830186613853565b61517760408301856138e9565b8181036060830152615189818461510f565b905095945050505050565b6000815190506151a381613674565b92915050565b6000602082840312156151bf576151be61363e565b5b60006151cd84828501615194565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061520c60208361370e565b9150615217826151d6565b602082019050919050565b6000602082019050818103600083015261523b816151ff565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615278601c8361370e565b915061528382615242565b602082019050919050565b600060208201905081810360008301526152a78161526b565b905091905056fea264697066735822122087b7c0e4157e61ae76cf31ab311ca47e34ed8c0a79cb89c5837efce0b46fc80764736f6c634300080a0033

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.