ETH Price: $2,634.57 (-3.81%)
Gas: 0.72 Gwei

Contract

0x31B0457260825Ce1c03ccdCDC45bc2e9ab81694D
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...217537192025-02-01 19:20:1120 days ago1738437611IN
0x31B04572...9ab81694D
0 ETH0.000151193.24058809
Set Approval For...213990782024-12-14 6:51:2369 days ago1734159083IN
0x31B04572...9ab81694D
0 ETH0.000445689.53535403
Set Approval For...210318532024-10-24 0:23:59120 days ago1729729439IN
0x31B04572...9ab81694D
0 ETH0.000324036.94526058
Set Approval For...201150552024-06-18 0:23:11248 days ago1718670191IN
0x31B04572...9ab81694D
0 ETH0.00013255.33680221
Set Approval For...201150502024-06-18 0:22:11248 days ago1718670131IN
0x31B04572...9ab81694D
0 ETH0.000133575.39847665
Set Approval For...201150382024-06-18 0:19:47248 days ago1718669987IN
0x31B04572...9ab81694D
0 ETH0.000114094.59538287
Set Approval For...198394802024-05-10 11:57:23287 days ago1715342243IN
0x31B04572...9ab81694D
0 ETH0.000194714.16699206
Set Approval For...170662902023-04-17 11:46:35676 days ago1681731995IN
0x31B04572...9ab81694D
0 ETH0.0007965229.77008793
Set Approval For...170662892023-04-17 11:46:23676 days ago1681731983IN
0x31B04572...9ab81694D
0 ETH0.0008318131.08889148
Set Approval For...170662892023-04-17 11:46:23676 days ago1681731983IN
0x31B04572...9ab81694D
0 ETH0.0014504831.08889148
Set Approval For...168347782023-03-15 17:27:59709 days ago1678901279IN
0x31B04572...9ab81694D
0 ETH0.0017616537.75833643
Set Approval For...166766642023-02-21 11:45:47731 days ago1676979947IN
0x31B04572...9ab81694D
0 ETH0.0006620526.66546565
Set Approval For...164895742023-01-26 7:44:11757 days ago1674719051IN
0x31B04572...9ab81694D
0 ETH0.000380215.31374891
Set Approval For...164673232023-01-23 5:10:35760 days ago1674450635IN
0x31B04572...9ab81694D
0 ETH0.0007413915.89062002
Set Approval For...163740952023-01-10 4:44:11773 days ago1673325851IN
0x31B04572...9ab81694D
0 ETH0.0007881216.89218602
Set Approval For...163232312023-01-03 2:20:35780 days ago1672712435IN
0x31B04572...9ab81694D
0 ETH0.0010496822.49841665
Set Approval For...162540392022-12-24 10:36:23790 days ago1671878183IN
0x31B04572...9ab81694D
0 ETH0.0005298911.35741306
Set Approval For...162377432022-12-22 4:06:35792 days ago1671681995IN
0x31B04572...9ab81694D
0 ETH0.0006443313.78544918
Set Approval For...162377432022-12-22 4:06:35792 days ago1671681995IN
0x31B04572...9ab81694D
0 ETH0.0006443313.78544918
Set Approval For...162377402022-12-22 4:05:59792 days ago1671681959IN
0x31B04572...9ab81694D
0 ETH0.0005913512.67478528
Set Approval For...160646862022-11-27 23:45:59816 days ago1669592759IN
0x31B04572...9ab81694D
0 ETH0.0005162611.06525905
Set Approval For...159983472022-11-18 17:19:35826 days ago1668791975IN
0x31B04572...9ab81694D
0 ETH0.0008727118.70527051
Set Approval For...159811152022-11-16 7:32:23828 days ago1668583943IN
0x31B04572...9ab81694D
0 ETH0.0003185712.87472456
Set Approval For...158317582022-10-26 10:50:11849 days ago1666781411IN
0x31B04572...9ab81694D
0 ETH0.000233019.41720227
Set Approval For...156240442022-09-27 10:17:47878 days ago1664273867IN
0x31B04572...9ab81694D
0 ETH0.0004685510.04270358
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
149179322022-06-07 0:52:43990 days ago1654563163
0x31B04572...9ab81694D
0.08 ETH
149179282022-06-07 0:51:50990 days ago1654563110
0x31B04572...9ab81694D
0.08 ETH
149178992022-06-07 0:47:15990 days ago1654562835
0x31B04572...9ab81694D
0.08 ETH
149178892022-06-07 0:45:39990 days ago1654562739
0x31B04572...9ab81694D
0.08 ETH
149178112022-06-07 0:25:19990 days ago1654561519
0x31B04572...9ab81694D
0.08 ETH
149177992022-06-07 0:22:12990 days ago1654561332
0x31B04572...9ab81694D
0.08 ETH
147150122022-05-05 3:54:531023 days ago1651722893
0x31B04572...9ab81694D
0.08 ETH
146980242022-05-02 11:29:311026 days ago1651490971
0x31B04572...9ab81694D
0.08 ETH
146979362022-05-02 11:06:361026 days ago1651489596
0x31B04572...9ab81694D
0.08 ETH
146840132022-04-30 6:26:291028 days ago1651299989
0x31B04572...9ab81694D
0.08 ETH
146812962022-04-29 20:10:291029 days ago1651263029
0x31B04572...9ab81694D
0.08 ETH
146789702022-04-29 11:40:511029 days ago1651232451
0x31B04572...9ab81694D
0.08 ETH
146780502022-04-29 8:10:091029 days ago1651219809
0x31B04572...9ab81694D
0.08 ETH
146730712022-04-28 13:20:011030 days ago1651152001
0x31B04572...9ab81694D
0.08 ETH
146721982022-04-28 9:55:271030 days ago1651139727
0x31B04572...9ab81694D
0.08 ETH
146721492022-04-28 9:43:391030 days ago1651139019
0x31B04572...9ab81694D
0.08 ETH
146715462022-04-28 7:33:021030 days ago1651131182
0x31B04572...9ab81694D
0.08 ETH
146715292022-04-28 7:29:001030 days ago1651130940
0x31B04572...9ab81694D
0.08 ETH
146715152022-04-28 7:25:241030 days ago1651130724
0x31B04572...9ab81694D
0.08 ETH
146715092022-04-28 7:24:391030 days ago1651130679
0x31B04572...9ab81694D
0.08 ETH
146715022022-04-28 7:23:391030 days ago1651130619
0x31B04572...9ab81694D
0.08 ETH
146714742022-04-28 7:16:201030 days ago1651130180
0x31B04572...9ab81694D
0.08 ETH
146714422022-04-28 7:09:251030 days ago1651129765
0x31B04572...9ab81694D
0.08 ETH
146714312022-04-28 7:07:131030 days ago1651129633
0x31B04572...9ab81694D
0.08 ETH
146714112022-04-28 7:03:151030 days ago1651129395
0x31B04572...9ab81694D
0.08 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PikoZooNFT

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 21 : PikoZooNFT.sol
//SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.12;

/// @creator: Zoombiezoo
/// @author: op3n.world

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "./IPikoZooNFT.sol";

