Address Details
contract

0x64bC79B88Ba1d06FD0fC816b61EfD80B9ff975E6

Contract Name
Bonus
Creator
0x7d6740–c9cfce at 0x319454–05e950
Balance
0 CELO ( )
Locked CELO Balance
0.00 CELO
Voting CELO Balance
0.00 CELO
Pending Unlocked Gold
0.00 CELO
Tokens
Fetching tokens...
Transactions
0 Transactions
Transfers
0 Transfers
Gas Used
Fetching gas used...
Last Balance Update
8654102
This contract has been verified via Sourcify. View contract in Sourcify repository
Contract name:
Bonus




Optimization enabled
false
Compiler version
v0.8.10+commit.fc410830




EVM Version
london




Verified at
2023-02-06T21:02:00.830218Z

scripts/Bonus.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol";
import "./IStarNFT.sol";

interface INFTLogic {
    function starMeta(uint256 _tokenId) view external returns (uint8, uint256, uint256, uint256);
    function totalPrice() view external returns (uint256);
}

contract Bonus is ContextUpgradeable, OwnableUpgradeable {

    using SafeMathUpgradeable for uint256;
    IERC20Upgradeable public starToken;
    IERC721Upgradeable public starNFT;
    INFTLogic public NFTLogic;

    IStarNFT public StarNFT1;

    address public lockAddr;
    uint256 public lockRatio;
    uint256 public bonusWithdrawn;
    uint256 public lockWithdrawn;

    mapping(uint256 => uint256) public tokenWithdraw;

    event Test(address indexed user, uint256 amount);

    function initialize(address _starToken, address _lock, uint256 _lockRatio) public initializer {
        __bonus_init(_starToken, _lock, _lockRatio);
    }

    function __bonus_init(address _starToken, address _lock, uint256 _lockRatio) internal initializer {
        __Context_init_unchained();
        __Ownable_init_unchained();
        __bonus_init_unchained(_starToken, _lock, _lockRatio);
    }

    function __bonus_init_unchained(address _starToken, address _lock, uint256 _lockRatio) internal initializer {
        require(_lockRatio < 10000, 'ratio error');
        starToken = IERC20Upgradeable(_starToken);
        lockAddr = _lock;
        lockRatio = _lockRatio;
    }

    function setLockRatio(uint256 _newRatio) onlyOwner public {
        require(_newRatio < 10000, 'ratio error');
        lockRatio = _newRatio;
    }

    function setStarNFTAddress(address _StarNFT) onlyOwner public {
        StarNFT1 = IStarNFT(_StarNFT);
    }

    function lockWithdraw(uint256 _amount) onlyLockUser public {
        require(_amount > 0, "amount error");
        uint256 _balance = starToken.balanceOf(address(this));
        uint256 _availLock = _balance.add(lockWithdrawn).add(bonusWithdrawn).mul(lockRatio).div(10000).sub(lockWithdrawn);
        require(_amount <= _availLock, 'amount error');
        lockWithdrawn = lockWithdrawn.add(_amount);
        starToken.transfer(_msgSender(), _amount);
    }

    function allWithdrawal(address owner) public {
        uint256 _amount = 0;
        for (uint256 i = 0 ; i < StarNFT1.balanceOf(owner); i ++) {
             uint256 _tokenId = StarNFT1.tokenByIndex(owner,i);
             uint256 _number = _getBonus(_tokenId);
             bonusWithdrawn = bonusWithdrawn.add(_amount);
             tokenWithdraw[_tokenId] = tokenWithdraw[_tokenId].add(_amount);
             _amount += _number;
        }
        emit Test(owner,_amount);
        starToken.transfer(_msgSender(), _amount);
    }

    function getAllBonus(address owner) public view returns(uint256) {
        uint256 _amount = 0;
        for (uint256 i = 0 ; i < StarNFT1.balanceOf(owner); i ++) {
             uint256 _tokenId = StarNFT1.tokenByIndex(owner,i);
             uint256 _number = _getBonus(_tokenId);
             _amount += _number;
        }
        return _amount;
    }

    function bonusWithdraw(uint256 _tokenId) public{
        // require(_msgSender() == starNFT.ownerOf(_tokenId), "not your token");
        uint256 _amount =  _getBonus(_tokenId);
        require(_amount > 0, "no bonus");
        bonusWithdrawn = bonusWithdrawn.add(_amount);
        tokenWithdraw[_tokenId] = tokenWithdraw[_tokenId].add(_amount);
        starToken.transfer(_msgSender(), _amount);
    }

    function setTokenWithdraw(uint256 _tokenId,uint256 _amount) external{
        tokenWithdraw[_tokenId] = tokenWithdraw[_tokenId].add(_amount);
    }

    function setBonusWithdrawn(uint256 _amount) external{
        bonusWithdrawn = bonusWithdrawn.add(_amount);
    }

    function getBonus(uint256 _tokenId) view external returns (uint256) {
        return _getBonus(_tokenId);
    }

    function _getBonus(uint256 _tokenId) view internal returns (uint256) {
        uint256 _totalPrice = NFTLogic.totalPrice();
        (, , uint256 _price, uint256 _multi) = NFTLogic.starMeta(_tokenId);
        uint256 _ratio = _price.mul(_multi).div(100).mul(1e12).div(_totalPrice);
        uint256 _balance = starToken.balanceOf(address(this));
        
        uint256 _availBonus = _balance.add(lockWithdrawn).add(bonusWithdrawn).mul(10000 - lockRatio).div(10000).mul(_ratio).div(1e12);
        return _availBonus > tokenWithdraw[_tokenId] ? _availBonus - tokenWithdraw[_tokenId] : 0;
    }

    function setLock(address _addr) onlyOwner public {
        require(address(0) != _addr, 'lock address error');
        lockAddr = _addr;
    }

    function setNFT(address _addr) onlyOwner public {
        require(address(0) != _addr, 'NFT address error');
        starNFT = IERC721Upgradeable(_addr);
    }

    function setNFTLogic(address _addr) onlyOwner public {
        require(address(0) != _addr, 'NFT address error');
        NFTLogic = INFTLogic(_addr);
    }

    modifier onlyLockUser() {
        require(_msgSender() == lockAddr, 'no permission');
        _;
    }
}
        

