ETH Price: $3,561.18 (-1.41%)

Contract

0xC3B7B75f50a3100d91F8180d5f715975b1c60b67
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw181879172023-09-22 0:47:11438 days ago1695343631IN
ANTHEM Staking: STAKE Token
0 ETH0.006287157.88231075
Deposit176558892023-07-09 11:35:35513 days ago1688902535IN
ANTHEM Staking: STAKE Token
0 ETH0.0046435813.10204647
Deposit176558862023-07-09 11:34:59513 days ago1688902499IN
ANTHEM Staking: STAKE Token
0 ETH0.0046828613.03632328
Deposit174709702023-06-13 12:07:23539 days ago1686658043IN
ANTHEM Staking: STAKE Token
0 ETH0.0052650114.65691099
Deposit174709672023-06-13 12:06:47539 days ago1686658007IN
ANTHEM Staking: STAKE Token
0 ETH0.0058963814.98762124
Deposit172936062023-05-19 12:42:47564 days ago1684500167IN
ANTHEM Staking: STAKE Token
0 ETH0.0140637836.84977026
Deposit172933792023-05-19 11:56:11564 days ago1684497371IN
ANTHEM Staking: STAKE Token
0 ETH0.0134141635.64590814
Deposit172933702023-05-19 11:54:23564 days ago1684497263IN
ANTHEM Staking: STAKE Token
0 ETH0.0142003936.09503123
Withdraw172933482023-05-19 11:49:59564 days ago1684496999IN
ANTHEM Staking: STAKE Token
0 ETH0.0042099936.96349332
Deposit170557192023-04-15 23:44:59597 days ago1681602299IN
ANTHEM Staking: STAKE Token
0 ETH0.0085220824.04536254
Deposit169674982023-04-03 9:04:11610 days ago1680512651IN
ANTHEM Staking: STAKE Token
0 ETH0.0066867417.20704239
Deposit169612092023-04-02 11:48:11611 days ago1680436091IN
ANTHEM Staking: STAKE Token
0 ETH0.0068854919.1680542
Deposit169612042023-04-02 11:47:11611 days ago1680436031IN
ANTHEM Staking: STAKE Token
0 ETH0.0068199518.98560546
Deposit169612012023-04-02 11:46:35611 days ago1680435995IN
ANTHEM Staking: STAKE Token
0 ETH0.0062514817.40308848
Deposit169611982023-04-02 11:45:59611 days ago1680435959IN
ANTHEM Staking: STAKE Token
0 ETH0.0065697918.28920536
Deposit169519652023-04-01 4:35:35612 days ago1680323735IN
ANTHEM Staking: STAKE Token
0 ETH0.0066063318.64
Deposit169519612023-04-01 4:34:47612 days ago1680323687IN
ANTHEM Staking: STAKE Token
0 ETH0.0066122318.40735858
Deposit169519572023-04-01 4:33:59612 days ago1680323639IN
ANTHEM Staking: STAKE Token
0 ETH0.0069024819.21537127
Deposit169519502023-04-01 4:32:35612 days ago1680323555IN
ANTHEM Staking: STAKE Token
0 ETH0.006196517.2500442
Deposit169518852023-04-01 4:19:35612 days ago1680322775IN
ANTHEM Staking: STAKE Token
0 ETH0.0063848417.77435224
Deposit168940142023-03-24 1:12:35620 days ago1679620355IN
ANTHEM Staking: STAKE Token
0 ETH0.005956915.14145622
Deposit168889302023-03-23 8:02:23621 days ago1679558543IN
ANTHEM Staking: STAKE Token
0 ETH0.0045346911.88176552
Deposit168889252023-03-23 8:01:23621 days ago1679558483IN
ANTHEM Staking: STAKE Token
0 ETH0.0038373310.61688371
Deposit168624262023-03-19 14:41:47625 days ago1679236907IN
ANTHEM Staking: STAKE Token
0 ETH0.0049874113.88413193
Deposit168543432023-03-18 11:28:35626 days ago1679138915IN
ANTHEM Staking: STAKE Token
0 ETH0.0052051214.40118269
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:
AnthemStaking

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : NFTStaking.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";

contract AnthemStaking is ERC721, ReentrancyGuard, AccessControl {
    event Deposit(address indexed walletAddress, address indexed contractAddress, uint256 tokenId);
    event Withdraw(address indexed walletAddress, address indexed contractAddress, uint256 tokenId);

    bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");

    struct StakingNFT {
        address contractAddress;
        uint256 tokenId;
        uint256 depositTimestamp;
    }

    struct StakingUser {
        address walletAddress;
        uint256 tokenId;
        uint256 depositTimestamp;
    }

    address[] public contractAddressList;
    mapping(address => bool) public NFTContracts;

    mapping(address => StakingNFT[]) public depositNFTsByWalletAddress;
    mapping(address => StakingUser[]) public depositUsersByContractAddress;

    mapping(uint256 => StakingNFT) stakingNFTByCopyTokenId;
    mapping(address => mapping(uint256 => uint256)) tokenIdByCopyTokenId;

    uint256 public supply = 0;

    constructor() ERC721("ANTHEM Staking", "STAKE") {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(ADMIN_ROLE, msg.sender);
    }

    function addNFTContract(address _contractAddress) public onlyRole(ADMIN_ROLE) {
        NFTContracts[_contractAddress] = true;
        contractAddressList.push(_contractAddress);
    }

    function delNFTContract(address _contractAddress) public onlyRole(ADMIN_ROLE) {
        uint256 index;
        bool isExist = false;
        for (uint256 i = 0; i < contractAddressList.length; i++) {
            if (contractAddressList[i] == _contractAddress) {
                index = i;
                isExist = true;
                break;
            }
        }
        require(isExist, "This Contract Address is not registerd.");

        NFTContracts[_contractAddress] = false;
        for (uint256 i = index; i < contractAddressList.length - 1; i++) {
            contractAddressList[i] = contractAddressList[i + 1];
        }
        contractAddressList.pop();
    }

    function deposit(address _contractAddress, uint256 _tokenId) public nonReentrant {
        require(NFTContracts[_contractAddress], "Not supported Contract address");
        IERC721 token = IERC721(_contractAddress);
        require(msg.sender == tx.origin, "Not EOA");
        require(token.ownerOf(_tokenId) == msg.sender, "You are not the owner of NFT.");
        require(token.isApprovedForAll(msg.sender, address(this)), "permit yourself to let go");

        token.safeTransferFrom(msg.sender, address(this), _tokenId);

        uint256 nowTimestamp = block.timestamp;
        StakingNFT memory stake = StakingNFT({
            contractAddress: _contractAddress,
            tokenId: _tokenId,
            depositTimestamp: nowTimestamp
        });

        depositNFTsByWalletAddress[msg.sender].push(stake);

        depositUsersByContractAddress[_contractAddress].push(
            StakingUser({
                walletAddress: msg.sender,
                tokenId: _tokenId,
                depositTimestamp: nowTimestamp
            })
        );

        stakingNFTByCopyTokenId[supply + 1] = stake;
        tokenIdByCopyTokenId[_contractAddress][_tokenId] = supply + 1;
        _safeMint(msg.sender, supply + 1);
        supply++;

        emit Deposit(msg.sender, _contractAddress, _tokenId);
    }

    function withdraw(address _contractAddress, uint256 _tokenId) public nonReentrant {
        require(NFTContracts[_contractAddress], "Not supported Contract address");
        require(msg.sender == tx.origin, "Not EOA");

        StakingNFT[] storage depositNFTList = depositNFTsByWalletAddress[msg.sender];
        uint256 depositNFTsIndex = 0;
        bool depositNFTListExist = false;
        while (depositNFTsIndex < depositNFTList.length) {
            if (
                depositNFTList[depositNFTsIndex].contractAddress == _contractAddress &&
                depositNFTList[depositNFTsIndex].tokenId == _tokenId
            ) {
                depositNFTListExist = true;
                break;
            }

            depositNFTsIndex++;
        }

        StakingUser[] storage depositUserList = depositUsersByContractAddress[_contractAddress];
        uint256 depositUsersIndex = 0;
        bool depositUsersListExist = false;
        while (depositNFTsIndex < depositNFTList.length) {
            if (
                depositUserList[depositUsersIndex].walletAddress == msg.sender &&
                depositUserList[depositUsersIndex].tokenId == _tokenId
            ) {
                depositUsersListExist = true;
                break;
            }

            depositUsersIndex++;
        }

        require(depositNFTListExist && depositUsersListExist, "You have not deposit this");

        IERC721 token = IERC721(_contractAddress);
        token.safeTransferFrom(address(this), msg.sender, _tokenId);

        // delete walletaddress info
        require(depositNFTsIndex < depositNFTsByWalletAddress[msg.sender].length);
        depositNFTsByWalletAddress[msg.sender][depositNFTsIndex] = depositNFTsByWalletAddress[
            msg.sender
        ][depositNFTsByWalletAddress[msg.sender].length - 1];

        depositNFTsByWalletAddress[msg.sender].pop();

        // delete contractaddress info
        require(depositUsersIndex < depositUsersByContractAddress[_contractAddress].length);
        depositUsersByContractAddress[_contractAddress][
            depositUsersIndex
        ] = depositUsersByContractAddress[_contractAddress][
            depositUsersByContractAddress[_contractAddress].length - 1
        ];

        depositUsersByContractAddress[_contractAddress].pop();

        // copy burn
        uint256 copyTokenId = tokenIdByCopyTokenId[_contractAddress][_tokenId];
        _burn(copyTokenId);

        emit Withdraw(msg.sender, _contractAddress, _tokenId);
    }

    function getDepositNFTsByWalletAddress(address walletAddress)
        public
        view
        returns (StakingNFT[] memory)
    {
        StakingNFT[] memory depositInfo = new StakingNFT[](
            depositNFTsByWalletAddress[walletAddress].length
        );
        for (uint256 i = 0; i < depositNFTsByWalletAddress[walletAddress].length; i++) {
            StakingNFT storage stakingNFT = depositNFTsByWalletAddress[walletAddress][i];
            depositInfo[i] = stakingNFT;
        }
        return depositInfo;
    }

    function getDepositUsersByContractAddress(address contractAddress)
        public
        view
        returns (StakingUser[] memory)
    {
        StakingUser[] memory depositInfo = new StakingUser[](
            depositUsersByContractAddress[contractAddress].length
        );
        for (uint256 i = 0; i < depositUsersByContractAddress[contractAddress].length; i++) {
            StakingUser storage stakingUser = depositUsersByContractAddress[contractAddress][i];
            depositInfo[i] = stakingUser;
        }
        return depositInfo;
    }

    function getDepositUsersByContractAddressWithPaging(
        address contractAddress,
        uint256 pageSize,
        uint256 pageOfs
    ) public view returns (StakingUser[] memory) {
        uint256 max = depositUsersByContractAddress[contractAddress].length;
        uint256 ofs = pageSize * pageOfs;
        uint256 num = 0;
        if (ofs < max) {
            num = max - ofs;
            if (num > pageSize) {
                num = pageSize;
            }
        }

        StakingUser[] memory depositInfo = new StakingUser[](pageSize);
        for (uint256 i = 0; i < num; i++) {
            StakingUser storage stakingUser = depositUsersByContractAddress[contractAddress][
                ofs + i
            ];
            depositInfo[i] = stakingUser;
        }
        return depositInfo;
    }

    function tokenURI(uint256 _tokenId) public view override returns (string memory) {
        require(_exists(_tokenId), "This Copy NFT is burned.");
        IERC721Metadata token = IERC721Metadata(stakingNFTByCopyTokenId[_tokenId].contractAddress);

        return token.tokenURI(stakingNFTByCopyTokenId[_tokenId].tokenId);
    }

    function getContractAddressList() public view returns (address[] memory) {
        return contractAddressList;
    }

    function withdrawEth() external onlyRole(ADMIN_ROLE) {
        require(payable(msg.sender).send(address(this).balance));
    }

    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external pure returns (bytes4) {
        return IERC721Receiver.onERC721Received.selector;
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 startTokenId
    ) internal override {
        require(from == address(0) || to == address(0), "transfer is prohibited");
        super._beforeTokenTransfer(from, to, startTokenId);
    }

    function setApprovalForAll(address operator, bool approved) public pure override {
        revert("setApprovalForAll is prohibited");
    }

    function approve(address to, uint256 tokenId) public pure override {
        revert("approve is prohibited");
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, AccessControl)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
}

