MNT Price: $0.90 (+0.42%)

Contract

0x36DF86FeEB5e4e06bEB77CC4b4eBd511027A9774
 

Overview

MNT Balance

Mantle Mainnet Network LogoMantle Mainnet Network LogoMantle Mainnet Network Logo0 MNT

MNT Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Withdraw ERC20809608922025-06-16 5:34:56226 days ago1750052096IN
0x36DF86Fe...1027A9774
0 MNT0.008372170.0202
Withdraw ERC20807903972025-06-12 6:51:46230 days ago1749711106IN
0x36DF86Fe...1027A9774
0 MNT0.008732840.02
Withdraw ERC20807887002025-06-12 5:55:12230 days ago1749707712IN
0x36DF86Fe...1027A9774
0 MNT0.008662630.02
Withdraw ERC20807886012025-06-12 5:51:54230 days ago1749707514IN
0x36DF86Fe...1027A9774
0 MNT0.008655030.02
Withdraw ERC20807881122025-06-12 5:35:36230 days ago1749706536IN
0x36DF86Fe...1027A9774
0 MNT0.008682880.02
Withdraw ERC20807880592025-06-12 5:33:50230 days ago1749706430IN
0x36DF86Fe...1027A9774
0 MNT0.008720180.02
Withdraw ERC20807874892025-06-12 5:14:50230 days ago1749705290IN
0x36DF86Fe...1027A9774
0 MNT0.008708010.02
Withdraw ERC20807873762025-06-12 5:11:04230 days ago1749705064IN
0x36DF86Fe...1027A9774
0 MNT0.008676670.02
Withdraw ERC20807107742025-06-10 10:37:40231 days ago1749551860IN
0x36DF86Fe...1027A9774
0 MNT0.007306830.02
Withdraw ERC20806226282025-06-08 9:39:28233 days ago1749375568IN
0x36DF86Fe...1027A9774
0 MNT0.002213750.02
Withdraw ERC20806224312025-06-08 9:32:54233 days ago1749375174IN
0x36DF86Fe...1027A9774
0 MNT0.002217150.02
Withdraw ERC20805947612025-06-07 18:10:34234 days ago1749319834IN
0x36DF86Fe...1027A9774
0 MNT0.008045380.02
Withdraw ERC20805804232025-06-07 10:12:38234 days ago1749291158IN
0x36DF86Fe...1027A9774
0 MNT0.008012740.02
Withdraw ERC20805303072025-06-06 6:22:06236 days ago1749190926IN
0x36DF86Fe...1027A9774
0 MNT0.008082690.02
Withdraw ERC20805293962025-06-06 5:51:44236 days ago1749189104IN
0x36DF86Fe...1027A9774
0 MNT0.008051580.02
Withdraw ERC20805043662025-06-05 15:57:24236 days ago1749139044IN
0x36DF86Fe...1027A9774
0 MNT0.008761420.02
Withdraw ERC20804908382025-06-05 8:26:28236 days ago1749111988IN
0x36DF86Fe...1027A9774
0 MNT0.008329030.02
Withdraw ERC20804907752025-06-05 8:24:22236 days ago1749111862IN
0x36DF86Fe...1027A9774
0 MNT0.008316170.02
Add Whitelist Si...804654202025-06-04 18:19:12237 days ago1749061152IN
0x36DF86Fe...1027A9774
0 MNT0.006048410.02
Withdraw ERC20804563972025-06-04 13:18:26237 days ago1749043106IN
0x36DF86Fe...1027A9774
0 MNT0.00849640.02
Withdraw ERC20804467562025-06-04 7:57:04238 days ago1749023824IN
0x36DF86Fe...1027A9774
0 MNT0.008073640.02
Withdraw ERC20804461412025-06-04 7:36:34238 days ago1749022594IN
0x36DF86Fe...1027A9774
0 MNT0.008114890.02
Withdraw ERC20804461402025-06-04 7:36:32238 days ago1749022592IN
0x36DF86Fe...1027A9774
0 MNT0.008114890.02
Withdraw ERC20804461292025-06-04 7:36:10238 days ago1749022570IN
0x36DF86Fe...1027A9774
0 MNT0.008108610.02
Withdraw ERC20804461182025-06-04 7:35:48238 days ago1749022548IN
0x36DF86Fe...1027A9774
0 MNT0.008110960.02
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Rewards

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.24;

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";

contract Rewards is ERC721Holder, ERC1155Holder, Pausable, AccessControl, ReentrancyGuard {
    bytes32 public constant MANAGER_ROLE = keccak256("MANAGER_ROLE");
    bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");

    mapping(address => bool) public whitelistSigners;
    mapping(bytes => bool) private usedSignatures;

    event WhitelistSignerAdded(address indexed signer);
    event WhitelistSignerRemoved(address indexed signer);

    enum RewardType { ERC20, ERC721, ERC1155 }

    event RewardDeposited(
        uint256 questId,
        RewardType rewardType,
        address indexed tokenAddress,
        address indexed from,
        uint256[] indexed tokenIds,
        uint256[] amounts
    );
    event RewardWithdrawn(
        uint256 questId,
        RewardType rewardType,
        address indexed tokenAddress,
        address indexed to,
        uint256[] indexed tokenIds,
        uint256[] amounts
    );

    constructor(address adminWallet, address devWallet, address vaultWallet, address pauserWallet) {
        _grantRole(PAUSER_ROLE, pauserWallet);

        _addWhitelistSigner(adminWallet);
        _addWhitelistSigner(devWallet);
        _addWhitelistSigner(vaultWallet);
    }

    // Balance helper functions to keep track of deposits for the UI & API. Not needed in this contract, but useful for the frontend.

    function balanceOfERC20(address tokenAddress) public view returns (uint256) {
        return IERC20(tokenAddress).balanceOf(address(this));
    }

    function ownerOfERC721(address tokenAddress, uint256 tokenId) public view returns (bool) {
        return IERC721(tokenAddress).ownerOf(tokenId) == address(this);
    }

    function balanceOfERC1155(address tokenAddress, uint256 tokenId) public view returns (uint256) {
        return IERC1155(tokenAddress).balanceOf(address(this), tokenId);
    }

    function balanceOfERC1155Batch(address tokenAddress, address[] calldata accounts, uint256[] calldata tokenIds) public view returns (uint256[] memory) {
        return IERC1155(tokenAddress).balanceOfBatch(accounts, tokenIds);
    }

    // Deposit functions for ERC20, ERC721, and ERC1155 tokens
    // Using the deposit functions directly requires approvals before calling them
    // To avoid this by default, we can call the token transfer functions directly from the dev's wallet, and do a balance check post-txn

    function depositERC20(
        uint256 questId,
        address tokenAddress,
        uint256 amount,
        uint256 nonce,
        uint256 expiration,
        bytes calldata signature
    )
        external
        nonReentrant
        whenNotPaused
    {
        uint256[] memory tokenIds = new uint256[](1);
        uint256[] memory amounts = new uint256[](1);
        tokenIds[0] = 0;
        amounts[0] = amount;
        signatureCheck(questId, _msgSender(), tokenAddress, tokenIds, amounts, nonce, expiration, "depositERC20", signature);

        IERC20 token = IERC20(tokenAddress);
        require(token.balanceOf(_msgSender()) >= amount, "InsufficientBalance");
        token.transferFrom(_msgSender(), address(this), amount);
        emit RewardDeposited(questId, RewardType.ERC20, tokenAddress, _msgSender(), tokenIds, amounts);
    }

    function depositERC721(
        uint256 questId,
        address tokenAddress,
        uint256 tokenId,
        uint256 nonce,
        uint256 expiration,
        bytes calldata signature
    )
        external
        nonReentrant
        whenNotPaused
    {
        uint256[] memory tokenIds = new uint256[](1);
        uint256[] memory amounts = new uint256[](1);
        tokenIds[0] = tokenId;
        amounts[0] = 0;
        signatureCheck(questId, _msgSender(), tokenAddress, tokenIds, amounts, nonce, expiration, "depositERC721", signature);

        IERC721 token = IERC721(tokenAddress);
        require(token.ownerOf(tokenId) == _msgSender(), "NotOwner");
        token.safeTransferFrom(_msgSender(), address(this), tokenId);
        emit RewardDeposited(questId, RewardType.ERC721, tokenAddress, _msgSender(), tokenIds, amounts);
    }

    function depositERC1155(
        uint256 questId,
        address tokenAddress,
        uint256 tokenId,
        uint256 amount,
        uint256 nonce,
        uint256 expiration,
        bytes calldata signature
    )
        external
        nonReentrant
        whenNotPaused
    {
        uint256[] memory tokenIds = new uint256[](1);
        uint256[] memory amounts = new uint256[](1);
        tokenIds[0] = tokenId;
        amounts[0] = amount;
        signatureCheck(questId, _msgSender(), tokenAddress, tokenIds, amounts, nonce, expiration, "depositERC1155", signature);

        IERC1155 token = IERC1155(tokenAddress);
        require(token.balanceOf(_msgSender(), tokenId) >= amount, "InsufficientBalance");
        token.safeTransferFrom(_msgSender(), address(this), tokenId, amount, "");
        emit RewardDeposited(questId, RewardType.ERC1155, tokenAddress, _msgSender(), tokenIds, amounts);
    }

    function depositERC1155Batch(
        uint256 questId,
        address tokenAddress,
        uint256[] memory tokenIds,
        uint256[] memory amounts,
        uint256 nonce,
        uint256 expiration,
        bytes calldata signature
    )
        external
        nonReentrant
        whenNotPaused
    {
        signatureCheck(questId, _msgSender(), tokenAddress, tokenIds, amounts, nonce, expiration, "depositERC1155Batch", signature);

        IERC1155 token = IERC1155(tokenAddress);
        for (uint256 i = 0; i < tokenIds.length; i++) {
            require(token.balanceOf(_msgSender(), tokenIds[i]) >= amounts[i], "InsufficientBalance");
        }
        token.safeBatchTransferFrom(_msgSender(), address(this), tokenIds, amounts, "");
        emit RewardDeposited(questId, RewardType.ERC1155, tokenAddress, _msgSender(), tokenIds, amounts);
    }

    function withdrawERC20(
        uint256 questId,
        address tokenAddress,
        uint256 amount,
        uint256 nonce,
        uint256 expiration,
        bytes calldata signature
    )
        external
        nonReentrant
        whenNotPaused
    {
        uint256[] memory tokenIds = new uint256[](1);
        uint256[] memory amounts = new uint256[](1);
        tokenIds[0] = 0;
        amounts[0] = amount;
        signatureCheck(questId, _msgSender(), tokenAddress, tokenIds, amounts, nonce, expiration, "withdrawERC20", signature);

        IERC20 token = IERC20(tokenAddress);
        require(token.balanceOf(address(this)) >= amount, "InsufficientBalance");
        bool transferred = token.transfer(_msgSender(), amount);
        require(transferred, "TransferFailed");
        emit RewardWithdrawn(questId, RewardType.ERC20, tokenAddress, _msgSender(), tokenIds, amounts);
    }

    function withdrawERC721(
        uint256 questId,
        address tokenAddress,
        uint256 tokenId,
        uint256 nonce,
        uint256 expiration,
        bytes calldata signature
    )
        external
        nonReentrant
        whenNotPaused
    {
        uint256[] memory tokenIds = new uint256[](1);
        uint256[] memory amounts = new uint256[](1);
        tokenIds[0] = tokenId;
        amounts[0] = 0;
        signatureCheck(questId, _msgSender(), tokenAddress, tokenIds, amounts, nonce, expiration, "withdrawERC721", signature);

        IERC721 token = IERC721(tokenAddress);
        require(token.ownerOf(tokenId) == address(this), "NotOwner");
        token.safeTransferFrom(address(this), _msgSender(), tokenId);
        emit RewardWithdrawn(questId, RewardType.ERC721, tokenAddress, _msgSender(), tokenIds, amounts);
    }

    function withdrawERC1155(
        uint256 questId,
        address tokenAddress,
        uint256 tokenId,
        uint256 amount,
        uint256 nonce,
        uint256 expiration,
        bytes calldata signature
    )
        external
        nonReentrant
        whenNotPaused
    {
        uint256[] memory tokenIds = new uint256[](1);
        uint256[] memory amounts = new uint256[](1);
        tokenIds[0] = tokenId;
        amounts[0] = amount;
        signatureCheck(questId, _msgSender(), tokenAddress, tokenIds, amounts, nonce, expiration, "withdrawERC1155", signature);

        IERC1155 token = IERC1155(tokenAddress);
        require(token.balanceOf(address(this), tokenId) >= amount, "InsufficientBalance");
        token.safeTransferFrom(address(this), _msgSender(), tokenId, amount, "");
        emit RewardWithdrawn(questId, RewardType.ERC1155, tokenAddress, _msgSender(), tokenIds, amounts);
    }

    function withdrawERC1155Batch(
        uint256 questId,
        address tokenAddress,
        uint256[] memory tokenIds,
        uint256[] memory amounts,
        uint256 nonce,
        uint256 expiration,
        bytes calldata signature
    )
        external
        nonReentrant
        whenNotPaused
    {
        signatureCheck(questId, _msgSender(), tokenAddress, tokenIds, amounts, nonce, expiration, "withdrawERC1155Batch", signature);
        
        // are these balance checks really necessary if the gas estimation will flag an error if the balance is insufficient?
        IERC1155 token = IERC1155(tokenAddress);
        for (uint256 i = 0; i < tokenIds.length; i++) {
            require(token.balanceOf(address(this), tokenIds[i]) >= amounts[i], "InsufficientBalance");
        }
        token.safeBatchTransferFrom(address(this), _msgSender(), tokenIds, amounts, "");
        emit RewardWithdrawn(questId, RewardType.ERC1155, tokenAddress, _msgSender(), tokenIds, amounts);
    }

    function signatureCheck(
        uint256 questId,
        address wallet,
        address tokenAddress,
        uint256[] memory tokenIds,
        uint256[] memory amounts,
        uint256 nonce,
        uint256 expiration,
        string memory functionName,
        bytes calldata signature
    ) internal {
        require(_verifySignature(questId, wallet, tokenAddress, tokenIds, amounts, nonce, expiration, functionName, signature), "InvalidSignature");
    }

    function pause() public onlyRole(PAUSER_ROLE) {
        _pause();
    }

    function unpause() public onlyRole(PAUSER_ROLE) {
        _unpause();
    }

    function addWhitelistSigner(address _signer) external onlyRole(MANAGER_ROLE) {
        _addWhitelistSigner(_signer);
    }

    function removeWhitelistSigner(address signer) external onlyRole(MANAGER_ROLE) {
        _removeWhitelistSigner(signer);
    }

    function _addWhitelistSigner(address _signer) internal virtual {
        require(_signer != address(0), "ZeroAddress");
        require(!whitelistSigners[_signer], "AlreadySigner");
        whitelistSigners[_signer] = true;
        _grantRole(MANAGER_ROLE, _signer);
        emit WhitelistSignerAdded(_signer);
    }

    function _removeWhitelistSigner(address _signer) internal virtual {
        require(_signer != address(0), "ZeroAddress");
        require(whitelistSigners[_signer], "NotSigner");
        whitelistSigners[_signer] = false;
        _revokeRole(MANAGER_ROLE, _signer);
        emit WhitelistSignerRemoved(_signer);
    }

    function _verifySignature(
        uint256 questId,
        address wallet,
        address tokenAddress,
        uint256[] memory tokenIds,
        uint256[] memory amounts,
        uint256 nonce,
        uint256 expiration,
        string memory functionName,
        bytes calldata signature
    ) private returns (bool) {
        require(block.timestamp <= expiration, "SignatureExpired");
        bytes32 messageHash = keccak256(abi.encode(block.chainid, questId, address(this), wallet, tokenAddress, tokenIds, amounts, nonce, expiration, functionName));
        bytes32 signedHash = ECDSA.toEthSignedMessageHash(messageHash);
        address signer = ECDSA.recover(signedHash, signature);

        // Enforce that signer has permission, and that the signature hasn't been used before
        if (whitelistSigners[signer] && !usedSignatures[signature]) {
            usedSignatures[signature] = true;
            return true;
        } else {
            return false;
        }
    }

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

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

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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:
 *
 * ```solidity
 * 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}:
 *
 * ```solidity
 * 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. We recommend using {AccessControlDefaultAdminRules}
 * to enforce additional security measures for this role.
 */
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(account),
                        " 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());
        }
    }
}