/_openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol

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

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal initializer {
        __Context_init_unchained();
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal initializer {
        _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);
    }
    uint256[49] private __gap;
}
          

/_openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }
}
          

/_openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

/_openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

/_openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal initializer {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal initializer {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
    uint256[50] private __gap;
}
          

/_openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

/_openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 SafeMathUpgradeable {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

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

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

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

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

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

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

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

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

/scripts/IStarNFT.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IStarNFT {
    function mint(address _owner, uint256 _cateId) external returns (uint256);
    function setCateURI(uint256 _cateId, string memory _cateUri) external;
    function massVerifyOwner(address owner, uint256[] memory _tokenIds) view external returns (bool);
    function massBurn(uint256[] memory _tokenIds) external;
    function setSale(bool _sale) external;
    function balanceOf(address owner) view external returns (uint256);
    function tokenByIndex(address owner,uint256 tokenid) view external returns (uint256);
}
          

Contract ABI

[{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Test","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract INFTLogic"}],"name":"NFTLogic","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IStarNFT"}],"name":"StarNFT1","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"allWithdrawal","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"bonusWithdraw","inputs":[{"type":"uint256","name":"_tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"bonusWithdrawn","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getAllBonus","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getBonus","inputs":[{"type":"uint256","name":"_tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[{"type":"address","name":"_starToken","internalType":"address"},{"type":"address","name":"_lock","internalType":"address"},{"type":"uint256","name":"_lockRatio","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"lockAddr","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"lockRatio","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"lockWithdraw","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"lockWithdrawn","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBonusWithdrawn","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setLock","inputs":[{"type":"address","name":"_addr","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setLockRatio","inputs":[{"type":"uint256","name":"_newRatio","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setNFT","inputs":[{"type":"address","name":"_addr","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setNFTLogic","inputs":[{"type":"address","name":"_addr","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setStarNFTAddress","inputs":[{"type":"address","name":"_StarNFT","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setTokenWithdraw","inputs":[{"type":"uint256","name":"_tokenId","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC721Upgradeable"}],"name":"starNFT","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20Upgradeable"}],"name":"starToken","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenWithdraw","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]}]
              

Contract Creation Code

0x608060405234801561001057600080fd5b5061292d806100206000396000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c80638da5cb5b116100de578063c9fd982311610097578063da117df811610071578063da117df814610400578063e7bd71911461041c578063f2fde38b14610438578063f56e9c661461045457610173565b8063c9fd982314610396578063d7e751ff146103b2578063d9fc0e7f146103e257610173565b80638da5cb5b146102e657806395a0af47146103045780639c3709ea14610320578063a32088d41461033e578063b7ca51e81461035a578063bcb470051461037857610173565b80634aa66b28116101305780634aa66b281461023657806357fe507a1461026657806370dca97414610282578063715018a6146102a05780637666fc88146102aa5780637fdab94e146102c857610173565b8063085a4f15146101785780630f8a8a54146101945780631794bb3c146101b25780631f6f7be5146101ce57806337ef75c8146101ea57806338eea51d14610206575b600080fd5b610192600480360381019061018d9190611ed5565b610470565b005b61019c61075e565b6040516101a99190611f11565b60405180910390f35b6101cc60048036038101906101c79190611f8a565b610764565b005b6101e860048036038101906101e39190611fdd565b61084b565b005b61020460048036038101906101ff9190611fdd565b61090b565b005b610220600480360381019061021b9190611fdd565b610a3b565b60405161022d9190611f11565b60405180910390f35b610250600480360381019061024b9190611ed5565b610bc4565b60405161025d9190611f11565b60405180910390f35b610280600480360381019061027b919061200a565b610bd6565b005b61028a610c17565b60405161029791906120a9565b60405180910390f35b6102a8610c3d565b005b6102b2610cc5565b6040516102bf91906120e5565b60405180910390f35b6102d0610ceb565b6040516102dd919061210f565b60405180910390f35b6102ee610d11565b6040516102fb919061210f565b60405180910390f35b61031e60048036038101906103199190611ed5565b610d3b565b005b610328610d59565b6040516103359190611f11565b60405180910390f35b61035860048036038101906103539190611fdd565b610d5f565b005b610362610e8f565b60405161036f919061214b565b60405180910390f35b610380610eb5565b60405161038d9190612187565b60405180910390f35b6103b060048036038101906103ab9190611ed5565b610edb565b005b6103cc60048036038101906103c79190611ed5565b61102f565b6040516103d99190611f11565b60405180910390f35b6103ea611047565b6040516103f79190611f11565b60405180910390f35b61041a60048036038101906104159190611fdd565b61104d565b005b61043660048036038101906104319190611ed5565b611319565b005b610452600480360381019061044d9190611fdd565b6113e3565b005b61046e60048036038101906104699190611fdd565b6114db565b005b606960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166104b161160b565b73ffffffffffffffffffffffffffffffffffffffff1614610507576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fe906121ff565b60405180910390fd5b6000811161054a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105419061226b565b60405180910390fd5b6000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016105a7919061210f565b602060405180830381865afa1580156105c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e891906122a0565b90506000610651606c54610643612710610635606a54610627606b54610619606c548b61161390919063ffffffff16565b61161390919063ffffffff16565b61162990919063ffffffff16565b61163f90919063ffffffff16565b61165590919063ffffffff16565b905080831115610696576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068d9061226b565b60405180910390fd5b6106ab83606c5461161390919063ffffffff16565b606c81905550606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6106f761160b565b856040518363ffffffff1660e01b81526004016107159291906122cd565b6020604051808303816000875af1158015610734573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610758919061232e565b50505050565b606c5481565b600060019054906101000a900460ff168061078a575060008054906101000a900460ff16155b6107c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c0906123cd565b60405180910390fd5b60008060019054906101000a900460ff161590508015610819576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b61082484848461166b565b80156108455760008060016101000a81548160ff0219169083151502179055505b50505050565b61085361160b565b73ffffffffffffffffffffffffffffffffffffffff16610871610d11565b73ffffffffffffffffffffffffffffffffffffffff16146108c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108be90612439565b60405180910390fd5b80606860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61091361160b565b73ffffffffffffffffffffffffffffffffffffffff16610931610d11565b73ffffffffffffffffffffffffffffffffffffffff1614610987576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097e90612439565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff1614156109f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ee906124a5565b60405180910390fd5b80606760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000806000905060005b606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b8152600401610aa0919061210f565b602060405180830381865afa158015610abd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae191906122a0565b811015610bba576000606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663cb60f1bf86846040518363ffffffff1660e01b8152600401610b479291906122cd565b602060405180830381865afa158015610b64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b8891906122a0565b90506000610b9582611762565b90508084610ba391906124f4565b935050508080610bb29061254a565b915050610a45565b5080915050919050565b6000610bcf82611762565b9050919050565b610bfc81606d60008581526020019081526020016000205461161390919063ffffffff16565b606d6000848152602001908152602001600020819055505050565b606660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610c4561160b565b73ffffffffffffffffffffffffffffffffffffffff16610c63610d11565b73ffffffffffffffffffffffffffffffffffffffff1614610cb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb090612439565b60405180910390fd5b610cc36000611a69565b565b606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610d5081606b5461161390919063ffffffff16565b606b8190555050565b606a5481565b610d6761160b565b73ffffffffffffffffffffffffffffffffffffffff16610d85610d11565b73ffffffffffffffffffffffffffffffffffffffff1614610ddb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd290612439565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff161415610e4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e42906125df565b60405180910390fd5b80606960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610ee682611762565b905060008111610f2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f229061264b565b60405180910390fd5b610f4081606b5461161390919063ffffffff16565b606b81905550610f6c81606d60008581526020019081526020016000205461161390919063ffffffff16565b606d600084815260200190815260200160002081905550606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb610fc961160b565b836040518363ffffffff1660e01b8152600401610fe79291906122cd565b6020604051808303816000875af1158015611006573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102a919061232e565b505050565b606d6020528060005260406000206000915090505481565b606b5481565b6000805b606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b81526004016110ac919061210f565b602060405180830381865afa1580156110c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ed91906122a0565b81101561121e576000606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663cb60f1bf85846040518363ffffffff1660e01b81526004016111539291906122cd565b602060405180830381865afa158015611170573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119491906122a0565b905060006111a182611762565b90506111b884606b5461161390919063ffffffff16565b606b819055506111e484606d60008581526020019081526020016000205461161390919063ffffffff16565b606d600084815260200190815260200160002081905550808461120791906124f4565b9350505080806112169061254a565b915050611051565b508173ffffffffffffffffffffffffffffffffffffffff167f4ba54330f8090ac87ed0a0b470fd9c8a6bbec84bfe94f4fa7776d1dc27da9f9c826040516112659190611f11565b60405180910390a2606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6112b361160b565b836040518363ffffffff1660e01b81526004016112d19291906122cd565b6020604051808303816000875af11580156112f0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611314919061232e565b505050565b61132161160b565b73ffffffffffffffffffffffffffffffffffffffff1661133f610d11565b73ffffffffffffffffffffffffffffffffffffffff1614611395576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138c90612439565b60405180910390fd5b61271081106113d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d0906126b7565b60405180910390fd5b80606a8190555050565b6113eb61160b565b73ffffffffffffffffffffffffffffffffffffffff16611409610d11565b73ffffffffffffffffffffffffffffffffffffffff161461145f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145690612439565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156114cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c690612749565b60405180910390fd5b6114d881611a69565b50565b6114e361160b565b73ffffffffffffffffffffffffffffffffffffffff16611501610d11565b73ffffffffffffffffffffffffffffffffffffffff1614611557576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154e90612439565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff1614156115c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115be906124a5565b60405180910390fd5b80606660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b6000818361162191906124f4565b905092915050565b600081836116379190612769565b905092915050565b6000818361164d91906127f2565b905092915050565b600081836116639190612823565b905092915050565b600060019054906101000a900460ff1680611691575060008054906101000a900460ff16155b6116d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c7906123cd565b60405180910390fd5b60008060019054906101000a900460ff161590508015611720576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b611728611b2f565b611730611c08565b61173b848484611cf1565b801561175c5760008060016101000a81548160ff0219169083151502179055505b50505050565b600080606760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ab0d92dd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117f691906122a0565b9050600080606760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663971276ae866040518263ffffffff1660e01b81526004016118569190611f11565b608060405180830381865afa158015611873573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118979190612890565b93509350505060006118ee846118e064e8d4a510006118d260646118c4888a61162990919063ffffffff16565b61163f90919063ffffffff16565b61162990919063ffffffff16565b61163f90919063ffffffff16565b90506000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161194d919061210f565b602060405180830381865afa15801561196a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061198e91906122a0565b90506000611a1964e8d4a51000611a0b856119fd6127106119ef606a546127106119b89190612823565b6119e1606b546119d3606c548d61161390919063ffffffff16565b61161390919063ffffffff16565b61162990919063ffffffff16565b61163f90919063ffffffff16565b61162990919063ffffffff16565b61163f90919063ffffffff16565b9050606d6000898152602001908152602001600020548111611a3c576000611a5c565b606d60008981526020019081526020016000205481611a5b9190612823565b5b9650505050505050919050565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600060019054906101000a900460ff1680611b55575060008054906101000a900460ff16155b611b94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8b906123cd565b60405180910390fd5b60008060019054906101000a900460ff161590508015611be4576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b8015611c055760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680611c2e575060008054906101000a900460ff16155b611c6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c64906123cd565b60405180910390fd5b60008060019054906101000a900460ff161590508015611cbd576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b611ccd611cc861160b565b611a69565b8015611cee5760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680611d17575060008054906101000a900460ff16155b611d56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4d906123cd565b60405180910390fd5b60008060019054906101000a900460ff161590508015611da6576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6127108210611dea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de1906126b7565b60405180910390fd5b83606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082606960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081606a819055508015611e945760008060016101000a81548160ff0219169083151502179055505b50505050565b600080fd5b6000819050919050565b611eb281611e9f565b8114611ebd57600080fd5b50565b600081359050611ecf81611ea9565b92915050565b600060208284031215611eeb57611eea611e9a565b5b6000611ef984828501611ec0565b91505092915050565b611f0b81611e9f565b82525050565b6000602082019050611f266000830184611f02565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611f5782611f2c565b9050919050565b611f6781611f4c565b8114611f7257600080fd5b50565b600081359050611f8481611f5e565b92915050565b600080600060608486031215611fa357611fa2611e9a565b5b6000611fb186828701611f75565b9350506020611fc286828701611f75565b9250506040611fd386828701611ec0565b9150509250925092565b600060208284031215611ff357611ff2611e9a565b5b600061200184828501611f75565b91505092915050565b6000806040838503121561202157612020611e9a565b5b600061202f85828601611ec0565b925050602061204085828601611ec0565b9150509250929050565b6000819050919050565b600061206f61206a61206584611f2c565b61204a565b611f2c565b9050919050565b600061208182612054565b9050919050565b600061209382612076565b9050919050565b6120a381612088565b82525050565b60006020820190506120be600083018461209a565b92915050565b60006120cf82612076565b9050919050565b6120df816120c4565b82525050565b60006020820190506120fa60008301846120d6565b92915050565b61210981611f4c565b82525050565b60006020820190506121246000830184612100565b92915050565b600061213582612076565b9050919050565b6121458161212a565b82525050565b6000602082019050612160600083018461213c565b92915050565b600061217182612076565b9050919050565b61218181612166565b82525050565b600060208201905061219c6000830184612178565b92915050565b600082825260208201905092915050565b7f6e6f207065726d697373696f6e00000000000000000000000000000000000000600082015250565b60006121e9600d836121a2565b91506121f4826121b3565b602082019050919050565b60006020820190508181036000830152612218816121dc565b9050919050565b7f616d6f756e74206572726f720000000000000000000000000000000000000000600082015250565b6000612255600c836121a2565b91506122608261221f565b602082019050919050565b6000602082019050818103600083015261228481612248565b9050919050565b60008151905061229a81611ea9565b92915050565b6000602082840312156122b6576122b5611e9a565b5b60006122c48482850161228b565b91505092915050565b60006040820190506122e26000830185612100565b6122ef6020830184611f02565b9392505050565b60008115159050919050565b61230b816122f6565b811461231657600080fd5b50565b60008151905061232881612302565b92915050565b60006020828403121561234457612343611e9a565b5b600061235284828501612319565b91505092915050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b60006123b7602e836121a2565b91506123c28261235b565b604082019050919050565b600060208201905081810360008301526123e6816123aa565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006124236020836121a2565b915061242e826123ed565b602082019050919050565b6000602082019050818103600083015261245281612416565b9050919050565b7f4e46542061646472657373206572726f72000000000000000000000000000000600082015250565b600061248f6011836121a2565b915061249a82612459565b602082019050919050565b600060208201905081810360008301526124be81612482565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006124ff82611e9f565b915061250a83611e9f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561253f5761253e6124c5565b5b828201905092915050565b600061255582611e9f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612588576125876124c5565b5b600182019050919050565b7f6c6f636b2061646472657373206572726f720000000000000000000000000000600082015250565b60006125c96012836121a2565b91506125d482612593565b602082019050919050565b600060208201905081810360008301526125f8816125bc565b9050919050565b7f6e6f20626f6e7573000000000000000000000000000000000000000000000000600082015250565b60006126356008836121a2565b9150612640826125ff565b602082019050919050565b6000602082019050818103600083015261266481612628565b9050919050565b7f726174696f206572726f72000000000000000000000000000000000000000000600082015250565b60006126a1600b836121a2565b91506126ac8261266b565b602082019050919050565b600060208201905081810360008301526126d081612694565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006127336026836121a2565b915061273e826126d7565b604082019050919050565b6000602082019050818103600083015261276281612726565b9050919050565b600061277482611e9f565b915061277f83611e9f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156127b8576127b76124c5565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006127fd82611e9f565b915061280883611e9f565b925082612818576128176127c3565b5b828204905092915050565b600061282e82611e9f565b915061283983611e9f565b92508282101561284c5761284b6124c5565b5b828203905092915050565b600060ff82169050919050565b61286d81612857565b811461287857600080fd5b50565b60008151905061288a81612864565b92915050565b600080600080608085870312156128aa576128a9611e9a565b5b60006128b88782880161287b565b94505060206128c98782880161228b565b93505060406128da8782880161228b565b92505060606128eb8782880161228b565b9150509295919450925056fea2646970667358221220fb870fd56df8a0e07a2399fd0f54b57d79a18a8d269b28cb83850915f8c348c564736f6c634300080a0033

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106101735760003560e01c80638da5cb5b116100de578063c9fd982311610097578063da117df811610071578063da117df814610400578063e7bd71911461041c578063f2fde38b14610438578063f56e9c661461045457610173565b8063c9fd982314610396578063d7e751ff146103b2578063d9fc0e7f146103e257610173565b80638da5cb5b146102e657806395a0af47146103045780639c3709ea14610320578063a32088d41461033e578063b7ca51e81461035a578063bcb470051461037857610173565b80634aa66b28116101305780634aa66b281461023657806357fe507a1461026657806370dca97414610282578063715018a6146102a05780637666fc88146102aa5780637fdab94e146102c857610173565b8063085a4f15146101785780630f8a8a54146101945780631794bb3c146101b25780631f6f7be5146101ce57806337ef75c8146101ea57806338eea51d14610206575b600080fd5b610192600480360381019061018d9190611ed5565b610470565b005b61019c61075e565b6040516101a99190611f11565b60405180910390f35b6101cc60048036038101906101c79190611f8a565b610764565b005b6101e860048036038101906101e39190611fdd565b61084b565b005b61020460048036038101906101ff9190611fdd565b61090b565b005b610220600480360381019061021b9190611fdd565b610a3b565b60405161022d9190611f11565b60405180910390f35b610250600480360381019061024b9190611ed5565b610bc4565b60405161025d9190611f11565b60405180910390f35b610280600480360381019061027b919061200a565b610bd6565b005b61028a610c17565b60405161029791906120a9565b60405180910390f35b6102a8610c3d565b005b6102b2610cc5565b6040516102bf91906120e5565b60405180910390f35b6102d0610ceb565b6040516102dd919061210f565b60405180910390f35b6102ee610d11565b6040516102fb919061210f565b60405180910390f35b61031e60048036038101906103199190611ed5565b610d3b565b005b610328610d59565b6040516103359190611f11565b60405180910390f35b61035860048036038101906103539190611fdd565b610d5f565b005b610362610e8f565b60405161036f919061214b565b60405180910390f35b610380610eb5565b60405161038d9190612187565b60405180910390f35b6103b060048036038101906103ab9190611ed5565b610edb565b005b6103cc60048036038101906103c79190611ed5565b61102f565b6040516103d99190611f11565b60405180910390f35b6103ea611047565b6040516103f79190611f11565b60405180910390f35b61041a60048036038101906104159190611fdd565b61104d565b005b61043660048036038101906104319190611ed5565b611319565b005b610452600480360381019061044d9190611fdd565b6113e3565b005b61046e60048036038101906104699190611fdd565b6114db565b005b606960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166104b161160b565b73ffffffffffffffffffffffffffffffffffffffff1614610507576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fe906121ff565b60405180910390fd5b6000811161054a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105419061226b565b60405180910390fd5b6000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016105a7919061210f565b602060405180830381865afa1580156105c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e891906122a0565b90506000610651606c54610643612710610635606a54610627606b54610619606c548b61161390919063ffffffff16565b61161390919063ffffffff16565b61162990919063ffffffff16565b61163f90919063ffffffff16565b61165590919063ffffffff16565b905080831115610696576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068d9061226b565b60405180910390fd5b6106ab83606c5461161390919063ffffffff16565b606c81905550606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6106f761160b565b856040518363ffffffff1660e01b81526004016107159291906122cd565b6020604051808303816000875af1158015610734573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610758919061232e565b50505050565b606c5481565b600060019054906101000a900460ff168061078a575060008054906101000a900460ff16155b6107c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c0906123cd565b60405180910390fd5b60008060019054906101000a900460ff161590508015610819576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b61082484848461166b565b80156108455760008060016101000a81548160ff0219169083151502179055505b50505050565b61085361160b565b73ffffffffffffffffffffffffffffffffffffffff16610871610d11565b73ffffffffffffffffffffffffffffffffffffffff16146108c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108be90612439565b60405180910390fd5b80606860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61091361160b565b73ffffffffffffffffffffffffffffffffffffffff16610931610d11565b73ffffffffffffffffffffffffffffffffffffffff1614610987576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097e90612439565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff1614156109f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ee906124a5565b60405180910390fd5b80606760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000806000905060005b606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b8152600401610aa0919061210f565b602060405180830381865afa158015610abd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae191906122a0565b811015610bba576000606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663cb60f1bf86846040518363ffffffff1660e01b8152600401610b479291906122cd565b602060405180830381865afa158015610b64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b8891906122a0565b90506000610b9582611762565b90508084610ba391906124f4565b935050508080610bb29061254a565b915050610a45565b5080915050919050565b6000610bcf82611762565b9050919050565b610bfc81606d60008581526020019081526020016000205461161390919063ffffffff16565b606d6000848152602001908152602001600020819055505050565b606660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610c4561160b565b73ffffffffffffffffffffffffffffffffffffffff16610c63610d11565b73ffffffffffffffffffffffffffffffffffffffff1614610cb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb090612439565b60405180910390fd5b610cc36000611a69565b565b606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610d5081606b5461161390919063ffffffff16565b606b8190555050565b606a5481565b610d6761160b565b73ffffffffffffffffffffffffffffffffffffffff16610d85610d11565b73ffffffffffffffffffffffffffffffffffffffff1614610ddb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd290612439565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff161415610e4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e42906125df565b60405180910390fd5b80606960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610ee682611762565b905060008111610f2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f229061264b565b60405180910390fd5b610f4081606b5461161390919063ffffffff16565b606b81905550610f6c81606d60008581526020019081526020016000205461161390919063ffffffff16565b606d600084815260200190815260200160002081905550606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb610fc961160b565b836040518363ffffffff1660e01b8152600401610fe79291906122cd565b6020604051808303816000875af1158015611006573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102a919061232e565b505050565b606d6020528060005260406000206000915090505481565b606b5481565b6000805b606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b81526004016110ac919061210f565b602060405180830381865afa1580156110c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ed91906122a0565b81101561121e576000606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663cb60f1bf85846040518363ffffffff1660e01b81526004016111539291906122cd565b602060405180830381865afa158015611170573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119491906122a0565b905060006111a182611762565b90506111b884606b5461161390919063ffffffff16565b606b819055506111e484606d60008581526020019081526020016000205461161390919063ffffffff16565b606d600084815260200190815260200160002081905550808461120791906124f4565b9350505080806112169061254a565b915050611051565b508173ffffffffffffffffffffffffffffffffffffffff167f4ba54330f8090ac87ed0a0b470fd9c8a6bbec84bfe94f4fa7776d1dc27da9f9c826040516112659190611f11565b60405180910390a2606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6112b361160b565b836040518363ffffffff1660e01b81526004016112d19291906122cd565b6020604051808303816000875af11580156112f0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611314919061232e565b505050565b61132161160b565b73ffffffffffffffffffffffffffffffffffffffff1661133f610d11565b73ffffffffffffffffffffffffffffffffffffffff1614611395576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138c90612439565b60405180910390fd5b61271081106113d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d0906126b7565b60405180910390fd5b80606a8190555050565b6113eb61160b565b73ffffffffffffffffffffffffffffffffffffffff16611409610d11565b73ffffffffffffffffffffffffffffffffffffffff161461145f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145690612439565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156114cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c690612749565b60405180910390fd5b6114d881611a69565b50565b6114e361160b565b73ffffffffffffffffffffffffffffffffffffffff16611501610d11565b73ffffffffffffffffffffffffffffffffffffffff1614611557576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154e90612439565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff1614156115c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115be906124a5565b60405180910390fd5b80606660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b6000818361162191906124f4565b905092915050565b600081836116379190612769565b905092915050565b6000818361164d91906127f2565b905092915050565b600081836116639190612823565b905092915050565b600060019054906101000a900460ff1680611691575060008054906101000a900460ff16155b6116d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c7906123cd565b60405180910390fd5b60008060019054906101000a900460ff161590508015611720576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b611728611b2f565b611730611c08565b61173b848484611cf1565b801561175c5760008060016101000a81548160ff0219169083151502179055505b50505050565b600080606760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ab0d92dd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117f691906122a0565b9050600080606760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663971276ae866040518263ffffffff1660e01b81526004016118569190611f11565b608060405180830381865afa158015611873573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118979190612890565b93509350505060006118ee846118e064e8d4a510006118d260646118c4888a61162990919063ffffffff16565b61163f90919063ffffffff16565b61162990919063ffffffff16565b61163f90919063ffffffff16565b90506000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161194d919061210f565b602060405180830381865afa15801561196a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061198e91906122a0565b90506000611a1964e8d4a51000611a0b856119fd6127106119ef606a546127106119b89190612823565b6119e1606b546119d3606c548d61161390919063ffffffff16565b61161390919063ffffffff16565b61162990919063ffffffff16565b61163f90919063ffffffff16565b61162990919063ffffffff16565b61163f90919063ffffffff16565b9050606d6000898152602001908152602001600020548111611a3c576000611a5c565b606d60008981526020019081526020016000205481611a5b9190612823565b5b9650505050505050919050565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600060019054906101000a900460ff1680611b55575060008054906101000a900460ff16155b611b94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8b906123cd565b60405180910390fd5b60008060019054906101000a900460ff161590508015611be4576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b8015611c055760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680611c2e575060008054906101000a900460ff16155b611c6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c64906123cd565b60405180910390fd5b60008060019054906101000a900460ff161590508015611cbd576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b611ccd611cc861160b565b611a69565b8015611cee5760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680611d17575060008054906101000a900460ff16155b611d56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4d906123cd565b60405180910390fd5b60008060019054906101000a900460ff161590508015611da6576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6127108210611dea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de1906126b7565b60405180910390fd5b83606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082606960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081606a819055508015611e945760008060016101000a81548160ff0219169083151502179055505b50505050565b600080fd5b6000819050919050565b611eb281611e9f565b8114611ebd57600080fd5b50565b600081359050611ecf81611ea9565b92915050565b600060208284031215611eeb57611eea611e9a565b5b6000611ef984828501611ec0565b91505092915050565b611f0b81611e9f565b82525050565b6000602082019050611f266000830184611f02565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611f5782611f2c565b9050919050565b611f6781611f4c565b8114611f7257600080fd5b50565b600081359050611f8481611f5e565b92915050565b600080600060608486031215611fa357611fa2611e9a565b5b6000611fb186828701611f75565b9350506020611fc286828701611f75565b9250506040611fd386828701611ec0565b9150509250925092565b600060208284031215611ff357611ff2611e9a565b5b600061200184828501611f75565b91505092915050565b6000806040838503121561202157612020611e9a565b5b600061202f85828601611ec0565b925050602061204085828601611ec0565b9150509250929050565b6000819050919050565b600061206f61206a61206584611f2c565b61204a565b611f2c565b9050919050565b600061208182612054565b9050919050565b600061209382612076565b9050919050565b6120a381612088565b82525050565b60006020820190506120be600083018461209a565b92915050565b60006120cf82612076565b9050919050565b6120df816120c4565b82525050565b60006020820190506120fa60008301846120d6565b92915050565b61210981611f4c565b82525050565b60006020820190506121246000830184612100565b92915050565b600061213582612076565b9050919050565b6121458161212a565b82525050565b6000602082019050612160600083018461213c565b92915050565b600061217182612076565b9050919050565b61218181612166565b82525050565b600060208201905061219c6000830184612178565b92915050565b600082825260208201905092915050565b7f6e6f207065726d697373696f6e00000000000000000000000000000000000000600082015250565b60006121e9600d836121a2565b91506121f4826121b3565b602082019050919050565b60006020820190508181036000830152612218816121dc565b9050919050565b7f616d6f756e74206572726f720000000000000000000000000000000000000000600082015250565b6000612255600c836121a2565b91506122608261221f565b602082019050919050565b6000602082019050818103600083015261228481612248565b9050919050565b60008151905061229a81611ea9565b92915050565b6000602082840312156122b6576122b5611e9a565b5b60006122c48482850161228b565b91505092915050565b60006040820190506122e26000830185612100565b6122ef6020830184611f02565b9392505050565b60008115159050919050565b61230b816122f6565b811461231657600080fd5b50565b60008151905061232881612302565b92915050565b60006020828403121561234457612343611e9a565b5b600061235284828501612319565b91505092915050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b60006123b7602e836121a2565b91506123c28261235b565b604082019050919050565b600060208201905081810360008301526123e6816123aa565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006124236020836121a2565b915061242e826123ed565b602082019050919050565b6000602082019050818103600083015261245281612416565b9050919050565b7f4e46542061646472657373206572726f72000000000000000000000000000000600082015250565b600061248f6011836121a2565b915061249a82612459565b602082019050919050565b600060208201905081810360008301526124be81612482565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006124ff82611e9f565b915061250a83611e9f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561253f5761253e6124c5565b5b828201905092915050565b600061255582611e9f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612588576125876124c5565b5b600182019050919050565b7f6c6f636b2061646472657373206572726f720000000000000000000000000000600082015250565b60006125c96012836121a2565b91506125d482612593565b602082019050919050565b600060208201905081810360008301526125f8816125bc565b9050919050565b7f6e6f20626f6e7573000000000000000000000000000000000000000000000000600082015250565b60006126356008836121a2565b9150612640826125ff565b602082019050919050565b6000602082019050818103600083015261266481612628565b9050919050565b7f726174696f206572726f72000000000000000000000000000000000000000000600082015250565b60006126a1600b836121a2565b91506126ac8261266b565b602082019050919050565b600060208201905081810360008301526126d081612694565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006127336026836121a2565b915061273e826126d7565b604082019050919050565b6000602082019050818103600083015261276281612726565b9050919050565b600061277482611e9f565b915061277f83611e9f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156127b8576127b76124c5565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006127fd82611e9f565b915061280883611e9f565b925082612818576128176127c3565b5b828204905092915050565b600061282e82611e9f565b915061283983611e9f565b92508282101561284c5761284b6124c5565b5b828203905092915050565b600060ff82169050919050565b61286d81612857565b811461287857600080fd5b50565b60008151905061288a81612864565b92915050565b600080600080608085870312156128aa576128a9611e9a565b5b60006128b88782880161287b565b94505060206128c98782880161228b565b93505060406128da8782880161228b565b92505060606128eb8782880161228b565b9150509295919450925056fea2646970667358221220fb870fd56df8a0e07a2399fd0f54b57d79a18a8d269b28cb83850915f8c348c564736f6c634300080a0033