ETH Price: $2,625.35 (+1.09%)

Contract

0x1981f583D723bcbe7A0b41854afaDf7Fc287f11C
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Un Stake208357542024-09-26 15:41:4721 days ago1727365307IN
0x1981f583...Fc287f11C
0 ETH0.0106620837.60317718
Un Stake207835242024-09-19 8:44:1129 days ago1726735451IN
0x1981f583...Fc287f11C
0 ETH0.0060517529.98800411
Withdraw ERC20207315602024-09-12 2:30:3536 days ago1726108235IN
0x1981f583...Fc287f11C
0 ETH0.000180571.90616459
Un Stake207315582024-09-12 2:30:1136 days ago1726108211IN
0x1981f583...Fc287f11C
0 ETH0.000209232.46699407
Withdraw ERC20207315542024-09-12 2:29:2336 days ago1726108163IN
0x1981f583...Fc287f11C
0 ETH0.000194862.05706859
Un Stake207315522024-09-12 2:28:5936 days ago1726108139IN
0x1981f583...Fc287f11C
0 ETH0.000201262.37307312
Withdraw ERC20207315472024-09-12 2:27:5936 days ago1726108079IN
0x1981f583...Fc287f11C
0 ETH0.000222212.3457695
Un Stake207315462024-09-12 2:27:4736 days ago1726108067IN
0x1981f583...Fc287f11C
0 ETH0.000218662.57825543
Withdraw ERC20207315432024-09-12 2:27:1136 days ago1726108031IN
0x1981f583...Fc287f11C
0 ETH0.000222462.34811959
Un Stake207315412024-09-12 2:26:4736 days ago1726108007IN
0x1981f583...Fc287f11C
0 ETH0.000200112.35947538
Withdraw ERC20207315372024-09-12 2:25:5936 days ago1726107959IN
0x1981f583...Fc287f11C
0 ETH0.000263762.78433547
Un Stake207315322024-09-12 2:24:5936 days ago1726107899IN
0x1981f583...Fc287f11C
0 ETH0.000214592.53022358
Withdraw ERC20207313912024-09-12 1:56:2336 days ago1726106183IN
0x1981f583...Fc287f11C
0 ETH0.00021892.31079749
Un Stake207313892024-09-12 1:55:5936 days ago1726106159IN
0x1981f583...Fc287f11C
0 ETH0.000192212.266302
Withdraw ERC20207313852024-09-12 1:55:1136 days ago1726106111IN
0x1981f583...Fc287f11C
0 ETH0.000203882.15230075
Un Stake207313832024-09-12 1:54:4736 days ago1726106087IN
0x1981f583...Fc287f11C
0 ETH0.000184962.18089863
Withdraw ERC20207313782024-09-12 1:53:4736 days ago1726106027IN
0x1981f583...Fc287f11C
0 ETH0.000199432.10525178
Un Stake207313762024-09-12 1:53:2336 days ago1726106003IN
0x1981f583...Fc287f11C
0 ETH0.000164391.93828595
Withdraw ERC20207313722024-09-12 1:52:3536 days ago1726105955IN
0x1981f583...Fc287f11C
0 ETH0.000214182.26066669
Un Stake207313702024-09-12 1:52:1136 days ago1726105931IN
0x1981f583...Fc287f11C
0 ETH0.000207092.44183278
Withdraw ERC20207313672024-09-12 1:51:3536 days ago1726105895IN
0x1981f583...Fc287f11C
0 ETH0.000201252.12424122
Un Stake207313652024-09-12 1:51:1136 days ago1726105871IN
0x1981f583...Fc287f11C
0 ETH0.000161421.90329963
Withdraw ERC20207313532024-09-12 1:48:4736 days ago1726105727IN
0x1981f583...Fc287f11C
0 ETH0.000199592.10674406
Un Stake207313512024-09-12 1:48:2336 days ago1726105703IN
0x1981f583...Fc287f11C
0 ETH0.002239922.19285473
Un Stake207282812024-09-11 15:31:3536 days ago1726068695IN
0x1981f583...Fc287f11C
0 ETH0.0111301210.89622368
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
YgmeStaking

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

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

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

abstract contract YgmeStakingDomain {
    struct StakingData {
        address owner;
        bool stakedState;
        uint128 startTime;
        uint128 endTime;
    }

    event Staking(
        address indexed account,
        uint256 indexed tokenId,
        address indexed nftContract,
        uint256 startTime,
        uint256 endTime,
        uint256 pledgeType
    );

    event WithdrawERC20(uint256 orderId, address account, uint256 amount);
}

contract YgmeStaking is
    YgmeStakingDomain,
    Pausable,
    Ownable,
    ERC721Holder,
    ReentrancyGuard
{
    using SafeERC20 for IERC20;
    using ECDSA for bytes32;

    uint64 public constant ONE_CYCLE = 1 days;

    uint64[3] private stakingPeriods;

    IERC721 public immutable ygme;

    IERC20 public immutable ygio;

    address private withdrawSigner;

    mapping(uint256 => StakingData) public stakingDatas;

    mapping(address => uint256[]) private stakingTokenIds;

    mapping(uint256 => bool) public orderIsInvalid;

    uint128 public accountTotal;

    uint128 public ygmeTotal;

    constructor(address _ygme, address _ygio, address _withdrawSigner) {
        ygme = IERC721(_ygme);
        ygio = IERC20(_ygio);
        withdrawSigner = _withdrawSigner;
        stakingPeriods = [30 * ONE_CYCLE, 60 * ONE_CYCLE, 90 * ONE_CYCLE];
    }

    function setPause() external onlyOwner {
        if (!paused()) {
            _pause();
        } else {
            _unpause();
        }
    }

    function setStakingPeriods(uint64[3] calldata _days) external onlyOwner {
        for (uint i = 0; i < _days.length; i++) {
            stakingPeriods[i] = _days[i] * ONE_CYCLE;
        }
    }

    function setWithdrawSigner(address _withdrawSigner) external onlyOwner {
        withdrawSigner = _withdrawSigner;
    }

    function getStakingTokenIds(
        address _account
    ) external view returns (uint256[] memory) {
        return stakingTokenIds[_account];
    }

    function getStakingPeriods()
        external
        view
        onlyOwner
        returns (uint64[3] memory)
    {
        return stakingPeriods;
    }

    function getWithdrawSigner() external view onlyOwner returns (address) {
        return withdrawSigner;
    }

    function staking(
        uint256[] calldata _tokenIds,
        uint256 _stakeDays
    ) external whenNotPaused nonReentrant returns (bool) {
        uint256 length = _tokenIds.length;
        uint256 _stakeTime = _stakeDays * ONE_CYCLE;
        address _account = _msgSender();

        require(length > 0, "Invalid tokenIds");

        require(
            _stakeTime == stakingPeriods[0] ||
                _stakeTime == stakingPeriods[1] ||
                _stakeTime == stakingPeriods[2],
            "Invalid stake time"
        );

        if (stakingTokenIds[_account].length == 0) {
            unchecked {
                accountTotal += 1;
            }
        }

        for (uint256 i = 0; i < length; ++i) {
            uint256 _tokenId = _tokenIds[i];

            require(!stakingDatas[_tokenId].stakedState, "Invalid stake state");

            require(ygme.ownerOf(_tokenId) == _account, "Invalid owner");

            StakingData memory _data = StakingData({
                owner: _account,
                stakedState: true,
                startTime: uint128(block.timestamp),
                endTime: uint128(block.timestamp + _stakeTime)
            });

            stakingDatas[_tokenId] = _data;

            if (stakingTokenIds[_account].length == 0) {
                stakingTokenIds[_account] = [_tokenId];
            } else {
                stakingTokenIds[_account].push(_tokenId);
            }

            ygme.safeTransferFrom(_account, address(this), _tokenId);

            emit Staking(
                _account,
                _tokenId,
                address(ygme),
                _data.startTime,
                _data.endTime,
                1
            );
        }

        unchecked {
            ygmeTotal += uint128(length);
        }

        return true;
    }

    function unStake(
        uint256[] calldata _tokenIds
    ) external whenNotPaused nonReentrant returns (bool) {
        uint256 length = _tokenIds.length;

        address _account = _msgSender();

        require(length > 0, "Invalid tokenIds");

        for (uint256 i = 0; i < length; ++i) {
            uint256 _tokenId = _tokenIds[i];

            StakingData memory _data = stakingDatas[_tokenId];

            require(_data.owner == _account, "Invalid account");

            require(_data.stakedState, "Invalid stake state");

            require(block.timestamp >= _data.endTime, "Too early to unStake");

            uint256 _len = stakingTokenIds[_account].length;

            for (uint256 j = 0; j < _len; ++j) {
                if (stakingTokenIds[_account][j] == _tokenId) {
                    stakingTokenIds[_account][j] = stakingTokenIds[_account][
                        _len - 1
                    ];
                    stakingTokenIds[_account].pop();
                    break;
                }
            }

            emit Staking(
                _account,
                _tokenId,
                address(ygme),
                _data.startTime,
                block.timestamp,
                2
            );

            delete stakingDatas[_tokenId];

            ygme.safeTransferFrom(address(this), _account, _tokenId);
        }

        if (stakingTokenIds[_account].length == 0) {
            accountTotal -= 1;
        }

        ygmeTotal -= uint128(length);

        return true;
    }

    function unStakeOnlyOwner(uint256[] calldata _tokenIds) external onlyOwner {
        uint256 length = _tokenIds.length;

        for (uint256 i = 0; i < length; ++i) {
            uint256 _tokenId = _tokenIds[i];

            StakingData memory _data = stakingDatas[_tokenId];

            address _account = _data.owner;

            require(_data.stakedState, "Invalid stake state");

            uint256 _len = stakingTokenIds[_account].length;

            for (uint256 j = 0; j < _len; ++j) {
                if (stakingTokenIds[_account][j] == _tokenId) {
                    stakingTokenIds[_account][j] = stakingTokenIds[_account][
                        _len - 1
                    ];

                    stakingTokenIds[_account].pop();

                    break;
                }
            }

            emit Staking(
                _account,
                _tokenId,
                address(ygme),
                _data.startTime,
                block.timestamp,
                3
            );

            delete stakingDatas[_tokenId];

            ygme.safeTransferFrom(address(this), _account, _tokenId);

            if (stakingTokenIds[_account].length == 0) {
                accountTotal -= 1;
            }
        }

        ygmeTotal -= uint128(length);
    }

    // TODO: data = abi.encode(orderId, account, amount)
    function withdrawERC20(
        bytes calldata data,
        bytes calldata signature
    ) external nonReentrant returns (bool) {
        require(data.length > 0, "Invalid data");

        bytes32 hash = keccak256(data);

        _verifySignature(hash, signature);

        (uint256 orderId, address account, uint256 amount) = abi.decode(
            data,
            (uint256, address, uint256)
        );

        require(!orderIsInvalid[orderId], "Invalid orderId");

        require(account == _msgSender(), "Invalid account");

        orderIsInvalid[orderId] = true;

        ygio.safeTransfer(account, amount);

        emit WithdrawERC20(orderId, account, amount);

        return true;
    }

    function _verifySignature(
        bytes32 hash,
        bytes calldata signature
    ) internal view {
        hash = hash.toEthSignedMessageHash();

        address signer = hash.recover(signature);

        require(signer == withdrawSigner, "Invalid signature");
    }
}