contract PikoZooNFT is AccessControl, IPikoZooNFT, ERC721Royalty {
    using ECDSA for bytes32;
    using Address for address;

    uint256 public constant UNIT_PRICE = 80000000000000000; // 0.08 ETH
    uint8 public constant MAX_PRESALE_PER_MINTER = 2;
    uint256 public constant PRESALE_START_AT = 1650942000; // Tuesday, 26 April 2022 10:00:00 GMT+07:00
    uint256 public constant PUBSALE_START_AT = 1651114800; // Tuesday, 28 April 2022 10:00:00 GMT+07:00
    
    address private _owner;
    address payable private _fundRecipient;
    bytes32 private _preSaleRoot;
    string private _tokenURI;
    uint256 private _tokenCount;
    uint256 private _totalSupply;
    uint8 private _giveawayCount;
    uint8 private _maxGiveaway;
    mapping(address => bool) private _verifiers;
    mapping(bytes32 => bool) public finalized;
    mapping(address => uint8) private _preSaleMinted;

    /**
     * @dev Initializes the contract with name is `PikoZoo`, `symbol` is `PKZ`, owner is deployer to the token collection.
     */
    constructor() ERC721("PikoZoo", "PKZ") {
        _owner = _msgSender();
        _grantRole(DEFAULT_ADMIN_ROLE, _owner);
    }

    /**
     * @dev See {IERC165-supportsInterface}, {IERC2981-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControl, ERC721Royalty, IERC165) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    /**
     * @dev Modifier that checks that an account has an admin role.
    */
    modifier onlyAdmin() {
        _checkRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _;
    }

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual override onlyOwner {
        _owner = newOwner;
    }

    /**
     * @dev Returns totalSupply address.
     */
    function totalSupply() external view override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev Returns giveawayCount address.
     */
    function giveawayCount() external view override returns (uint256) {
        return _giveawayCount;
    }

    /**
     * @dev Returns maxGiveaway address.
     */
    function maxGiveaway() external view override returns (uint256) {
        return _maxGiveaway;
    }

    /**
     * @dev Check address is verifier
     */
    function isVerifier(address verifier_) external view override returns (bool) {
        return _verifiers[verifier_];
    }

    /**
     * @dev Set mint verifier of this contract
     * Can only be called by the admin.
     */
    function setVerifier(address verifier_) external override onlyAdmin {
        _verifiers[verifier_] = true;
    }

    /**
     * @dev Revoke mint verifier of this contract
     * Can only be called by the admin.
     */
    function revokeVerifier(address verifier_) external override onlyAdmin {
        _verifiers[verifier_] = false;
    }

    /**
     * @dev set tokenURI.
     */
    function setTokenURI(string memory tokenURI_) external override onlyAdmin{
        _tokenURI = tokenURI_;
    }

    /**
     * @dev Set preSaleRoot of this contract
     * Can only be called by the admin.
     */
    function setPreSaleRoot(bytes32 root_) external override onlyAdmin {
        _preSaleRoot = root_;
    }

    /**
     * @dev Get preSaleRoot
     */
    function preSaleRoot() external view returns(bytes32) {
        return _preSaleRoot;
    }

    /**
     * @dev Set royalty of this contract
     */
    function setDefaultRoyalty(address receiver, uint96 feeNumerator) external override onlyAdmin {
        _setDefaultRoyalty(receiver, feeNumerator);
    }

    /**
     * @dev Set fundRecipient of this contract
     * Can only be called by the admin.
     */
    function setFundRecipient(address fundRecipient_) external override onlyAdmin {
        _fundRecipient = payable(fundRecipient_);
    }

    /**
     * @dev Returns fundRecipient address.
     */
    function fundRecipient() external view override returns (address) {
        return _fundRecipient;
    }

    /**
     * @dev Returns tokenCount address.
     */
    function tokenCount() external view override returns (uint256) {
        return _tokenCount;
    }

    /**
     * @dev See {ERC721-_burn}, {ERC721Royalty-_burn}
     */
    function _burn(uint256 tokenId) internal virtual override(ERC721Royalty) {
        super._burn(tokenId);
    }

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

    /**
     * @dev Activate this contract
     * Can only be called by the admin.
     */
    function activate(uint256 totalSupply_, uint8 maxGiveaway_, address fundRecipient_, address royaltyRecipient_) external override onlyAdmin {
         require(_totalSupply == 0, "PKZ: Already activated");
        
        _totalSupply = totalSupply_;
        _maxGiveaway = maxGiveaway_;
        _fundRecipient = payable(fundRecipient_);
        _setDefaultRoyalty(royaltyRecipient_, 750);
    }

    /**
     * @dev validate a mint.
     */
    function _validateMint() internal returns (bool) {
        if (PUBSALE_START_AT <= block.timestamp) {
            return true;
        }

        if (PRESALE_START_AT <= block.timestamp) {
            if (MAX_PRESALE_PER_MINTER <= _preSaleMinted[_msgSender()]) {
                return false;
            }

            _preSaleMinted[_msgSender()]++;
            return true;
        }

        return false;
    }

    /**
     * @dev validate a sig.
     */
    function _validateSig(uint256 salt, bytes memory sig) internal returns (bool) {
        bytes32 _verifiedHash = keccak256(abi.encodePacked(msg.sender, salt));
        if (finalized[_verifiedHash]) {
            return false;
        }

        if (!_verifiers[_verifiedHash.toEthSignedMessageHash().recover(sig)]) {
            return false;
        }
        
        finalized[_verifiedHash] = true;
        return true;
    }

    /**
     * @dev internal mint a NFT.
     */
    function _mintNFT(address to, uint256 tokenId) internal {
        require(tokenId <= _totalSupply, "PKZ: Invalid TokenId");
        
        _tokenCount++;
        _mint(to, tokenId);
    }

    /**
     * @dev mint a NFT.
     */
    function mint(uint256 tokenId, uint256 salt, bytes memory sig) external payable override {
        require(UNIT_PRICE <= msg.value, "PKZ: Invalid amount");
        require(_validateMint(), "PKZ: Invalid mint");
        require(_validateSig(salt, sig), "PKZ: Invalid signature");
        
        Address.sendValue(_fundRecipient, msg.value);
        _mintNFT(msg.sender, tokenId);
    }

    /**
     * @dev mint NFTs.
     */
    function mintBatch(uint256[] memory tokenIds, uint256 salt, bytes memory sig) external payable override {
        uint256 mintCount = tokenIds.length;
        require(UNIT_PRICE * mintCount <= msg.value, "PKZ: Invalid amount");
        require(_validateMint(), "PKZ: Invalid mint");
        require(_validateSig(salt, sig), "PKZ: Invalid signature");
        
        Address.sendValue(_fundRecipient, msg.value);
        for (uint256 index = 0; index < mintCount; index++) {
            _mintNFT(msg.sender, tokenIds[index]);
        }
    }

    /**
     * @dev giveaway tokenId to receiver.
     * Can only be called by the admin.
     */
    function giveaway(address toAddress, uint256 tokenId) external override onlyAdmin {
        require(_giveawayCount < _maxGiveaway, "PKZ: Invalid giveaway");
        require(tokenId <= _totalSupply, "PKZ: Invalid TokenId");

        _giveawayCount++;
        _tokenCount++;
        _mint(toAddress, tokenId);
        emit Giveaway(toAddress, tokenId);
    }
}