// 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;
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

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

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(
        address[] calldata accounts,
        uint256[] calldata ids
    ) external view returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/utils/ERC1155Holder.sol)

pragma solidity ^0.8.0;

import "./ERC1155Receiver.sol";

/**
 * Simple implementation of `ERC1155Receiver` that will allow a contract to hold ERC1155 tokens.
 *
 * IMPORTANT: When inheriting this contract, you must include a way to use the received tokens, otherwise they will be
 * stuck.
 *
 * @dev _Available since v3.1._
 */
contract ERC1155Holder is ERC1155Receiver {
    function onERC1155Received(
        address,
        address,
        uint256,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC1155Received.selector;
    }

    function onERC1155BatchReceived(
        address,
        address,
        uint256[] memory,
        uint256[] memory,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC1155BatchReceived.selector;
    }
}

File 11 of 20 : ERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/utils/ERC1155Receiver.sol)

pragma solidity ^0.8.0;

import "../IERC1155Receiver.sol";
import "../../../utils/introspection/ERC165.sol";

/**
 * @dev _Available since v3.1._
 */
abstract contract ERC1155Receiver is ERC165, IERC1155Receiver {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId);
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/utils/ERC721Holder.sol)

pragma solidity ^0.8.0;

import "../IERC721Receiver.sol";

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

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

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

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

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

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

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

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, "\x19\x01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            data := keccak256(ptr, 0x42)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Data with intended validator, created from a
     * `validator` and `data` according to the version 0 of EIP-191.
     *
     * See {recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x00", validator, data));
    }
}