File 2 of 14 : 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 3 of 14 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 8 of 14 : 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 9 of 14 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 14 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"walletAddress","type":"address"},{"indexed":true,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"walletAddress","type":"address"},{"indexed":true,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"NFTContracts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"}],"name":"addNFTContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"contractAddressList","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"}],"name":"delNFTContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"depositNFTsByWalletAddress","outputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"depositTimestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"depositUsersByContractAddress","outputs":[{"internalType":"address","name":"walletAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"depositTimestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getContractAddressList","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"walletAddress","type":"address"}],"name":"getDepositNFTsByWalletAddress","outputs":[{"components":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"depositTimestamp","type":"uint256"}],"internalType":"struct AnthemStaking.StakingNFT[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"getDepositUsersByContractAddress","outputs":[{"components":[{"internalType":"address","name":"walletAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"depositTimestamp","type":"uint256"}],"internalType":"struct AnthemStaking.StakingUser[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"pageSize","type":"uint256"},{"internalType":"uint256","name":"pageOfs","type":"uint256"}],"name":"getDepositUsersByContractAddressWithPaging","outputs":[{"components":[{"internalType":"address","name":"walletAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"depositTimestamp","type":"uint256"}],"internalType":"struct AnthemStaking.StakingUser[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600e553480156200001657600080fd5b506040518060400160405280600e81526020017f414e5448454d205374616b696e670000000000000000000000000000000000008152506040518060400160405280600581526020017f5354414b4500000000000000000000000000000000000000000000000000000081525081600090805190602001906200009b92919062000271565b508060019080519060200190620000b492919062000271565b5050506001600681905550620000d46000801b336200010c60201b60201c565b620001067fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775336200010c60201b60201c565b62000386565b6200011e8282620001fe60201b60201c565b620001fa5760016007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200019f6200026960201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b8280546200027f9062000350565b90600052602060002090601f016020900481019282620002a35760008555620002ef565b82601f10620002be57805160ff1916838001178555620002ef565b82800160010185558215620002ef579182015b82811115620002ee578251825591602001919060010190620002d1565b5b509050620002fe919062000302565b5090565b5b808211156200031d57600081600090555060010162000303565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200036957607f821691505b6020821081141562000380576200037f62000321565b5b50919050565b61585280620003966000396000f3fe608060405234801561001057600080fd5b50600436106102115760003560e01c806382727c8011610125578063b88d4fde116100ad578063cfac5d7c1161007c578063cfac5d7c14610672578063d547741f1461068e578063e985e9c5146106aa578063eabd0871146106da578063f3fef3a31461070c57610211565b8063b88d4fde146105d8578063c87b56dd146105f4578063cc04150e14610624578063cf06ddf71461064257610211565b806397dfe244116100f457806397dfe24414610534578063a0ef91df14610564578063a217fddf1461056e578063a22cb4651461058c578063a3197f52146105a857610211565b806382727c8014610498578063916d9975146104ca57806391d14854146104e657806395d89b411461051657610211565b8063248a9ca3116101a857806347e7ef241161017757806347e7ef24146103ce5780636352211e146103ea578063640b97561461041a57806370a082311461044a57806375b238fc1461047a57610211565b8063248a9ca31461034a5780632f2ff15d1461037a57806336568abe1461039657806342842e0e146103b257610211565b8063081812fc116101e4578063081812fc146102b2578063095ea7b3146102e2578063150b7a02146102fe57806323b872dd1461032e57610211565b806301ffc9a714610216578063024d0f2f14610246578063047fc9aa1461027657806306fdde0314610294575b600080fd5b610230600480360381019061022b9190613d5d565b610728565b60405161023d9190613da5565b60405180910390f35b610260600480360381019061025b9190613e54565b61073a565b60405161026d9190613fb6565b60405180910390f35b61027e610940565b60405161028b9190613fe7565b60405180910390f35b61029c610946565b6040516102a9919061409b565b60405180910390f35b6102cc60048036038101906102c791906140bd565b6109d8565b6040516102d991906140f9565b60405180910390f35b6102fc60048036038101906102f79190614114565b610a1e565b005b610318600480360381019061031391906141b9565b610a59565b6040516103259190614250565b60405180910390f35b6103486004803603810190610343919061426b565b610a6e565b005b610364600480360381019061035f91906142f4565b610ace565b6040516103719190614330565b60405180910390f35b610394600480360381019061038f919061434b565b610aee565b005b6103b060048036038101906103ab919061434b565b610b0f565b005b6103cc60048036038101906103c7919061426b565b610b92565b005b6103e860048036038101906103e39190614114565b610bb2565b005b61040460048036038101906103ff91906140bd565b6112ab565b60405161041191906140f9565b60405180910390f35b610434600480360381019061042f919061438b565b61135d565b6040516104419190613fb6565b60405180910390f35b610464600480360381019061045f919061438b565b61155b565b6040516104719190613fe7565b60405180910390f35b610482611613565b60405161048f9190614330565b60405180910390f35b6104b260048036038101906104ad9190614114565b611637565b6040516104c1939291906143b8565b60405180910390f35b6104e460048036038101906104df919061438b565b61169e565b005b61050060048036038101906104fb919061434b565b611930565b60405161050d9190613da5565b60405180910390f35b61051e61199b565b60405161052b919061409b565b60405180910390f35b61054e6004803603810190610549919061438b565b611a2d565b60405161055b91906144e0565b60405180910390f35b61056c611c2b565b005b610576611c96565b6040516105839190614330565b60405180910390f35b6105a660048036038101906105a1919061452e565b611c9d565b005b6105c260048036038101906105bd919061438b565b611cd8565b6040516105cf9190613da5565b60405180910390f35b6105f260048036038101906105ed919061469e565b611cf8565b005b61060e600480360381019061060991906140bd565b611d5a565b60405161061b919061409b565b60405180910390f35b61062c611e8b565b60405161063991906147d0565b60405180910390f35b61065c600480360381019061065791906140bd565b611f19565b60405161066991906140f9565b60405180910390f35b61068c6004803603810190610687919061438b565b611f58565b005b6106a860048036038101906106a3919061434b565b612041565b005b6106c460048036038101906106bf91906147f2565b612062565b6040516106d19190613da5565b60405180910390f35b6106f460048036038101906106ef9190614114565b6120f6565b604051610703939291906143b8565b60405180910390f35b61072660048036038101906107219190614114565b61215d565b005b600061073382612b53565b9050919050565b60606000600b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050600083856107919190614861565b90506000828210156107b85781836107a991906148bb565b9050858111156107b7578590505b5b60008667ffffffffffffffff8111156107d4576107d3614573565b5b60405190808252806020026020018201604052801561080d57816020015b6107fa613c83565b8152602001906001900390816107f25790505b50905060005b82811015610931576000600b60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828661086891906148ef565b8154811061087957610878614945565b5b90600052602060002090600302019050806040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820154815260200160028201548152505083838151811061091257610911614945565b5b602002602001018190525050808061092990614974565b915050610813565b50809450505050509392505050565b600e5481565b606060008054610955906149ec565b80601f0160208091040260200160405190810160405280929190818152602001828054610981906149ec565b80156109ce5780601f106109a3576101008083540402835291602001916109ce565b820191906000526020600020905b8154815290600101906020018083116109b157829003601f168201915b5050505050905090565b60006109e382612bcd565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5090614a6a565b60405180910390fd5b600063150b7a0260e01b905095945050505050565b610a7f610a79612c18565b82612c20565b610abe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab590614afc565b60405180910390fd5b610ac9838383612cb5565b505050565b600060076000838152602001908152602001600020600101549050919050565b610af782610ace565b610b0081612f1c565b610b0a8383612f30565b505050565b610b17612c18565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7b90614b8e565b60405180910390fd5b610b8e8282613011565b5050565b610bad83838360405180602001604052806000815250611cf8565b505050565b60026006541415610bf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bef90614bfa565b60405180910390fd5b6002600681905550600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610c8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8390614c66565b60405180910390fd5b60008290503273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610cff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf690614cd2565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b8152600401610d4f9190613fe7565b60206040518083038186803b158015610d6757600080fd5b505afa158015610d7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d9f9190614d07565b73ffffffffffffffffffffffffffffffffffffffff1614610df5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dec90614d80565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1663e985e9c533306040518363ffffffff1660e01b8152600401610e30929190614da0565b60206040518083038186803b158015610e4857600080fd5b505afa158015610e5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e809190614dde565b610ebf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb690614e57565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166342842e0e3330856040518463ffffffff1660e01b8152600401610efc93929190614e77565b600060405180830381600087803b158015610f1657600080fd5b505af1158015610f2a573d6000803e3d6000fd5b505050506000429050600060405180606001604052808673ffffffffffffffffffffffffffffffffffffffff168152602001858152602001838152509050600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201555050600b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180606001604052803373ffffffffffffffffffffffffffffffffffffffff16815260200186815260200184815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020155505080600c60006001600e5461113891906148ef565b815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201559050506001600e546111b391906148ef565b600d60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008681526020019081526020016000208190555061121f336001600e5461121a91906148ef565b6130f3565b600e600081548092919061123290614974565b91905055508473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62866040516112949190613fe7565b60405180910390a350505060016006819055505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611354576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134b90614efa565b60405180910390fd5b80915050919050565b60606000600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905067ffffffffffffffff8111156113bd576113bc614573565b5b6040519080825280602002602001820160405280156113f657816020015b6113e3613c83565b8152602001906001900390816113db5790505b50905060005b600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050811015611551576000600b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811061149957611498614945565b5b90600052602060002090600302019050806040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820154815260200160028201548152505083838151811061153257611531614945565b5b602002602001018190525050808061154990614974565b9150506113fc565b5080915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c390614f8c565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b600a602052816000526040600020818154811061165357600080fd5b9060005260206000209060030201600091509150508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154905083565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756116c881612f1c565b6000806000905060005b600880549050811015611770578473ffffffffffffffffffffffffffffffffffffffff166008828154811061170a57611709614945565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561175d5780925060019150611770565b808061176890614974565b9150506116d2565b50806117b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a89061501e565b60405180910390fd5b6000600960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060008290505b600160088054905061182191906148bb565b8110156118e257600860018261183791906148ef565b8154811061184857611847614945565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166008828154811061188757611886614945565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080806118da90614974565b91505061180f565b5060088054806118f5576118f461503e565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055905550505050565b60006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600180546119aa906149ec565b80601f01602080910402602001604051908101604052809291908181526020018280546119d6906149ec565b8015611a235780601f106119f857610100808354040283529160200191611a23565b820191906000526020600020905b815481529060010190602001808311611a0657829003601f168201915b5050505050905090565b60606000600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905067ffffffffffffffff811115611a8d57611a8c614573565b5b604051908082528060200260200182016040528015611ac657816020015b611ab3613cba565b815260200190600190039081611aab5790505b50905060005b600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050811015611c21576000600a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110611b6957611b68614945565b5b90600052602060002090600302019050806040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152602001600282015481525050838381518110611c0257611c01614945565b5b6020026020010181905250508080611c1990614974565b915050611acc565b5080915050919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611c5581612f1c565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050611c9357600080fd5b50565b6000801b81565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ccf906150b9565b60405180910390fd5b60096020528060005260406000206000915054906101000a900460ff1681565b611d09611d03612c18565b83612c20565b611d48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3f90614afc565b60405180910390fd5b611d5484848484613111565b50505050565b6060611d658261316d565b611da4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9b90615125565b60405180910390fd5b6000600c600084815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff1663c87b56dd600c6000868152602001908152602001600020600101546040518263ffffffff1660e01b8152600401611e2e9190613fe7565b60006040518083038186803b158015611e4657600080fd5b505afa158015611e5a573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611e8391906151e6565b915050919050565b60606008805480602002602001604051908101604052809291908181526020018280548015611f0f57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611ec5575b5050505050905090565b60088181548110611f2957600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611f8281612f1c565b6001600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506008829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b61204a82610ace565b61205381612f1c565b61205d8383613011565b505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600b602052816000526040600020818154811061211257600080fd5b9060005260206000209060030201600091509150508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154905083565b600260065414156121a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219a90614bfa565b60405180910390fd5b6002600681905550600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612237576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222e90614c66565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146122a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229c90614cd2565b60405180910390fd5b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000805b82805490508210156123bb578473ffffffffffffffffffffffffffffffffffffffff1683838154811061232257612321614945565b5b906000526020600020906003020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614801561239a57508383838154811061238657612385614945565b5b906000526020600020906003020160010154145b156123a857600190506123bb565b81806123b390614974565b9250506122ec565b6000600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000805b85805490508510156124d1573373ffffffffffffffffffffffffffffffffffffffff1683838154811061243857612437614945565b5b906000526020600020906003020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480156124b057508683838154811061249c5761249b614945565b5b906000526020600020906003020160010154145b156124be57600190506124d1565b81806124c990614974565b925050612402565b8380156124db5750805b61251a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125119061527b565b60405180910390fd5b60008890508073ffffffffffffffffffffffffffffffffffffffff166342842e0e30338b6040518463ffffffff1660e01b815260040161255c93929190614e77565b600060405180830381600087803b15801561257657600080fd5b505af115801561258a573d6000803e3d6000fd5b50505050600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905086106125dc57600080fd5b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905061266a91906148bb565b8154811061267b5761267a614945565b5b9060005260206000209060030201600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002087815481106126da576126d9614945565b5b90600052602060002090600302016000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001820154816001015560028201548160020155905050600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806127b5576127b461503e565b5b6001900381819060005260206000209060030201600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905550509055600b60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050831061285357600080fd5b600b60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600b60008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506128e191906148bb565b815481106128f2576128f1614945565b5b9060005260206000209060030201600b60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020848154811061295157612950614945565b5b90600052602060002090600302016000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001820154816001015560028201548160020155905050600b60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480612a2c57612a2b61503e565b5b6001900381819060005260206000209060030201600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560018201600090556002820160009055505090556000600d60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a8152602001908152602001600020549050612ada816131d9565b8973ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb8b604051612b379190613fe7565b60405180910390a3505050505050505060016006819055505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612bc65750612bc5826132f6565b5b9050919050565b612bd68161316d565b612c15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0c90614efa565b60405180910390fd5b50565b600033905090565b600080612c2c836112ab565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612c6e5750612c6d8185612062565b5b80612cac57508373ffffffffffffffffffffffffffffffffffffffff16612c94846109d8565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612cd5826112ab565b73ffffffffffffffffffffffffffffffffffffffff1614612d2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d229061530d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612d9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d929061539f565b60405180910390fd5b612da68383836133d8565b612db160008261348e565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e0191906148bb565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e5891906148ef565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612f17838383613547565b505050565b612f2d81612f28612c18565b61354c565b50565b612f3a8282611930565b61300d5760016007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612fb2612c18565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61301b8282611930565b156130ef5760006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550613094612c18565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b61310d8282604051806020016040528060008152506135e9565b5050565b61311c848484612cb5565b61312884848484613644565b613167576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161315e90615431565b60405180910390fd5b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60006131e4826112ab565b90506131f2816000846133d8565b6131fd60008361348e565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461324d91906148bb565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46132f281600084613547565b5050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806133c157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806133d157506133d0826137db565b5b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148061343f5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b61347e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134759061549d565b60405180910390fd5b613489838383613845565b505050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16613501836112ab565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b505050565b6135568282611930565b6135e55761357b8173ffffffffffffffffffffffffffffffffffffffff16601461384a565b6135898360001c602061384a565b60405160200161359a929190615591565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135dc919061409b565b60405180910390fd5b5050565b6135f38383613a86565b6136006000848484613644565b61363f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161363690615431565b60405180910390fd5b505050565b60006136658473ffffffffffffffffffffffffffffffffffffffff16613c60565b156137ce578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261368e612c18565b8786866040518563ffffffff1660e01b81526004016136b09493929190615620565b602060405180830381600087803b1580156136ca57600080fd5b505af19250505080156136fb57506040513d601f19601f820116820180604052508101906136f89190615681565b60015b61377e573d806000811461372b576040519150601f19603f3d011682016040523d82523d6000602084013e613730565b606091505b50600081511415613776576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161376d90615431565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506137d3565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050565b60606000600283600261385d9190614861565b61386791906148ef565b67ffffffffffffffff8111156138805761387f614573565b5b6040519080825280601f01601f1916602001820160405280156138b25781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106138ea576138e9614945565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061394e5761394d614945565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261398e9190614861565b61399891906148ef565b90505b6001811115613a38577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106139da576139d9614945565b5b1a60f81b8282815181106139f1576139f0614945565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080613a31906156ae565b905061399b565b5060008414613a7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a7390615724565b60405180910390fd5b8091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613af6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613aed90615790565b60405180910390fd5b613aff8161316d565b15613b3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b36906157fc565b60405180910390fd5b613b4b600083836133d8565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613b9b91906148ef565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613c5c60008383613547565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081525090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613d3a81613d05565b8114613d4557600080fd5b50565b600081359050613d5781613d31565b92915050565b600060208284031215613d7357613d72613cfb565b5b6000613d8184828501613d48565b91505092915050565b60008115159050919050565b613d9f81613d8a565b82525050565b6000602082019050613dba6000830184613d96565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613deb82613dc0565b9050919050565b613dfb81613de0565b8114613e0657600080fd5b50565b600081359050613e1881613df2565b92915050565b6000819050919050565b613e3181613e1e565b8114613e3c57600080fd5b50565b600081359050613e4e81613e28565b92915050565b600080600060608486031215613e6d57613e6c613cfb565b5b6000613e7b86828701613e09565b9350506020613e8c86828701613e3f565b9250506040613e9d86828701613e3f565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613edc81613de0565b82525050565b613eeb81613e1e565b82525050565b606082016000820151613f076000850182613ed3565b506020820151613f1a6020850182613ee2565b506040820151613f2d6040850182613ee2565b50505050565b6000613f3f8383613ef1565b60608301905092915050565b6000602082019050919050565b6000613f6382613ea7565b613f6d8185613eb2565b9350613f7883613ec3565b8060005b83811015613fa9578151613f908882613f33565b9750613f9b83613f4b565b925050600181019050613f7c565b5085935050505092915050565b60006020820190508181036000830152613fd08184613f58565b905092915050565b613fe181613e1e565b82525050565b6000602082019050613ffc6000830184613fd8565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561403c578082015181840152602081019050614021565b8381111561404b576000848401525b50505050565b6000601f19601f8301169050919050565b600061406d82614002565b614077818561400d565b935061408781856020860161401e565b61409081614051565b840191505092915050565b600060208201905081810360008301526140b58184614062565b905092915050565b6000602082840312156140d3576140d2613cfb565b5b60006140e184828501613e3f565b91505092915050565b6140f381613de0565b82525050565b600060208201905061410e60008301846140ea565b92915050565b6000806040838503121561412b5761412a613cfb565b5b600061413985828601613e09565b925050602061414a85828601613e3f565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f84011261417957614178614154565b5b8235905067ffffffffffffffff81111561419657614195614159565b5b6020830191508360018202830111156141b2576141b161415e565b5b9250929050565b6000806000806000608086880312156141d5576141d4613cfb565b5b60006141e388828901613e09565b95505060206141f488828901613e09565b945050604061420588828901613e3f565b935050606086013567ffffffffffffffff81111561422657614225613d00565b5b61423288828901614163565b92509250509295509295909350565b61424a81613d05565b82525050565b60006020820190506142656000830184614241565b92915050565b60008060006060848603121561428457614283613cfb565b5b600061429286828701613e09565b93505060206142a386828701613e09565b92505060406142b486828701613e3f565b9150509250925092565b6000819050919050565b6142d1816142be565b81146142dc57600080fd5b50565b6000813590506142ee816142c8565b92915050565b60006020828403121561430a57614309613cfb565b5b6000614318848285016142df565b91505092915050565b61432a816142be565b82525050565b60006020820190506143456000830184614321565b92915050565b6000806040838503121561436257614361613cfb565b5b6000614370858286016142df565b925050602061438185828601613e09565b9150509250929050565b6000602082840312156143a1576143a0613cfb565b5b60006143af84828501613e09565b91505092915050565b60006060820190506143cd60008301866140ea565b6143da6020830185613fd8565b6143e76040830184613fd8565b949350505050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6060820160008201516144316000850182613ed3565b5060208201516144446020850182613ee2565b5060408201516144576040850182613ee2565b50505050565b6000614469838361441b565b60608301905092915050565b6000602082019050919050565b600061448d826143ef565b61449781856143fa565b93506144a28361440b565b8060005b838110156144d35781516144ba888261445d565b97506144c583614475565b9250506001810190506144a6565b5085935050505092915050565b600060208201905081810360008301526144fa8184614482565b905092915050565b61450b81613d8a565b811461451657600080fd5b50565b60008135905061452881614502565b92915050565b6000806040838503121561454557614544613cfb565b5b600061455385828601613e09565b925050602061456485828601614519565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6145ab82614051565b810181811067ffffffffffffffff821117156145ca576145c9614573565b5b80604052505050565b60006145dd613cf1565b90506145e982826145a2565b919050565b600067ffffffffffffffff82111561460957614608614573565b5b61461282614051565b9050602081019050919050565b82818337600083830152505050565b600061464161463c846145ee565b6145d3565b90508281526020810184848401111561465d5761465c61456e565b5b61466884828561461f565b509392505050565b600082601f83011261468557614684614154565b5b813561469584826020860161462e565b91505092915050565b600080600080608085870312156146b8576146b7613cfb565b5b60006146c687828801613e09565b94505060206146d787828801613e09565b93505060406146e887828801613e3f565b925050606085013567ffffffffffffffff81111561470957614708613d00565b5b61471587828801614670565b91505092959194509250565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60006147598383613ed3565b60208301905092915050565b6000602082019050919050565b600061477d82614721565b614787818561472c565b93506147928361473d565b8060005b838110156147c35781516147aa888261474d565b97506147b583614765565b925050600181019050614796565b5085935050505092915050565b600060208201905081810360008301526147ea8184614772565b905092915050565b6000806040838503121561480957614808613cfb565b5b600061481785828601613e09565b925050602061482885828601613e09565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061486c82613e1e565b915061487783613e1e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156148b0576148af614832565b5b828202905092915050565b60006148c682613e1e565b91506148d183613e1e565b9250828210156148e4576148e3614832565b5b828203905092915050565b60006148fa82613e1e565b915061490583613e1e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561493a57614939614832565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061497f82613e1e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156149b2576149b1614832565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614a0457607f821691505b60208210811415614a1857614a176149bd565b5b50919050565b7f617070726f76652069732070726f686962697465640000000000000000000000600082015250565b6000614a5460158361400d565b9150614a5f82614a1e565b602082019050919050565b60006020820190508181036000830152614a8381614a47565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000614ae6602e8361400d565b9150614af182614a8a565b604082019050919050565b60006020820190508181036000830152614b1581614ad9565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614b78602f8361400d565b9150614b8382614b1c565b604082019050919050565b60006020820190508181036000830152614ba781614b6b565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614be4601f8361400d565b9150614bef82614bae565b602082019050919050565b60006020820190508181036000830152614c1381614bd7565b9050919050565b7f4e6f7420737570706f7274656420436f6e747261637420616464726573730000600082015250565b6000614c50601e8361400d565b9150614c5b82614c1a565b602082019050919050565b60006020820190508181036000830152614c7f81614c43565b9050919050565b7f4e6f7420454f4100000000000000000000000000000000000000000000000000600082015250565b6000614cbc60078361400d565b9150614cc782614c86565b602082019050919050565b60006020820190508181036000830152614ceb81614caf565b9050919050565b600081519050614d0181613df2565b92915050565b600060208284031215614d1d57614d1c613cfb565b5b6000614d2b84828501614cf2565b91505092915050565b7f596f7520617265206e6f7420746865206f776e6572206f66204e46542e000000600082015250565b6000614d6a601d8361400d565b9150614d7582614d34565b602082019050919050565b60006020820190508181036000830152614d9981614d5d565b9050919050565b6000604082019050614db560008301856140ea565b614dc260208301846140ea565b9392505050565b600081519050614dd881614502565b92915050565b600060208284031215614df457614df3613cfb565b5b6000614e0284828501614dc9565b91505092915050565b7f7065726d697420796f757273656c6620746f206c657420676f00000000000000600082015250565b6000614e4160198361400d565b9150614e4c82614e0b565b602082019050919050565b60006020820190508181036000830152614e7081614e34565b9050919050565b6000606082019050614e8c60008301866140ea565b614e9960208301856140ea565b614ea66040830184613fd8565b949350505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614ee460188361400d565b9150614eef82614eae565b602082019050919050565b60006020820190508181036000830152614f1381614ed7565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614f7660298361400d565b9150614f8182614f1a565b604082019050919050565b60006020820190508181036000830152614fa581614f69565b9050919050565b7f5468697320436f6e74726163742041646472657373206973206e6f742072656760008201527f6973746572642e00000000000000000000000000000000000000000000000000602082015250565b600061500860278361400d565b915061501382614fac565b604082019050919050565b6000602082019050818103600083015261503781614ffb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f736574417070726f76616c466f72416c6c2069732070726f6869626974656400600082015250565b60006150a3601f8361400d565b91506150ae8261506d565b602082019050919050565b600060208201905081810360008301526150d281615096565b9050919050565b7f5468697320436f7079204e4654206973206275726e65642e0000000000000000600082015250565b600061510f60188361400d565b915061511a826150d9565b602082019050919050565b6000602082019050818103600083015261513e81615102565b9050919050565b600067ffffffffffffffff8211156151605761515f614573565b5b61516982614051565b9050602081019050919050565b600061518961518484615145565b6145d3565b9050828152602081018484840111156151a5576151a461456e565b5b6151b084828561401e565b509392505050565b600082601f8301126151cd576151cc614154565b5b81516151dd848260208601615176565b91505092915050565b6000602082840312156151fc576151fb613cfb565b5b600082015167ffffffffffffffff81111561521a57615219613d00565b5b615226848285016151b8565b91505092915050565b7f596f752068617665206e6f74206465706f736974207468697300000000000000600082015250565b600061526560198361400d565b91506152708261522f565b602082019050919050565b6000602082019050818103600083015261529481615258565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006152f760258361400d565b91506153028261529b565b604082019050919050565b60006020820190508181036000830152615326816152ea565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061538960248361400d565b91506153948261532d565b604082019050919050565b600060208201905081810360008301526153b88161537c565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061541b60328361400d565b9150615426826153bf565b604082019050919050565b6000602082019050818103600083015261544a8161540e565b9050919050565b7f7472616e736665722069732070726f6869626974656400000000000000000000600082015250565b600061548760168361400d565b915061549282615451565b602082019050919050565b600060208201905081810360008301526154b68161547a565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006154fe6017836154bd565b9150615509826154c8565b601782019050919050565b600061551f82614002565b61552981856154bd565b935061553981856020860161401e565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b600061557b6011836154bd565b915061558682615545565b601182019050919050565b600061559c826154f1565b91506155a88285615514565b91506155b38261556e565b91506155bf8284615514565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b60006155f2826155cb565b6155fc81856155d6565b935061560c81856020860161401e565b61561581614051565b840191505092915050565b600060808201905061563560008301876140ea565b61564260208301866140ea565b61564f6040830185613fd8565b818103606083015261566181846155e7565b905095945050505050565b60008151905061567b81613d31565b92915050565b60006020828403121561569757615696613cfb565b5b60006156a58482850161566c565b91505092915050565b60006156b982613e1e565b915060008214156156cd576156cc614832565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b600061570e60208361400d565b9150615719826156d8565b602082019050919050565b6000602082019050818103600083015261573d81615701565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061577a60208361400d565b915061578582615744565b602082019050919050565b600060208201905081810360008301526157a98161576d565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006157e6601c8361400d565b91506157f1826157b0565b602082019050919050565b60006020820190508181036000830152615815816157d9565b905091905056fea2646970667358221220ff015dc8d4a49157fde1e229a2009a6a2f6df813e03ee775662140aab2c7b3b564736f6c63430008090033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102115760003560e01c806382727c8011610125578063b88d4fde116100ad578063cfac5d7c1161007c578063cfac5d7c14610672578063d547741f1461068e578063e985e9c5146106aa578063eabd0871146106da578063f3fef3a31461070c57610211565b8063b88d4fde146105d8578063c87b56dd146105f4578063cc04150e14610624578063cf06ddf71461064257610211565b806397dfe244116100f457806397dfe24414610534578063a0ef91df14610564578063a217fddf1461056e578063a22cb4651461058c578063a3197f52146105a857610211565b806382727c8014610498578063916d9975146104ca57806391d14854146104e657806395d89b411461051657610211565b8063248a9ca3116101a857806347e7ef241161017757806347e7ef24146103ce5780636352211e146103ea578063640b97561461041a57806370a082311461044a57806375b238fc1461047a57610211565b8063248a9ca31461034a5780632f2ff15d1461037a57806336568abe1461039657806342842e0e146103b257610211565b8063081812fc116101e4578063081812fc146102b2578063095ea7b3146102e2578063150b7a02146102fe57806323b872dd1461032e57610211565b806301ffc9a714610216578063024d0f2f14610246578063047fc9aa1461027657806306fdde0314610294575b600080fd5b610230600480360381019061022b9190613d5d565b610728565b60405161023d9190613da5565b60405180910390f35b610260600480360381019061025b9190613e54565b61073a565b60405161026d9190613fb6565b60405180910390f35b61027e610940565b60405161028b9190613fe7565b60405180910390f35b61029c610946565b6040516102a9919061409b565b60405180910390f35b6102cc60048036038101906102c791906140bd565b6109d8565b6040516102d991906140f9565b60405180910390f35b6102fc60048036038101906102f79190614114565b610a1e565b005b610318600480360381019061031391906141b9565b610a59565b6040516103259190614250565b60405180910390f35b6103486004803603810190610343919061426b565b610a6e565b005b610364600480360381019061035f91906142f4565b610ace565b6040516103719190614330565b60405180910390f35b610394600480360381019061038f919061434b565b610aee565b005b6103b060048036038101906103ab919061434b565b610b0f565b005b6103cc60048036038101906103c7919061426b565b610b92565b005b6103e860048036038101906103e39190614114565b610bb2565b005b61040460048036038101906103ff91906140bd565b6112ab565b60405161041191906140f9565b60405180910390f35b610434600480360381019061042f919061438b565b61135d565b6040516104419190613fb6565b60405180910390f35b610464600480360381019061045f919061438b565b61155b565b6040516104719190613fe7565b60405180910390f35b610482611613565b60405161048f9190614330565b60405180910390f35b6104b260048036038101906104ad9190614114565b611637565b6040516104c1939291906143b8565b60405180910390f35b6104e460048036038101906104df919061438b565b61169e565b005b61050060048036038101906104fb919061434b565b611930565b60405161050d9190613da5565b60405180910390f35b61051e61199b565b60405161052b919061409b565b60405180910390f35b61054e6004803603810190610549919061438b565b611a2d565b60405161055b91906144e0565b60405180910390f35b61056c611c2b565b005b610576611c96565b6040516105839190614330565b60405180910390f35b6105a660048036038101906105a1919061452e565b611c9d565b005b6105c260048036038101906105bd919061438b565b611cd8565b6040516105cf9190613da5565b60405180910390f35b6105f260048036038101906105ed919061469e565b611cf8565b005b61060e600480360381019061060991906140bd565b611d5a565b60405161061b919061409b565b60405180910390f35b61062c611e8b565b60405161063991906147d0565b60405180910390f35b61065c600480360381019061065791906140bd565b611f19565b60405161066991906140f9565b60405180910390f35b61068c6004803603810190610687919061438b565b611f58565b005b6106a860048036038101906106a3919061434b565b612041565b005b6106c460048036038101906106bf91906147f2565b612062565b6040516106d19190613da5565b60405180910390f35b6106f460048036038101906106ef9190614114565b6120f6565b604051610703939291906143b8565b60405180910390f35b61072660048036038101906107219190614114565b61215d565b005b600061073382612b53565b9050919050565b60606000600b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050600083856107919190614861565b90506000828210156107b85781836107a991906148bb565b9050858111156107b7578590505b5b60008667ffffffffffffffff8111156107d4576107d3614573565b5b60405190808252806020026020018201604052801561080d57816020015b6107fa613c83565b8152602001906001900390816107f25790505b50905060005b82811015610931576000600b60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828661086891906148ef565b8154811061087957610878614945565b5b90600052602060002090600302019050806040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820154815260200160028201548152505083838151811061091257610911614945565b5b602002602001018190525050808061092990614974565b915050610813565b50809450505050509392505050565b600e5481565b606060008054610955906149ec565b80601f0160208091040260200160405190810160405280929190818152602001828054610981906149ec565b80156109ce5780601f106109a3576101008083540402835291602001916109ce565b820191906000526020600020905b8154815290600101906020018083116109b157829003601f168201915b5050505050905090565b60006109e382612bcd565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5090614a6a565b60405180910390fd5b600063150b7a0260e01b905095945050505050565b610a7f610a79612c18565b82612c20565b610abe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab590614afc565b60405180910390fd5b610ac9838383612cb5565b505050565b600060076000838152602001908152602001600020600101549050919050565b610af782610ace565b610b0081612f1c565b610b0a8383612f30565b505050565b610b17612c18565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7b90614b8e565b60405180910390fd5b610b8e8282613011565b5050565b610bad83838360405180602001604052806000815250611cf8565b505050565b60026006541415610bf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bef90614bfa565b60405180910390fd5b6002600681905550600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610c8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8390614c66565b60405180910390fd5b60008290503273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610cff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf690614cd2565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b8152600401610d4f9190613fe7565b60206040518083038186803b158015610d6757600080fd5b505afa158015610d7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d9f9190614d07565b73ffffffffffffffffffffffffffffffffffffffff1614610df5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dec90614d80565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1663e985e9c533306040518363ffffffff1660e01b8152600401610e30929190614da0565b60206040518083038186803b158015610e4857600080fd5b505afa158015610e5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e809190614dde565b610ebf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb690614e57565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166342842e0e3330856040518463ffffffff1660e01b8152600401610efc93929190614e77565b600060405180830381600087803b158015610f1657600080fd5b505af1158015610f2a573d6000803e3d6000fd5b505050506000429050600060405180606001604052808673ffffffffffffffffffffffffffffffffffffffff168152602001858152602001838152509050600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201555050600b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180606001604052803373ffffffffffffffffffffffffffffffffffffffff16815260200186815260200184815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020155505080600c60006001600e5461113891906148ef565b815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201559050506001600e546111b391906148ef565b600d60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008681526020019081526020016000208190555061121f336001600e5461121a91906148ef565b6130f3565b600e600081548092919061123290614974565b91905055508473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62866040516112949190613fe7565b60405180910390a350505060016006819055505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611354576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134b90614efa565b60405180910390fd5b80915050919050565b60606000600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905067ffffffffffffffff8111156113bd576113bc614573565b5b6040519080825280602002602001820160405280156113f657816020015b6113e3613c83565b8152602001906001900390816113db5790505b50905060005b600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050811015611551576000600b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811061149957611498614945565b5b90600052602060002090600302019050806040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820154815260200160028201548152505083838151811061153257611531614945565b5b602002602001018190525050808061154990614974565b9150506113fc565b5080915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c390614f8c565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b600a602052816000526040600020818154811061165357600080fd5b9060005260206000209060030201600091509150508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154905083565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756116c881612f1c565b6000806000905060005b600880549050811015611770578473ffffffffffffffffffffffffffffffffffffffff166008828154811061170a57611709614945565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561175d5780925060019150611770565b808061176890614974565b9150506116d2565b50806117b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a89061501e565b60405180910390fd5b6000600960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060008290505b600160088054905061182191906148bb565b8110156118e257600860018261183791906148ef565b8154811061184857611847614945565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166008828154811061188757611886614945565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080806118da90614974565b91505061180f565b5060088054806118f5576118f461503e565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055905550505050565b60006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600180546119aa906149ec565b80601f01602080910402602001604051908101604052809291908181526020018280546119d6906149ec565b8015611a235780601f106119f857610100808354040283529160200191611a23565b820191906000526020600020905b815481529060010190602001808311611a0657829003601f168201915b5050505050905090565b60606000600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905067ffffffffffffffff811115611a8d57611a8c614573565b5b604051908082528060200260200182016040528015611ac657816020015b611ab3613cba565b815260200190600190039081611aab5790505b50905060005b600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050811015611c21576000600a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110611b6957611b68614945565b5b90600052602060002090600302019050806040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152602001600282015481525050838381518110611c0257611c01614945565b5b6020026020010181905250508080611c1990614974565b915050611acc565b5080915050919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611c5581612f1c565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050611c9357600080fd5b50565b6000801b81565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ccf906150b9565b60405180910390fd5b60096020528060005260406000206000915054906101000a900460ff1681565b611d09611d03612c18565b83612c20565b611d48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3f90614afc565b60405180910390fd5b611d5484848484613111565b50505050565b6060611d658261316d565b611da4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9b90615125565b60405180910390fd5b6000600c600084815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff1663c87b56dd600c6000868152602001908152602001600020600101546040518263ffffffff1660e01b8152600401611e2e9190613fe7565b60006040518083038186803b158015611e4657600080fd5b505afa158015611e5a573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611e8391906151e6565b915050919050565b60606008805480602002602001604051908101604052809291908181526020018280548015611f0f57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611ec5575b5050505050905090565b60088181548110611f2957600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611f8281612f1c565b6001600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506008829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b61204a82610ace565b61205381612f1c565b61205d8383613011565b505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600b602052816000526040600020818154811061211257600080fd5b9060005260206000209060030201600091509150508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154905083565b600260065414156121a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219a90614bfa565b60405180910390fd5b6002600681905550600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612237576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222e90614c66565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146122a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229c90614cd2565b60405180910390fd5b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000805b82805490508210156123bb578473ffffffffffffffffffffffffffffffffffffffff1683838154811061232257612321614945565b5b906000526020600020906003020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614801561239a57508383838154811061238657612385614945565b5b906000526020600020906003020160010154145b156123a857600190506123bb565b81806123b390614974565b9250506122ec565b6000600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000805b85805490508510156124d1573373ffffffffffffffffffffffffffffffffffffffff1683838154811061243857612437614945565b5b906000526020600020906003020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480156124b057508683838154811061249c5761249b614945565b5b906000526020600020906003020160010154145b156124be57600190506124d1565b81806124c990614974565b925050612402565b8380156124db5750805b61251a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125119061527b565b60405180910390fd5b60008890508073ffffffffffffffffffffffffffffffffffffffff166342842e0e30338b6040518463ffffffff1660e01b815260040161255c93929190614e77565b600060405180830381600087803b15801561257657600080fd5b505af115801561258a573d6000803e3d6000fd5b50505050600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905086106125dc57600080fd5b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905061266a91906148bb565b8154811061267b5761267a614945565b5b9060005260206000209060030201600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002087815481106126da576126d9614945565b5b90600052602060002090600302016000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001820154816001015560028201548160020155905050600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806127b5576127b461503e565b5b6001900381819060005260206000209060030201600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905550509055600b60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050831061285357600080fd5b600b60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600b60008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506128e191906148bb565b815481106128f2576128f1614945565b5b9060005260206000209060030201600b60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020848154811061295157612950614945565b5b90600052602060002090600302016000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001820154816001015560028201548160020155905050600b60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480612a2c57612a2b61503e565b5b6001900381819060005260206000209060030201600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560018201600090556002820160009055505090556000600d60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a8152602001908152602001600020549050612ada816131d9565b8973ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb8b604051612b379190613fe7565b60405180910390a3505050505050505060016006819055505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612bc65750612bc5826132f6565b5b9050919050565b612bd68161316d565b612c15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0c90614efa565b60405180910390fd5b50565b600033905090565b600080612c2c836112ab565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612c6e5750612c6d8185612062565b5b80612cac57508373ffffffffffffffffffffffffffffffffffffffff16612c94846109d8565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612cd5826112ab565b73ffffffffffffffffffffffffffffffffffffffff1614612d2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d229061530d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612d9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d929061539f565b60405180910390fd5b612da68383836133d8565b612db160008261348e565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e0191906148bb565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e5891906148ef565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612f17838383613547565b505050565b612f2d81612f28612c18565b61354c565b50565b612f3a8282611930565b61300d5760016007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612fb2612c18565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61301b8282611930565b156130ef5760006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550613094612c18565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b61310d8282604051806020016040528060008152506135e9565b5050565b61311c848484612cb5565b61312884848484613644565b613167576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161315e90615431565b60405180910390fd5b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60006131e4826112ab565b90506131f2816000846133d8565b6131fd60008361348e565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461324d91906148bb565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46132f281600084613547565b5050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806133c157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806133d157506133d0826137db565b5b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148061343f5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b61347e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134759061549d565b60405180910390fd5b613489838383613845565b505050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16613501836112ab565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b505050565b6135568282611930565b6135e55761357b8173ffffffffffffffffffffffffffffffffffffffff16601461384a565b6135898360001c602061384a565b60405160200161359a929190615591565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135dc919061409b565b60405180910390fd5b5050565b6135f38383613a86565b6136006000848484613644565b61363f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161363690615431565b60405180910390fd5b505050565b60006136658473ffffffffffffffffffffffffffffffffffffffff16613c60565b156137ce578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261368e612c18565b8786866040518563ffffffff1660e01b81526004016136b09493929190615620565b602060405180830381600087803b1580156136ca57600080fd5b505af19250505080156136fb57506040513d601f19601f820116820180604052508101906136f89190615681565b60015b61377e573d806000811461372b576040519150601f19603f3d011682016040523d82523d6000602084013e613730565b606091505b50600081511415613776576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161376d90615431565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506137d3565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050565b60606000600283600261385d9190614861565b61386791906148ef565b67ffffffffffffffff8111156138805761387f614573565b5b6040519080825280601f01601f1916602001820160405280156138b25781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106138ea576138e9614945565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061394e5761394d614945565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261398e9190614861565b61399891906148ef565b90505b6001811115613a38577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106139da576139d9614945565b5b1a60f81b8282815181106139f1576139f0614945565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080613a31906156ae565b905061399b565b5060008414613a7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a7390615724565b60405180910390fd5b8091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613af6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613aed90615790565b60405180910390fd5b613aff8161316d565b15613b3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b36906157fc565b60405180910390fd5b613b4b600083836133d8565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613b9b91906148ef565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613c5c60008383613547565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081525090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613d3a81613d05565b8114613d4557600080fd5b50565b600081359050613d5781613d31565b92915050565b600060208284031215613d7357613d72613cfb565b5b6000613d8184828501613d48565b91505092915050565b60008115159050919050565b613d9f81613d8a565b82525050565b6000602082019050613dba6000830184613d96565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613deb82613dc0565b9050919050565b613dfb81613de0565b8114613e0657600080fd5b50565b600081359050613e1881613df2565b92915050565b6000819050919050565b613e3181613e1e565b8114613e3c57600080fd5b50565b600081359050613e4e81613e28565b92915050565b600080600060608486031215613e6d57613e6c613cfb565b5b6000613e7b86828701613e09565b9350506020613e8c86828701613e3f565b9250506040613e9d86828701613e3f565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613edc81613de0565b82525050565b613eeb81613e1e565b82525050565b606082016000820151613f076000850182613ed3565b506020820151613f1a6020850182613ee2565b506040820151613f2d6040850182613ee2565b50505050565b6000613f3f8383613ef1565b60608301905092915050565b6000602082019050919050565b6000613f6382613ea7565b613f6d8185613eb2565b9350613f7883613ec3565b8060005b83811015613fa9578151613f908882613f33565b9750613f9b83613f4b565b925050600181019050613f7c565b5085935050505092915050565b60006020820190508181036000830152613fd08184613f58565b905092915050565b613fe181613e1e565b82525050565b6000602082019050613ffc6000830184613fd8565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561403c578082015181840152602081019050614021565b8381111561404b576000848401525b50505050565b6000601f19601f8301169050919050565b600061406d82614002565b614077818561400d565b935061408781856020860161401e565b61409081614051565b840191505092915050565b600060208201905081810360008301526140b58184614062565b905092915050565b6000602082840312156140d3576140d2613cfb565b5b60006140e184828501613e3f565b91505092915050565b6140f381613de0565b82525050565b600060208201905061410e60008301846140ea565b92915050565b6000806040838503121561412b5761412a613cfb565b5b600061413985828601613e09565b925050602061414a85828601613e3f565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f84011261417957614178614154565b5b8235905067ffffffffffffffff81111561419657614195614159565b5b6020830191508360018202830111156141b2576141b161415e565b5b9250929050565b6000806000806000608086880312156141d5576141d4613cfb565b5b60006141e388828901613e09565b95505060206141f488828901613e09565b945050604061420588828901613e3f565b935050606086013567ffffffffffffffff81111561422657614225613d00565b5b61423288828901614163565b92509250509295509295909350565b61424a81613d05565b82525050565b60006020820190506142656000830184614241565b92915050565b60008060006060848603121561428457614283613cfb565b5b600061429286828701613e09565b93505060206142a386828701613e09565b92505060406142b486828701613e3f565b9150509250925092565b6000819050919050565b6142d1816142be565b81146142dc57600080fd5b50565b6000813590506142ee816142c8565b92915050565b60006020828403121561430a57614309613cfb565b5b6000614318848285016142df565b91505092915050565b61432a816142be565b82525050565b60006020820190506143456000830184614321565b92915050565b6000806040838503121561436257614361613cfb565b5b6000614370858286016142df565b925050602061438185828601613e09565b9150509250929050565b6000602082840312156143a1576143a0613cfb565b5b60006143af84828501613e09565b91505092915050565b60006060820190506143cd60008301866140ea565b6143da6020830185613fd8565b6143e76040830184613fd8565b949350505050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6060820160008201516144316000850182613ed3565b5060208201516144446020850182613ee2565b5060408201516144576040850182613ee2565b50505050565b6000614469838361441b565b60608301905092915050565b6000602082019050919050565b600061448d826143ef565b61449781856143fa565b93506144a28361440b565b8060005b838110156144d35781516144ba888261445d565b97506144c583614475565b9250506001810190506144a6565b5085935050505092915050565b600060208201905081810360008301526144fa8184614482565b905092915050565b61450b81613d8a565b811461451657600080fd5b50565b60008135905061452881614502565b92915050565b6000806040838503121561454557614544613cfb565b5b600061455385828601613e09565b925050602061456485828601614519565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6145ab82614051565b810181811067ffffffffffffffff821117156145ca576145c9614573565b5b80604052505050565b60006145dd613cf1565b90506145e982826145a2565b919050565b600067ffffffffffffffff82111561460957614608614573565b5b61461282614051565b9050602081019050919050565b82818337600083830152505050565b600061464161463c846145ee565b6145d3565b90508281526020810184848401111561465d5761465c61456e565b5b61466884828561461f565b509392505050565b600082601f83011261468557614684614154565b5b813561469584826020860161462e565b91505092915050565b600080600080608085870312156146b8576146b7613cfb565b5b60006146c687828801613e09565b94505060206146d787828801613e09565b93505060406146e887828801613e3f565b925050606085013567ffffffffffffffff81111561470957614708613d00565b5b61471587828801614670565b91505092959194509250565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60006147598383613ed3565b60208301905092915050565b6000602082019050919050565b600061477d82614721565b614787818561472c565b93506147928361473d565b8060005b838110156147c35781516147aa888261474d565b97506147b583614765565b925050600181019050614796565b5085935050505092915050565b600060208201905081810360008301526147ea8184614772565b905092915050565b6000806040838503121561480957614808613cfb565b5b600061481785828601613e09565b925050602061482885828601613e09565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061486c82613e1e565b915061487783613e1e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156148b0576148af614832565b5b828202905092915050565b60006148c682613e1e565b91506148d183613e1e565b9250828210156148e4576148e3614832565b5b828203905092915050565b60006148fa82613e1e565b915061490583613e1e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561493a57614939614832565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061497f82613e1e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156149b2576149b1614832565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614a0457607f821691505b60208210811415614a1857614a176149bd565b5b50919050565b7f617070726f76652069732070726f686962697465640000000000000000000000600082015250565b6000614a5460158361400d565b9150614a5f82614a1e565b602082019050919050565b60006020820190508181036000830152614a8381614a47565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000614ae6602e8361400d565b9150614af182614a8a565b604082019050919050565b60006020820190508181036000830152614b1581614ad9565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614b78602f8361400d565b9150614b8382614b1c565b604082019050919050565b60006020820190508181036000830152614ba781614b6b565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614be4601f8361400d565b9150614bef82614bae565b602082019050919050565b60006020820190508181036000830152614c1381614bd7565b9050919050565b7f4e6f7420737570706f7274656420436f6e747261637420616464726573730000600082015250565b6000614c50601e8361400d565b9150614c5b82614c1a565b602082019050919050565b60006020820190508181036000830152614c7f81614c43565b9050919050565b7f4e6f7420454f4100000000000000000000000000000000000000000000000000600082015250565b6000614cbc60078361400d565b9150614cc782614c86565b602082019050919050565b60006020820190508181036000830152614ceb81614caf565b9050919050565b600081519050614d0181613df2565b92915050565b600060208284031215614d1d57614d1c613cfb565b5b6000614d2b84828501614cf2565b91505092915050565b7f596f7520617265206e6f7420746865206f776e6572206f66204e46542e000000600082015250565b6000614d6a601d8361400d565b9150614d7582614d34565b602082019050919050565b60006020820190508181036000830152614d9981614d5d565b9050919050565b6000604082019050614db560008301856140ea565b614dc260208301846140ea565b9392505050565b600081519050614dd881614502565b92915050565b600060208284031215614df457614df3613cfb565b5b6000614e0284828501614dc9565b91505092915050565b7f7065726d697420796f757273656c6620746f206c657420676f00000000000000600082015250565b6000614e4160198361400d565b9150614e4c82614e0b565b602082019050919050565b60006020820190508181036000830152614e7081614e34565b9050919050565b6000606082019050614e8c60008301866140ea565b614e9960208301856140ea565b614ea66040830184613fd8565b949350505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614ee460188361400d565b9150614eef82614eae565b602082019050919050565b60006020820190508181036000830152614f1381614ed7565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614f7660298361400d565b9150614f8182614f1a565b604082019050919050565b60006020820190508181036000830152614fa581614f69565b9050919050565b7f5468697320436f6e74726163742041646472657373206973206e6f742072656760008201527f6973746572642e00000000000000000000000000000000000000000000000000602082015250565b600061500860278361400d565b915061501382614fac565b604082019050919050565b6000602082019050818103600083015261503781614ffb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f736574417070726f76616c466f72416c6c2069732070726f6869626974656400600082015250565b60006150a3601f8361400d565b91506150ae8261506d565b602082019050919050565b600060208201905081810360008301526150d281615096565b9050919050565b7f5468697320436f7079204e4654206973206275726e65642e0000000000000000600082015250565b600061510f60188361400d565b915061511a826150d9565b602082019050919050565b6000602082019050818103600083015261513e81615102565b9050919050565b600067ffffffffffffffff8211156151605761515f614573565b5b61516982614051565b9050602081019050919050565b600061518961518484615145565b6145d3565b9050828152602081018484840111156151a5576151a461456e565b5b6151b084828561401e565b509392505050565b600082601f8301126151cd576151cc614154565b5b81516151dd848260208601615176565b91505092915050565b6000602082840312156151fc576151fb613cfb565b5b600082015167ffffffffffffffff81111561521a57615219613d00565b5b615226848285016151b8565b91505092915050565b7f596f752068617665206e6f74206465706f736974207468697300000000000000600082015250565b600061526560198361400d565b91506152708261522f565b602082019050919050565b6000602082019050818103600083015261529481615258565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006152f760258361400d565b91506153028261529b565b604082019050919050565b60006020820190508181036000830152615326816152ea565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061538960248361400d565b91506153948261532d565b604082019050919050565b600060208201905081810360008301526153b88161537c565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061541b60328361400d565b9150615426826153bf565b604082019050919050565b6000602082019050818103600083015261544a8161540e565b9050919050565b7f7472616e736665722069732070726f6869626974656400000000000000000000600082015250565b600061548760168361400d565b915061549282615451565b602082019050919050565b600060208201905081810360008301526154b68161547a565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006154fe6017836154bd565b9150615509826154c8565b601782019050919050565b600061551f82614002565b61552981856154bd565b935061553981856020860161401e565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b600061557b6011836154bd565b915061558682615545565b601182019050919050565b600061559c826154f1565b91506155a88285615514565b91506155b38261556e565b91506155bf8284615514565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b60006155f2826155cb565b6155fc81856155d6565b935061560c81856020860161401e565b61561581614051565b840191505092915050565b600060808201905061563560008301876140ea565b61564260208301866140ea565b61564f6040830185613fd8565b818103606083015261566181846155e7565b905095945050505050565b60008151905061567b81613d31565b92915050565b60006020828403121561569757615696613cfb565b5b60006156a58482850161566c565b91505092915050565b60006156b982613e1e565b915060008214156156cd576156cc614832565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b600061570e60208361400d565b9150615719826156d8565b602082019050919050565b6000602082019050818103600083015261573d81615701565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061577a60208361400d565b915061578582615744565b602082019050919050565b600060208201905081810360008301526157a98161576d565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006157e6601c8361400d565b91506157f1826157b0565b602082019050919050565b60006020820190508181036000830152615815816157d9565b905091905056fea2646970667358221220ff015dc8d4a49157fde1e229a2009a6a2f6df813e03ee775662140aab2c7b3b564736f6c63430008090033

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.