File 2 of 21 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    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.
     */
    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`.
     */
    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.
     *
     * [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.
     */
    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.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 3 of 21 : ERC721Royalty.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/ERC721Royalty.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../common/ERC2981.sol";
import "../../../utils/introspection/ERC165.sol";

/**
 * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment
 * information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC721Royalty is ERC2981, ERC721 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);
        _resetTokenRoyalty(tokenId);
    }
}

File 4 of 21 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 21 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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
    }

    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");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' 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) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        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.
            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 if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } 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 (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 6 of 21 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 7 of 21 : IPikoZooNFT.sol
//SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.12;

import "@openzeppelin/contracts/access/IAccessControl.sol";
import "@openzeppelin/contracts/interfaces/IERC721.sol";
import "@openzeppelin/contracts/interfaces/IERC721Metadata.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";

interface IPikoZooNFT is IAccessControl, IERC2981, IERC721, IERC721Metadata {
    event Giveaway(address toAddress, uint256 tokenId);

    function owner() external view returns (address);
    function transferOwnership(address newOwner) external;
    function totalSupply() external view returns (uint256);
    function giveawayCount() external view returns (uint256);
    function maxGiveaway() external view returns (uint256);
    function isVerifier(address verifier_) external view returns (bool);
    function setVerifier(address verifier_) external;
    function revokeVerifier(address verifier_) external;
    function setTokenURI(string memory tokenURI_) external;
    function setPreSaleRoot(bytes32 root_) external;
    function preSaleRoot() external view returns(bytes32);
    function setDefaultRoyalty(address receiver, uint96 feeNumerator) external;
    function setFundRecipient(address fundRecipient_) external;
    function fundRecipient() external view returns (address);
    function tokenCount() external view returns (uint256);
    function activate(uint256 totalSupply_, uint8 maxGiveaway_, address fundRecipient_, address royaltyRecipient_) external;
    function mint(uint256 tokenId, uint256 salt, bytes memory sig) external payable;
    function mintBatch(uint256[] memory tokenIds, uint256 salt, bytes memory sig) external payable;
    function giveaway(address toAddress, uint256 tokenId) external;
}

File 8 of 21 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 9 of 21 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 10 of 21 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 12 of 21 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 13 of 21 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

File 14 of 21 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
        external
        view
        virtual
        override
        returns (address, uint256)
    {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `tokenId` must be already minted.
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 15 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

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

File 16 of 21 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 18 of 21 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be payed in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 19 of 21 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

File 20 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol)

pragma solidity ^0.8.0;

import "../token/ERC721/IERC721.sol";

File 21 of 21 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../token/ERC721/extensions/IERC721Metadata.sol";

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"toAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Giveaway","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PRESALE_PER_MINTER","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_START_AT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBSALE_START_AT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNIT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"totalSupply_","type":"uint256"},{"internalType":"uint8","name":"maxGiveaway_","type":"uint8"},{"internalType":"address","name":"fundRecipient_","type":"address"},{"internalType":"address","name":"royaltyRecipient_","type":"address"}],"name":"activate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"finalized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fundRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"toAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"giveaway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"giveawayCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"verifier_","type":"address"}],"name":"isVerifier","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxGiveaway","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"mintBatch","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"verifier_","type":"address"}],"name":"revokeVerifier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"fundRecipient_","type":"address"}],"name":"setFundRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root_","type":"bytes32"}],"name":"setPreSaleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"tokenURI_","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"verifier_","type":"address"}],"name":"setVerifier","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":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040518060400160405280600781526020017f50696b6f5a6f6f000000000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f504b5a0000000000000000000000000000000000000000000000000000000000815250816003908051906020019062000096929190620002a2565b508060049080519060200190620000af929190620002a2565b505050620000c26200013f60201b60201c565b600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620001396000801b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166200014760201b60201c565b620003b7565b600033905090565b6200015982826200023860201b60201c565b6200023457600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620001d96200013f60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b828054620002b09062000381565b90600052602060002090601f016020900481019282620002d4576000855562000320565b82601f10620002ef57805160ff191683800117855562000320565b8280016001018555821562000320579182015b828111156200031f57825182559160200191906001019062000302565b5b5090506200032f919062000333565b5090565b5b808211156200034e57600081600090555060010162000334565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200039a57607f821691505b60208210811415620003b157620003b062000352565b5b50919050565b615a3a80620003c76000396000f3fe6080604052600436106102675760003560e01c80636c20f00e11610144578063bd02a235116100b6578063d939c9601161007a578063d939c96014610949578063e0df5b6f14610974578063e985e9c51461099d578063e9be0f3f146109da578063f2fde38b14610a05578063fe042d4914610a2e57610267565b8063bd02a23514610866578063bf5c1c211461088f578063bfb62028146108ba578063c87b56dd146108e3578063d547741f1461092057610267565b806395d89b411161010857806395d89b41146107685780639f181b5e14610793578063a217fddf146107be578063a22cb465146107e9578063afa40bbd14610812578063b88d4fde1461083d57610267565b80636c20f00e1461066f57806370a082311461069a5780637aa2cc1b146106d75780638da5cb5b1461070057806391d148541461072b57610267565b80632a55205a116101dd57806342842e0e116101a157806342842e0e1461056e578063428f010a14610597578063438091ed146105c2578063459ba3ae146105de5780635437988d146106095780636352211e1461063257610267565b80632a55205a146104765780632f2ff15d146104b45780633154b9c2146104dd578063331052181461050857806336568abe1461054557610267565b806308dc9f421161022f57806308dc9f4214610363578063095ea7b31461037f5780630abea268146103a857806318160ddd146103e557806323b872dd14610410578063248a9ca31461043957610267565b806301ffc9a71461026c57806304634d8d146102a9578063050225ea146102d257806306fdde03146102fb578063081812fc14610326575b600080fd5b34801561027857600080fd5b50610293600480360381019061028e9190613941565b610a57565b6040516102a09190613989565b60405180910390f35b3480156102b557600080fd5b506102d060048036038101906102cb9190613a46565b610a69565b005b3480156102de57600080fd5b506102f960048036038101906102f49190613abc565b610a8b565b005b34801561030757600080fd5b50610310610be1565b60405161031d9190613b95565b60405180910390f35b34801561033257600080fd5b5061034d60048036038101906103489190613bb7565b610c73565b60405161035a9190613bf3565b60405180910390f35b61037d60048036038101906103789190613d43565b610cf8565b005b34801561038b57600080fd5b506103a660048036038101906103a19190613abc565b610e0e565b005b3480156103b457600080fd5b506103cf60048036038101906103ca9190613de8565b610f26565b6040516103dc9190613989565b60405180910390f35b3480156103f157600080fd5b506103fa610f46565b6040516104079190613e24565b60405180910390f35b34801561041c57600080fd5b5061043760048036038101906104329190613e3f565b610f50565b005b34801561044557600080fd5b50610460600480360381019061045b9190613de8565b610fb0565b60405161046d9190613ea1565b60405180910390f35b34801561048257600080fd5b5061049d60048036038101906104989190613ebc565b610fcf565b6040516104ab929190613efc565b60405180910390f35b3480156104c057600080fd5b506104db60048036038101906104d69190613f25565b6111ba565b005b3480156104e957600080fd5b506104f26111e3565b6040516104ff9190613ea1565b60405180910390f35b34801561051457600080fd5b5061052f600480360381019061052a9190613f65565b6111ed565b60405161053c9190613989565b60405180910390f35b34801561055157600080fd5b5061056c60048036038101906105679190613f25565b611243565b005b34801561057a57600080fd5b5061059560048036038101906105909190613e3f565b6112c6565b005b3480156105a357600080fd5b506105ac6112e6565b6040516105b99190613e24565b60405180910390f35b6105dc60048036038101906105d7919061405a565b6112ee565b005b3480156105ea57600080fd5b506105f361144f565b6040516106009190613e24565b60405180910390f35b34801561061557600080fd5b50610630600480360381019061062b9190613f65565b611469565b005b34801561063e57600080fd5b5061065960048036038101906106549190613bb7565b6114d8565b6040516106669190613bf3565b60405180910390f35b34801561067b57600080fd5b5061068461158a565b6040516106919190614101565b60405180910390f35b3480156106a657600080fd5b506106c160048036038101906106bc9190613f65565b61158f565b6040516106ce9190613e24565b60405180910390f35b3480156106e357600080fd5b506106fe60048036038101906106f99190614148565b611647565b005b34801561070c57600080fd5b50610715611715565b6040516107229190613bf3565b60405180910390f35b34801561073757600080fd5b50610752600480360381019061074d9190613f25565b61173f565b60405161075f9190613989565b60405180910390f35b34801561077457600080fd5b5061077d6117a9565b60405161078a9190613b95565b60405180910390f35b34801561079f57600080fd5b506107a861183b565b6040516107b59190613e24565b60405180910390f35b3480156107ca57600080fd5b506107d3611845565b6040516107e09190613ea1565b60405180910390f35b3480156107f557600080fd5b50610810600480360381019061080b91906141db565b61184c565b005b34801561081e57600080fd5b50610827611862565b6040516108349190613e24565b60405180910390f35b34801561084957600080fd5b50610864600480360381019061085f919061421b565b61186e565b005b34801561087257600080fd5b5061088d60048036038101906108889190613f65565b6118d0565b005b34801561089b57600080fd5b506108a461193f565b6040516108b19190613e24565b60405180910390f35b3480156108c657600080fd5b506108e160048036038101906108dc9190613f65565b611947565b005b3480156108ef57600080fd5b5061090a60048036038101906109059190613bb7565b61199f565b6040516109179190613b95565b60405180910390f35b34801561092c57600080fd5b5061094760048036038101906109429190613f25565b611a46565b005b34801561095557600080fd5b5061095e611a6f565b60405161096b9190613bf3565b60405180910390f35b34801561098057600080fd5b5061099b6004803603810190610996919061433f565b611a99565b005b3480156109a957600080fd5b506109c460048036038101906109bf9190614388565b611ac7565b6040516109d19190613989565b60405180910390f35b3480156109e657600080fd5b506109ef611b5b565b6040516109fc9190613e24565b60405180910390f35b348015610a1157600080fd5b50610a2c6004803603810190610a279190613f65565b611b75565b005b348015610a3a57600080fd5b50610a556004803603810190610a509190613de8565b611c2e565b005b6000610a6282611c4c565b9050919050565b610a7d6000801b610a78611c5e565b611c66565b610a878282611d03565b5050565b610a9f6000801b610a9a611c5e565b611c66565b600f60019054906101000a900460ff1660ff16600f60009054906101000a900460ff1660ff1610610b05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610afc90614414565b60405180910390fd5b600e54811115610b4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4190614480565b60405180910390fd5b600f600081819054906101000a900460ff1680929190610b69906144cf565b91906101000a81548160ff021916908360ff16021790555050600d6000815480929190610b95906144f9565b9190505550610ba48282611e99565b7f2118eda2a5fcc2e5f909a608477a856272adadcb48e1373747c51d2d3f6fc2ef8282604051610bd5929190613efc565b60405180910390a15050565b606060038054610bf090614571565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1c90614571565b8015610c695780601f10610c3e57610100808354040283529160200191610c69565b820191906000526020600020905b815481529060010190602001808311610c4c57829003601f168201915b5050505050905090565b6000610c7e82612073565b610cbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb490614615565b60405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b3467011c37937e0800001115610d43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3a90614681565b60405180910390fd5b610d4b6120df565b610d8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d81906146ed565b60405180910390fd5b610d9482826121f7565b610dd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dca90614759565b60405180910390fd5b610dff600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1634612302565b610e0933846123f6565b505050565b6000610e19826114d8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e81906147eb565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ea9611c5e565b73ffffffffffffffffffffffffffffffffffffffff161480610ed85750610ed781610ed2611c5e565b611ac7565b5b610f17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0e9061487d565b60405180910390fd5b610f218383612461565b505050565b60116020528060005260406000206000915054906101000a900460ff1681565b6000600e54905090565b610f61610f5b611c5e565b8261251a565b610fa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f979061490f565b60405180910390fd5b610fab8383836125f8565b505050565b6000806000838152602001908152602001600020600101549050919050565b6000806000600260008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614156111655760016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b600061116f61285f565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff168661119b919061492f565b6111a591906149b8565b90508160000151819350935050509250929050565b6111c382610fb0565b6111d4816111cf611c5e565b611c66565b6111de8383612869565b505050565b6000600b54905090565b6000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b61124b611c5e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112af90614a5b565b60405180910390fd5b6112c28282612949565b5050565b6112e18383836040518060200160405280600081525061186e565b505050565b63626a033081565b600083519050348167011c37937e080000611309919061492f565b111561134a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134190614681565b60405180910390fd5b6113526120df565b611391576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611388906146ed565b60405180910390fd5b61139b83836121f7565b6113da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d190614759565b60405180910390fd5b611406600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1634612302565b60005b81811015611448576114353386838151811061142857611427614a7b565b5b60200260200101516123f6565b8080611440906144f9565b915050611409565b5050505050565b6000600f60019054906101000a900460ff1660ff16905090565b61147d6000801b611478611c5e565b611c66565b6001601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000806005600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611581576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157890614b1c565b60405180910390fd5b80915050919050565b600281565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611600576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f790614bae565b60405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61165b6000801b611656611c5e565b611c66565b6000600e54146116a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169790614c1a565b60405180910390fd5b83600e8190555082600f60016101000a81548160ff021916908360ff16021790555081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061170f816102ee611d03565b50505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600480546117b890614571565b80601f01602080910402602001604051908101604052809291908181526020018280546117e490614571565b80156118315780601f1061180657610100808354040283529160200191611831565b820191906000526020600020905b81548152906001019060200180831161181457829003601f168201915b5050505050905090565b6000600d54905090565b6000801b81565b61185e611857611c5e565b8383612a2a565b5050565b67011c37937e08000081565b61187f611879611c5e565b8361251a565b6118be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b59061490f565b60405180910390fd5b6118ca84848484612b97565b50505050565b6118e46000801b6118df611c5e565b611c66565b6000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b636267603081565b61195b6000801b611956611c5e565b611c66565b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606119aa82612073565b6119e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e090614cac565b60405180910390fd5b60006119f3612bf3565b90506000815111611a135760405180602001604052806000815250611a3e565b80611a1d84612c85565b604051602001611a2e929190614d08565b6040516020818303038152906040525b915050919050565b611a4f82610fb0565b611a6081611a5b611c5e565b611c66565b611a6a8383612949565b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611aad6000801b611aa8611c5e565b611c66565b80600c9080519060200190611ac3929190613832565b5050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000600f60009054906101000a900460ff1660ff16905090565b3373ffffffffffffffffffffffffffffffffffffffff16611b94611715565b73ffffffffffffffffffffffffffffffffffffffff1614611bea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be190614d78565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611c426000801b611c3d611c5e565b611c66565b80600b8190555050565b6000611c5782612de6565b9050919050565b600033905090565b611c70828261173f565b611cff57611c958173ffffffffffffffffffffffffffffffffffffffff166014612ec8565b611ca38360001c6020612ec8565b604051602001611cb4929190614e30565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf69190613b95565b60405180910390fd5b5050565b611d0b61285f565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611d69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6090614edc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611dd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dd090614f48565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600160008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0090614fb4565b60405180910390fd5b611f1281612073565b15611f52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4990615020565b60405180910390fd5b611f5e60008383613104565b6001600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fae9190615040565b92505081905550816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461206f60008383613109565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff166005600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60004263626a0330116120f557600190506121f4565b426362676030116121ef576012600061210c611c5e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff16600260ff161161216a57600090506121f4565b60126000612176611c5e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081819054906101000a900460ff16809291906121cd906144cf565b91906101000a81548160ff021916908360ff16021790555050600190506121f4565b600090505b90565b600080338460405160200161220d9291906150ff565b6040516020818303038152906040528051906020012090506011600082815260200190815260200160002060009054906101000a900460ff16156122555760009150506122fc565b60106000612274856122668561310e565b61313e90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166122ca5760009150506122fc565b60016011600083815260200190815260200160002060006101000a81548160ff02191690831515021790555060019150505b92915050565b80471015612345576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233c90615177565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161236b906151c8565b60006040518083038185875af1925050503d80600081146123a8576040519150601f19603f3d011682016040523d82523d6000602084013e6123ad565b606091505b50509050806123f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e89061524f565b60405180910390fd5b505050565b600e5481111561243b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243290614480565b60405180910390fd5b600d600081548092919061244e906144f9565b919050555061245d8282611e99565b5050565b816007600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166124d4836114d8565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061252582612073565b612564576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255b906152e1565b60405180910390fd5b600061256f836114d8565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806125de57508373ffffffffffffffffffffffffffffffffffffffff166125c684610c73565b73ffffffffffffffffffffffffffffffffffffffff16145b806125ef57506125ee8185611ac7565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612618826114d8565b73ffffffffffffffffffffffffffffffffffffffff161461266e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266590615373565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156126de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d590615405565b60405180910390fd5b6126e9838383613104565b6126f4600082612461565b6001600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127449190615425565b925050819055506001600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461279b9190615040565b92505081905550816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461285a838383613109565b505050565b6000612710905090565b612873828261173f565b61294557600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506128ea611c5e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b612953828261173f565b15612a2657600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506129cb611c5e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612a99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a90906154a5565b60405180910390fd5b80600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612b8a9190613989565b60405180910390a3505050565b612ba28484846125f8565b612bae84848484613165565b612bed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be490615537565b60405180910390fd5b50505050565b6060600c8054612c0290614571565b80601f0160208091040260200160405190810160405280929190818152602001828054612c2e90614571565b8015612c7b5780601f10612c5057610100808354040283529160200191612c7b565b820191906000526020600020905b815481529060010190602001808311612c5e57829003601f168201915b5050505050905090565b60606000821415612ccd576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612de1565b600082905060005b60008214612cff578080612ce8906144f9565b915050600a82612cf891906149b8565b9150612cd5565b60008167ffffffffffffffff811115612d1b57612d1a613c18565b5b6040519080825280601f01601f191660200182016040528015612d4d5781602001600182028036833780820191505090505b5090505b60008514612dda57600182612d669190615425565b9150600a85612d759190615557565b6030612d819190615040565b60f81b818381518110612d9757612d96614a7b565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612dd391906149b8565b9450612d51565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612eb157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612ec15750612ec0826132ed565b5b9050919050565b606060006002836002612edb919061492f565b612ee59190615040565b67ffffffffffffffff811115612efe57612efd613c18565b5b6040519080825280601f01601f191660200182016040528015612f305781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612f6857612f67614a7b565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612fcc57612fcb614a7b565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261300c919061492f565b6130169190615040565b90505b60018111156130b6577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061305857613057614a7b565b5b1a60f81b82828151811061306f5761306e614a7b565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806130af90615588565b9050613019565b50600084146130fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130f1906155fe565b60405180910390fd5b8091505092915050565b505050565b505050565b600081604051602001613121919061568b565b604051602081830303815290604052805190602001209050919050565b600080600061314d8585613367565b9150915061315a816133ea565b819250505092915050565b60006131868473ffffffffffffffffffffffffffffffffffffffff166135bf565b156132e0578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026131af611c5e565b8786866040518563ffffffff1660e01b81526004016131d19493929190615706565b6020604051808303816000875af192505050801561320d57506040513d601f19601f8201168201806040525081019061320a9190615767565b60015b613290573d806000811461323d576040519150601f19603f3d011682016040523d82523d6000602084013e613242565b606091505b50600081511415613288576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161327f90615537565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506132e5565b600190505b949350505050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480613360575061335f826135e2565b5b9050919050565b6000806041835114156133a95760008060006020860151925060408601519150606086015160001a905061339d8782858561365c565b945094505050506133e3565b6040835114156133da5760008060208501519150604085015190506133cf868383613769565b9350935050506133e3565b60006002915091505b9250929050565b600060048111156133fe576133fd615794565b5b81600481111561341157613410615794565b5b141561341c576135bc565b600160048111156134305761342f615794565b5b81600481111561344357613442615794565b5b1415613484576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161347b9061580f565b60405180910390fd5b6002600481111561349857613497615794565b5b8160048111156134ab576134aa615794565b5b14156134ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134e39061587b565b60405180910390fd5b60036004811115613500576134ff615794565b5b81600481111561351357613512615794565b5b1415613554576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161354b9061590d565b60405180910390fd5b60048081111561356757613566615794565b5b81600481111561357a57613579615794565b5b14156135bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135b29061599f565b60405180910390fd5b5b50565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806136555750613654826137c8565b5b9050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613697576000600391509150613760565b601b8560ff16141580156136af5750601c8560ff1614155b156136c1576000600491509150613760565b6000600187878787604051600081526020016040526040516136e694939291906159bf565b6020604051602081039080840390855afa158015613708573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561375757600060019250925050613760565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c6137ac9190615040565b90506137ba8782888561365c565b935093505050935093915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b82805461383e90614571565b90600052602060002090601f01602090048101928261386057600085556138a7565b82601f1061387957805160ff19168380011785556138a7565b828001600101855582156138a7579182015b828111156138a657825182559160200191906001019061388b565b5b5090506138b491906138b8565b5090565b5b808211156138d15760008160009055506001016138b9565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61391e816138e9565b811461392957600080fd5b50565b60008135905061393b81613915565b92915050565b600060208284031215613957576139566138df565b5b60006139658482850161392c565b91505092915050565b60008115159050919050565b6139838161396e565b82525050565b600060208201905061399e600083018461397a565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006139cf826139a4565b9050919050565b6139df816139c4565b81146139ea57600080fd5b50565b6000813590506139fc816139d6565b92915050565b60006bffffffffffffffffffffffff82169050919050565b613a2381613a02565b8114613a2e57600080fd5b50565b600081359050613a4081613a1a565b92915050565b60008060408385031215613a5d57613a5c6138df565b5b6000613a6b858286016139ed565b9250506020613a7c85828601613a31565b9150509250929050565b6000819050919050565b613a9981613a86565b8114613aa457600080fd5b50565b600081359050613ab681613a90565b92915050565b60008060408385031215613ad357613ad26138df565b5b6000613ae1858286016139ed565b9250506020613af285828601613aa7565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613b36578082015181840152602081019050613b1b565b83811115613b45576000848401525b50505050565b6000601f19601f8301169050919050565b6000613b6782613afc565b613b718185613b07565b9350613b81818560208601613b18565b613b8a81613b4b565b840191505092915050565b60006020820190508181036000830152613baf8184613b5c565b905092915050565b600060208284031215613bcd57613bcc6138df565b5b6000613bdb84828501613aa7565b91505092915050565b613bed816139c4565b82525050565b6000602082019050613c086000830184613be4565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613c5082613b4b565b810181811067ffffffffffffffff82111715613c6f57613c6e613c18565b5b80604052505050565b6000613c826138d5565b9050613c8e8282613c47565b919050565b600067ffffffffffffffff821115613cae57613cad613c18565b5b613cb782613b4b565b9050602081019050919050565b82818337600083830152505050565b6000613ce6613ce184613c93565b613c78565b905082815260208101848484011115613d0257613d01613c13565b5b613d0d848285613cc4565b509392505050565b600082601f830112613d2a57613d29613c0e565b5b8135613d3a848260208601613cd3565b91505092915050565b600080600060608486031215613d5c57613d5b6138df565b5b6000613d6a86828701613aa7565b9350506020613d7b86828701613aa7565b925050604084013567ffffffffffffffff811115613d9c57613d9b6138e4565b5b613da886828701613d15565b9150509250925092565b6000819050919050565b613dc581613db2565b8114613dd057600080fd5b50565b600081359050613de281613dbc565b92915050565b600060208284031215613dfe57613dfd6138df565b5b6000613e0c84828501613dd3565b91505092915050565b613e1e81613a86565b82525050565b6000602082019050613e396000830184613e15565b92915050565b600080600060608486031215613e5857613e576138df565b5b6000613e66868287016139ed565b9350506020613e77868287016139ed565b9250506040613e8886828701613aa7565b9150509250925092565b613e9b81613db2565b82525050565b6000602082019050613eb66000830184613e92565b92915050565b60008060408385031215613ed357613ed26138df565b5b6000613ee185828601613aa7565b9250506020613ef285828601613aa7565b9150509250929050565b6000604082019050613f116000830185613be4565b613f1e6020830184613e15565b9392505050565b60008060408385031215613f3c57613f3b6138df565b5b6000613f4a85828601613dd3565b9250506020613f5b858286016139ed565b9150509250929050565b600060208284031215613f7b57613f7a6138df565b5b6000613f89848285016139ed565b91505092915050565b600067ffffffffffffffff821115613fad57613fac613c18565b5b602082029050602081019050919050565b600080fd5b6000613fd6613fd184613f92565b613c78565b90508083825260208201905060208402830185811115613ff957613ff8613fbe565b5b835b81811015614022578061400e8882613aa7565b845260208401935050602081019050613ffb565b5050509392505050565b600082601f83011261404157614040613c0e565b5b8135614051848260208601613fc3565b91505092915050565b600080600060608486031215614073576140726138df565b5b600084013567ffffffffffffffff811115614091576140906138e4565b5b61409d8682870161402c565b93505060206140ae86828701613aa7565b925050604084013567ffffffffffffffff8111156140cf576140ce6138e4565b5b6140db86828701613d15565b9150509250925092565b600060ff82169050919050565b6140fb816140e5565b82525050565b600060208201905061411660008301846140f2565b92915050565b614125816140e5565b811461413057600080fd5b50565b6000813590506141428161411c565b92915050565b60008060008060808587031215614162576141616138df565b5b600061417087828801613aa7565b945050602061418187828801614133565b9350506040614192878288016139ed565b92505060606141a3878288016139ed565b91505092959194509250565b6141b88161396e565b81146141c357600080fd5b50565b6000813590506141d5816141af565b92915050565b600080604083850312156141f2576141f16138df565b5b6000614200858286016139ed565b9250506020614211858286016141c6565b9150509250929050565b60008060008060808587031215614235576142346138df565b5b6000614243878288016139ed565b9450506020614254878288016139ed565b935050604061426587828801613aa7565b925050606085013567ffffffffffffffff811115614286576142856138e4565b5b61429287828801613d15565b91505092959194509250565b600067ffffffffffffffff8211156142b9576142b8613c18565b5b6142c282613b4b565b9050602081019050919050565b60006142e26142dd8461429e565b613c78565b9050828152602081018484840111156142fe576142fd613c13565b5b614309848285613cc4565b509392505050565b600082601f83011261432657614325613c0e565b5b81356143368482602086016142cf565b91505092915050565b600060208284031215614355576143546138df565b5b600082013567ffffffffffffffff811115614373576143726138e4565b5b61437f84828501614311565b91505092915050565b6000806040838503121561439f5761439e6138df565b5b60006143ad858286016139ed565b92505060206143be858286016139ed565b9150509250929050565b7f504b5a3a20496e76616c69642067697665617761790000000000000000000000600082015250565b60006143fe601583613b07565b9150614409826143c8565b602082019050919050565b6000602082019050818103600083015261442d816143f1565b9050919050565b7f504b5a3a20496e76616c696420546f6b656e4964000000000000000000000000600082015250565b600061446a601483613b07565b915061447582614434565b602082019050919050565b600060208201905081810360008301526144998161445d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006144da826140e5565b915060ff8214156144ee576144ed6144a0565b5b600182019050919050565b600061450482613a86565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614537576145366144a0565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061458957607f821691505b6020821081141561459d5761459c614542565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006145ff602c83613b07565b915061460a826145a3565b604082019050919050565b6000602082019050818103600083015261462e816145f2565b9050919050565b7f504b5a3a20496e76616c696420616d6f756e7400000000000000000000000000600082015250565b600061466b601383613b07565b915061467682614635565b602082019050919050565b6000602082019050818103600083015261469a8161465e565b9050919050565b7f504b5a3a20496e76616c6964206d696e74000000000000000000000000000000600082015250565b60006146d7601183613b07565b91506146e2826146a1565b602082019050919050565b60006020820190508181036000830152614706816146ca565b9050919050565b7f504b5a3a20496e76616c6964207369676e617475726500000000000000000000600082015250565b6000614743601683613b07565b915061474e8261470d565b602082019050919050565b6000602082019050818103600083015261477281614736565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006147d5602183613b07565b91506147e082614779565b604082019050919050565b60006020820190508181036000830152614804816147c8565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000614867603883613b07565b91506148728261480b565b604082019050919050565b600060208201905081810360008301526148968161485a565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006148f9603183613b07565b91506149048261489d565b604082019050919050565b60006020820190508181036000830152614928816148ec565b9050919050565b600061493a82613a86565b915061494583613a86565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561497e5761497d6144a0565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006149c382613a86565b91506149ce83613a86565b9250826149de576149dd614989565b5b828204905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614a45602f83613b07565b9150614a50826149e9565b604082019050919050565b60006020820190508181036000830152614a7481614a38565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000614b06602983613b07565b9150614b1182614aaa565b604082019050919050565b60006020820190508181036000830152614b3581614af9565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000614b98602a83613b07565b9150614ba382614b3c565b604082019050919050565b60006020820190508181036000830152614bc781614b8b565b9050919050565b7f504b5a3a20416c72656164792061637469766174656400000000000000000000600082015250565b6000614c04601683613b07565b9150614c0f82614bce565b602082019050919050565b60006020820190508181036000830152614c3381614bf7565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614c96602f83613b07565b9150614ca182614c3a565b604082019050919050565b60006020820190508181036000830152614cc581614c89565b9050919050565b600081905092915050565b6000614ce282613afc565b614cec8185614ccc565b9350614cfc818560208601613b18565b80840191505092915050565b6000614d148285614cd7565b9150614d208284614cd7565b91508190509392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614d62602083613b07565b9150614d6d82614d2c565b602082019050919050565b60006020820190508181036000830152614d9181614d55565b9050919050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614dce601783614ccc565b9150614dd982614d98565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614e1a601183614ccc565b9150614e2582614de4565b601182019050919050565b6000614e3b82614dc1565b9150614e478285614cd7565b9150614e5282614e0d565b9150614e5e8284614cd7565b91508190509392505050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614ec6602a83613b07565b9150614ed182614e6a565b604082019050919050565b60006020820190508181036000830152614ef581614eb9565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000614f32601983613b07565b9150614f3d82614efc565b602082019050919050565b60006020820190508181036000830152614f6181614f25565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614f9e602083613b07565b9150614fa982614f68565b602082019050919050565b60006020820190508181036000830152614fcd81614f91565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b600061500a601c83613b07565b915061501582614fd4565b602082019050919050565b6000602082019050818103600083015261503981614ffd565b9050919050565b600061504b82613a86565b915061505683613a86565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561508b5761508a6144a0565b5b828201905092915050565b60008160601b9050919050565b60006150ae82615096565b9050919050565b60006150c0826150a3565b9050919050565b6150d86150d3826139c4565b6150b5565b82525050565b6000819050919050565b6150f96150f482613a86565b6150de565b82525050565b600061510b82856150c7565b60148201915061511b82846150e8565b6020820191508190509392505050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000615161601d83613b07565b915061516c8261512b565b602082019050919050565b6000602082019050818103600083015261519081615154565b9050919050565b600081905092915050565b50565b60006151b2600083615197565b91506151bd826151a2565b600082019050919050565b60006151d3826151a5565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000615239603a83613b07565b9150615244826151dd565b604082019050919050565b600060208201905081810360008301526152688161522c565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006152cb602c83613b07565b91506152d68261526f565b604082019050919050565b600060208201905081810360008301526152fa816152be565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061535d602583613b07565b915061536882615301565b604082019050919050565b6000602082019050818103600083015261538c81615350565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006153ef602483613b07565b91506153fa82615393565b604082019050919050565b6000602082019050818103600083015261541e816153e2565b9050919050565b600061543082613a86565b915061543b83613a86565b92508282101561544e5761544d6144a0565b5b828203905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061548f601983613b07565b915061549a82615459565b602082019050919050565b600060208201905081810360008301526154be81615482565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615521603283613b07565b915061552c826154c5565b604082019050919050565b6000602082019050818103600083015261555081615514565b9050919050565b600061556282613a86565b915061556d83613a86565b92508261557d5761557c614989565b5b828206905092915050565b600061559382613a86565b915060008214156155a7576155a66144a0565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006155e8602083613b07565b91506155f3826155b2565b602082019050919050565b60006020820190508181036000830152615617816155db565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000615654601c83614ccc565b915061565f8261561e565b601c82019050919050565b6000819050919050565b61568561568082613db2565b61566a565b82525050565b600061569682615647565b91506156a28284615674565b60208201915081905092915050565b600081519050919050565b600082825260208201905092915050565b60006156d8826156b1565b6156e281856156bc565b93506156f2818560208601613b18565b6156fb81613b4b565b840191505092915050565b600060808201905061571b6000830187613be4565b6157286020830186613be4565b6157356040830185613e15565b818103606083015261574781846156cd565b905095945050505050565b60008151905061576181613915565b92915050565b60006020828403121561577d5761577c6138df565b5b600061578b84828501615752565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006157f9601883613b07565b9150615804826157c3565b602082019050919050565b60006020820190508181036000830152615828816157ec565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615865601f83613b07565b91506158708261582f565b602082019050919050565b6000602082019050818103600083015261589481615858565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006158f7602283613b07565b91506159028261589b565b604082019050919050565b60006020820190508181036000830152615926816158ea565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615989602283613b07565b91506159948261592d565b604082019050919050565b600060208201905081810360008301526159b88161597c565b9050919050565b60006080820190506159d46000830187613e92565b6159e160208301866140f2565b6159ee6040830185613e92565b6159fb6060830184613e92565b9594505050505056fea26469706673582212203ecb27b98ab9433440da2266dbb57a49df475499e10deac5b1a9c6197d4496f464736f6c634300080c0033

Deployed Bytecode

0x6080604052600436106102675760003560e01c80636c20f00e11610144578063bd02a235116100b6578063d939c9601161007a578063d939c96014610949578063e0df5b6f14610974578063e985e9c51461099d578063e9be0f3f146109da578063f2fde38b14610a05578063fe042d4914610a2e57610267565b8063bd02a23514610866578063bf5c1c211461088f578063bfb62028146108ba578063c87b56dd146108e3578063d547741f1461092057610267565b806395d89b411161010857806395d89b41146107685780639f181b5e14610793578063a217fddf146107be578063a22cb465146107e9578063afa40bbd14610812578063b88d4fde1461083d57610267565b80636c20f00e1461066f57806370a082311461069a5780637aa2cc1b146106d75780638da5cb5b1461070057806391d148541461072b57610267565b80632a55205a116101dd57806342842e0e116101a157806342842e0e1461056e578063428f010a14610597578063438091ed146105c2578063459ba3ae146105de5780635437988d146106095780636352211e1461063257610267565b80632a55205a146104765780632f2ff15d146104b45780633154b9c2146104dd578063331052181461050857806336568abe1461054557610267565b806308dc9f421161022f57806308dc9f4214610363578063095ea7b31461037f5780630abea268146103a857806318160ddd146103e557806323b872dd14610410578063248a9ca31461043957610267565b806301ffc9a71461026c57806304634d8d146102a9578063050225ea146102d257806306fdde03146102fb578063081812fc14610326575b600080fd5b34801561027857600080fd5b50610293600480360381019061028e9190613941565b610a57565b6040516102a09190613989565b60405180910390f35b3480156102b557600080fd5b506102d060048036038101906102cb9190613a46565b610a69565b005b3480156102de57600080fd5b506102f960048036038101906102f49190613abc565b610a8b565b005b34801561030757600080fd5b50610310610be1565b60405161031d9190613b95565b60405180910390f35b34801561033257600080fd5b5061034d60048036038101906103489190613bb7565b610c73565b60405161035a9190613bf3565b60405180910390f35b61037d60048036038101906103789190613d43565b610cf8565b005b34801561038b57600080fd5b506103a660048036038101906103a19190613abc565b610e0e565b005b3480156103b457600080fd5b506103cf60048036038101906103ca9190613de8565b610f26565b6040516103dc9190613989565b60405180910390f35b3480156103f157600080fd5b506103fa610f46565b6040516104079190613e24565b60405180910390f35b34801561041c57600080fd5b5061043760048036038101906104329190613e3f565b610f50565b005b34801561044557600080fd5b50610460600480360381019061045b9190613de8565b610fb0565b60405161046d9190613ea1565b60405180910390f35b34801561048257600080fd5b5061049d60048036038101906104989190613ebc565b610fcf565b6040516104ab929190613efc565b60405180910390f35b3480156104c057600080fd5b506104db60048036038101906104d69190613f25565b6111ba565b005b3480156104e957600080fd5b506104f26111e3565b6040516104ff9190613ea1565b60405180910390f35b34801561051457600080fd5b5061052f600480360381019061052a9190613f65565b6111ed565b60405161053c9190613989565b60405180910390f35b34801561055157600080fd5b5061056c60048036038101906105679190613f25565b611243565b005b34801561057a57600080fd5b5061059560048036038101906105909190613e3f565b6112c6565b005b3480156105a357600080fd5b506105ac6112e6565b6040516105b99190613e24565b60405180910390f35b6105dc60048036038101906105d7919061405a565b6112ee565b005b3480156105ea57600080fd5b506105f361144f565b6040516106009190613e24565b60405180910390f35b34801561061557600080fd5b50610630600480360381019061062b9190613f65565b611469565b005b34801561063e57600080fd5b5061065960048036038101906106549190613bb7565b6114d8565b6040516106669190613bf3565b60405180910390f35b34801561067b57600080fd5b5061068461158a565b6040516106919190614101565b60405180910390f35b3480156106a657600080fd5b506106c160048036038101906106bc9190613f65565b61158f565b6040516106ce9190613e24565b60405180910390f35b3480156106e357600080fd5b506106fe60048036038101906106f99190614148565b611647565b005b34801561070c57600080fd5b50610715611715565b6040516107229190613bf3565b60405180910390f35b34801561073757600080fd5b50610752600480360381019061074d9190613f25565b61173f565b60405161075f9190613989565b60405180910390f35b34801561077457600080fd5b5061077d6117a9565b60405161078a9190613b95565b60405180910390f35b34801561079f57600080fd5b506107a861183b565b6040516107b59190613e24565b60405180910390f35b3480156107ca57600080fd5b506107d3611845565b6040516107e09190613ea1565b60405180910390f35b3480156107f557600080fd5b50610810600480360381019061080b91906141db565b61184c565b005b34801561081e57600080fd5b50610827611862565b6040516108349190613e24565b60405180910390f35b34801561084957600080fd5b50610864600480360381019061085f919061421b565b61186e565b005b34801561087257600080fd5b5061088d60048036038101906108889190613f65565b6118d0565b005b34801561089b57600080fd5b506108a461193f565b6040516108b19190613e24565b60405180910390f35b3480156108c657600080fd5b506108e160048036038101906108dc9190613f65565b611947565b005b3480156108ef57600080fd5b5061090a60048036038101906109059190613bb7565b61199f565b6040516109179190613b95565b60405180910390f35b34801561092c57600080fd5b5061094760048036038101906109429190613f25565b611a46565b005b34801561095557600080fd5b5061095e611a6f565b60405161096b9190613bf3565b60405180910390f35b34801561098057600080fd5b5061099b6004803603810190610996919061433f565b611a99565b005b3480156109a957600080fd5b506109c460048036038101906109bf9190614388565b611ac7565b6040516109d19190613989565b60405180910390f35b3480156109e657600080fd5b506109ef611b5b565b6040516109fc9190613e24565b60405180910390f35b348015610a1157600080fd5b50610a2c6004803603810190610a279190613f65565b611b75565b005b348015610a3a57600080fd5b50610a556004803603810190610a509190613de8565b611c2e565b005b6000610a6282611c4c565b9050919050565b610a7d6000801b610a78611c5e565b611c66565b610a878282611d03565b5050565b610a9f6000801b610a9a611c5e565b611c66565b600f60019054906101000a900460ff1660ff16600f60009054906101000a900460ff1660ff1610610b05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610afc90614414565b60405180910390fd5b600e54811115610b4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4190614480565b60405180910390fd5b600f600081819054906101000a900460ff1680929190610b69906144cf565b91906101000a81548160ff021916908360ff16021790555050600d6000815480929190610b95906144f9565b9190505550610ba48282611e99565b7f2118eda2a5fcc2e5f909a608477a856272adadcb48e1373747c51d2d3f6fc2ef8282604051610bd5929190613efc565b60405180910390a15050565b606060038054610bf090614571565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1c90614571565b8015610c695780601f10610c3e57610100808354040283529160200191610c69565b820191906000526020600020905b815481529060010190602001808311610c4c57829003601f168201915b5050505050905090565b6000610c7e82612073565b610cbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb490614615565b60405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b3467011c37937e0800001115610d43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3a90614681565b60405180910390fd5b610d4b6120df565b610d8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d81906146ed565b60405180910390fd5b610d9482826121f7565b610dd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dca90614759565b60405180910390fd5b610dff600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1634612302565b610e0933846123f6565b505050565b6000610e19826114d8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e81906147eb565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ea9611c5e565b73ffffffffffffffffffffffffffffffffffffffff161480610ed85750610ed781610ed2611c5e565b611ac7565b5b610f17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0e9061487d565b60405180910390fd5b610f218383612461565b505050565b60116020528060005260406000206000915054906101000a900460ff1681565b6000600e54905090565b610f61610f5b611c5e565b8261251a565b610fa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f979061490f565b60405180910390fd5b610fab8383836125f8565b505050565b6000806000838152602001908152602001600020600101549050919050565b6000806000600260008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614156111655760016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b600061116f61285f565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff168661119b919061492f565b6111a591906149b8565b90508160000151819350935050509250929050565b6111c382610fb0565b6111d4816111cf611c5e565b611c66565b6111de8383612869565b505050565b6000600b54905090565b6000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b61124b611c5e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112af90614a5b565b60405180910390fd5b6112c28282612949565b5050565b6112e18383836040518060200160405280600081525061186e565b505050565b63626a033081565b600083519050348167011c37937e080000611309919061492f565b111561134a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134190614681565b60405180910390fd5b6113526120df565b611391576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611388906146ed565b60405180910390fd5b61139b83836121f7565b6113da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d190614759565b60405180910390fd5b611406600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1634612302565b60005b81811015611448576114353386838151811061142857611427614a7b565b5b60200260200101516123f6565b8080611440906144f9565b915050611409565b5050505050565b6000600f60019054906101000a900460ff1660ff16905090565b61147d6000801b611478611c5e565b611c66565b6001601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000806005600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611581576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157890614b1c565b60405180910390fd5b80915050919050565b600281565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611600576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f790614bae565b60405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61165b6000801b611656611c5e565b611c66565b6000600e54146116a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169790614c1a565b60405180910390fd5b83600e8190555082600f60016101000a81548160ff021916908360ff16021790555081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061170f816102ee611d03565b50505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600480546117b890614571565b80601f01602080910402602001604051908101604052809291908181526020018280546117e490614571565b80156118315780601f1061180657610100808354040283529160200191611831565b820191906000526020600020905b81548152906001019060200180831161181457829003601f168201915b5050505050905090565b6000600d54905090565b6000801b81565b61185e611857611c5e565b8383612a2a565b5050565b67011c37937e08000081565b61187f611879611c5e565b8361251a565b6118be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b59061490f565b60405180910390fd5b6118ca84848484612b97565b50505050565b6118e46000801b6118df611c5e565b611c66565b6000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b636267603081565b61195b6000801b611956611c5e565b611c66565b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606119aa82612073565b6119e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e090614cac565b60405180910390fd5b60006119f3612bf3565b90506000815111611a135760405180602001604052806000815250611a3e565b80611a1d84612c85565b604051602001611a2e929190614d08565b6040516020818303038152906040525b915050919050565b611a4f82610fb0565b611a6081611a5b611c5e565b611c66565b611a6a8383612949565b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611aad6000801b611aa8611c5e565b611c66565b80600c9080519060200190611ac3929190613832565b5050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000600f60009054906101000a900460ff1660ff16905090565b3373ffffffffffffffffffffffffffffffffffffffff16611b94611715565b73ffffffffffffffffffffffffffffffffffffffff1614611bea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be190614d78565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611c426000801b611c3d611c5e565b611c66565b80600b8190555050565b6000611c5782612de6565b9050919050565b600033905090565b611c70828261173f565b611cff57611c958173ffffffffffffffffffffffffffffffffffffffff166014612ec8565b611ca38360001c6020612ec8565b604051602001611cb4929190614e30565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf69190613b95565b60405180910390fd5b5050565b611d0b61285f565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611d69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6090614edc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611dd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dd090614f48565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600160008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0090614fb4565b60405180910390fd5b611f1281612073565b15611f52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4990615020565b60405180910390fd5b611f5e60008383613104565b6001600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fae9190615040565b92505081905550816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461206f60008383613109565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff166005600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60004263626a0330116120f557600190506121f4565b426362676030116121ef576012600061210c611c5e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff16600260ff161161216a57600090506121f4565b60126000612176611c5e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081819054906101000a900460ff16809291906121cd906144cf565b91906101000a81548160ff021916908360ff16021790555050600190506121f4565b600090505b90565b600080338460405160200161220d9291906150ff565b6040516020818303038152906040528051906020012090506011600082815260200190815260200160002060009054906101000a900460ff16156122555760009150506122fc565b60106000612274856122668561310e565b61313e90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166122ca5760009150506122fc565b60016011600083815260200190815260200160002060006101000a81548160ff02191690831515021790555060019150505b92915050565b80471015612345576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233c90615177565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161236b906151c8565b60006040518083038185875af1925050503d80600081146123a8576040519150601f19603f3d011682016040523d82523d6000602084013e6123ad565b606091505b50509050806123f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e89061524f565b60405180910390fd5b505050565b600e5481111561243b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243290614480565b60405180910390fd5b600d600081548092919061244e906144f9565b919050555061245d8282611e99565b5050565b816007600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166124d4836114d8565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061252582612073565b612564576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255b906152e1565b60405180910390fd5b600061256f836114d8565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806125de57508373ffffffffffffffffffffffffffffffffffffffff166125c684610c73565b73ffffffffffffffffffffffffffffffffffffffff16145b806125ef57506125ee8185611ac7565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612618826114d8565b73ffffffffffffffffffffffffffffffffffffffff161461266e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266590615373565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156126de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d590615405565b60405180910390fd5b6126e9838383613104565b6126f4600082612461565b6001600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127449190615425565b925050819055506001600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461279b9190615040565b92505081905550816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461285a838383613109565b505050565b6000612710905090565b612873828261173f565b61294557600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506128ea611c5e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b612953828261173f565b15612a2657600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506129cb611c5e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612a99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a90906154a5565b60405180910390fd5b80600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612b8a9190613989565b60405180910390a3505050565b612ba28484846125f8565b612bae84848484613165565b612bed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be490615537565b60405180910390fd5b50505050565b6060600c8054612c0290614571565b80601f0160208091040260200160405190810160405280929190818152602001828054612c2e90614571565b8015612c7b5780601f10612c5057610100808354040283529160200191612c7b565b820191906000526020600020905b815481529060010190602001808311612c5e57829003601f168201915b5050505050905090565b60606000821415612ccd576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612de1565b600082905060005b60008214612cff578080612ce8906144f9565b915050600a82612cf891906149b8565b9150612cd5565b60008167ffffffffffffffff811115612d1b57612d1a613c18565b5b6040519080825280601f01601f191660200182016040528015612d4d5781602001600182028036833780820191505090505b5090505b60008514612dda57600182612d669190615425565b9150600a85612d759190615557565b6030612d819190615040565b60f81b818381518110612d9757612d96614a7b565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612dd391906149b8565b9450612d51565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612eb157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612ec15750612ec0826132ed565b5b9050919050565b606060006002836002612edb919061492f565b612ee59190615040565b67ffffffffffffffff811115612efe57612efd613c18565b5b6040519080825280601f01601f191660200182016040528015612f305781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612f6857612f67614a7b565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612fcc57612fcb614a7b565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261300c919061492f565b6130169190615040565b90505b60018111156130b6577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061305857613057614a7b565b5b1a60f81b82828151811061306f5761306e614a7b565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806130af90615588565b9050613019565b50600084146130fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130f1906155fe565b60405180910390fd5b8091505092915050565b505050565b505050565b600081604051602001613121919061568b565b604051602081830303815290604052805190602001209050919050565b600080600061314d8585613367565b9150915061315a816133ea565b819250505092915050565b60006131868473ffffffffffffffffffffffffffffffffffffffff166135bf565b156132e0578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026131af611c5e565b8786866040518563ffffffff1660e01b81526004016131d19493929190615706565b6020604051808303816000875af192505050801561320d57506040513d601f19601f8201168201806040525081019061320a9190615767565b60015b613290573d806000811461323d576040519150601f19603f3d011682016040523d82523d6000602084013e613242565b606091505b50600081511415613288576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161327f90615537565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506132e5565b600190505b949350505050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480613360575061335f826135e2565b5b9050919050565b6000806041835114156133a95760008060006020860151925060408601519150606086015160001a905061339d8782858561365c565b945094505050506133e3565b6040835114156133da5760008060208501519150604085015190506133cf868383613769565b9350935050506133e3565b60006002915091505b9250929050565b600060048111156133fe576133fd615794565b5b81600481111561341157613410615794565b5b141561341c576135bc565b600160048111156134305761342f615794565b5b81600481111561344357613442615794565b5b1415613484576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161347b9061580f565b60405180910390fd5b6002600481111561349857613497615794565b5b8160048111156134ab576134aa615794565b5b14156134ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134e39061587b565b60405180910390fd5b60036004811115613500576134ff615794565b5b81600481111561351357613512615794565b5b1415613554576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161354b9061590d565b60405180910390fd5b60048081111561356757613566615794565b5b81600481111561357a57613579615794565b5b14156135bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135b29061599f565b60405180910390fd5b5b50565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806136555750613654826137c8565b5b9050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613697576000600391509150613760565b601b8560ff16141580156136af5750601c8560ff1614155b156136c1576000600491509150613760565b6000600187878787604051600081526020016040526040516136e694939291906159bf565b6020604051602081039080840390855afa158015613708573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561375757600060019250925050613760565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c6137ac9190615040565b90506137ba8782888561365c565b935093505050935093915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b82805461383e90614571565b90600052602060002090601f01602090048101928261386057600085556138a7565b82601f1061387957805160ff19168380011785556138a7565b828001600101855582156138a7579182015b828111156138a657825182559160200191906001019061388b565b5b5090506138b491906138b8565b5090565b5b808211156138d15760008160009055506001016138b9565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61391e816138e9565b811461392957600080fd5b50565b60008135905061393b81613915565b92915050565b600060208284031215613957576139566138df565b5b60006139658482850161392c565b91505092915050565b60008115159050919050565b6139838161396e565b82525050565b600060208201905061399e600083018461397a565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006139cf826139a4565b9050919050565b6139df816139c4565b81146139ea57600080fd5b50565b6000813590506139fc816139d6565b92915050565b60006bffffffffffffffffffffffff82169050919050565b613a2381613a02565b8114613a2e57600080fd5b50565b600081359050613a4081613a1a565b92915050565b60008060408385031215613a5d57613a5c6138df565b5b6000613a6b858286016139ed565b9250506020613a7c85828601613a31565b9150509250929050565b6000819050919050565b613a9981613a86565b8114613aa457600080fd5b50565b600081359050613ab681613a90565b92915050565b60008060408385031215613ad357613ad26138df565b5b6000613ae1858286016139ed565b9250506020613af285828601613aa7565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613b36578082015181840152602081019050613b1b565b83811115613b45576000848401525b50505050565b6000601f19601f8301169050919050565b6000613b6782613afc565b613b718185613b07565b9350613b81818560208601613b18565b613b8a81613b4b565b840191505092915050565b60006020820190508181036000830152613baf8184613b5c565b905092915050565b600060208284031215613bcd57613bcc6138df565b5b6000613bdb84828501613aa7565b91505092915050565b613bed816139c4565b82525050565b6000602082019050613c086000830184613be4565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613c5082613b4b565b810181811067ffffffffffffffff82111715613c6f57613c6e613c18565b5b80604052505050565b6000613c826138d5565b9050613c8e8282613c47565b919050565b600067ffffffffffffffff821115613cae57613cad613c18565b5b613cb782613b4b565b9050602081019050919050565b82818337600083830152505050565b6000613ce6613ce184613c93565b613c78565b905082815260208101848484011115613d0257613d01613c13565b5b613d0d848285613cc4565b509392505050565b600082601f830112613d2a57613d29613c0e565b5b8135613d3a848260208601613cd3565b91505092915050565b600080600060608486031215613d5c57613d5b6138df565b5b6000613d6a86828701613aa7565b9350506020613d7b86828701613aa7565b925050604084013567ffffffffffffffff811115613d9c57613d9b6138e4565b5b613da886828701613d15565b9150509250925092565b6000819050919050565b613dc581613db2565b8114613dd057600080fd5b50565b600081359050613de281613dbc565b92915050565b600060208284031215613dfe57613dfd6138df565b5b6000613e0c84828501613dd3565b91505092915050565b613e1e81613a86565b82525050565b6000602082019050613e396000830184613e15565b92915050565b600080600060608486031215613e5857613e576138df565b5b6000613e66868287016139ed565b9350506020613e77868287016139ed565b9250506040613e8886828701613aa7565b9150509250925092565b613e9b81613db2565b82525050565b6000602082019050613eb66000830184613e92565b92915050565b60008060408385031215613ed357613ed26138df565b5b6000613ee185828601613aa7565b9250506020613ef285828601613aa7565b9150509250929050565b6000604082019050613f116000830185613be4565b613f1e6020830184613e15565b9392505050565b60008060408385031215613f3c57613f3b6138df565b5b6000613f4a85828601613dd3565b9250506020613f5b858286016139ed565b9150509250929050565b600060208284031215613f7b57613f7a6138df565b5b6000613f89848285016139ed565b91505092915050565b600067ffffffffffffffff821115613fad57613fac613c18565b5b602082029050602081019050919050565b600080fd5b6000613fd6613fd184613f92565b613c78565b90508083825260208201905060208402830185811115613ff957613ff8613fbe565b5b835b81811015614022578061400e8882613aa7565b845260208401935050602081019050613ffb565b5050509392505050565b600082601f83011261404157614040613c0e565b5b8135614051848260208601613fc3565b91505092915050565b600080600060608486031215614073576140726138df565b5b600084013567ffffffffffffffff811115614091576140906138e4565b5b61409d8682870161402c565b93505060206140ae86828701613aa7565b925050604084013567ffffffffffffffff8111156140cf576140ce6138e4565b5b6140db86828701613d15565b9150509250925092565b600060ff82169050919050565b6140fb816140e5565b82525050565b600060208201905061411660008301846140f2565b92915050565b614125816140e5565b811461413057600080fd5b50565b6000813590506141428161411c565b92915050565b60008060008060808587031215614162576141616138df565b5b600061417087828801613aa7565b945050602061418187828801614133565b9350506040614192878288016139ed565b92505060606141a3878288016139ed565b91505092959194509250565b6141b88161396e565b81146141c357600080fd5b50565b6000813590506141d5816141af565b92915050565b600080604083850312156141f2576141f16138df565b5b6000614200858286016139ed565b9250506020614211858286016141c6565b9150509250929050565b60008060008060808587031215614235576142346138df565b5b6000614243878288016139ed565b9450506020614254878288016139ed565b935050604061426587828801613aa7565b925050606085013567ffffffffffffffff811115614286576142856138e4565b5b61429287828801613d15565b91505092959194509250565b600067ffffffffffffffff8211156142b9576142b8613c18565b5b6142c282613b4b565b9050602081019050919050565b60006142e26142dd8461429e565b613c78565b9050828152602081018484840111156142fe576142fd613c13565b5b614309848285613cc4565b509392505050565b600082601f83011261432657614325613c0e565b5b81356143368482602086016142cf565b91505092915050565b600060208284031215614355576143546138df565b5b600082013567ffffffffffffffff811115614373576143726138e4565b5b61437f84828501614311565b91505092915050565b6000806040838503121561439f5761439e6138df565b5b60006143ad858286016139ed565b92505060206143be858286016139ed565b9150509250929050565b7f504b5a3a20496e76616c69642067697665617761790000000000000000000000600082015250565b60006143fe601583613b07565b9150614409826143c8565b602082019050919050565b6000602082019050818103600083015261442d816143f1565b9050919050565b7f504b5a3a20496e76616c696420546f6b656e4964000000000000000000000000600082015250565b600061446a601483613b07565b915061447582614434565b602082019050919050565b600060208201905081810360008301526144998161445d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006144da826140e5565b915060ff8214156144ee576144ed6144a0565b5b600182019050919050565b600061450482613a86565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614537576145366144a0565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061458957607f821691505b6020821081141561459d5761459c614542565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006145ff602c83613b07565b915061460a826145a3565b604082019050919050565b6000602082019050818103600083015261462e816145f2565b9050919050565b7f504b5a3a20496e76616c696420616d6f756e7400000000000000000000000000600082015250565b600061466b601383613b07565b915061467682614635565b602082019050919050565b6000602082019050818103600083015261469a8161465e565b9050919050565b7f504b5a3a20496e76616c6964206d696e74000000000000000000000000000000600082015250565b60006146d7601183613b07565b91506146e2826146a1565b602082019050919050565b60006020820190508181036000830152614706816146ca565b9050919050565b7f504b5a3a20496e76616c6964207369676e617475726500000000000000000000600082015250565b6000614743601683613b07565b915061474e8261470d565b602082019050919050565b6000602082019050818103600083015261477281614736565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006147d5602183613b07565b91506147e082614779565b604082019050919050565b60006020820190508181036000830152614804816147c8565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000614867603883613b07565b91506148728261480b565b604082019050919050565b600060208201905081810360008301526148968161485a565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006148f9603183613b07565b91506149048261489d565b604082019050919050565b60006020820190508181036000830152614928816148ec565b9050919050565b600061493a82613a86565b915061494583613a86565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561497e5761497d6144a0565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006149c382613a86565b91506149ce83613a86565b9250826149de576149dd614989565b5b828204905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614a45602f83613b07565b9150614a50826149e9565b604082019050919050565b60006020820190508181036000830152614a7481614a38565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000614b06602983613b07565b9150614b1182614aaa565b604082019050919050565b60006020820190508181036000830152614b3581614af9565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000614b98602a83613b07565b9150614ba382614b3c565b604082019050919050565b60006020820190508181036000830152614bc781614b8b565b9050919050565b7f504b5a3a20416c72656164792061637469766174656400000000000000000000600082015250565b6000614c04601683613b07565b9150614c0f82614bce565b602082019050919050565b60006020820190508181036000830152614c3381614bf7565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614c96602f83613b07565b9150614ca182614c3a565b604082019050919050565b60006020820190508181036000830152614cc581614c89565b9050919050565b600081905092915050565b6000614ce282613afc565b614cec8185614ccc565b9350614cfc818560208601613b18565b80840191505092915050565b6000614d148285614cd7565b9150614d208284614cd7565b91508190509392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614d62602083613b07565b9150614d6d82614d2c565b602082019050919050565b60006020820190508181036000830152614d9181614d55565b9050919050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614dce601783614ccc565b9150614dd982614d98565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614e1a601183614ccc565b9150614e2582614de4565b601182019050919050565b6000614e3b82614dc1565b9150614e478285614cd7565b9150614e5282614e0d565b9150614e5e8284614cd7565b91508190509392505050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614ec6602a83613b07565b9150614ed182614e6a565b604082019050919050565b60006020820190508181036000830152614ef581614eb9565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000614f32601983613b07565b9150614f3d82614efc565b602082019050919050565b60006020820190508181036000830152614f6181614f25565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614f9e602083613b07565b9150614fa982614f68565b602082019050919050565b60006020820190508181036000830152614fcd81614f91565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b600061500a601c83613b07565b915061501582614fd4565b602082019050919050565b6000602082019050818103600083015261503981614ffd565b9050919050565b600061504b82613a86565b915061505683613a86565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561508b5761508a6144a0565b5b828201905092915050565b60008160601b9050919050565b60006150ae82615096565b9050919050565b60006150c0826150a3565b9050919050565b6150d86150d3826139c4565b6150b5565b82525050565b6000819050919050565b6150f96150f482613a86565b6150de565b82525050565b600061510b82856150c7565b60148201915061511b82846150e8565b6020820191508190509392505050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000615161601d83613b07565b915061516c8261512b565b602082019050919050565b6000602082019050818103600083015261519081615154565b9050919050565b600081905092915050565b50565b60006151b2600083615197565b91506151bd826151a2565b600082019050919050565b60006151d3826151a5565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000615239603a83613b07565b9150615244826151dd565b604082019050919050565b600060208201905081810360008301526152688161522c565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006152cb602c83613b07565b91506152d68261526f565b604082019050919050565b600060208201905081810360008301526152fa816152be565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061535d602583613b07565b915061536882615301565b604082019050919050565b6000602082019050818103600083015261538c81615350565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006153ef602483613b07565b91506153fa82615393565b604082019050919050565b6000602082019050818103600083015261541e816153e2565b9050919050565b600061543082613a86565b915061543b83613a86565b92508282101561544e5761544d6144a0565b5b828203905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061548f601983613b07565b915061549a82615459565b602082019050919050565b600060208201905081810360008301526154be81615482565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615521603283613b07565b915061552c826154c5565b604082019050919050565b6000602082019050818103600083015261555081615514565b9050919050565b600061556282613a86565b915061556d83613a86565b92508261557d5761557c614989565b5b828206905092915050565b600061559382613a86565b915060008214156155a7576155a66144a0565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006155e8602083613b07565b91506155f3826155b2565b602082019050919050565b60006020820190508181036000830152615617816155db565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000615654601c83614ccc565b915061565f8261561e565b601c82019050919050565b6000819050919050565b61568561568082613db2565b61566a565b82525050565b600061569682615647565b91506156a28284615674565b60208201915081905092915050565b600081519050919050565b600082825260208201905092915050565b60006156d8826156b1565b6156e281856156bc565b93506156f2818560208601613b18565b6156fb81613b4b565b840191505092915050565b600060808201905061571b6000830187613be4565b6157286020830186613be4565b6157356040830185613e15565b818103606083015261574781846156cd565b905095945050505050565b60008151905061576181613915565b92915050565b60006020828403121561577d5761577c6138df565b5b600061578b84828501615752565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006157f9601883613b07565b9150615804826157c3565b602082019050919050565b60006020820190508181036000830152615828816157ec565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615865601f83613b07565b91506158708261582f565b602082019050919050565b6000602082019050818103600083015261589481615858565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006158f7602283613b07565b91506159028261589b565b604082019050919050565b60006020820190508181036000830152615926816158ea565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615989602283613b07565b91506159948261592d565b604082019050919050565b600060208201905081810360008301526159b88161597c565b9050919050565b60006080820190506159d46000830187613e92565b6159e160208301866140f2565b6159ee6040830185613e92565b6159fb6060830184613e92565b9594505050505056fea26469706673582212203ecb27b98ab9433440da2266dbb57a49df475499e10deac5b1a9c6197d4496f464736f6c634300080c0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ 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.