// 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;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

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

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"adminWallet","type":"address"},{"internalType":"address","name":"devWallet","type":"address"},{"internalType":"address","name":"vaultWallet","type":"address"},{"internalType":"address","name":"pauserWallet","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"questId","type":"uint256"},{"indexed":false,"internalType":"enum Rewards.RewardType","name":"rewardType","type":"uint8"},{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"RewardDeposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"questId","type":"uint256"},{"indexed":false,"internalType":"enum Rewards.RewardType","name":"rewardType","type":"uint8"},{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"RewardWithdrawn","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"signer","type":"address"}],"name":"WhitelistSignerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"signer","type":"address"}],"name":"WhitelistSignerRemoved","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"addWhitelistSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"balanceOfERC1155","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"balanceOfERC1155Batch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"balanceOfERC20","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"questId","type":"uint256"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"depositERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"questId","type":"uint256"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"depositERC1155Batch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"questId","type":"uint256"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"depositERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"questId","type":"uint256"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"depositERC721","outputs":[],"stateMutability":"nonpayable","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":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOfERC721","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"removeWhitelistSigner","outputs":[],"stateMutability":"nonpayable","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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistSigners","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"questId","type":"uint256"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"withdrawERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"questId","type":"uint256"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"withdrawERC1155Batch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"questId","type":"uint256"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"questId","type":"uint256"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"withdrawERC721","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620056d6380380620056d6833981810160405281019062000037919062000468565b60008060006101000a81548160ff02191690831515021790555060016002819055506200008b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a82620000c860201b60201c565b6200009c84620001b960201b60201c565b620000ad83620001b960201b60201c565b620000be82620001b960201b60201c565b50505050620005cf565b620000da82826200038b60201b60201c565b620001b557600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200015a620003f660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036200022b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000222906200053b565b60405180910390fd5b600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615620002bb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002b290620005ad565b60405180910390fd5b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620003457f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0882620000c860201b60201c565b8073ffffffffffffffffffffffffffffffffffffffff167fa5d501ce281a3d4bc9e42f4423f9f117dcd0ea4d09ebcd151b60fb5daeab8fd060405160405180910390a250565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004308262000403565b9050919050565b620004428162000423565b81146200044e57600080fd5b50565b600081519050620004628162000437565b92915050565b60008060008060808587031215620004855762000484620003fe565b5b6000620004958782880162000451565b9450506020620004a88782880162000451565b9350506040620004bb8782880162000451565b9250506060620004ce8782880162000451565b91505092959194509250565b600082825260208201905092915050565b7f5a65726f41646472657373000000000000000000000000000000000000000000600082015250565b600062000523600b83620004da565b91506200053082620004eb565b602082019050919050565b60006020820190508181036000830152620005568162000514565b9050919050565b7f416c72656164795369676e657200000000000000000000000000000000000000600082015250565b600062000595600d83620004da565b9150620005a2826200055d565b602082019050919050565b60006020820190508181036000830152620005c88162000586565b9050919050565b6150f780620005df6000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c8063859ab73a11610104578063cb9b1ab2116100a2578063e23cc4c311610071578063e23cc4c31461055f578063e63ab1e91461057b578063ec87621c14610599578063f23a6e61146105b7576101da565b8063cb9b1ab2146104db578063ce4754c0146104f7578063d547741f14610513578063d93db24f1461052f576101da565b8063a8f4ed5d116100de578063a8f4ed5d14610457578063ab2954f714610473578063bc197c811461048f578063c7e834a0146104bf576101da565b8063859ab73a146103d957806391d1485414610409578063a217fddf14610439576101da565b80633f4ba83a1161017c5780635c5245f71161014b5780635c5245f7146103795780635c975abb146103955780636e622cbc146103b35780638456cb59146103cf576101da565b80633f4ba83a146102f3578063418ae269146102fd57806347c0bf4e1461032d5780634e91149014610349576101da565b8063150b7a02116101b8578063150b7a021461025b578063248a9ca31461028b5780632f2ff15d146102bb57806336568abe146102d7576101da565b806301ffc9a7146101df5780630779aba41461020f578063122b9d1d1461022b575b600080fd5b6101f960048036038101906101f4919061344b565b6105e7565b6040516102069190613493565b60405180910390f35b610229600480360381019061022491906136f6565b6105f9565b005b6102456004803603810190610240919061389c565b610879565b60405161025291906139ef565b60405180910390f35b61027560048036038101906102709190613ac6565b61090b565b6040516102829190613b58565b60405180910390f35b6102a560048036038101906102a09190613ba9565b61091f565b6040516102b29190613be5565b60405180910390f35b6102d560048036038101906102d09190613c00565b61093f565b005b6102f160048036038101906102ec9190613c00565b610960565b005b6102fb6109e3565b005b61031760048036038101906103129190613c40565b610a18565b6040516103249190613c8f565b60405180910390f35b610347600480360381019061034291906136f6565b610a9d565b005b610363600480360381019061035e9190613c40565b610d24565b6040516103709190613493565b60405180910390f35b610393600480360381019061038e9190613caa565b610dd6565b005b61039d610e0d565b6040516103aa9190613493565b60405180910390f35b6103cd60048036038101906103c89190613cd7565b610e23565b005b6103d761114b565b005b6103f360048036038101906103ee9190613caa565b611180565b6040516104009190613493565b60405180910390f35b610423600480360381019061041e9190613c00565b6111a0565b6040516104309190613493565b60405180910390f35b61044161120b565b60405161044e9190613be5565b60405180910390f35b610471600480360381019061046c9190613cd7565b611212565b005b61048d60048036038101906104889190613cd7565b611553565b005b6104a960048036038101906104a49190613d86565b61188d565b6040516104b69190613b58565b60405180910390f35b6104d960048036038101906104d49190613e55565b6118a2565b005b6104f560048036038101906104f09190613e55565b611bb4565b005b610511600480360381019061050c9190613caa565b611ecd565b005b61052d60048036038101906105289190613c00565b611f04565b005b61054960048036038101906105449190613caa565b611f25565b6040516105569190613c8f565b60405180910390f35b61057960048036038101906105749190613cd7565b611fa8565b005b61058361230b565b6040516105909190613be5565b60405180910390f35b6105a161232f565b6040516105ae9190613be5565b60405180910390f35b6105d160048036038101906105cc9190613f17565b612353565b6040516105de9190613b58565b60405180910390f35b60006105f282612368565b9050919050565b6106016123e2565b61060961242f565b61065788610615612479565b89898989896040518060400160405280601481526020017f77697468647261774552433131353542617463680000000000000000000000008152508a8a612481565b600087905060005b87518110156107665786818151811061067b5761067a613fae565b5b60200260200101518273ffffffffffffffffffffffffffffffffffffffff1662fdd58e308b85815181106106b2576106b1613fae565b5b60200260200101516040518363ffffffff1660e01b81526004016106d7929190613fec565b602060405180830381865afa1580156106f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610718919061402a565b1015610759576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610750906140b4565b60405180910390fd5b808060010191505061065f565b508073ffffffffffffffffffffffffffffffffffffffff16632eb2c2d63061078c612479565b8a8a6040518563ffffffff1660e01b81526004016107ad949392919061410b565b600060405180830381600087803b1580156107c757600080fd5b505af11580156107db573d6000803e3d6000fd5b50505050866040516107ed9190614201565b60405180910390206107fd612479565b73ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff167f48f100b6821cd2ef62289c5643829b4cfaac51bc2b7b84d1ad86cdedaa44863b8c60028b60405161085e9392919061428f565b60405180910390a45061086f6124de565b5050505050505050565b60608573ffffffffffffffffffffffffffffffffffffffff16634e1273f4868686866040518563ffffffff1660e01b81526004016108ba94939291906143fa565b600060405180830381865afa1580156108d7573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061090091906144cc565b905095945050505050565b600063150b7a0260e01b9050949350505050565b600060016000838152602001908152602001600020600101549050919050565b6109488261091f565b610951816124e8565b61095b83836124fc565b505050565b610968612479565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146109d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109cc90614587565b60405180910390fd5b6109df82826125dc565b5050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610a0d816124e8565b610a156126be565b50565b60008273ffffffffffffffffffffffffffffffffffffffff1662fdd58e30846040518363ffffffff1660e01b8152600401610a54929190613fec565b602060405180830381865afa158015610a71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a95919061402a565b905092915050565b610aa56123e2565b610aad61242f565b610afb88610ab9612479565b89898989896040518060400160405280601381526020017f6465706f736974455243313135354261746368000000000000000000000000008152508a8a612481565b600087905060005b8751811015610c1157868181518110610b1f57610b1e613fae565b5b60200260200101518273ffffffffffffffffffffffffffffffffffffffff1662fdd58e610b4a612479565b8b8581518110610b5d57610b5c613fae565b5b60200260200101516040518363ffffffff1660e01b8152600401610b82929190613fec565b602060405180830381865afa158015610b9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc3919061402a565b1015610c04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bfb906140b4565b60405180910390fd5b8080600101915050610b03565b508073ffffffffffffffffffffffffffffffffffffffff16632eb2c2d6610c36612479565b308a8a6040518563ffffffff1660e01b8152600401610c58949392919061410b565b600060405180830381600087803b158015610c7257600080fd5b505af1158015610c86573d6000803e3d6000fd5b5050505086604051610c989190614201565b6040518091039020610ca8612479565b73ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff167fbebc0f745a4eefcb31e069eb116a738229665210a1f8462e884304aaa944e3768c60028b604051610d099392919061428f565b60405180910390a450610d1a6124de565b5050505050505050565b60003073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b8152600401610d769190613c8f565b602060405180830381865afa158015610d93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db791906145bc565b73ffffffffffffffffffffffffffffffffffffffff1614905092915050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610e00816124e8565b610e0982612720565b5050565b60008060009054906101000a900460ff16905090565b610e2b6123e2565b610e3361242f565b6000600167ffffffffffffffff811115610e5057610e4f613558565b5b604051908082528060200260200182016040528015610e7e5781602001602082028036833780820191505090505b5090506000600167ffffffffffffffff811115610e9e57610e9d613558565b5b604051908082528060200260200182016040528015610ecc5781602001602082028036833780820191505090505b509050600082600081518110610ee557610ee4613fae565b5b6020026020010181815250508681600081518110610f0657610f05613fae565b5b602002602001018181525050610f6089610f1e612479565b8a85858b8b6040518060400160405280600c81526020017f6465706f736974455243323000000000000000000000000000000000000000008152508c8c612481565b6000889050878173ffffffffffffffffffffffffffffffffffffffff166370a08231610f8a612479565b6040518263ffffffff1660e01b8152600401610fa691906145e9565b602060405180830381865afa158015610fc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe7919061402a565b1015611028576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101f906140b4565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166323b872dd61104c612479565b308b6040518463ffffffff1660e01b815260040161106c93929190614604565b6020604051808303816000875af115801561108b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110af9190614667565b50826040516110be9190614201565b60405180910390206110ce612479565b73ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff167fbebc0f745a4eefcb31e069eb116a738229665210a1f8462e884304aaa944e3768d60008760405161112f9392919061428f565b60405180910390a45050506111426124de565b50505050505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a611175816124e8565b61117d6128e4565b50565b60036020528060005260406000206000915054906101000a900460ff1681565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b61121a6123e2565b61122261242f565b6000600167ffffffffffffffff81111561123f5761123e613558565b5b60405190808252806020026020018201604052801561126d5781602001602082028036833780820191505090505b5090506000600167ffffffffffffffff81111561128d5761128c613558565b5b6040519080825280602002602001820160405280156112bb5781602001602082028036833780820191505090505b50905086826000815181106112d3576112d2613fae565b5b6020026020010181815250506000816000815181106112f5576112f4613fae565b5b60200260200101818152505061134f8961130d612479565b8a85858b8b6040518060400160405280600d81526020017f6465706f736974455243373231000000000000000000000000000000000000008152508c8c612481565b600088905061135c612479565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16636352211e8a6040518263ffffffff1660e01b81526004016113ab9190613c8f565b602060405180830381865afa1580156113c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ec91906145bc565b73ffffffffffffffffffffffffffffffffffffffff1614611442576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611439906146e0565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166342842e0e611466612479565b308b6040518463ffffffff1660e01b815260040161148693929190614604565b600060405180830381600087803b1580156114a057600080fd5b505af11580156114b4573d6000803e3d6000fd5b50505050826040516114c69190614201565b60405180910390206114d6612479565b73ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff167fbebc0f745a4eefcb31e069eb116a738229665210a1f8462e884304aaa944e3768d6001876040516115379392919061428f565b60405180910390a450505061154a6124de565b50505050505050565b61155b6123e2565b61156361242f565b6000600167ffffffffffffffff8111156115805761157f613558565b5b6040519080825280602002602001820160405280156115ae5781602001602082028036833780820191505090505b5090506000600167ffffffffffffffff8111156115ce576115cd613558565b5b6040519080825280602002602001820160405280156115fc5781602001602082028036833780820191505090505b509050868260008151811061161457611613613fae565b5b60200260200101818152505060008160008151811061163657611635613fae565b5b6020026020010181815250506116908961164e612479565b8a85858b8b6040518060400160405280600e81526020017f77697468647261774552433732310000000000000000000000000000000000008152508c8c612481565b60008890503073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16636352211e8a6040518263ffffffff1660e01b81526004016116e59190613c8f565b602060405180830381865afa158015611702573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061172691906145bc565b73ffffffffffffffffffffffffffffffffffffffff161461177c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611773906146e0565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166342842e0e306117a1612479565b8b6040518463ffffffff1660e01b81526004016117c093929190614604565b600060405180830381600087803b1580156117da57600080fd5b505af11580156117ee573d6000803e3d6000fd5b50505050826040516118009190614201565b6040518091039020611810612479565b73ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff167f48f100b6821cd2ef62289c5643829b4cfaac51bc2b7b84d1ad86cdedaa44863b8d6001876040516118719392919061428f565b60405180910390a45050506118846124de565b50505050505050565b600063bc197c8160e01b905095945050505050565b6118aa6123e2565b6118b261242f565b6000600167ffffffffffffffff8111156118cf576118ce613558565b5b6040519080825280602002602001820160405280156118fd5781602001602082028036833780820191505090505b5090506000600167ffffffffffffffff81111561191d5761191c613558565b5b60405190808252806020026020018201604052801561194b5781602001602082028036833780820191505090505b509050878260008151811061196357611962613fae565b5b602002602001018181525050868160008151811061198457611983613fae565b5b6020026020010181815250506119de8a61199c612479565b8b85858b8b6040518060400160405280600f81526020017f77697468647261774552433131353500000000000000000000000000000000008152508c8c612481565b6000899050878173ffffffffffffffffffffffffffffffffffffffff1662fdd58e308c6040518363ffffffff1660e01b8152600401611a1e929190613fec565b602060405180830381865afa158015611a3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a5f919061402a565b1015611aa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a97906140b4565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1663f242432a30611ac5612479565b8c8c6040518563ffffffff1660e01b8152600401611ae69493929190614700565b600060405180830381600087803b158015611b0057600080fd5b505af1158015611b14573d6000803e3d6000fd5b5050505082604051611b269190614201565b6040518091039020611b36612479565b73ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff167f48f100b6821cd2ef62289c5643829b4cfaac51bc2b7b84d1ad86cdedaa44863b8e600287604051611b979392919061428f565b60405180910390a4505050611baa6124de565b5050505050505050565b611bbc6123e2565b611bc461242f565b6000600167ffffffffffffffff811115611be157611be0613558565b5b604051908082528060200260200182016040528015611c0f5781602001602082028036833780820191505090505b5090506000600167ffffffffffffffff811115611c2f57611c2e613558565b5b604051908082528060200260200182016040528015611c5d5781602001602082028036833780820191505090505b5090508782600081518110611c7557611c74613fae565b5b6020026020010181815250508681600081518110611c9657611c95613fae565b5b602002602001018181525050611cf08a611cae612479565b8b85858b8b6040518060400160405280600e81526020017f6465706f736974455243313135350000000000000000000000000000000000008152508c8c612481565b6000899050878173ffffffffffffffffffffffffffffffffffffffff1662fdd58e611d19612479565b8c6040518363ffffffff1660e01b8152600401611d37929190613fec565b602060405180830381865afa158015611d54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d78919061402a565b1015611db9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db0906140b4565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1663f242432a611ddd612479565b308c8c6040518563ffffffff1660e01b8152600401611dff9493929190614700565b600060405180830381600087803b158015611e1957600080fd5b505af1158015611e2d573d6000803e3d6000fd5b5050505082604051611e3f9190614201565b6040518091039020611e4f612479565b73ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff167fbebc0f745a4eefcb31e069eb116a738229665210a1f8462e884304aaa944e3768e600287604051611eb09392919061428f565b60405180910390a4505050611ec36124de565b5050505050505050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08611ef7816124e8565b611f0082612946565b5050565b611f0d8261091f565b611f16816124e8565b611f2083836125dc565b505050565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611f6091906145e9565b602060405180830381865afa158015611f7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fa1919061402a565b9050919050565b611fb06123e2565b611fb861242f565b6000600167ffffffffffffffff811115611fd557611fd4613558565b5b6040519080825280602002602001820160405280156120035781602001602082028036833780820191505090505b5090506000600167ffffffffffffffff81111561202357612022613558565b5b6040519080825280602002602001820160405280156120515781602001602082028036833780820191505090505b50905060008260008151811061206a57612069613fae565b5b602002602001018181525050868160008151811061208b5761208a613fae565b5b6020026020010181815250506120e5896120a3612479565b8a85858b8b6040518060400160405280600d81526020017f77697468647261774552433230000000000000000000000000000000000000008152508c8c612481565b6000889050878173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161212491906145e9565b602060405180830381865afa158015612141573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612165919061402a565b10156121a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219d906140b4565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6121cc612479565b8b6040518363ffffffff1660e01b81526004016121ea929190613fec565b6020604051808303816000875af1158015612209573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061222d9190614667565b90508061226f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612266906147a4565b60405180910390fd5b8360405161227d9190614201565b604051809103902061228d612479565b73ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff167f48f100b6821cd2ef62289c5643829b4cfaac51bc2b7b84d1ad86cdedaa44863b8e6000886040516122ee9392919061428f565b60405180910390a4505050506123026124de565b50505050505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b600063f23a6e6160e01b905095945050505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806123db57506123da82612b09565b5b9050919050565b6002805403612426576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241d90614810565b60405180910390fd5b60028081905550565b612437610e0d565b15612477576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246e9061487c565b60405180910390fd5b565b600033905090565b6124938a8a8a8a8a8a8a8a8a8a612b83565b6124d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c9906148e8565b60405180910390fd5b50505050505050505050565b6001600281905550565b6124f9816124f4612479565b612d48565b50565b61250682826111a0565b6125d857600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061257d612479565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6125e682826111a0565b156126ba5760006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061265f612479565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6126c6612dcd565b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612709612479565b60405161271691906145e9565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361278f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278690614954565b60405180910390fd5b600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561281c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612813906149c0565b60405180910390fd5b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061289e7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08826124fc565b8073ffffffffffffffffffffffffffffffffffffffff167fa5d501ce281a3d4bc9e42f4423f9f117dcd0ea4d09ebcd151b60fb5daeab8fd060405160405180910390a250565b6128ec61242f565b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861292f612479565b60405161293c91906145e9565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036129b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ac90614954565b60405180910390fd5b600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612a41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a3890614a2c565b60405180910390fd5b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612ac37f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08826125dc565b8073ffffffffffffffffffffffffffffffffffffffff167fd03b7c074f2eae133be52f3724fb8f9864346d73a003157e313ca60b0ac9d76d60405160405180910390a250565b60007f4e2312e0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612b7c5750612b7b82612e16565b5b9050919050565b600084421115612bc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bbf90614a98565b60405180910390fd5b6000468c308d8d8d8d8d8d8d604051602001612bed9a99989796959493929190614b26565b6040516020818303038152906040528051906020012090506000612c1082612e80565b90506000612c628287878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612eb6565b9050600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612ce8575060048686604051612cca929190614c07565b908152602001604051809103902060009054906101000a900460ff16155b15612d3257600160048787604051612d01929190614c07565b908152602001604051809103902060006101000a81548160ff02191690831515021790555060019350505050612d3a565b600093505050505b9a9950505050505050505050565b612d5282826111a0565b612dc957612d5f81612edd565b612d6d8360001c6020612f0a565b604051602001612d7e929190614cf4565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dc09190614d2e565b60405180910390fd5b5050565b612dd5610e0d565b612e14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e0b90614d9c565b60405180910390fd5b565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60007f19457468657265756d205369676e6564204d6573736167653a0a33320000000060005281601c52603c6000209050919050565b6000806000612ec58585613146565b91509150612ed281613197565b819250505092915050565b6060612f038273ffffffffffffffffffffffffffffffffffffffff16601460ff16612f0a565b9050919050565b606060006002836002612f1d9190614deb565b612f279190614e2d565b67ffffffffffffffff811115612f4057612f3f613558565b5b6040519080825280601f01601f191660200182016040528015612f725781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612faa57612fa9613fae565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061300e5761300d613fae565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261304e9190614deb565b6130589190614e2d565b90505b60018111156130f8577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061309a57613099613fae565b5b1a60f81b8282815181106130b1576130b0613fae565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806130f190614e61565b905061305b565b506000841461313c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161313390614ed6565b60405180910390fd5b8091505092915050565b60008060418351036131875760008060006020860151925060408601519150606086015160001a905061317b878285856132fd565b94509450505050613190565b60006002915091505b9250929050565b600060048111156131ab576131aa614218565b5b8160048111156131be576131bd614218565b5b03156132fa57600160048111156131d8576131d7614218565b5b8160048111156131eb576131ea614218565b5b0361322b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161322290614f42565b60405180910390fd5b6002600481111561323f5761323e614218565b5b81600481111561325257613251614218565b5b03613292576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161328990614fae565b60405180910390fd5b600360048111156132a6576132a5614218565b5b8160048111156132b9576132b8614218565b5b036132f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132f090615040565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156133385760006003915091506133d6565b60006001878787876040516000815260200160405260405161335d949392919061507c565b6020604051602081039080840390855afa15801561337f573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036133cd576000600192509250506133d6565b80600092509250505b94509492505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613428816133f3565b811461343357600080fd5b50565b6000813590506134458161341f565b92915050565b600060208284031215613461576134606133e9565b5b600061346f84828501613436565b91505092915050565b60008115159050919050565b61348d81613478565b82525050565b60006020820190506134a86000830184613484565b92915050565b6000819050919050565b6134c1816134ae565b81146134cc57600080fd5b50565b6000813590506134de816134b8565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061350f826134e4565b9050919050565b61351f81613504565b811461352a57600080fd5b50565b60008135905061353c81613516565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61359082613547565b810181811067ffffffffffffffff821117156135af576135ae613558565b5b80604052505050565b60006135c26133df565b90506135ce8282613587565b919050565b600067ffffffffffffffff8211156135ee576135ed613558565b5b602082029050602081019050919050565b600080fd5b6000613617613612846135d3565b6135b8565b9050808382526020820190506020840283018581111561363a576136396135ff565b5b835b81811015613663578061364f88826134cf565b84526020840193505060208101905061363c565b5050509392505050565b600082601f83011261368257613681613542565b5b8135613692848260208601613604565b91505092915050565b600080fd5b60008083601f8401126136b6576136b5613542565b5b8235905067ffffffffffffffff8111156136d3576136d261369b565b5b6020830191508360018202830111156136ef576136ee6135ff565b5b9250929050565b60008060008060008060008060e0898b031215613716576137156133e9565b5b60006137248b828c016134cf565b98505060206137358b828c0161352d565b975050604089013567ffffffffffffffff811115613756576137556133ee565b5b6137628b828c0161366d565b965050606089013567ffffffffffffffff811115613783576137826133ee565b5b61378f8b828c0161366d565b95505060806137a08b828c016134cf565b94505060a06137b18b828c016134cf565b93505060c089013567ffffffffffffffff8111156137d2576137d16133ee565b5b6137de8b828c016136a0565b92509250509295985092959890939650565b60008083601f84011261380657613805613542565b5b8235905067ffffffffffffffff8111156138235761382261369b565b5b60208301915083602082028301111561383f5761383e6135ff565b5b9250929050565b60008083601f84011261385c5761385b613542565b5b8235905067ffffffffffffffff8111156138795761387861369b565b5b602083019150836020820283011115613895576138946135ff565b5b9250929050565b6000806000806000606086880312156138b8576138b76133e9565b5b60006138c68882890161352d565b955050602086013567ffffffffffffffff8111156138e7576138e66133ee565b5b6138f3888289016137f0565b9450945050604086013567ffffffffffffffff811115613916576139156133ee565b5b61392288828901613846565b92509250509295509295909350565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613966816134ae565b82525050565b6000613978838361395d565b60208301905092915050565b6000602082019050919050565b600061399c82613931565b6139a6818561393c565b93506139b18361394d565b8060005b838110156139e25781516139c9888261396c565b97506139d483613984565b9250506001810190506139b5565b5085935050505092915050565b60006020820190508181036000830152613a098184613991565b905092915050565b600080fd5b600067ffffffffffffffff821115613a3157613a30613558565b5b613a3a82613547565b9050602081019050919050565b82818337600083830152505050565b6000613a69613a6484613a16565b6135b8565b905082815260208101848484011115613a8557613a84613a11565b5b613a90848285613a47565b509392505050565b600082601f830112613aad57613aac613542565b5b8135613abd848260208601613a56565b91505092915050565b60008060008060808587031215613ae057613adf6133e9565b5b6000613aee8782880161352d565b9450506020613aff8782880161352d565b9350506040613b10878288016134cf565b925050606085013567ffffffffffffffff811115613b3157613b306133ee565b5b613b3d87828801613a98565b91505092959194509250565b613b52816133f3565b82525050565b6000602082019050613b6d6000830184613b49565b92915050565b6000819050919050565b613b8681613b73565b8114613b9157600080fd5b50565b600081359050613ba381613b7d565b92915050565b600060208284031215613bbf57613bbe6133e9565b5b6000613bcd84828501613b94565b91505092915050565b613bdf81613b73565b82525050565b6000602082019050613bfa6000830184613bd6565b92915050565b60008060408385031215613c1757613c166133e9565b5b6000613c2585828601613b94565b9250506020613c368582860161352d565b9150509250929050565b60008060408385031215613c5757613c566133e9565b5b6000613c658582860161352d565b9250506020613c76858286016134cf565b9150509250929050565b613c89816134ae565b82525050565b6000602082019050613ca46000830184613c80565b92915050565b600060208284031215613cc057613cbf6133e9565b5b6000613cce8482850161352d565b91505092915050565b600080600080600080600060c0888a031215613cf657613cf56133e9565b5b6000613d048a828b016134cf565b9750506020613d158a828b0161352d565b9650506040613d268a828b016134cf565b9550506060613d378a828b016134cf565b9450506080613d488a828b016134cf565b93505060a088013567ffffffffffffffff811115613d6957613d686133ee565b5b613d758a828b016136a0565b925092505092959891949750929550565b600080600080600060a08688031215613da257613da16133e9565b5b6000613db08882890161352d565b9550506020613dc18882890161352d565b945050604086013567ffffffffffffffff811115613de257613de16133ee565b5b613dee8882890161366d565b935050606086013567ffffffffffffffff811115613e0f57613e0e6133ee565b5b613e1b8882890161366d565b925050608086013567ffffffffffffffff811115613e3c57613e3b6133ee565b5b613e4888828901613a98565b9150509295509295909350565b60008060008060008060008060e0898b031215613e7557613e746133e9565b5b6000613e838b828c016134cf565b9850506020613e948b828c0161352d565b9750506040613ea58b828c016134cf565b9650506060613eb68b828c016134cf565b9550506080613ec78b828c016134cf565b94505060a0613ed88b828c016134cf565b93505060c089013567ffffffffffffffff811115613ef957613ef86133ee565b5b613f058b828c016136a0565b92509250509295985092959890939650565b600080600080600060a08688031215613f3357613f326133e9565b5b6000613f418882890161352d565b9550506020613f528882890161352d565b9450506040613f63888289016134cf565b9350506060613f74888289016134cf565b925050608086013567ffffffffffffffff811115613f9557613f946133ee565b5b613fa188828901613a98565b9150509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b613fe681613504565b82525050565b60006040820190506140016000830185613fdd565b61400e6020830184613c80565b9392505050565b600081519050614024816134b8565b92915050565b6000602082840312156140405761403f6133e9565b5b600061404e84828501614015565b91505092915050565b600082825260208201905092915050565b7f496e73756666696369656e7442616c616e636500000000000000000000000000600082015250565b600061409e601383614057565b91506140a982614068565b602082019050919050565b600060208201905081810360008301526140cd81614091565b9050919050565b600082825260208201905092915050565b50565b60006140f56000836140d4565b9150614100826140e5565b600082019050919050565b600060a0820190506141206000830187613fdd565b61412d6020830186613fdd565b818103604083015261413f8185613991565b905081810360608301526141538184613991565b90508181036080830152614166816140e8565b905095945050505050565b600081905092915050565b614185816134ae565b82525050565b6000614197838361417c565b60208301905092915050565b60006141ae82613931565b6141b88185614171565b93506141c38361394d565b8060005b838110156141f45781516141db888261418b565b97506141e683613984565b9250506001810190506141c7565b5085935050505092915050565b600061420d82846141a3565b915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6003811061425857614257614218565b5b50565b600081905061426982614247565b919050565b60006142798261425b565b9050919050565b6142898161426e565b82525050565b60006060820190506142a46000830186613c80565b6142b16020830185614280565b81810360408301526142c38184613991565b9050949350505050565b600082825260208201905092915050565b6000819050919050565b6142f181613504565b82525050565b600061430383836142e8565b60208301905092915050565b600061431e602084018461352d565b905092915050565b6000602082019050919050565b600061433f83856142cd565b935061434a826142de565b8060005b8581101561438357614360828461430f565b61436a88826142f7565b975061437583614326565b92505060018101905061434e565b5085925050509392505050565b600080fd5b82818337505050565b60006143aa838561393c565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156143dd576143dc614390565b5b6020830292506143ee838584614395565b82840190509392505050565b60006040820190508181036000830152614415818688614333565b9050818103602083015261442a81848661439e565b905095945050505050565b6000614448614443846135d3565b6135b8565b9050808382526020820190506020840283018581111561446b5761446a6135ff565b5b835b8181101561449457806144808882614015565b84526020840193505060208101905061446d565b5050509392505050565b600082601f8301126144b3576144b2613542565b5b81516144c3848260208601614435565b91505092915050565b6000602082840312156144e2576144e16133e9565b5b600082015167ffffffffffffffff811115614500576144ff6133ee565b5b61450c8482850161449e565b91505092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614571602f83614057565b915061457c82614515565b604082019050919050565b600060208201905081810360008301526145a081614564565b9050919050565b6000815190506145b681613516565b92915050565b6000602082840312156145d2576145d16133e9565b5b60006145e0848285016145a7565b91505092915050565b60006020820190506145fe6000830184613fdd565b92915050565b60006060820190506146196000830186613fdd565b6146266020830185613fdd565b6146336040830184613c80565b949350505050565b61464481613478565b811461464f57600080fd5b50565b6000815190506146618161463b565b92915050565b60006020828403121561467d5761467c6133e9565b5b600061468b84828501614652565b91505092915050565b7f4e6f744f776e6572000000000000000000000000000000000000000000000000600082015250565b60006146ca600883614057565b91506146d582614694565b602082019050919050565b600060208201905081810360008301526146f9816146bd565b9050919050565b600060a0820190506147156000830187613fdd565b6147226020830186613fdd565b61472f6040830185613c80565b61473c6060830184613c80565b818103608083015261474d816140e8565b905095945050505050565b7f5472616e736665724661696c6564000000000000000000000000000000000000600082015250565b600061478e600e83614057565b915061479982614758565b602082019050919050565b600060208201905081810360008301526147bd81614781565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006147fa601f83614057565b9150614805826147c4565b602082019050919050565b60006020820190508181036000830152614829816147ed565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000614866601083614057565b915061487182614830565b602082019050919050565b6000602082019050818103600083015261489581614859565b9050919050565b7f496e76616c69645369676e617475726500000000000000000000000000000000600082015250565b60006148d2601083614057565b91506148dd8261489c565b602082019050919050565b60006020820190508181036000830152614901816148c5565b9050919050565b7f5a65726f41646472657373000000000000000000000000000000000000000000600082015250565b600061493e600b83614057565b915061494982614908565b602082019050919050565b6000602082019050818103600083015261496d81614931565b9050919050565b7f416c72656164795369676e657200000000000000000000000000000000000000600082015250565b60006149aa600d83614057565b91506149b582614974565b602082019050919050565b600060208201905081810360008301526149d98161499d565b9050919050565b7f4e6f745369676e65720000000000000000000000000000000000000000000000600082015250565b6000614a16600983614057565b9150614a21826149e0565b602082019050919050565b60006020820190508181036000830152614a4581614a09565b9050919050565b7f5369676e61747572654578706972656400000000000000000000000000000000600082015250565b6000614a82601083614057565b9150614a8d82614a4c565b602082019050919050565b60006020820190508181036000830152614ab181614a75565b9050919050565b600081519050919050565b60005b83811015614ae1578082015181840152602081019050614ac6565b60008484015250505050565b6000614af882614ab8565b614b028185614057565b9350614b12818560208601614ac3565b614b1b81613547565b840191505092915050565b600061014082019050614b3c600083018d613c80565b614b49602083018c613c80565b614b56604083018b613fdd565b614b63606083018a613fdd565b614b706080830189613fdd565b81810360a0830152614b828188613991565b905081810360c0830152614b968187613991565b9050614ba560e0830186613c80565b614bb3610100830185613c80565b818103610120830152614bc68184614aed565b90509b9a5050505050505050505050565b600081905092915050565b6000614bee8385614bd7565b9350614bfb838584613a47565b82840190509392505050565b6000614c14828486614be2565b91508190509392505050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614c61601783614c20565b9150614c6c82614c2b565b601782019050919050565b6000614c8282614ab8565b614c8c8185614c20565b9350614c9c818560208601614ac3565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614cde601183614c20565b9150614ce982614ca8565b601182019050919050565b6000614cff82614c54565b9150614d0b8285614c77565b9150614d1682614cd1565b9150614d228284614c77565b91508190509392505050565b60006020820190508181036000830152614d488184614aed565b905092915050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614d86601483614057565b9150614d9182614d50565b602082019050919050565b60006020820190508181036000830152614db581614d79565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614df6826134ae565b9150614e01836134ae565b9250828202614e0f816134ae565b91508282048414831517614e2657614e25614dbc565b5b5092915050565b6000614e38826134ae565b9150614e43836134ae565b9250828201905080821115614e5b57614e5a614dbc565b5b92915050565b6000614e6c826134ae565b915060008203614e7f57614e7e614dbc565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000614ec0602083614057565b9150614ecb82614e8a565b602082019050919050565b60006020820190508181036000830152614eef81614eb3565b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000614f2c601883614057565b9150614f3782614ef6565b602082019050919050565b60006020820190508181036000830152614f5b81614f1f565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000614f98601f83614057565b9150614fa382614f62565b602082019050919050565b60006020820190508181036000830152614fc781614f8b565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b600061502a602283614057565b915061503582614fce565b604082019050919050565b600060208201905081810360008301526150598161501d565b9050919050565b600060ff82169050919050565b61507681615060565b82525050565b60006080820190506150916000830187613bd6565b61509e602083018661506d565b6150ab6040830185613bd6565b6150b86060830184613bd6565b9594505050505056fea2646970667358221220c9bd952d8c5c2c3caefd62b304e1c384657a1ca3d73027b864a436fd9e34af8c64736f6c63430008180033000000000000000000000000571924bedd3a110c86d7d28b97922b2ad83c3e4a0000000000000000000000001cd5cfcef34e7a0ef3cbf0aebe16d15909cdf36e0000000000000000000000004d1e1099c9f332647ac8fea8463d85e847cd6d5c000000000000000000000000cdf904c6baca3a074992b43286b5d12d21b43ba9

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101da5760003560e01c8063859ab73a11610104578063cb9b1ab2116100a2578063e23cc4c311610071578063e23cc4c31461055f578063e63ab1e91461057b578063ec87621c14610599578063f23a6e61146105b7576101da565b8063cb9b1ab2146104db578063ce4754c0146104f7578063d547741f14610513578063d93db24f1461052f576101da565b8063a8f4ed5d116100de578063a8f4ed5d14610457578063ab2954f714610473578063bc197c811461048f578063c7e834a0146104bf576101da565b8063859ab73a146103d957806391d1485414610409578063a217fddf14610439576101da565b80633f4ba83a1161017c5780635c5245f71161014b5780635c5245f7146103795780635c975abb146103955780636e622cbc146103b35780638456cb59146103cf576101da565b80633f4ba83a146102f3578063418ae269146102fd57806347c0bf4e1461032d5780634e91149014610349576101da565b8063150b7a02116101b8578063150b7a021461025b578063248a9ca31461028b5780632f2ff15d146102bb57806336568abe146102d7576101da565b806301ffc9a7146101df5780630779aba41461020f578063122b9d1d1461022b575b600080fd5b6101f960048036038101906101f4919061344b565b6105e7565b6040516102069190613493565b60405180910390f35b610229600480360381019061022491906136f6565b6105f9565b005b6102456004803603810190610240919061389c565b610879565b60405161025291906139ef565b60405180910390f35b61027560048036038101906102709190613ac6565b61090b565b6040516102829190613b58565b60405180910390f35b6102a560048036038101906102a09190613ba9565b61091f565b6040516102b29190613be5565b60405180910390f35b6102d560048036038101906102d09190613c00565b61093f565b005b6102f160048036038101906102ec9190613c00565b610960565b005b6102fb6109e3565b005b61031760048036038101906103129190613c40565b610a18565b6040516103249190613c8f565b60405180910390f35b610347600480360381019061034291906136f6565b610a9d565b005b610363600480360381019061035e9190613c40565b610d24565b6040516103709190613493565b60405180910390f35b610393600480360381019061038e9190613caa565b610dd6565b005b61039d610e0d565b6040516103aa9190613493565b60405180910390f35b6103cd60048036038101906103c89190613cd7565b610e23565b005b6103d761114b565b005b6103f360048036038101906103ee9190613caa565b611180565b6040516104009190613493565b60405180910390f35b610423600480360381019061041e9190613c00565b6111a0565b6040516104309190613493565b60405180910390f35b61044161120b565b60405161044e9190613be5565b60405180910390f35b610471600480360381019061046c9190613cd7565b611212565b005b61048d60048036038101906104889190613cd7565b611553565b005b6104a960048036038101906104a49190613d86565b61188d565b6040516104b69190613b58565b60405180910390f35b6104d960048036038101906104d49190613e55565b6118a2565b005b6104f560048036038101906104f09190613e55565b611bb4565b005b610511600480360381019061050c9190613caa565b611ecd565b005b61052d60048036038101906105289190613c00565b611f04565b005b61054960048036038101906105449190613caa565b611f25565b6040516105569190613c8f565b60405180910390f35b61057960048036038101906105749190613cd7565b611fa8565b005b61058361230b565b6040516105909190613be5565b60405180910390f35b6105a161232f565b6040516105ae9190613be5565b60405180910390f35b6105d160048036038101906105cc9190613f17565b612353565b6040516105de9190613b58565b60405180910390f35b60006105f282612368565b9050919050565b6106016123e2565b61060961242f565b61065788610615612479565b89898989896040518060400160405280601481526020017f77697468647261774552433131353542617463680000000000000000000000008152508a8a612481565b600087905060005b87518110156107665786818151811061067b5761067a613fae565b5b60200260200101518273ffffffffffffffffffffffffffffffffffffffff1662fdd58e308b85815181106106b2576106b1613fae565b5b60200260200101516040518363ffffffff1660e01b81526004016106d7929190613fec565b602060405180830381865afa1580156106f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610718919061402a565b1015610759576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610750906140b4565b60405180910390fd5b808060010191505061065f565b508073ffffffffffffffffffffffffffffffffffffffff16632eb2c2d63061078c612479565b8a8a6040518563ffffffff1660e01b81526004016107ad949392919061410b565b600060405180830381600087803b1580156107c757600080fd5b505af11580156107db573d6000803e3d6000fd5b50505050866040516107ed9190614201565b60405180910390206107fd612479565b73ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff167f48f100b6821cd2ef62289c5643829b4cfaac51bc2b7b84d1ad86cdedaa44863b8c60028b60405161085e9392919061428f565b60405180910390a45061086f6124de565b5050505050505050565b60608573ffffffffffffffffffffffffffffffffffffffff16634e1273f4868686866040518563ffffffff1660e01b81526004016108ba94939291906143fa565b600060405180830381865afa1580156108d7573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061090091906144cc565b905095945050505050565b600063150b7a0260e01b9050949350505050565b600060016000838152602001908152602001600020600101549050919050565b6109488261091f565b610951816124e8565b61095b83836124fc565b505050565b610968612479565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146109d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109cc90614587565b60405180910390fd5b6109df82826125dc565b5050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610a0d816124e8565b610a156126be565b50565b60008273ffffffffffffffffffffffffffffffffffffffff1662fdd58e30846040518363ffffffff1660e01b8152600401610a54929190613fec565b602060405180830381865afa158015610a71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a95919061402a565b905092915050565b610aa56123e2565b610aad61242f565b610afb88610ab9612479565b89898989896040518060400160405280601381526020017f6465706f736974455243313135354261746368000000000000000000000000008152508a8a612481565b600087905060005b8751811015610c1157868181518110610b1f57610b1e613fae565b5b60200260200101518273ffffffffffffffffffffffffffffffffffffffff1662fdd58e610b4a612479565b8b8581518110610b5d57610b5c613fae565b5b60200260200101516040518363ffffffff1660e01b8152600401610b82929190613fec565b602060405180830381865afa158015610b9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc3919061402a565b1015610c04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bfb906140b4565b60405180910390fd5b8080600101915050610b03565b508073ffffffffffffffffffffffffffffffffffffffff16632eb2c2d6610c36612479565b308a8a6040518563ffffffff1660e01b8152600401610c58949392919061410b565b600060405180830381600087803b158015610c7257600080fd5b505af1158015610c86573d6000803e3d6000fd5b5050505086604051610c989190614201565b6040518091039020610ca8612479565b73ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff167fbebc0f745a4eefcb31e069eb116a738229665210a1f8462e884304aaa944e3768c60028b604051610d099392919061428f565b60405180910390a450610d1a6124de565b5050505050505050565b60003073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b8152600401610d769190613c8f565b602060405180830381865afa158015610d93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db791906145bc565b73ffffffffffffffffffffffffffffffffffffffff1614905092915050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610e00816124e8565b610e0982612720565b5050565b60008060009054906101000a900460ff16905090565b610e2b6123e2565b610e3361242f565b6000600167ffffffffffffffff811115610e5057610e4f613558565b5b604051908082528060200260200182016040528015610e7e5781602001602082028036833780820191505090505b5090506000600167ffffffffffffffff811115610e9e57610e9d613558565b5b604051908082528060200260200182016040528015610ecc5781602001602082028036833780820191505090505b509050600082600081518110610ee557610ee4613fae565b5b6020026020010181815250508681600081518110610f0657610f05613fae565b5b602002602001018181525050610f6089610f1e612479565b8a85858b8b6040518060400160405280600c81526020017f6465706f736974455243323000000000000000000000000000000000000000008152508c8c612481565b6000889050878173ffffffffffffffffffffffffffffffffffffffff166370a08231610f8a612479565b6040518263ffffffff1660e01b8152600401610fa691906145e9565b602060405180830381865afa158015610fc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe7919061402a565b1015611028576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101f906140b4565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166323b872dd61104c612479565b308b6040518463ffffffff1660e01b815260040161106c93929190614604565b6020604051808303816000875af115801561108b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110af9190614667565b50826040516110be9190614201565b60405180910390206110ce612479565b73ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff167fbebc0f745a4eefcb31e069eb116a738229665210a1f8462e884304aaa944e3768d60008760405161112f9392919061428f565b60405180910390a45050506111426124de565b50505050505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a611175816124e8565b61117d6128e4565b50565b60036020528060005260406000206000915054906101000a900460ff1681565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b61121a6123e2565b61122261242f565b6000600167ffffffffffffffff81111561123f5761123e613558565b5b60405190808252806020026020018201604052801561126d5781602001602082028036833780820191505090505b5090506000600167ffffffffffffffff81111561128d5761128c613558565b5b6040519080825280602002602001820160405280156112bb5781602001602082028036833780820191505090505b50905086826000815181106112d3576112d2613fae565b5b6020026020010181815250506000816000815181106112f5576112f4613fae565b5b60200260200101818152505061134f8961130d612479565b8a85858b8b6040518060400160405280600d81526020017f6465706f736974455243373231000000000000000000000000000000000000008152508c8c612481565b600088905061135c612479565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16636352211e8a6040518263ffffffff1660e01b81526004016113ab9190613c8f565b602060405180830381865afa1580156113c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ec91906145bc565b73ffffffffffffffffffffffffffffffffffffffff1614611442576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611439906146e0565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166342842e0e611466612479565b308b6040518463ffffffff1660e01b815260040161148693929190614604565b600060405180830381600087803b1580156114a057600080fd5b505af11580156114b4573d6000803e3d6000fd5b50505050826040516114c69190614201565b60405180910390206114d6612479565b73ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff167fbebc0f745a4eefcb31e069eb116a738229665210a1f8462e884304aaa944e3768d6001876040516115379392919061428f565b60405180910390a450505061154a6124de565b50505050505050565b61155b6123e2565b61156361242f565b6000600167ffffffffffffffff8111156115805761157f613558565b5b6040519080825280602002602001820160405280156115ae5781602001602082028036833780820191505090505b5090506000600167ffffffffffffffff8111156115ce576115cd613558565b5b6040519080825280602002602001820160405280156115fc5781602001602082028036833780820191505090505b509050868260008151811061161457611613613fae565b5b60200260200101818152505060008160008151811061163657611635613fae565b5b6020026020010181815250506116908961164e612479565b8a85858b8b6040518060400160405280600e81526020017f77697468647261774552433732310000000000000000000000000000000000008152508c8c612481565b60008890503073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16636352211e8a6040518263ffffffff1660e01b81526004016116e59190613c8f565b602060405180830381865afa158015611702573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061172691906145bc565b73ffffffffffffffffffffffffffffffffffffffff161461177c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611773906146e0565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166342842e0e306117a1612479565b8b6040518463ffffffff1660e01b81526004016117c093929190614604565b600060405180830381600087803b1580156117da57600080fd5b505af11580156117ee573d6000803e3d6000fd5b50505050826040516118009190614201565b6040518091039020611810612479565b73ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff167f48f100b6821cd2ef62289c5643829b4cfaac51bc2b7b84d1ad86cdedaa44863b8d6001876040516118719392919061428f565b60405180910390a45050506118846124de565b50505050505050565b600063bc197c8160e01b905095945050505050565b6118aa6123e2565b6118b261242f565b6000600167ffffffffffffffff8111156118cf576118ce613558565b5b6040519080825280602002602001820160405280156118fd5781602001602082028036833780820191505090505b5090506000600167ffffffffffffffff81111561191d5761191c613558565b5b60405190808252806020026020018201604052801561194b5781602001602082028036833780820191505090505b509050878260008151811061196357611962613fae565b5b602002602001018181525050868160008151811061198457611983613fae565b5b6020026020010181815250506119de8a61199c612479565b8b85858b8b6040518060400160405280600f81526020017f77697468647261774552433131353500000000000000000000000000000000008152508c8c612481565b6000899050878173ffffffffffffffffffffffffffffffffffffffff1662fdd58e308c6040518363ffffffff1660e01b8152600401611a1e929190613fec565b602060405180830381865afa158015611a3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a5f919061402a565b1015611aa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a97906140b4565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1663f242432a30611ac5612479565b8c8c6040518563ffffffff1660e01b8152600401611ae69493929190614700565b600060405180830381600087803b158015611b0057600080fd5b505af1158015611b14573d6000803e3d6000fd5b5050505082604051611b269190614201565b6040518091039020611b36612479565b73ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff167f48f100b6821cd2ef62289c5643829b4cfaac51bc2b7b84d1ad86cdedaa44863b8e600287604051611b979392919061428f565b60405180910390a4505050611baa6124de565b5050505050505050565b611bbc6123e2565b611bc461242f565b6000600167ffffffffffffffff811115611be157611be0613558565b5b604051908082528060200260200182016040528015611c0f5781602001602082028036833780820191505090505b5090506000600167ffffffffffffffff811115611c2f57611c2e613558565b5b604051908082528060200260200182016040528015611c5d5781602001602082028036833780820191505090505b5090508782600081518110611c7557611c74613fae565b5b6020026020010181815250508681600081518110611c9657611c95613fae565b5b602002602001018181525050611cf08a611cae612479565b8b85858b8b6040518060400160405280600e81526020017f6465706f736974455243313135350000000000000000000000000000000000008152508c8c612481565b6000899050878173ffffffffffffffffffffffffffffffffffffffff1662fdd58e611d19612479565b8c6040518363ffffffff1660e01b8152600401611d37929190613fec565b602060405180830381865afa158015611d54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d78919061402a565b1015611db9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db0906140b4565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1663f242432a611ddd612479565b308c8c6040518563ffffffff1660e01b8152600401611dff9493929190614700565b600060405180830381600087803b158015611e1957600080fd5b505af1158015611e2d573d6000803e3d6000fd5b5050505082604051611e3f9190614201565b6040518091039020611e4f612479565b73ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff167fbebc0f745a4eefcb31e069eb116a738229665210a1f8462e884304aaa944e3768e600287604051611eb09392919061428f565b60405180910390a4505050611ec36124de565b5050505050505050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08611ef7816124e8565b611f0082612946565b5050565b611f0d8261091f565b611f16816124e8565b611f2083836125dc565b505050565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611f6091906145e9565b602060405180830381865afa158015611f7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fa1919061402a565b9050919050565b611fb06123e2565b611fb861242f565b6000600167ffffffffffffffff811115611fd557611fd4613558565b5b6040519080825280602002602001820160405280156120035781602001602082028036833780820191505090505b5090506000600167ffffffffffffffff81111561202357612022613558565b5b6040519080825280602002602001820160405280156120515781602001602082028036833780820191505090505b50905060008260008151811061206a57612069613fae565b5b602002602001018181525050868160008151811061208b5761208a613fae565b5b6020026020010181815250506120e5896120a3612479565b8a85858b8b6040518060400160405280600d81526020017f77697468647261774552433230000000000000000000000000000000000000008152508c8c612481565b6000889050878173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161212491906145e9565b602060405180830381865afa158015612141573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612165919061402a565b10156121a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219d906140b4565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6121cc612479565b8b6040518363ffffffff1660e01b81526004016121ea929190613fec565b6020604051808303816000875af1158015612209573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061222d9190614667565b90508061226f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612266906147a4565b60405180910390fd5b8360405161227d9190614201565b604051809103902061228d612479565b73ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff167f48f100b6821cd2ef62289c5643829b4cfaac51bc2b7b84d1ad86cdedaa44863b8e6000886040516122ee9392919061428f565b60405180910390a4505050506123026124de565b50505050505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b600063f23a6e6160e01b905095945050505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806123db57506123da82612b09565b5b9050919050565b6002805403612426576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241d90614810565b60405180910390fd5b60028081905550565b612437610e0d565b15612477576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246e9061487c565b60405180910390fd5b565b600033905090565b6124938a8a8a8a8a8a8a8a8a8a612b83565b6124d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c9906148e8565b60405180910390fd5b50505050505050505050565b6001600281905550565b6124f9816124f4612479565b612d48565b50565b61250682826111a0565b6125d857600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061257d612479565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6125e682826111a0565b156126ba5760006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061265f612479565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6126c6612dcd565b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612709612479565b60405161271691906145e9565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361278f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278690614954565b60405180910390fd5b600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561281c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612813906149c0565b60405180910390fd5b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061289e7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08826124fc565b8073ffffffffffffffffffffffffffffffffffffffff167fa5d501ce281a3d4bc9e42f4423f9f117dcd0ea4d09ebcd151b60fb5daeab8fd060405160405180910390a250565b6128ec61242f565b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861292f612479565b60405161293c91906145e9565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036129b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ac90614954565b60405180910390fd5b600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612a41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a3890614a2c565b60405180910390fd5b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612ac37f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08826125dc565b8073ffffffffffffffffffffffffffffffffffffffff167fd03b7c074f2eae133be52f3724fb8f9864346d73a003157e313ca60b0ac9d76d60405160405180910390a250565b60007f4e2312e0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612b7c5750612b7b82612e16565b5b9050919050565b600084421115612bc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bbf90614a98565b60405180910390fd5b6000468c308d8d8d8d8d8d8d604051602001612bed9a99989796959493929190614b26565b6040516020818303038152906040528051906020012090506000612c1082612e80565b90506000612c628287878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612eb6565b9050600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612ce8575060048686604051612cca929190614c07565b908152602001604051809103902060009054906101000a900460ff16155b15612d3257600160048787604051612d01929190614c07565b908152602001604051809103902060006101000a81548160ff02191690831515021790555060019350505050612d3a565b600093505050505b9a9950505050505050505050565b612d5282826111a0565b612dc957612d5f81612edd565b612d6d8360001c6020612f0a565b604051602001612d7e929190614cf4565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dc09190614d2e565b60405180910390fd5b5050565b612dd5610e0d565b612e14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e0b90614d9c565b60405180910390fd5b565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60007f19457468657265756d205369676e6564204d6573736167653a0a33320000000060005281601c52603c6000209050919050565b6000806000612ec58585613146565b91509150612ed281613197565b819250505092915050565b6060612f038273ffffffffffffffffffffffffffffffffffffffff16601460ff16612f0a565b9050919050565b606060006002836002612f1d9190614deb565b612f279190614e2d565b67ffffffffffffffff811115612f4057612f3f613558565b5b6040519080825280601f01601f191660200182016040528015612f725781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612faa57612fa9613fae565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061300e5761300d613fae565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261304e9190614deb565b6130589190614e2d565b90505b60018111156130f8577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061309a57613099613fae565b5b1a60f81b8282815181106130b1576130b0613fae565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806130f190614e61565b905061305b565b506000841461313c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161313390614ed6565b60405180910390fd5b8091505092915050565b60008060418351036131875760008060006020860151925060408601519150606086015160001a905061317b878285856132fd565b94509450505050613190565b60006002915091505b9250929050565b600060048111156131ab576131aa614218565b5b8160048111156131be576131bd614218565b5b03156132fa57600160048111156131d8576131d7614218565b5b8160048111156131eb576131ea614218565b5b0361322b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161322290614f42565b60405180910390fd5b6002600481111561323f5761323e614218565b5b81600481111561325257613251614218565b5b03613292576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161328990614fae565b60405180910390fd5b600360048111156132a6576132a5614218565b5b8160048111156132b9576132b8614218565b5b036132f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132f090615040565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156133385760006003915091506133d6565b60006001878787876040516000815260200160405260405161335d949392919061507c565b6020604051602081039080840390855afa15801561337f573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036133cd576000600192509250506133d6565b80600092509250505b94509492505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613428816133f3565b811461343357600080fd5b50565b6000813590506134458161341f565b92915050565b600060208284031215613461576134606133e9565b5b600061346f84828501613436565b91505092915050565b60008115159050919050565b61348d81613478565b82525050565b60006020820190506134a86000830184613484565b92915050565b6000819050919050565b6134c1816134ae565b81146134cc57600080fd5b50565b6000813590506134de816134b8565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061350f826134e4565b9050919050565b61351f81613504565b811461352a57600080fd5b50565b60008135905061353c81613516565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61359082613547565b810181811067ffffffffffffffff821117156135af576135ae613558565b5b80604052505050565b60006135c26133df565b90506135ce8282613587565b919050565b600067ffffffffffffffff8211156135ee576135ed613558565b5b602082029050602081019050919050565b600080fd5b6000613617613612846135d3565b6135b8565b9050808382526020820190506020840283018581111561363a576136396135ff565b5b835b81811015613663578061364f88826134cf565b84526020840193505060208101905061363c565b5050509392505050565b600082601f83011261368257613681613542565b5b8135613692848260208601613604565b91505092915050565b600080fd5b60008083601f8401126136b6576136b5613542565b5b8235905067ffffffffffffffff8111156136d3576136d261369b565b5b6020830191508360018202830111156136ef576136ee6135ff565b5b9250929050565b60008060008060008060008060e0898b031215613716576137156133e9565b5b60006137248b828c016134cf565b98505060206137358b828c0161352d565b975050604089013567ffffffffffffffff811115613756576137556133ee565b5b6137628b828c0161366d565b965050606089013567ffffffffffffffff811115613783576137826133ee565b5b61378f8b828c0161366d565b95505060806137a08b828c016134cf565b94505060a06137b18b828c016134cf565b93505060c089013567ffffffffffffffff8111156137d2576137d16133ee565b5b6137de8b828c016136a0565b92509250509295985092959890939650565b60008083601f84011261380657613805613542565b5b8235905067ffffffffffffffff8111156138235761382261369b565b5b60208301915083602082028301111561383f5761383e6135ff565b5b9250929050565b60008083601f84011261385c5761385b613542565b5b8235905067ffffffffffffffff8111156138795761387861369b565b5b602083019150836020820283011115613895576138946135ff565b5b9250929050565b6000806000806000606086880312156138b8576138b76133e9565b5b60006138c68882890161352d565b955050602086013567ffffffffffffffff8111156138e7576138e66133ee565b5b6138f3888289016137f0565b9450945050604086013567ffffffffffffffff811115613916576139156133ee565b5b61392288828901613846565b92509250509295509295909350565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613966816134ae565b82525050565b6000613978838361395d565b60208301905092915050565b6000602082019050919050565b600061399c82613931565b6139a6818561393c565b93506139b18361394d565b8060005b838110156139e25781516139c9888261396c565b97506139d483613984565b9250506001810190506139b5565b5085935050505092915050565b60006020820190508181036000830152613a098184613991565b905092915050565b600080fd5b600067ffffffffffffffff821115613a3157613a30613558565b5b613a3a82613547565b9050602081019050919050565b82818337600083830152505050565b6000613a69613a6484613a16565b6135b8565b905082815260208101848484011115613a8557613a84613a11565b5b613a90848285613a47565b509392505050565b600082601f830112613aad57613aac613542565b5b8135613abd848260208601613a56565b91505092915050565b60008060008060808587031215613ae057613adf6133e9565b5b6000613aee8782880161352d565b9450506020613aff8782880161352d565b9350506040613b10878288016134cf565b925050606085013567ffffffffffffffff811115613b3157613b306133ee565b5b613b3d87828801613a98565b91505092959194509250565b613b52816133f3565b82525050565b6000602082019050613b6d6000830184613b49565b92915050565b6000819050919050565b613b8681613b73565b8114613b9157600080fd5b50565b600081359050613ba381613b7d565b92915050565b600060208284031215613bbf57613bbe6133e9565b5b6000613bcd84828501613b94565b91505092915050565b613bdf81613b73565b82525050565b6000602082019050613bfa6000830184613bd6565b92915050565b60008060408385031215613c1757613c166133e9565b5b6000613c2585828601613b94565b9250506020613c368582860161352d565b9150509250929050565b60008060408385031215613c5757613c566133e9565b5b6000613c658582860161352d565b9250506020613c76858286016134cf565b9150509250929050565b613c89816134ae565b82525050565b6000602082019050613ca46000830184613c80565b92915050565b600060208284031215613cc057613cbf6133e9565b5b6000613cce8482850161352d565b91505092915050565b600080600080600080600060c0888a031215613cf657613cf56133e9565b5b6000613d048a828b016134cf565b9750506020613d158a828b0161352d565b9650506040613d268a828b016134cf565b9550506060613d378a828b016134cf565b9450506080613d488a828b016134cf565b93505060a088013567ffffffffffffffff811115613d6957613d686133ee565b5b613d758a828b016136a0565b925092505092959891949750929550565b600080600080600060a08688031215613da257613da16133e9565b5b6000613db08882890161352d565b9550506020613dc18882890161352d565b945050604086013567ffffffffffffffff811115613de257613de16133ee565b5b613dee8882890161366d565b935050606086013567ffffffffffffffff811115613e0f57613e0e6133ee565b5b613e1b8882890161366d565b925050608086013567ffffffffffffffff811115613e3c57613e3b6133ee565b5b613e4888828901613a98565b9150509295509295909350565b60008060008060008060008060e0898b031215613e7557613e746133e9565b5b6000613e838b828c016134cf565b9850506020613e948b828c0161352d565b9750506040613ea58b828c016134cf565b9650506060613eb68b828c016134cf565b9550506080613ec78b828c016134cf565b94505060a0613ed88b828c016134cf565b93505060c089013567ffffffffffffffff811115613ef957613ef86133ee565b5b613f058b828c016136a0565b92509250509295985092959890939650565b600080600080600060a08688031215613f3357613f326133e9565b5b6000613f418882890161352d565b9550506020613f528882890161352d565b9450506040613f63888289016134cf565b9350506060613f74888289016134cf565b925050608086013567ffffffffffffffff811115613f9557613f946133ee565b5b613fa188828901613a98565b9150509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b613fe681613504565b82525050565b60006040820190506140016000830185613fdd565b61400e6020830184613c80565b9392505050565b600081519050614024816134b8565b92915050565b6000602082840312156140405761403f6133e9565b5b600061404e84828501614015565b91505092915050565b600082825260208201905092915050565b7f496e73756666696369656e7442616c616e636500000000000000000000000000600082015250565b600061409e601383614057565b91506140a982614068565b602082019050919050565b600060208201905081810360008301526140cd81614091565b9050919050565b600082825260208201905092915050565b50565b60006140f56000836140d4565b9150614100826140e5565b600082019050919050565b600060a0820190506141206000830187613fdd565b61412d6020830186613fdd565b818103604083015261413f8185613991565b905081810360608301526141538184613991565b90508181036080830152614166816140e8565b905095945050505050565b600081905092915050565b614185816134ae565b82525050565b6000614197838361417c565b60208301905092915050565b60006141ae82613931565b6141b88185614171565b93506141c38361394d565b8060005b838110156141f45781516141db888261418b565b97506141e683613984565b9250506001810190506141c7565b5085935050505092915050565b600061420d82846141a3565b915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6003811061425857614257614218565b5b50565b600081905061426982614247565b919050565b60006142798261425b565b9050919050565b6142898161426e565b82525050565b60006060820190506142a46000830186613c80565b6142b16020830185614280565b81810360408301526142c38184613991565b9050949350505050565b600082825260208201905092915050565b6000819050919050565b6142f181613504565b82525050565b600061430383836142e8565b60208301905092915050565b600061431e602084018461352d565b905092915050565b6000602082019050919050565b600061433f83856142cd565b935061434a826142de565b8060005b8581101561438357614360828461430f565b61436a88826142f7565b975061437583614326565b92505060018101905061434e565b5085925050509392505050565b600080fd5b82818337505050565b60006143aa838561393c565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156143dd576143dc614390565b5b6020830292506143ee838584614395565b82840190509392505050565b60006040820190508181036000830152614415818688614333565b9050818103602083015261442a81848661439e565b905095945050505050565b6000614448614443846135d3565b6135b8565b9050808382526020820190506020840283018581111561446b5761446a6135ff565b5b835b8181101561449457806144808882614015565b84526020840193505060208101905061446d565b5050509392505050565b600082601f8301126144b3576144b2613542565b5b81516144c3848260208601614435565b91505092915050565b6000602082840312156144e2576144e16133e9565b5b600082015167ffffffffffffffff811115614500576144ff6133ee565b5b61450c8482850161449e565b91505092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614571602f83614057565b915061457c82614515565b604082019050919050565b600060208201905081810360008301526145a081614564565b9050919050565b6000815190506145b681613516565b92915050565b6000602082840312156145d2576145d16133e9565b5b60006145e0848285016145a7565b91505092915050565b60006020820190506145fe6000830184613fdd565b92915050565b60006060820190506146196000830186613fdd565b6146266020830185613fdd565b6146336040830184613c80565b949350505050565b61464481613478565b811461464f57600080fd5b50565b6000815190506146618161463b565b92915050565b60006020828403121561467d5761467c6133e9565b5b600061468b84828501614652565b91505092915050565b7f4e6f744f776e6572000000000000000000000000000000000000000000000000600082015250565b60006146ca600883614057565b91506146d582614694565b602082019050919050565b600060208201905081810360008301526146f9816146bd565b9050919050565b600060a0820190506147156000830187613fdd565b6147226020830186613fdd565b61472f6040830185613c80565b61473c6060830184613c80565b818103608083015261474d816140e8565b905095945050505050565b7f5472616e736665724661696c6564000000000000000000000000000000000000600082015250565b600061478e600e83614057565b915061479982614758565b602082019050919050565b600060208201905081810360008301526147bd81614781565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006147fa601f83614057565b9150614805826147c4565b602082019050919050565b60006020820190508181036000830152614829816147ed565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000614866601083614057565b915061487182614830565b602082019050919050565b6000602082019050818103600083015261489581614859565b9050919050565b7f496e76616c69645369676e617475726500000000000000000000000000000000600082015250565b60006148d2601083614057565b91506148dd8261489c565b602082019050919050565b60006020820190508181036000830152614901816148c5565b9050919050565b7f5a65726f41646472657373000000000000000000000000000000000000000000600082015250565b600061493e600b83614057565b915061494982614908565b602082019050919050565b6000602082019050818103600083015261496d81614931565b9050919050565b7f416c72656164795369676e657200000000000000000000000000000000000000600082015250565b60006149aa600d83614057565b91506149b582614974565b602082019050919050565b600060208201905081810360008301526149d98161499d565b9050919050565b7f4e6f745369676e65720000000000000000000000000000000000000000000000600082015250565b6000614a16600983614057565b9150614a21826149e0565b602082019050919050565b60006020820190508181036000830152614a4581614a09565b9050919050565b7f5369676e61747572654578706972656400000000000000000000000000000000600082015250565b6000614a82601083614057565b9150614a8d82614a4c565b602082019050919050565b60006020820190508181036000830152614ab181614a75565b9050919050565b600081519050919050565b60005b83811015614ae1578082015181840152602081019050614ac6565b60008484015250505050565b6000614af882614ab8565b614b028185614057565b9350614b12818560208601614ac3565b614b1b81613547565b840191505092915050565b600061014082019050614b3c600083018d613c80565b614b49602083018c613c80565b614b56604083018b613fdd565b614b63606083018a613fdd565b614b706080830189613fdd565b81810360a0830152614b828188613991565b905081810360c0830152614b968187613991565b9050614ba560e0830186613c80565b614bb3610100830185613c80565b818103610120830152614bc68184614aed565b90509b9a5050505050505050505050565b600081905092915050565b6000614bee8385614bd7565b9350614bfb838584613a47565b82840190509392505050565b6000614c14828486614be2565b91508190509392505050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614c61601783614c20565b9150614c6c82614c2b565b601782019050919050565b6000614c8282614ab8565b614c8c8185614c20565b9350614c9c818560208601614ac3565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614cde601183614c20565b9150614ce982614ca8565b601182019050919050565b6000614cff82614c54565b9150614d0b8285614c77565b9150614d1682614cd1565b9150614d228284614c77565b91508190509392505050565b60006020820190508181036000830152614d488184614aed565b905092915050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614d86601483614057565b9150614d9182614d50565b602082019050919050565b60006020820190508181036000830152614db581614d79565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614df6826134ae565b9150614e01836134ae565b9250828202614e0f816134ae565b91508282048414831517614e2657614e25614dbc565b5b5092915050565b6000614e38826134ae565b9150614e43836134ae565b9250828201905080821115614e5b57614e5a614dbc565b5b92915050565b6000614e6c826134ae565b915060008203614e7f57614e7e614dbc565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000614ec0602083614057565b9150614ecb82614e8a565b602082019050919050565b60006020820190508181036000830152614eef81614eb3565b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000614f2c601883614057565b9150614f3782614ef6565b602082019050919050565b60006020820190508181036000830152614f5b81614f1f565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000614f98601f83614057565b9150614fa382614f62565b602082019050919050565b60006020820190508181036000830152614fc781614f8b565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b600061502a602283614057565b915061503582614fce565b604082019050919050565b600060208201905081810360008301526150598161501d565b9050919050565b600060ff82169050919050565b61507681615060565b82525050565b60006080820190506150916000830187613bd6565b61509e602083018661506d565b6150ab6040830185613bd6565b6150b86060830184613bd6565b9594505050505056fea2646970667358221220c9bd952d8c5c2c3caefd62b304e1c384657a1ca3d73027b864a436fd9e34af8c64736f6c63430008180033

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