File 2 of 16 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 3 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (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() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

File 4 of 16 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 6 of 16 : ERC721Holder.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol)

pragma solidity ^0.8.0;

import "../IERC721Receiver.sol";

/**
 * @dev Implementation of the {IERC721Receiver} interface.
 *
 * Accepts all token transfers.
 * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.
 */
contract ERC721Holder is IERC721Receiver {
    /**
     * @dev See {IERC721Receiver-onERC721Received}.
     *
     * Always returns `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address,
        address,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC721Received.selector;
    }
}

File 7 of 16 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

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

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

File 13 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 14 of 16 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 15 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 16 of 16 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_ygme","type":"address"},{"internalType":"address","name":"_ygio","type":"address"},{"internalType":"address","name":"_withdrawSigner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"nftContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"pledgeType","type":"uint256"}],"name":"Staking","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"orderId","type":"uint256"},{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawERC20","type":"event"},{"inputs":[],"name":"ONE_CYCLE","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accountTotal","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStakingPeriods","outputs":[{"internalType":"uint64[3]","name":"","type":"uint64[3]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getStakingTokenIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWithdrawSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"orderIsInvalid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64[3]","name":"_days","type":"uint64[3]"}],"name":"setStakingPeriods","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_withdrawSigner","type":"address"}],"name":"setWithdrawSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint256","name":"_stakeDays","type":"uint256"}],"name":"staking","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakingDatas","outputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"bool","name":"stakedState","type":"bool"},{"internalType":"uint128","name":"startTime","type":"uint128"},{"internalType":"uint128","name":"endTime","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"unStake","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"unStakeOnlyOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"withdrawERC20","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ygio","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ygme","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ygmeTotal","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"}]

60c06040523480156200001157600080fd5b5060405162004b2a38038062004b2a8339818101604052810190620000379190620003d2565b60008060006101000a81548160ff0219169083151502179055506200007162000065620001c760201b60201c565b620001cf60201b60201c565b600180819055508273ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508173ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff168152505080600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550604051806060016040528062015180601e6200013e919062000471565b67ffffffffffffffff1667ffffffffffffffff16815260200162015180603c62000169919062000471565b67ffffffffffffffff1667ffffffffffffffff16815260200162015180605a62000194919062000471565b67ffffffffffffffff1667ffffffffffffffff168152506002906003620001bd92919062000294565b50505050620004b7565b600033905090565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8260038001600490048101928215620003365791602002820160005b83821115620002fe57835183826101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509260200192600801602081600701049283019260010302620002b0565b8015620003345782816101000a81549067ffffffffffffffff0219169055600801602081600701049283019260010302620002fe565b505b50905062000345919062000349565b5090565b5b80821115620003645760008160009055506001016200034a565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200039a826200036d565b9050919050565b620003ac816200038d565b8114620003b857600080fd5b50565b600081519050620003cc81620003a1565b92915050565b600080600060608486031215620003ee57620003ed62000368565b5b6000620003fe86828701620003bb565b93505060206200041186828701620003bb565b92505060406200042486828701620003bb565b9150509250925092565b600067ffffffffffffffff82169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006200047e826200042e565b91506200048b836200042e565b92508282026200049b816200042e565b9150808214620004b057620004af62000442565b5b5092915050565b60805160a05161461562000515600039600081816104d701526106930152600081816108e501528181610cf901528181610e1f0152818161154a0152818161167001528181611c1101528181611f7d015261200c01526146156000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c80637ccbfe7c116100b8578063d11c31e81161007c578063d11c31e81461036a578063d431b1ac14610388578063efff2ae514610392578063f2fde38b146103c2578063f8c4bbf2146103de578063fa234a52146103fc57610142565b80637ccbfe7c146102c6578063888a8d0a146102e25780638c181f00146102fe5780638da5cb5b1461031c578063b10dcc931461033a57610142565b806340edabeb1161010a57806340edabeb1461021657806341ad2077146102325780635c975abb146102625780636232d83f14610280578063715018a61461029e57806376292e53146102a857610142565b8063150b7a02146101475780631738ad861461017757806318e92841146101aa578063243e0ab0146101c857806324ca02a3146101f8575b600080fd5b610161600480360381019061015c9190612d9b565b61042c565b60405161016e9190612e59565b60405180910390f35b610191600480360381019061018c9190612e74565b610440565b6040516101a19493929190612ef6565b60405180910390f35b6101b26104d5565b6040516101bf9190612f9a565b60405180910390f35b6101e260048036038101906101dd9190613015565b6104f9565b6040516101ef9190613096565b60405180910390f35b61020061072a565b60405161020d91906130b1565b60405180910390f35b610230600480360381019061022b91906130ee565b61074c565b005b61024c6004803603810190610247919061311b565b6107f0565b6040516102599190613206565b60405180910390f35b61026a610887565b6040516102779190613096565b60405180910390f35b61028861089d565b6040516102959190613228565b60405180910390f35b6102a66108cf565b005b6102b06108e3565b6040516102bd9190613264565b60405180910390f35b6102e060048036038101906102db919061311b565b610907565b005b6102fc60048036038101906102f791906132d5565b610953565b005b610306610fd9565b60405161031391906133e1565b60405180910390f35b610324611060565b6040516103319190613228565b60405180910390f35b610354600480360381019061034f91906132d5565b611089565b6040516103619190613096565b60405180910390f35b610372611838565b60405161037f919061340b565b60405180910390f35b61039061183f565b005b6103ac60048036038101906103a79190612e74565b61186b565b6040516103b99190613096565b60405180910390f35b6103dc60048036038101906103d7919061311b565b61188b565b005b6103e661190e565b6040516103f391906130b1565b60405180910390f35b61041660048036038101906104119190613426565b611930565b6040516104239190613096565b60405180910390f35b600063150b7a0260e01b9050949350505050565b60046020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060000160149054906101000a900460ff16908060010160009054906101000a90046fffffffffffffffffffffffffffffffff16908060010160109054906101000a90046fffffffffffffffffffffffffffffffff16905084565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000610503612121565b60008585905011610549576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610540906134e3565b60405180910390fd5b6000858560405161055b929190613533565b60405180910390209050610570818585612170565b60008060008888810190610584919061358a565b9250925092506006600084815260200190815260200160002060009054906101000a900460ff16156105eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105e290613629565b60405180910390fd5b6105f361226c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610660576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065790613695565b60405180910390fd5b60016006600085815260200190815260200160002060006101000a81548160ff0219169083151502179055506106d782827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166122749092919063ffffffff16565b7f357f70a556e9cc649ac2f7187a705593ce01058fcc222baca5b0e3fb68c5bbf283838360405161070a939291906136c4565b60405180910390a160019450505050506107226122fa565b949350505050565b600760109054906101000a90046fffffffffffffffffffffffffffffffff1681565b610754612303565b60005b60038110156107ec5762015180828260038110610777576107766136fb565b5b60200201602081019061078a9190613756565b61079491906137b2565b600282600381106107a8576107a76136fb565b5b600491828204019190066008026101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555080806107e4906137ef565b915050610757565b5050565b6060600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548060200260200160405190810160405280929190818152602001828054801561087b57602002820191906000526020600020905b815481526020019060010190808311610867575b50505050509050919050565b60008060009054906101000a900460ff16905090565b60006108a7612303565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6108d7612303565b6108e16000612381565b565b7f000000000000000000000000000000000000000000000000000000000000000081565b61090f612303565b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61095b612303565b600082829050905060005b81811015610f70576000848483818110610983576109826136fb565b5b9050602002013590506000600460008381526020019081526020016000206040518060800160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900460ff161515151581526020016001820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016001820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168152505090506000816000015190508160200151610b00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af790613883565b60405180910390fd5b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050905060005b81811015610cf65784600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110610ba457610ba36136fb565b5b906000526020600020015403610ce557600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600183610c0091906138a3565b81548110610c1157610c106136fb565b5b9060005260206000200154600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110610c6d57610c6c6136fb565b5b9060005260206000200181905550600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480610cca57610cc96138d7565b5b60019003818190600052602060002001600090559055610cf6565b80610cef906137ef565b9050610b4a565b507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16848373ffffffffffffffffffffffffffffffffffffffff167fe47225b875de4852fd470382456b118594ebcb4992992c55659271dcb9d05c8a8660400151426003604051610d7e93929190613972565b60405180910390a460046000858152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a81549060ff02191690556001820160006101000a8154906fffffffffffffffffffffffffffffffff02191690556001820160106101000a8154906fffffffffffffffffffffffffffffffff021916905550507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166342842e0e3084876040518463ffffffff1660e01b8152600401610e7a939291906139a9565b600060405180830381600087803b158015610e9457600080fd5b505af1158015610ea8573d6000803e3d6000fd5b505050506000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905003610f5b576001600760008282829054906101000a90046fffffffffffffffffffffffffffffffff16610f2491906139e0565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055505b5050505080610f69906137ef565b9050610966565b5080600760108282829054906101000a90046fffffffffffffffffffffffffffffffff16610f9e91906139e0565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550505050565b610fe1612b21565b610fe9612303565b6002600380602002604051908101604052809291908260038015611056576020028201916000905b82829054906101000a900467ffffffffffffffff1667ffffffffffffffff16815260200190600801906020826007010492830192600103820291508084116110115790505b5050505050905090565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000611093612446565b61109b612121565b600083839050905060006110ad61226c565b9050600082116110f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e990613a70565b60405180910390fd5b60005b82811015611711576000868683818110611112576111116136fb565b5b9050602002013590506000600460008381526020019081526020016000206040518060800160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900460ff161515151581526020016001820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016001820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168152505090508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146112b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ab90613695565b60405180910390fd5b80602001516112f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ef90613883565b60405180910390fd5b80606001516fffffffffffffffffffffffffffffffff16421015611351576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134890613adc565b60405180910390fd5b6000600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050905060005b818110156115475783600560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106113f5576113f46136fb565b5b90600052602060002001540361153657600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060018361145191906138a3565b81548110611462576114616136fb565b5b9060005260206000200154600560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106114be576114bd6136fb565b5b9060005260206000200181905550600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548061151b5761151a6138d7565b5b60019003818190600052602060002001600090559055611547565b80611540906137ef565b905061139b565b507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16838673ffffffffffffffffffffffffffffffffffffffff167fe47225b875de4852fd470382456b118594ebcb4992992c55659271dcb9d05c8a85604001514260026040516115cf93929190613b37565b60405180910390a460046000848152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a81549060ff02191690556001820160006101000a8154906fffffffffffffffffffffffffffffffff02191690556001820160106101000a8154906fffffffffffffffffffffffffffffffff021916905550507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166342842e0e3087866040518463ffffffff1660e01b81526004016116cb939291906139a9565b600060405180830381600087803b1580156116e557600080fd5b505af11580156116f9573d6000803e3d6000fd5b505050505050508061170a906137ef565b90506110f5565b506000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050036117c1576001600760008282829054906101000a90046fffffffffffffffffffffffffffffffff1661178a91906139e0565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055505b81600760108282829054906101000a90046fffffffffffffffffffffffffffffffff166117ee91906139e0565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001925050506118326122fa565b92915050565b6201518081565b611847612303565b61184f610887565b6118605761185b612490565b611869565b6118686124f2565b5b565b60066020528060005260406000206000915054906101000a900460ff1681565b611893612303565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611902576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f990613be0565b60405180910390fd5b61190b81612381565b50565b600760009054906101000a90046fffffffffffffffffffffffffffffffff1681565b600061193a612446565b611942612121565b600084849050905060006201518067ffffffffffffffff16846119659190613c00565b9050600061197161226c565b9050600083116119b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ad90613a70565b60405180910390fd5b60026000600381106119cb576119ca6136fb565b5b600491828204019190066008029054906101000a900467ffffffffffffffff1667ffffffffffffffff16821480611a3f57506002600160038110611a1257611a116136fb565b5b600491828204019190066008029054906101000a900467ffffffffffffffff1667ffffffffffffffff1682145b80611a86575060028060038110611a5957611a586136fb565b5b600491828204019190066008029054906101000a900467ffffffffffffffff1667ffffffffffffffff1682145b611ac5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abc90613c8e565b60405180910390fd5b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905003611b6b576001600760008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055505b60005b838110156120b0576000888883818110611b8b57611b8a6136fb565b5b9050602002013590506004600082815260200190815260200160002060000160149054906101000a900460ff1615611bf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bef90613883565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401611c689190613cae565b602060405180830381865afa158015611c85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ca99190613cde565b73ffffffffffffffffffffffffffffffffffffffff1614611cff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf690613d57565b60405180910390fd5b600060405180608001604052808573ffffffffffffffffffffffffffffffffffffffff168152602001600115158152602001426fffffffffffffffffffffffffffffffff1681526020018642611d559190613d77565b6fffffffffffffffffffffffffffffffff168152509050806004600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548160ff02191690831515021790555060408201518160010160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060608201518160010160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055509050506000600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905003611f1457604051806020016040528083815250600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020906001611f0e929190612b43565b50611f7b565b600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208290806001815401808255809150506001900390600052602060002001600090919091909150555b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166342842e0e8530856040518463ffffffff1660e01b8152600401611fd8939291906139a9565b600060405180830381600087803b158015611ff257600080fd5b505af1158015612006573d6000803e3d6000fd5b505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16828573ffffffffffffffffffffffffffffffffffffffff167fe47225b875de4852fd470382456b118594ebcb4992992c55659271dcb9d05c8a84604001518560600151600160405161209593929190613de6565b60405180910390a45050806120a9906137ef565b9050611b6e565b5082600760108282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001935050505061211a6122fa565b9392505050565b600260015403612166576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215d90613e69565b60405180910390fd5b6002600181905550565b61217983612554565b925060006121d483838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508561258490919063ffffffff16565b9050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612266576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225d90613ed5565b60405180910390fd5b50505050565b600033905090565b6122f58363a9059cbb60e01b8484604051602401612293929190613ef5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506125ab565b505050565b60018081905550565b61230b61226c565b73ffffffffffffffffffffffffffffffffffffffff16612329611060565b73ffffffffffffffffffffffffffffffffffffffff161461237f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237690613f6a565b60405180910390fd5b565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61244e610887565b1561248e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248590613fd6565b60405180910390fd5b565b612498612446565b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586124db61226c565b6040516124e89190613228565b60405180910390a1565b6124fa612672565b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61253d61226c565b60405161254a9190613228565b60405180910390a1565b6000816040516020016125679190614078565b604051602081830303815290604052805190602001209050919050565b600080600061259385856126bb565b915091506125a08161270c565b819250505092915050565b600061260d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166128729092919063ffffffff16565b905060008151111561266d578080602001905181019061262d91906140ca565b61266c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266390614169565b60405180910390fd5b5b505050565b61267a610887565b6126b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b0906141d5565b60405180910390fd5b565b60008060418351036126fc5760008060006020860151925060408601519150606086015160001a90506126f08782858561288a565b94509450505050612705565b60006002915091505b9250929050565b600060048111156127205761271f6141f5565b5b816004811115612733576127326141f5565b5b031561286f576001600481111561274d5761274c6141f5565b5b8160048111156127605761275f6141f5565b5b036127a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279790614270565b60405180910390fd5b600260048111156127b4576127b36141f5565b5b8160048111156127c7576127c66141f5565b5b03612807576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127fe906142dc565b60405180910390fd5b6003600481111561281b5761281a6141f5565b5b81600481111561282e5761282d6141f5565b5b0361286e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128659061436e565b60405180910390fd5b5b50565b6060612881848460008561296c565b90509392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156128c5576000600391509150612963565b6000600187878787604051600081526020016040526040516128ea94939291906143b9565b6020604051602081039080840390855afa15801561290c573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361295a57600060019250925050612963565b80600092509250505b94509492505050565b6060824710156129b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a890614470565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516129da91906144f6565b60006040518083038185875af1925050503d8060008114612a17576040519150601f19603f3d011682016040523d82523d6000602084013e612a1c565b606091505b5091509150612a2d87838387612a39565b92505050949350505050565b60608315612a9b576000835103612a9357612a5385612aae565b612a92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a8990614559565b60405180910390fd5b5b829050612aa6565b612aa58383612ad1565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115612ae45781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1891906145bd565b60405180910390fd5b6040518060600160405280600390602082028036833780820191505090505090565b828054828255906000526020600020908101928215612b7f579160200282015b82811115612b7e578251825591602001919060010190612b63565b5b509050612b8c9190612b90565b5090565b5b80821115612ba9576000816000905550600101612b91565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612bec82612bc1565b9050919050565b612bfc81612be1565b8114612c0757600080fd5b50565b600081359050612c1981612bf3565b92915050565b6000819050919050565b612c3281612c1f565b8114612c3d57600080fd5b50565b600081359050612c4f81612c29565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612ca882612c5f565b810181811067ffffffffffffffff82111715612cc757612cc6612c70565b5b80604052505050565b6000612cda612bad565b9050612ce68282612c9f565b919050565b600067ffffffffffffffff821115612d0657612d05612c70565b5b612d0f82612c5f565b9050602081019050919050565b82818337600083830152505050565b6000612d3e612d3984612ceb565b612cd0565b905082815260208101848484011115612d5a57612d59612c5a565b5b612d65848285612d1c565b509392505050565b600082601f830112612d8257612d81612c55565b5b8135612d92848260208601612d2b565b91505092915050565b60008060008060808587031215612db557612db4612bb7565b5b6000612dc387828801612c0a565b9450506020612dd487828801612c0a565b9350506040612de587828801612c40565b925050606085013567ffffffffffffffff811115612e0657612e05612bbc565b5b612e1287828801612d6d565b91505092959194509250565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612e5381612e1e565b82525050565b6000602082019050612e6e6000830184612e4a565b92915050565b600060208284031215612e8a57612e89612bb7565b5b6000612e9884828501612c40565b91505092915050565b612eaa81612be1565b82525050565b60008115159050919050565b612ec581612eb0565b82525050565b60006fffffffffffffffffffffffffffffffff82169050919050565b612ef081612ecb565b82525050565b6000608082019050612f0b6000830187612ea1565b612f186020830186612ebc565b612f256040830185612ee7565b612f326060830184612ee7565b95945050505050565b6000819050919050565b6000612f60612f5b612f5684612bc1565b612f3b565b612bc1565b9050919050565b6000612f7282612f45565b9050919050565b6000612f8482612f67565b9050919050565b612f9481612f79565b82525050565b6000602082019050612faf6000830184612f8b565b92915050565b600080fd5b600080fd5b60008083601f840112612fd557612fd4612c55565b5b8235905067ffffffffffffffff811115612ff257612ff1612fb5565b5b60208301915083600182028301111561300e5761300d612fba565b5b9250929050565b6000806000806040858703121561302f5761302e612bb7565b5b600085013567ffffffffffffffff81111561304d5761304c612bbc565b5b61305987828801612fbf565b9450945050602085013567ffffffffffffffff81111561307c5761307b612bbc565b5b61308887828801612fbf565b925092505092959194509250565b60006020820190506130ab6000830184612ebc565b92915050565b60006020820190506130c66000830184612ee7565b92915050565b6000819050826020600302820111156130e8576130e7612fba565b5b92915050565b60006060828403121561310457613103612bb7565b5b6000613112848285016130cc565b91505092915050565b60006020828403121561313157613130612bb7565b5b600061313f84828501612c0a565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61317d81612c1f565b82525050565b600061318f8383613174565b60208301905092915050565b6000602082019050919050565b60006131b382613148565b6131bd8185613153565b93506131c883613164565b8060005b838110156131f95781516131e08882613183565b97506131eb8361319b565b9250506001810190506131cc565b5085935050505092915050565b6000602082019050818103600083015261322081846131a8565b905092915050565b600060208201905061323d6000830184612ea1565b92915050565b600061324e82612f67565b9050919050565b61325e81613243565b82525050565b60006020820190506132796000830184613255565b92915050565b60008083601f84011261329557613294612c55565b5b8235905067ffffffffffffffff8111156132b2576132b1612fb5565b5b6020830191508360208202830111156132ce576132cd612fba565b5b9250929050565b600080602083850312156132ec576132eb612bb7565b5b600083013567ffffffffffffffff81111561330a57613309612bbc565b5b6133168582860161327f565b92509250509250929050565b600060039050919050565b600081905092915050565b6000819050919050565b600067ffffffffffffffff82169050919050565b61335f81613342565b82525050565b60006133718383613356565b60208301905092915050565b6000602082019050919050565b61339381613322565b61339d818461332d565b92506133a882613338565b8060005b838110156133d95781516133c08782613365565b96506133cb8361337d565b9250506001810190506133ac565b505050505050565b60006060820190506133f6600083018461338a565b92915050565b61340581613342565b82525050565b600060208201905061342060008301846133fc565b92915050565b60008060006040848603121561343f5761343e612bb7565b5b600084013567ffffffffffffffff81111561345d5761345c612bbc565b5b6134698682870161327f565b9350935050602061347c86828701612c40565b9150509250925092565b600082825260208201905092915050565b7f496e76616c696420646174610000000000000000000000000000000000000000600082015250565b60006134cd600c83613486565b91506134d882613497565b602082019050919050565b600060208201905081810360008301526134fc816134c0565b9050919050565b600081905092915050565b600061351a8385613503565b9350613527838584612d1c565b82840190509392505050565b600061354082848661350e565b91508190509392505050565b600061355782612bc1565b9050919050565b6135678161354c565b811461357257600080fd5b50565b6000813590506135848161355e565b92915050565b6000806000606084860312156135a3576135a2612bb7565b5b60006135b186828701612c40565b93505060206135c286828701613575565b92505060406135d386828701612c40565b9150509250925092565b7f496e76616c6964206f7264657249640000000000000000000000000000000000600082015250565b6000613613600f83613486565b915061361e826135dd565b602082019050919050565b6000602082019050818103600083015261364281613606565b9050919050565b7f496e76616c6964206163636f756e740000000000000000000000000000000000600082015250565b600061367f600f83613486565b915061368a82613649565b602082019050919050565b600060208201905081810360008301526136ae81613672565b9050919050565b6136be81612c1f565b82525050565b60006060820190506136d960008301866136b5565b6136e66020830185612ea1565b6136f360408301846136b5565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b61373381613342565b811461373e57600080fd5b50565b6000813590506137508161372a565b92915050565b60006020828403121561376c5761376b612bb7565b5b600061377a84828501613741565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006137bd82613342565b91506137c883613342565b92508282026137d681613342565b91508082146137e8576137e7613783565b5b5092915050565b60006137fa82612c1f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361382c5761382b613783565b5b600182019050919050565b7f496e76616c6964207374616b6520737461746500000000000000000000000000600082015250565b600061386d601383613486565b915061387882613837565b602082019050919050565b6000602082019050818103600083015261389c81613860565b9050919050565b60006138ae82612c1f565b91506138b983612c1f565b92508282039050818111156138d1576138d0613783565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600061392161391c61391784612ecb565b612f3b565b612c1f565b9050919050565b61393181613906565b82525050565b6000819050919050565b600061395c61395761395284613937565b612f3b565b612c1f565b9050919050565b61396c81613941565b82525050565b60006060820190506139876000830186613928565b61399460208301856136b5565b6139a16040830184613963565b949350505050565b60006060820190506139be6000830186612ea1565b6139cb6020830185612ea1565b6139d860408301846136b5565b949350505050565b60006139eb82612ecb565b91506139f683612ecb565b925082820390506fffffffffffffffffffffffffffffffff811115613a1e57613a1d613783565b5b92915050565b7f496e76616c696420746f6b656e49647300000000000000000000000000000000600082015250565b6000613a5a601083613486565b9150613a6582613a24565b602082019050919050565b60006020820190508181036000830152613a8981613a4d565b9050919050565b7f546f6f206561726c7920746f20756e5374616b65000000000000000000000000600082015250565b6000613ac6601483613486565b9150613ad182613a90565b602082019050919050565b60006020820190508181036000830152613af581613ab9565b9050919050565b6000819050919050565b6000613b21613b1c613b1784613afc565b612f3b565b612c1f565b9050919050565b613b3181613b06565b82525050565b6000606082019050613b4c6000830186613928565b613b5960208301856136b5565b613b666040830184613b28565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613bca602683613486565b9150613bd582613b6e565b604082019050919050565b60006020820190508181036000830152613bf981613bbd565b9050919050565b6000613c0b82612c1f565b9150613c1683612c1f565b9250828202613c2481612c1f565b91508282048414831517613c3b57613c3a613783565b5b5092915050565b7f496e76616c6964207374616b652074696d650000000000000000000000000000600082015250565b6000613c78601283613486565b9150613c8382613c42565b602082019050919050565b60006020820190508181036000830152613ca781613c6b565b9050919050565b6000602082019050613cc360008301846136b5565b92915050565b600081519050613cd881612bf3565b92915050565b600060208284031215613cf457613cf3612bb7565b5b6000613d0284828501613cc9565b91505092915050565b7f496e76616c6964206f776e657200000000000000000000000000000000000000600082015250565b6000613d41600d83613486565b9150613d4c82613d0b565b602082019050919050565b60006020820190508181036000830152613d7081613d34565b9050919050565b6000613d8282612c1f565b9150613d8d83612c1f565b9250828201905080821115613da557613da4613783565b5b92915050565b6000819050919050565b6000613dd0613dcb613dc684613dab565b612f3b565b612c1f565b9050919050565b613de081613db5565b82525050565b6000606082019050613dfb6000830186613928565b613e086020830185613928565b613e156040830184613dd7565b949350505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613e53601f83613486565b9150613e5e82613e1d565b602082019050919050565b60006020820190508181036000830152613e8281613e46565b9050919050565b7f496e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b6000613ebf601183613486565b9150613eca82613e89565b602082019050919050565b60006020820190508181036000830152613eee81613eb2565b9050919050565b6000604082019050613f0a6000830185612ea1565b613f1760208301846136b5565b9392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613f54602083613486565b9150613f5f82613f1e565b602082019050919050565b60006020820190508181036000830152613f8381613f47565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000613fc0601083613486565b9150613fcb82613f8a565b602082019050919050565b60006020820190508181036000830152613fef81613fb3565b9050919050565b600081905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000614037601c83613ff6565b915061404282614001565b601c82019050919050565b6000819050919050565b6000819050919050565b61407261406d8261404d565b614057565b82525050565b60006140838261402a565b915061408f8284614061565b60208201915081905092915050565b6140a781612eb0565b81146140b257600080fd5b50565b6000815190506140c48161409e565b92915050565b6000602082840312156140e0576140df612bb7565b5b60006140ee848285016140b5565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000614153602a83613486565b915061415e826140f7565b604082019050919050565b6000602082019050818103600083015261418281614146565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006141bf601483613486565b91506141ca82614189565b602082019050919050565b600060208201905081810360008301526141ee816141b2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b600061425a601883613486565b915061426582614224565b602082019050919050565b600060208201905081810360008301526142898161424d565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006142c6601f83613486565b91506142d182614290565b602082019050919050565b600060208201905081810360008301526142f5816142b9565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000614358602283613486565b9150614363826142fc565b604082019050919050565b600060208201905081810360008301526143878161434b565b9050919050565b6143978161404d565b82525050565b600060ff82169050919050565b6143b38161439d565b82525050565b60006080820190506143ce600083018761438e565b6143db60208301866143aa565b6143e8604083018561438e565b6143f5606083018461438e565b95945050505050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b600061445a602683613486565b9150614465826143fe565b604082019050919050565b600060208201905081810360008301526144898161444d565b9050919050565b600081519050919050565b60005b838110156144b957808201518184015260208101905061449e565b60008484015250505050565b60006144d082614490565b6144da8185613503565b93506144ea81856020860161449b565b80840191505092915050565b600061450282846144c5565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000614543601d83613486565b915061454e8261450d565b602082019050919050565b6000602082019050818103600083015261457281614536565b9050919050565b600081519050919050565b600061458f82614579565b6145998185613486565b93506145a981856020860161449b565b6145b281612c5f565b840191505092915050565b600060208201905081810360008301526145d78184614584565b90509291505056fea2646970667358221220be4796815b324a0a30682ba599d9e849e9e1ef512abaf21f0833f26ea95e81d764736f6c634300081100330000000000000000000000001b489201d974d37ddd2faf6756106a7651914a6300000000000000000000000019c996c4e4596aadda9b7756b34bba614376fdd40000000000000000000000005ab85b15e0ed0009a8aa606cb07809230fc16eaa

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101425760003560e01c80637ccbfe7c116100b8578063d11c31e81161007c578063d11c31e81461036a578063d431b1ac14610388578063efff2ae514610392578063f2fde38b146103c2578063f8c4bbf2146103de578063fa234a52146103fc57610142565b80637ccbfe7c146102c6578063888a8d0a146102e25780638c181f00146102fe5780638da5cb5b1461031c578063b10dcc931461033a57610142565b806340edabeb1161010a57806340edabeb1461021657806341ad2077146102325780635c975abb146102625780636232d83f14610280578063715018a61461029e57806376292e53146102a857610142565b8063150b7a02146101475780631738ad861461017757806318e92841146101aa578063243e0ab0146101c857806324ca02a3146101f8575b600080fd5b610161600480360381019061015c9190612d9b565b61042c565b60405161016e9190612e59565b60405180910390f35b610191600480360381019061018c9190612e74565b610440565b6040516101a19493929190612ef6565b60405180910390f35b6101b26104d5565b6040516101bf9190612f9a565b60405180910390f35b6101e260048036038101906101dd9190613015565b6104f9565b6040516101ef9190613096565b60405180910390f35b61020061072a565b60405161020d91906130b1565b60405180910390f35b610230600480360381019061022b91906130ee565b61074c565b005b61024c6004803603810190610247919061311b565b6107f0565b6040516102599190613206565b60405180910390f35b61026a610887565b6040516102779190613096565b60405180910390f35b61028861089d565b6040516102959190613228565b60405180910390f35b6102a66108cf565b005b6102b06108e3565b6040516102bd9190613264565b60405180910390f35b6102e060048036038101906102db919061311b565b610907565b005b6102fc60048036038101906102f791906132d5565b610953565b005b610306610fd9565b60405161031391906133e1565b60405180910390f35b610324611060565b6040516103319190613228565b60405180910390f35b610354600480360381019061034f91906132d5565b611089565b6040516103619190613096565b60405180910390f35b610372611838565b60405161037f919061340b565b60405180910390f35b61039061183f565b005b6103ac60048036038101906103a79190612e74565b61186b565b6040516103b99190613096565b60405180910390f35b6103dc60048036038101906103d7919061311b565b61188b565b005b6103e661190e565b6040516103f391906130b1565b60405180910390f35b61041660048036038101906104119190613426565b611930565b6040516104239190613096565b60405180910390f35b600063150b7a0260e01b9050949350505050565b60046020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060000160149054906101000a900460ff16908060010160009054906101000a90046fffffffffffffffffffffffffffffffff16908060010160109054906101000a90046fffffffffffffffffffffffffffffffff16905084565b7f00000000000000000000000019c996c4e4596aadda9b7756b34bba614376fdd481565b6000610503612121565b60008585905011610549576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610540906134e3565b60405180910390fd5b6000858560405161055b929190613533565b60405180910390209050610570818585612170565b60008060008888810190610584919061358a565b9250925092506006600084815260200190815260200160002060009054906101000a900460ff16156105eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105e290613629565b60405180910390fd5b6105f361226c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610660576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065790613695565b60405180910390fd5b60016006600085815260200190815260200160002060006101000a81548160ff0219169083151502179055506106d782827f00000000000000000000000019c996c4e4596aadda9b7756b34bba614376fdd473ffffffffffffffffffffffffffffffffffffffff166122749092919063ffffffff16565b7f357f70a556e9cc649ac2f7187a705593ce01058fcc222baca5b0e3fb68c5bbf283838360405161070a939291906136c4565b60405180910390a160019450505050506107226122fa565b949350505050565b600760109054906101000a90046fffffffffffffffffffffffffffffffff1681565b610754612303565b60005b60038110156107ec5762015180828260038110610777576107766136fb565b5b60200201602081019061078a9190613756565b61079491906137b2565b600282600381106107a8576107a76136fb565b5b600491828204019190066008026101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555080806107e4906137ef565b915050610757565b5050565b6060600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548060200260200160405190810160405280929190818152602001828054801561087b57602002820191906000526020600020905b815481526020019060010190808311610867575b50505050509050919050565b60008060009054906101000a900460ff16905090565b60006108a7612303565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6108d7612303565b6108e16000612381565b565b7f0000000000000000000000001b489201d974d37ddd2faf6756106a7651914a6381565b61090f612303565b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61095b612303565b600082829050905060005b81811015610f70576000848483818110610983576109826136fb565b5b9050602002013590506000600460008381526020019081526020016000206040518060800160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900460ff161515151581526020016001820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016001820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168152505090506000816000015190508160200151610b00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af790613883565b60405180910390fd5b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050905060005b81811015610cf65784600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110610ba457610ba36136fb565b5b906000526020600020015403610ce557600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600183610c0091906138a3565b81548110610c1157610c106136fb565b5b9060005260206000200154600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110610c6d57610c6c6136fb565b5b9060005260206000200181905550600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480610cca57610cc96138d7565b5b60019003818190600052602060002001600090559055610cf6565b80610cef906137ef565b9050610b4a565b507f0000000000000000000000001b489201d974d37ddd2faf6756106a7651914a6373ffffffffffffffffffffffffffffffffffffffff16848373ffffffffffffffffffffffffffffffffffffffff167fe47225b875de4852fd470382456b118594ebcb4992992c55659271dcb9d05c8a8660400151426003604051610d7e93929190613972565b60405180910390a460046000858152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a81549060ff02191690556001820160006101000a8154906fffffffffffffffffffffffffffffffff02191690556001820160106101000a8154906fffffffffffffffffffffffffffffffff021916905550507f0000000000000000000000001b489201d974d37ddd2faf6756106a7651914a6373ffffffffffffffffffffffffffffffffffffffff166342842e0e3084876040518463ffffffff1660e01b8152600401610e7a939291906139a9565b600060405180830381600087803b158015610e9457600080fd5b505af1158015610ea8573d6000803e3d6000fd5b505050506000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905003610f5b576001600760008282829054906101000a90046fffffffffffffffffffffffffffffffff16610f2491906139e0565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055505b5050505080610f69906137ef565b9050610966565b5080600760108282829054906101000a90046fffffffffffffffffffffffffffffffff16610f9e91906139e0565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550505050565b610fe1612b21565b610fe9612303565b6002600380602002604051908101604052809291908260038015611056576020028201916000905b82829054906101000a900467ffffffffffffffff1667ffffffffffffffff16815260200190600801906020826007010492830192600103820291508084116110115790505b5050505050905090565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000611093612446565b61109b612121565b600083839050905060006110ad61226c565b9050600082116110f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e990613a70565b60405180910390fd5b60005b82811015611711576000868683818110611112576111116136fb565b5b9050602002013590506000600460008381526020019081526020016000206040518060800160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900460ff161515151581526020016001820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016001820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168152505090508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146112b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ab90613695565b60405180910390fd5b80602001516112f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ef90613883565b60405180910390fd5b80606001516fffffffffffffffffffffffffffffffff16421015611351576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134890613adc565b60405180910390fd5b6000600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050905060005b818110156115475783600560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106113f5576113f46136fb565b5b90600052602060002001540361153657600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060018361145191906138a3565b81548110611462576114616136fb565b5b9060005260206000200154600560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106114be576114bd6136fb565b5b9060005260206000200181905550600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548061151b5761151a6138d7565b5b60019003818190600052602060002001600090559055611547565b80611540906137ef565b905061139b565b507f0000000000000000000000001b489201d974d37ddd2faf6756106a7651914a6373ffffffffffffffffffffffffffffffffffffffff16838673ffffffffffffffffffffffffffffffffffffffff167fe47225b875de4852fd470382456b118594ebcb4992992c55659271dcb9d05c8a85604001514260026040516115cf93929190613b37565b60405180910390a460046000848152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a81549060ff02191690556001820160006101000a8154906fffffffffffffffffffffffffffffffff02191690556001820160106101000a8154906fffffffffffffffffffffffffffffffff021916905550507f0000000000000000000000001b489201d974d37ddd2faf6756106a7651914a6373ffffffffffffffffffffffffffffffffffffffff166342842e0e3087866040518463ffffffff1660e01b81526004016116cb939291906139a9565b600060405180830381600087803b1580156116e557600080fd5b505af11580156116f9573d6000803e3d6000fd5b505050505050508061170a906137ef565b90506110f5565b506000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050036117c1576001600760008282829054906101000a90046fffffffffffffffffffffffffffffffff1661178a91906139e0565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055505b81600760108282829054906101000a90046fffffffffffffffffffffffffffffffff166117ee91906139e0565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001925050506118326122fa565b92915050565b6201518081565b611847612303565b61184f610887565b6118605761185b612490565b611869565b6118686124f2565b5b565b60066020528060005260406000206000915054906101000a900460ff1681565b611893612303565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611902576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f990613be0565b60405180910390fd5b61190b81612381565b50565b600760009054906101000a90046fffffffffffffffffffffffffffffffff1681565b600061193a612446565b611942612121565b600084849050905060006201518067ffffffffffffffff16846119659190613c00565b9050600061197161226c565b9050600083116119b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ad90613a70565b60405180910390fd5b60026000600381106119cb576119ca6136fb565b5b600491828204019190066008029054906101000a900467ffffffffffffffff1667ffffffffffffffff16821480611a3f57506002600160038110611a1257611a116136fb565b5b600491828204019190066008029054906101000a900467ffffffffffffffff1667ffffffffffffffff1682145b80611a86575060028060038110611a5957611a586136fb565b5b600491828204019190066008029054906101000a900467ffffffffffffffff1667ffffffffffffffff1682145b611ac5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abc90613c8e565b60405180910390fd5b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905003611b6b576001600760008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055505b60005b838110156120b0576000888883818110611b8b57611b8a6136fb565b5b9050602002013590506004600082815260200190815260200160002060000160149054906101000a900460ff1615611bf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bef90613883565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff167f0000000000000000000000001b489201d974d37ddd2faf6756106a7651914a6373ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401611c689190613cae565b602060405180830381865afa158015611c85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ca99190613cde565b73ffffffffffffffffffffffffffffffffffffffff1614611cff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf690613d57565b60405180910390fd5b600060405180608001604052808573ffffffffffffffffffffffffffffffffffffffff168152602001600115158152602001426fffffffffffffffffffffffffffffffff1681526020018642611d559190613d77565b6fffffffffffffffffffffffffffffffff168152509050806004600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548160ff02191690831515021790555060408201518160010160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060608201518160010160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055509050506000600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905003611f1457604051806020016040528083815250600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020906001611f0e929190612b43565b50611f7b565b600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208290806001815401808255809150506001900390600052602060002001600090919091909150555b7f0000000000000000000000001b489201d974d37ddd2faf6756106a7651914a6373ffffffffffffffffffffffffffffffffffffffff166342842e0e8530856040518463ffffffff1660e01b8152600401611fd8939291906139a9565b600060405180830381600087803b158015611ff257600080fd5b505af1158015612006573d6000803e3d6000fd5b505050507f0000000000000000000000001b489201d974d37ddd2faf6756106a7651914a6373ffffffffffffffffffffffffffffffffffffffff16828573ffffffffffffffffffffffffffffffffffffffff167fe47225b875de4852fd470382456b118594ebcb4992992c55659271dcb9d05c8a84604001518560600151600160405161209593929190613de6565b60405180910390a45050806120a9906137ef565b9050611b6e565b5082600760108282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001935050505061211a6122fa565b9392505050565b600260015403612166576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215d90613e69565b60405180910390fd5b6002600181905550565b61217983612554565b925060006121d483838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508561258490919063ffffffff16565b9050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612266576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225d90613ed5565b60405180910390fd5b50505050565b600033905090565b6122f58363a9059cbb60e01b8484604051602401612293929190613ef5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506125ab565b505050565b60018081905550565b61230b61226c565b73ffffffffffffffffffffffffffffffffffffffff16612329611060565b73ffffffffffffffffffffffffffffffffffffffff161461237f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237690613f6a565b60405180910390fd5b565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61244e610887565b1561248e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248590613fd6565b60405180910390fd5b565b612498612446565b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586124db61226c565b6040516124e89190613228565b60405180910390a1565b6124fa612672565b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61253d61226c565b60405161254a9190613228565b60405180910390a1565b6000816040516020016125679190614078565b604051602081830303815290604052805190602001209050919050565b600080600061259385856126bb565b915091506125a08161270c565b819250505092915050565b600061260d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166128729092919063ffffffff16565b905060008151111561266d578080602001905181019061262d91906140ca565b61266c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266390614169565b60405180910390fd5b5b505050565b61267a610887565b6126b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b0906141d5565b60405180910390fd5b565b60008060418351036126fc5760008060006020860151925060408601519150606086015160001a90506126f08782858561288a565b94509450505050612705565b60006002915091505b9250929050565b600060048111156127205761271f6141f5565b5b816004811115612733576127326141f5565b5b031561286f576001600481111561274d5761274c6141f5565b5b8160048111156127605761275f6141f5565b5b036127a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279790614270565b60405180910390fd5b600260048111156127b4576127b36141f5565b5b8160048111156127c7576127c66141f5565b5b03612807576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127fe906142dc565b60405180910390fd5b6003600481111561281b5761281a6141f5565b5b81600481111561282e5761282d6141f5565b5b0361286e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128659061436e565b60405180910390fd5b5b50565b6060612881848460008561296c565b90509392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156128c5576000600391509150612963565b6000600187878787604051600081526020016040526040516128ea94939291906143b9565b6020604051602081039080840390855afa15801561290c573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361295a57600060019250925050612963565b80600092509250505b94509492505050565b6060824710156129b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a890614470565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516129da91906144f6565b60006040518083038185875af1925050503d8060008114612a17576040519150601f19603f3d011682016040523d82523d6000602084013e612a1c565b606091505b5091509150612a2d87838387612a39565b92505050949350505050565b60608315612a9b576000835103612a9357612a5385612aae565b612a92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a8990614559565b60405180910390fd5b5b829050612aa6565b612aa58383612ad1565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115612ae45781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1891906145bd565b60405180910390fd5b6040518060600160405280600390602082028036833780820191505090505090565b828054828255906000526020600020908101928215612b7f579160200282015b82811115612b7e578251825591602001919060010190612b63565b5b509050612b8c9190612b90565b5090565b5b80821115612ba9576000816000905550600101612b91565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612bec82612bc1565b9050919050565b612bfc81612be1565b8114612c0757600080fd5b50565b600081359050612c1981612bf3565b92915050565b6000819050919050565b612c3281612c1f565b8114612c3d57600080fd5b50565b600081359050612c4f81612c29565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612ca882612c5f565b810181811067ffffffffffffffff82111715612cc757612cc6612c70565b5b80604052505050565b6000612cda612bad565b9050612ce68282612c9f565b919050565b600067ffffffffffffffff821115612d0657612d05612c70565b5b612d0f82612c5f565b9050602081019050919050565b82818337600083830152505050565b6000612d3e612d3984612ceb565b612cd0565b905082815260208101848484011115612d5a57612d59612c5a565b5b612d65848285612d1c565b509392505050565b600082601f830112612d8257612d81612c55565b5b8135612d92848260208601612d2b565b91505092915050565b60008060008060808587031215612db557612db4612bb7565b5b6000612dc387828801612c0a565b9450506020612dd487828801612c0a565b9350506040612de587828801612c40565b925050606085013567ffffffffffffffff811115612e0657612e05612bbc565b5b612e1287828801612d6d565b91505092959194509250565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612e5381612e1e565b82525050565b6000602082019050612e6e6000830184612e4a565b92915050565b600060208284031215612e8a57612e89612bb7565b5b6000612e9884828501612c40565b91505092915050565b612eaa81612be1565b82525050565b60008115159050919050565b612ec581612eb0565b82525050565b60006fffffffffffffffffffffffffffffffff82169050919050565b612ef081612ecb565b82525050565b6000608082019050612f0b6000830187612ea1565b612f186020830186612ebc565b612f256040830185612ee7565b612f326060830184612ee7565b95945050505050565b6000819050919050565b6000612f60612f5b612f5684612bc1565b612f3b565b612bc1565b9050919050565b6000612f7282612f45565b9050919050565b6000612f8482612f67565b9050919050565b612f9481612f79565b82525050565b6000602082019050612faf6000830184612f8b565b92915050565b600080fd5b600080fd5b60008083601f840112612fd557612fd4612c55565b5b8235905067ffffffffffffffff811115612ff257612ff1612fb5565b5b60208301915083600182028301111561300e5761300d612fba565b5b9250929050565b6000806000806040858703121561302f5761302e612bb7565b5b600085013567ffffffffffffffff81111561304d5761304c612bbc565b5b61305987828801612fbf565b9450945050602085013567ffffffffffffffff81111561307c5761307b612bbc565b5b61308887828801612fbf565b925092505092959194509250565b60006020820190506130ab6000830184612ebc565b92915050565b60006020820190506130c66000830184612ee7565b92915050565b6000819050826020600302820111156130e8576130e7612fba565b5b92915050565b60006060828403121561310457613103612bb7565b5b6000613112848285016130cc565b91505092915050565b60006020828403121561313157613130612bb7565b5b600061313f84828501612c0a565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61317d81612c1f565b82525050565b600061318f8383613174565b60208301905092915050565b6000602082019050919050565b60006131b382613148565b6131bd8185613153565b93506131c883613164565b8060005b838110156131f95781516131e08882613183565b97506131eb8361319b565b9250506001810190506131cc565b5085935050505092915050565b6000602082019050818103600083015261322081846131a8565b905092915050565b600060208201905061323d6000830184612ea1565b92915050565b600061324e82612f67565b9050919050565b61325e81613243565b82525050565b60006020820190506132796000830184613255565b92915050565b60008083601f84011261329557613294612c55565b5b8235905067ffffffffffffffff8111156132b2576132b1612fb5565b5b6020830191508360208202830111156132ce576132cd612fba565b5b9250929050565b600080602083850312156132ec576132eb612bb7565b5b600083013567ffffffffffffffff81111561330a57613309612bbc565b5b6133168582860161327f565b92509250509250929050565b600060039050919050565b600081905092915050565b6000819050919050565b600067ffffffffffffffff82169050919050565b61335f81613342565b82525050565b60006133718383613356565b60208301905092915050565b6000602082019050919050565b61339381613322565b61339d818461332d565b92506133a882613338565b8060005b838110156133d95781516133c08782613365565b96506133cb8361337d565b9250506001810190506133ac565b505050505050565b60006060820190506133f6600083018461338a565b92915050565b61340581613342565b82525050565b600060208201905061342060008301846133fc565b92915050565b60008060006040848603121561343f5761343e612bb7565b5b600084013567ffffffffffffffff81111561345d5761345c612bbc565b5b6134698682870161327f565b9350935050602061347c86828701612c40565b9150509250925092565b600082825260208201905092915050565b7f496e76616c696420646174610000000000000000000000000000000000000000600082015250565b60006134cd600c83613486565b91506134d882613497565b602082019050919050565b600060208201905081810360008301526134fc816134c0565b9050919050565b600081905092915050565b600061351a8385613503565b9350613527838584612d1c565b82840190509392505050565b600061354082848661350e565b91508190509392505050565b600061355782612bc1565b9050919050565b6135678161354c565b811461357257600080fd5b50565b6000813590506135848161355e565b92915050565b6000806000606084860312156135a3576135a2612bb7565b5b60006135b186828701612c40565b93505060206135c286828701613575565b92505060406135d386828701612c40565b9150509250925092565b7f496e76616c6964206f7264657249640000000000000000000000000000000000600082015250565b6000613613600f83613486565b915061361e826135dd565b602082019050919050565b6000602082019050818103600083015261364281613606565b9050919050565b7f496e76616c6964206163636f756e740000000000000000000000000000000000600082015250565b600061367f600f83613486565b915061368a82613649565b602082019050919050565b600060208201905081810360008301526136ae81613672565b9050919050565b6136be81612c1f565b82525050565b60006060820190506136d960008301866136b5565b6136e66020830185612ea1565b6136f360408301846136b5565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b61373381613342565b811461373e57600080fd5b50565b6000813590506137508161372a565b92915050565b60006020828403121561376c5761376b612bb7565b5b600061377a84828501613741565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006137bd82613342565b91506137c883613342565b92508282026137d681613342565b91508082146137e8576137e7613783565b5b5092915050565b60006137fa82612c1f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361382c5761382b613783565b5b600182019050919050565b7f496e76616c6964207374616b6520737461746500000000000000000000000000600082015250565b600061386d601383613486565b915061387882613837565b602082019050919050565b6000602082019050818103600083015261389c81613860565b9050919050565b60006138ae82612c1f565b91506138b983612c1f565b92508282039050818111156138d1576138d0613783565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600061392161391c61391784612ecb565b612f3b565b612c1f565b9050919050565b61393181613906565b82525050565b6000819050919050565b600061395c61395761395284613937565b612f3b565b612c1f565b9050919050565b61396c81613941565b82525050565b60006060820190506139876000830186613928565b61399460208301856136b5565b6139a16040830184613963565b949350505050565b60006060820190506139be6000830186612ea1565b6139cb6020830185612ea1565b6139d860408301846136b5565b949350505050565b60006139eb82612ecb565b91506139f683612ecb565b925082820390506fffffffffffffffffffffffffffffffff811115613a1e57613a1d613783565b5b92915050565b7f496e76616c696420746f6b656e49647300000000000000000000000000000000600082015250565b6000613a5a601083613486565b9150613a6582613a24565b602082019050919050565b60006020820190508181036000830152613a8981613a4d565b9050919050565b7f546f6f206561726c7920746f20756e5374616b65000000000000000000000000600082015250565b6000613ac6601483613486565b9150613ad182613a90565b602082019050919050565b60006020820190508181036000830152613af581613ab9565b9050919050565b6000819050919050565b6000613b21613b1c613b1784613afc565b612f3b565b612c1f565b9050919050565b613b3181613b06565b82525050565b6000606082019050613b4c6000830186613928565b613b5960208301856136b5565b613b666040830184613b28565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613bca602683613486565b9150613bd582613b6e565b604082019050919050565b60006020820190508181036000830152613bf981613bbd565b9050919050565b6000613c0b82612c1f565b9150613c1683612c1f565b9250828202613c2481612c1f565b91508282048414831517613c3b57613c3a613783565b5b5092915050565b7f496e76616c6964207374616b652074696d650000000000000000000000000000600082015250565b6000613c78601283613486565b9150613c8382613c42565b602082019050919050565b60006020820190508181036000830152613ca781613c6b565b9050919050565b6000602082019050613cc360008301846136b5565b92915050565b600081519050613cd881612bf3565b92915050565b600060208284031215613cf457613cf3612bb7565b5b6000613d0284828501613cc9565b91505092915050565b7f496e76616c6964206f776e657200000000000000000000000000000000000000600082015250565b6000613d41600d83613486565b9150613d4c82613d0b565b602082019050919050565b60006020820190508181036000830152613d7081613d34565b9050919050565b6000613d8282612c1f565b9150613d8d83612c1f565b9250828201905080821115613da557613da4613783565b5b92915050565b6000819050919050565b6000613dd0613dcb613dc684613dab565b612f3b565b612c1f565b9050919050565b613de081613db5565b82525050565b6000606082019050613dfb6000830186613928565b613e086020830185613928565b613e156040830184613dd7565b949350505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613e53601f83613486565b9150613e5e82613e1d565b602082019050919050565b60006020820190508181036000830152613e8281613e46565b9050919050565b7f496e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b6000613ebf601183613486565b9150613eca82613e89565b602082019050919050565b60006020820190508181036000830152613eee81613eb2565b9050919050565b6000604082019050613f0a6000830185612ea1565b613f1760208301846136b5565b9392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613f54602083613486565b9150613f5f82613f1e565b602082019050919050565b60006020820190508181036000830152613f8381613f47565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000613fc0601083613486565b9150613fcb82613f8a565b602082019050919050565b60006020820190508181036000830152613fef81613fb3565b9050919050565b600081905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000614037601c83613ff6565b915061404282614001565b601c82019050919050565b6000819050919050565b6000819050919050565b61407261406d8261404d565b614057565b82525050565b60006140838261402a565b915061408f8284614061565b60208201915081905092915050565b6140a781612eb0565b81146140b257600080fd5b50565b6000815190506140c48161409e565b92915050565b6000602082840312156140e0576140df612bb7565b5b60006140ee848285016140b5565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000614153602a83613486565b915061415e826140f7565b604082019050919050565b6000602082019050818103600083015261418281614146565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006141bf601483613486565b91506141ca82614189565b602082019050919050565b600060208201905081810360008301526141ee816141b2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b600061425a601883613486565b915061426582614224565b602082019050919050565b600060208201905081810360008301526142898161424d565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006142c6601f83613486565b91506142d182614290565b602082019050919050565b600060208201905081810360008301526142f5816142b9565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000614358602283613486565b9150614363826142fc565b604082019050919050565b600060208201905081810360008301526143878161434b565b9050919050565b6143978161404d565b82525050565b600060ff82169050919050565b6143b38161439d565b82525050565b60006080820190506143ce600083018761438e565b6143db60208301866143aa565b6143e8604083018561438e565b6143f5606083018461438e565b95945050505050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b600061445a602683613486565b9150614465826143fe565b604082019050919050565b600060208201905081810360008301526144898161444d565b9050919050565b600081519050919050565b60005b838110156144b957808201518184015260208101905061449e565b60008484015250505050565b60006144d082614490565b6144da8185613503565b93506144ea81856020860161449b565b80840191505092915050565b600061450282846144c5565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000614543601d83613486565b915061454e8261450d565b602082019050919050565b6000602082019050818103600083015261457281614536565b9050919050565b600081519050919050565b600061458f82614579565b6145998185613486565b93506145a981856020860161449b565b6145b281612c5f565b840191505092915050565b600060208201905081810360008301526145d78184614584565b90509291505056fea2646970667358221220be4796815b324a0a30682ba599d9e849e9e1ef512abaf21f0833f26ea95e81d764736f6c63430008110033

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

0000000000000000000000001b489201d974d37ddd2faf6756106a7651914a6300000000000000000000000019c996c4e4596aadda9b7756b34bba614376fdd40000000000000000000000005ab85b15e0ed0009a8aa606cb07809230fc16eaa

-----Decoded View---------------
Arg [0] : _ygme (address): 0x1b489201D974D37DDd2FaF6756106a7651914A63
Arg [1] : _ygio (address): 0x19C996c4E4596aADDA9b7756B34bBa614376FDd4
Arg [2] : _withdrawSigner (address): 0x5ab85B15e0ED0009A8AA606cb07809230fC16eaA

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000001b489201d974d37ddd2faf6756106a7651914a63
Arg [1] : 00000000000000000000000019c996c4e4596aadda9b7756b34bba614376fdd4
Arg [2] : 0000000000000000000000005ab85b15e0ed0009a8aa606cb07809230fc16eaa


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.