000000000000000000000000571924bedd3a110c86d7d28b97922b2ad83c3e4a0000000000000000000000001cd5cfcef34e7a0ef3cbf0aebe16d15909cdf36e0000000000000000000000004d1e1099c9f332647ac8fea8463d85e847cd6d5c000000000000000000000000cdf904c6baca3a074992b43286b5d12d21b43ba9

-----Decoded View---------------
Arg [0] : adminWallet (address): 0x571924bEdD3A110c86D7D28b97922b2Ad83C3E4a
Arg [1] : devWallet (address): 0x1cd5CfCeF34E7a0eF3cBF0AEbE16D15909Cdf36e
Arg [2] : vaultWallet (address): 0x4d1E1099c9F332647aC8fEa8463d85e847cd6D5c
Arg [3] : pauserWallet (address): 0xCDF904C6BAcA3a074992b43286B5D12d21B43ba9

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000571924bedd3a110c86d7d28b97922b2ad83c3e4a
Arg [1] : 0000000000000000000000001cd5cfcef34e7a0ef3cbf0aebe16d15909cdf36e
Arg [2] : 0000000000000000000000004d1e1099c9f332647ac8fea8463d85e847cd6d5c
Arg [3] : 000000000000000000000000cdf904c6baca3a074992b43286b5d12d21b43ba9


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
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.