ETH Price: $3,476.55 (+3.91%)

Contract

0x92B1CfED0375a8bce52FbE938A4E4C8e83979981
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...190908502024-01-26 12:43:11306 days ago1706272991IN
0x92B1CfED...e83979981
0 ETH0.0006720927.07016978
Set Approval For...165044832023-01-28 9:40:59669 days ago1674898859IN
0x92B1CfED...e83979981
0 ETH0.0003801815.31273874
Set Approval For...151884122022-07-21 21:33:12859 days ago1658439192IN
0x92B1CfED...e83979981
0 ETH0.0006212325.02172955
Set Approval For...143239182022-03-05 1:14:58998 days ago1646442898IN
0x92B1CfED...e83979981
0 ETH0.003140267.18459227
Set Approval For...142398222022-02-20 0:54:501011 days ago1645318490IN
0x92B1CfED...e83979981
0 ETH0.0026125105.2243204
Set Approval For...142397882022-02-20 0:47:411011 days ago1645318061IN
0x92B1CfED...e83979981
0 ETH0.00310506125.06286562
Set Approval For...142397602022-02-20 0:40:171011 days ago1645317617IN
0x92B1CfED...e83979981
0 ETH0.0021206585.4139911
Set Approval For...142397332022-02-20 0:35:141011 days ago1645317314IN
0x92B1CfED...e83979981
0 ETH0.0018931576.25062597
Set Approval For...142219752022-02-17 6:16:221014 days ago1645078582IN
0x92B1CfED...e83979981
0 ETH0.0018008167.09453844
Set Approval For...142219722022-02-17 6:15:441014 days ago1645078544IN
0x92B1CfED...e83979981
0 ETH0.0035707676.39639638
Safe Transfer Fr...142219132022-02-17 6:00:361014 days ago1645077636IN
0x92B1CfED...e83979981
0 ETH0.0078458665.83701527
Set Approval For...142098262022-02-15 9:12:141016 days ago1644916334IN
0x92B1CfED...e83979981
0 ETH0.0026061855.75924136
Safe Transfer Fr...142097742022-02-15 8:57:521016 days ago1644915472IN
0x92B1CfED...e83979981
0 ETH0.0053632345
Safe Transfer Fr...142097612022-02-15 8:55:361016 days ago1644915336IN
0x92B1CfED...e83979981
0 ETH0.0055881646.88726502
Set Approval For...141691192022-02-09 2:20:301022 days ago1644373230IN
0x92B1CfED...e83979981
0 ETH0.0040017285.61681355
Safe Transfer Fr...141677672022-02-08 21:16:041022 days ago1644354964IN
0x92B1CfED...e83979981
0 ETH0.01311013110
Safe Transfer Fr...141677522022-02-08 21:13:171022 days ago1644354797IN
0x92B1CfED...e83979981
0 ETH0.01430196120
Set Approval For...141676592022-02-08 20:52:401022 days ago1644353560IN
0x92B1CfED...e83979981
0 ETH0.0032071768.61736007
Safe Transfer Fr...141675552022-02-08 20:28:551022 days ago1644352135IN
0x92B1CfED...e83979981
0 ETH0.0078218757.39439187
Safe Transfer Fr...141637212022-02-08 6:03:561023 days ago1644300236IN
0x92B1CfED...e83979981
0 ETH0.0060817663.64670944
Set Approval For...141625542022-02-08 1:40:021023 days ago1644284402IN
0x92B1CfED...e83979981
0 ETH0.0041131288
Safe Transfer Fr...141616002022-02-07 22:12:081023 days ago1644271928IN
0x92B1CfED...e83979981
0 ETH0.01135321118.80219437
Safe Transfer Fr...141518762022-02-06 10:10:171025 days ago1644142217IN
0x92B1CfED...e83979981
0 ETH0.005462250
Safe Transfer Fr...141512022022-02-06 7:43:561025 days ago1644133436IN
0x92B1CfED...e83979981
0 ETH0.0052735355.18329558
Safe Transfer Fr...141511872022-02-06 7:41:111025 days ago1644133271IN
0x92B1CfED...e83979981
0 ETH0.0057046159.69421172
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Hero

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 24 : Hero.sol
// SPDX-License-Identifier: MIT

/// @title RaidParty Hero ERC721 Contract

/**
 *   ___      _    _ ___          _
 *  | _ \__ _(_)__| | _ \__ _ _ _| |_ _  _
 *  |   / _` | / _` |  _/ _` | '_|  _| || |
 *  |_|_\__,_|_\__,_|_| \__,_|_|  \__|\_, |
 *                                    |__/
 */

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "../interfaces/IHero.sol";
import "../interfaces/IHeroURIHandler.sol";
import "../interfaces/ISeeder.sol";
import "../randomness/Seedable.sol";
import "../utils/ERC721Enumerable.sol";
import "../utils/ERC721.sol";

contract Hero is
    IHero,
    Seedable,
    ERC721,
    ERC721Enumerable,
    AccessControlEnumerable
{
    // Contract state and constants
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    uint256 private _tokenIdCounter = 1;
    uint256 private _burnCounter;

    IHeroURIHandler private _handler;

    constructor(address admin) ERC721("Hero", "HERO") {
        _setupRole(DEFAULT_ADMIN_ROLE, admin);
        _setupRole(MINTER_ROLE, admin);
    }

    /** PUBLIC */

    function mint(address to, uint256 count) external onlyRole(MINTER_ROLE) {
        unchecked {
            uint256 tokenIdCounter = _tokenIdCounter;
            _tokenIdCounter += count;
            ISeeder seeder = ISeeder(_handler.getSeeder());
            for (uint256 i = 0; i < count; i++) {
                seeder.requestSeed(tokenIdCounter + i);
                _mint(to, tokenIdCounter + i);
            }
        }
    }

    function mintBatch(address[] calldata to, uint256[] calldata counts)
        external
        onlyRole(MINTER_ROLE)
    {
        unchecked {
            require(
                to.length == counts.length,
                "Hero::mintBatch: Parameter length mismatch"
            );
            uint256 tokenIdCounter;
            ISeeder seeder = ISeeder(_handler.getSeeder());

            for (uint256 i = 0; i < to.length; i++) {
                tokenIdCounter = _tokenIdCounter;
                _tokenIdCounter += counts[i];
                for (uint256 j = 0; j < counts[i]; j++) {
                    seeder.requestSeed(tokenIdCounter + j);
                    _mint(to[i], tokenIdCounter + j);
                }
            }
        }
    }

    function setHandler(IHeroURIHandler handler)
        external
        override
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        _handler = handler;
        emit HandlerUpdated(msg.sender, address(handler));
    }

    function getHandler() external view override returns (address) {
        return address(_handler);
    }

    function getSeeder() external view override returns (address) {
        return _handler.getSeeder();
    }

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

    function burn(uint256 tokenId) public override {
        unchecked {
            _burnCounter += 1;
            require(
                _isApprovedOrOwner(_msgSender(), tokenId),
                "ERC721Burnable: caller is not owner nor approved"
            );
            _burn(tokenId);
        }
    }

    function burnBatch(uint256[] calldata tokenIds) external {
        unchecked {
            _burnCounter += tokenIds.length;
            for (uint256 i = 0; i < tokenIds.length; i++) {
                require(
                    _isApprovedOrOwner(_msgSender(), tokenIds[i]),
                    "Hero::burnBatch: caller is not owner nor approved"
                );
                _burn(tokenIds[i]);
            }
        }
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        unchecked {
            return _tokenIdCounter - _burnCounter - 1;
        }
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index)
        public
        view
        override
        returns (uint256)
    {
        unchecked {
            require(
                index < totalSupply(),
                "Hero::tokenByIndex: global index out of bounds"
            );
            uint256 indexCounter = 0;
            uint256 tokenId;

            for (uint256 i = 1; i < _tokenIdCounter; i++) {
                if (_exists(i)) {
                    if (indexCounter == index) {
                        return tokenId;
                    }
                    indexCounter += 1;
                }
            }

            revert("Hero::tokenByIndex: unable to get token by index");
        }
    }

    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        override
        returns (uint256)
    {
        unchecked {
            require(
                index < balanceOf(owner),
                "Hero::tokenOfOwnerByIndex: owner index out of bounds"
            );
            address comparedOwner;
            uint256 iterations;

            for (uint256 i = 1; i < _tokenIdCounter; i++) {
                comparedOwner = _getOwner(i);
                if (comparedOwner == owner) {
                    if (iterations == index) {
                        return i;
                    }
                    iterations++;
                }
            }

            revert(
                "Hero::tokenOfOwnerByIndex: unable to get token of owner by index"
            );
        }
    }

    function tokensOfOwner(address owner)
        public
        view
        returns (uint256[] memory)
    {
        unchecked {
            uint256 balance = balanceOf(owner);
            uint256[] memory tokens = new uint256[](balance);
            uint256 idx;

            for (uint256 i = 1; i < _tokenIdCounter; i++) {
                if (_getOwner(i) == owner) {
                    tokens[idx] = i;
                    idx += 1;

                    if (idx == balance) {
                        return tokens;
                    }
                }
            }

            revert("Hero::tokenOfOwnerByIndex: unable to get tokens of owner");
        }
    }

    /** INTERNAL */

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override(ERC721) {
        super._beforeTokenTransfer(from, to, tokenId);
    }
}

File 2 of 24 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 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 {
        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 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 24 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }
}

File 4 of 24 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 5 of 24 : IAccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/IAccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, 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 7 of 24 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 8 of 24 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 9 of 24 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 10 of 24 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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 11 of 24 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 12 of 24 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 13 of 24 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 14 of 24 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface 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 15 of 24 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 16 of 24 : IEnhanceable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IEnhanceable {
    struct EnhancementRequest {
        uint256 id;
        address requester;
    }

    event EnhancementRequested(
        uint256 indexed tokenId,
        uint256 indexed timestamp
    );

    event EnhancementCompleted(
        uint256 indexed tokenId,
        uint256 indexed timestamp,
        bool success,
        bool degraded
    );

    event SeederUpdated(address indexed caller, address indexed seeder);

    function enhancementCost(uint256 tokenId)
        external
        view
        returns (uint256, bool);

    function enhance(uint256 tokenId, uint256 burnTokenId) external;
}

File 17 of 24 : IHero.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./IRaidERC721.sol";
import "./IHeroURIHandler.sol";
import "./ISeeder.sol";

interface IHero is IRaidERC721 {
    event HandlerUpdated(address indexed caller, address indexed handler);

    function setHandler(IHeroURIHandler handler) external;

    function getHandler() external view returns (address);

    function getSeeder() external view returns (address);
}

File 18 of 24 : IHeroURIHandler.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./IEnhanceable.sol";
import "../lib/Stats.sol";

interface IHeroURIHandler is IEnhanceable {
    function tokenURI(uint256 tokenId) external view returns (string memory);

    function getStats(uint256 tokenId)
        external
        view
        returns (Stats.HeroStats memory);

    function getSeeder() external view returns (address);
}

File 19 of 24 : IRaidERC721.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";

interface IRaidERC721 is IERC721 {
    function getSeeder() external view returns (address);

    function burn(uint256 tokenId) external;

    function tokensOfOwner(address owner)
        external
        view
        returns (uint256[] memory);
}

File 20 of 24 : ISeeder.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface ISeeder {
    struct SeedData {
        uint256 batch;
        bytes32 randomnessId;
    }

    event Requested(address indexed origin, uint256 indexed identifier);

    event Seeded(bytes32 identifier, uint256 randomness);

    function getIdReferenceCount(
        bytes32 randomnessId,
        address origin,
        uint256 startIdx
    ) external view returns (uint256);

    function getIdentifiers(
        bytes32 randomnessId,
        address origin,
        uint256 startIdx,
        uint256 count
    ) external view returns (uint256[] memory);

    function requestSeed(uint256 identifier) external;

    function getSeed(address origin, uint256 identifier)
        external
        view
        returns (uint256);

    function getSeedSafe(address origin, uint256 identifier)
        external
        view
        returns (uint256);

    function executeRequest(address origin, uint256 identifier) external;

    function executeRequestMulti() external;

    function isSeeded(address origin, uint256 identifier)
        external
        view
        returns (bool);

    function setFee(uint256 fee) external;

    function getFee() external view returns (uint256);
}

File 21 of 24 : Stats.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

library Stats {
    struct HeroStats {
        uint8 dmgMultiplier;
        uint8 partySize;
        uint8 enhancement;
    }

    struct FighterStats {
        uint32 dmg;
        uint8 enhancement;
    }

    struct EquipmentStats {
        uint32 dmg;
        uint8 dmgMultiplier;
        uint8 slot;
    }
}

File 22 of 24 : Seedable.sol
// SPDX-License-Identifier: MIT

/// @title RaidParty Helper Contract for Seedability

/**
 *   ___      _    _ ___          _
 *  | _ \__ _(_)__| | _ \__ _ _ _| |_ _  _
 *  |   / _` | / _` |  _/ _` | '_|  _| || |
 *  |_|_\__,_|_\__,_|_| \__,_|_|  \__|\_, |
 *                                    |__/
 */

pragma solidity ^0.8.0;

abstract contract Seedable {
    function _validateSeed(uint256 id) internal pure {
        require(id != 0, "Seedable: not seeded");
    }
}

File 23 of 24 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)
/**
 * This contract is a minimal, unimplemented fork of ERC721Enumerable.sol
 * for the purpose performing write optimizations on the ERC721Enumerable contract.
 */

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/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 the raw owner for a given tokenId.
     */
    function _getOwner(uint256 tokenId)
        internal
        view
        virtual
        returns (address)
    {
        return _owners[tokenId];
    }

    /**
     * @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 24 of 24 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)
/**
 * This contract is a minimal, unimplemented fork of ERC721Enumerable.sol
 * for the purpose performing write optimizations on the ERC721Enumerable contract.
 */

pragma solidity ^0.8.0;

import "./ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(IERC165, ERC721)
        returns (bool)
    {
        return
            interfaceId == type(IERC721Enumerable).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        virtual
        override
        returns (uint256);

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256);

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index)
        public
        view
        virtual
        override
        returns (uint256);
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"handler","type":"address"}],"name":"HandlerUpdated","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":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","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":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHandler","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":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSeeder","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"to","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"counts","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IHeroURIHandler","name":"handler","type":"address"}],"name":"setHandler","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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"}]

608060405260016008553480156200001657600080fd5b50604051620051103803806200511083398181016040528101906200003c9190620004dc565b6040518060400160405280600481526020017f4865726f000000000000000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f4845524f000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000c0929190620003c2565b508060019080519060200190620000d9929190620003c2565b505050620000f16000801b826200012a60201b60201c565b620001237f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6826200012a60201b60201c565b5062000573565b6200013c82826200014060201b60201c565b5050565b6200015782826200018860201b620018981760201c565b6200018381600760008581526020019081526020016000206200027a60201b620019791790919060201c565b505050565b6200019a8282620002b260201b60201c565b620002765760016006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200021b6200031d60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000620002aa836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6200032560201b60201c565b905092915050565b60006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b60006200033983836200039f60201b60201c565b6200039457826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905062000399565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b828054620003d0906200053d565b90600052602060002090601f016020900481019282620003f4576000855562000440565b82601f106200040f57805160ff191683800117855562000440565b8280016001018555821562000440579182015b828111156200043f57825182559160200191906001019062000422565b5b5090506200044f919062000453565b5090565b5b808211156200046e57600081600090555060010162000454565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004a48262000477565b9050919050565b620004b68162000497565b8114620004c257600080fd5b50565b600081519050620004d681620004ab565b92915050565b600060208284031215620004f557620004f462000472565b5b60006200050584828501620004c5565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200055657607f821691505b602082108114156200056d576200056c6200050e565b5b50919050565b614b8d80620005836000396000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c806370a082311161011a578063b88d4fde116100ad578063d53913931161007c578063d53913931461060a578063d547741f14610628578063dfca4f7914610644578063e4623c1b14610662578063e985e9c51461067e576101fb565b8063b88d4fde14610572578063bac426d01461058e578063c87b56dd146105aa578063ca15c873146105da576101fb565b806391d14854116100e957806391d14854146104ea57806395d89b411461051a578063a217fddf14610538578063a22cb46514610556576101fb565b806370a082311461043e5780637c88e3d91461046e5780638462151c1461048a5780639010d07c146104ba576101fb565b80632f2ff15d1161019257806342842e0e1161016157806342842e0e146103a657806342966c68146103c25780634f6ccce7146103de5780636352211e1461040e576101fb565b80632f2ff15d146103225780632f745c591461033e57806336568abe1461036e57806340c10f191461038a576101fb565b806312e028fd116101ce57806312e028fd1461029a57806318160ddd146102b857806323b872dd146102d6578063248a9ca3146102f2576101fb565b806301ffc9a71461020057806306fdde0314610230578063081812fc1461024e578063095ea7b31461027e575b600080fd5b61021a60048036038101906102159190612fdf565b6106ae565b6040516102279190613027565b60405180910390f35b6102386106c0565b60405161024591906130db565b60405180910390f35b61026860048036038101906102639190613133565b610752565b60405161027591906131a1565b60405180910390f35b610298600480360381019061029391906131e8565b6107d7565b005b6102a26108ef565b6040516102af91906131a1565b60405180910390f35b6102c0610919565b6040516102cd9190613237565b60405180910390f35b6102f060048036038101906102eb9190613252565b61092a565b005b61030c600480360381019061030791906132db565b61098a565b6040516103199190613317565b60405180910390f35b61033c60048036038101906103379190613332565b6109aa565b005b610358600480360381019061035391906131e8565b6109d3565b6040516103659190613237565b60405180910390f35b61038860048036038101906103839190613332565b610add565b005b6103a4600480360381019061039f91906131e8565b610b60565b005b6103c060048036038101906103bb9190613252565b610ce6565b005b6103dc60048036038101906103d79190613133565b610d06565b005b6103f860048036038101906103f39190613133565b610d73565b6040516104059190613237565b60405180910390f35b61042860048036038101906104239190613133565b610e47565b60405161043591906131a1565b60405180910390f35b61045860048036038101906104539190613372565b610ef9565b6040516104659190613237565b60405180910390f35b6104886004803603810190610483919061345a565b610fb1565b005b6104a4600480360381019061049f9190613372565b6111f5565b6040516104b19190613599565b60405180910390f35b6104d460048036038101906104cf91906135bb565b611328565b6040516104e191906131a1565b60405180910390f35b61050460048036038101906104ff9190613332565b611357565b6040516105119190613027565b60405180910390f35b6105226113c2565b60405161052f91906130db565b60405180910390f35b610540611454565b60405161054d9190613317565b60405180910390f35b610570600480360381019061056b9190613627565b61145b565b005b61058c60048036038101906105879190613797565b611471565b005b6105a860048036038101906105a39190613858565b6114d3565b005b6105c460048036038101906105bf9190613133565b611587565b6040516105d191906130db565b60405180910390f35b6105f460048036038101906105ef91906132db565b61162e565b6040516106019190613237565b60405180910390f35b610612611652565b60405161061f9190613317565b60405180910390f35b610642600480360381019061063d9190613332565b611676565b005b61064c61169f565b60405161065991906131a1565b60405180910390f35b61067c60048036038101906106779190613885565b611746565b005b610698600480360381019061069391906138d2565b611804565b6040516106a59190613027565b60405180910390f35b60006106b9826119a9565b9050919050565b6060600080546106cf90613941565b80601f01602080910402602001604051908101604052809291908181526020018280546106fb90613941565b80156107485780601f1061071d57610100808354040283529160200191610748565b820191906000526020600020905b81548152906001019060200180831161072b57829003601f168201915b5050505050905090565b600061075d82611a23565b61079c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610793906139e5565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006107e282610e47565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610853576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084a90613a77565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610872611a8f565b73ffffffffffffffffffffffffffffffffffffffff1614806108a157506108a08161089b611a8f565b611804565b5b6108e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d790613b09565b60405180910390fd5b6108ea8383611a97565b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600060016009546008540303905090565b61093b610935611a8f565b82611b50565b61097a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097190613b9b565b60405180910390fd5b610985838383611c2e565b505050565b600060066000838152602001908152602001600020600101549050919050565b6109b38261098a565b6109c4816109bf611a8f565b611e95565b6109ce8383611f32565b505050565b60006109de83610ef9565b8210610a1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1690613c2d565b60405180910390fd5b6000806000600190505b600854811015610a9b57610a3c81611f66565b92508573ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a8e5784821415610a8557809350505050610ad7565b81806001019250505b8080600101915050610a29565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ace90613cbf565b60405180910390fd5b92915050565b610ae5611a8f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4990613d51565b60405180910390fd5b610b5c8282611fa3565b5050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610b9281610b8d611a8f565b611e95565b60006008549050826008600082825401925050819055506000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dfca4f796040518163ffffffff1660e01b815260040160206040518083038186803b158015610c1357600080fd5b505afa158015610c27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4b9190613d86565b905060005b84811015610cde578173ffffffffffffffffffffffffffffffffffffffff1663a9df851a8285016040518263ffffffff1660e01b8152600401610c939190613237565b600060405180830381600087803b158015610cad57600080fd5b505af1158015610cc1573d6000803e3d6000fd5b50505050610cd186828501611fd7565b8080600101915050610c50565b505050505050565b610d0183838360405180602001604052806000815250611471565b505050565b6001600960008282540192505081905550610d28610d22611a8f565b82611b50565b610d67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5e90613e25565b60405180910390fd5b610d70816121b1565b50565b6000610d7d610919565b8210610dbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db590613eb7565b60405180910390fd5b60008080600190505b600854811015610e0657610dda81611a23565b15610df95784831415610df257819350505050610e42565b6001830192505b8080600101915050610dc7565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3990613f49565b60405180910390fd5b919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ef0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee790613fdb565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f619061406d565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610fe381610fde611a8f565b611e95565b82829050858590501461102b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611022906140ff565b60405180910390fd5b600080600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dfca4f796040518163ffffffff1660e01b815260040160206040518083038186803b15801561109657600080fd5b505afa1580156110aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ce9190613d86565b905060005b878790508110156111eb5760085492508585828181106110f6576110f561411f565b5b9050602002013560086000828254019250508190555060005b8686838181106111225761112161411f565b5b905060200201358110156111dd578273ffffffffffffffffffffffffffffffffffffffff1663a9df851a8286016040518263ffffffff1660e01b815260040161116b9190613237565b600060405180830381600087803b15801561118557600080fd5b505af1158015611199573d6000803e3d6000fd5b505050506111d08989848181106111b3576111b261411f565b5b90506020020160208101906111c89190613372565b828601611fd7565b808060010191505061110f565b5080806001019150506110d3565b5050505050505050565b6060600061120283610ef9565b905060008167ffffffffffffffff8111156112205761121f61366c565b5b60405190808252806020026020018201604052801561124e5781602001602082028036833780820191505090505b509050600080600190505b6008548110156112e7578573ffffffffffffffffffffffffffffffffffffffff1661128382611f66565b73ffffffffffffffffffffffffffffffffffffffff1614156112da57808383815181106112b3576112b261411f565b5b602002602001018181525050600182019150838214156112d95782945050505050611323565b5b8080600101915050611259565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131a906141c0565b60405180910390fd5b919050565b600061134f82600760008681526020019081526020016000206122ce90919063ffffffff16565b905092915050565b60006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600180546113d190613941565b80601f01602080910402602001604051908101604052809291908181526020018280546113fd90613941565b801561144a5780601f1061141f5761010080835404028352916020019161144a565b820191906000526020600020905b81548152906001019060200180831161142d57829003601f168201915b5050505050905090565b6000801b81565b61146d611466611a8f565b83836122e8565b5050565b61148261147c611a8f565b83611b50565b6114c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b890613b9b565b60405180910390fd5b6114cd84848484612455565b50505050565b6000801b6114e8816114e3611a8f565b611e95565b81600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f82858054a5cde8254500daf1cf352f2bd7da86e851c4e04e77ba793c6dd97ead60405160405180910390a35050565b606061159282611a23565b6115d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c890614252565b60405180910390fd5b60006115db6124b1565b905060008151116115fb5760405180602001604052806000815250611626565b80611605846124c8565b6040516020016116169291906142ae565b6040516020818303038152906040525b915050919050565b600061164b60076000848152602001908152602001600020612629565b9050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61167f8261098a565b6116908161168b611a8f565b611e95565b61169a8383611fa3565b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dfca4f796040518163ffffffff1660e01b815260040160206040518083038186803b15801561170957600080fd5b505afa15801561171d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117419190613d86565b905090565b8181905060096000828254019250508190555060005b828290508110156117ff57611791611772611a8f565b8484848181106117855761178461411f565b5b90506020020135611b50565b6117d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c790614344565b60405180910390fd5b6117f28383838181106117e6576117e561411f565b5b905060200201356121b1565b808060010191505061175c565b505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6118a28282611357565b6119755760016006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061191a611a8f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006119a1836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61263e565b905092915050565b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611a1c5750611a1b826126ae565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611b0a83610e47565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611b5b82611a23565b611b9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b91906143d6565b60405180910390fd5b6000611ba583610e47565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611c1457508373ffffffffffffffffffffffffffffffffffffffff16611bfc84610752565b73ffffffffffffffffffffffffffffffffffffffff16145b80611c255750611c248185611804565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611c4e82610e47565b73ffffffffffffffffffffffffffffffffffffffff1614611ca4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9b90614468565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0b906144fa565b60405180910390fd5b611d1f838383612728565b611d2a600082611a97565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d7a9190614549565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611dd1919061457d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611e90838383612738565b505050565b611e9f8282611357565b611f2e57611ec48173ffffffffffffffffffffffffffffffffffffffff16601461273d565b611ed28360001c602061273d565b604051602001611ee392919061466b565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2591906130db565b60405180910390fd5b5050565b611f3c8282611898565b611f61816007600085815260200190815260200160002061197990919063ffffffff16565b505050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b611fad8282612979565b611fd28160076000858152602001908152602001600020612a5b90919063ffffffff16565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612047576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203e906146f1565b60405180910390fd5b61205081611a23565b15612090576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120879061475d565b60405180910390fd5b61209c60008383612728565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120ec919061457d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46121ad60008383612738565b5050565b60006121bc82610e47565b90506121ca81600084612728565b6121d5600083611a97565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122259190614549565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46122ca81600084612738565b5050565b60006122dd8360000183612a8b565b60001c905092915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612357576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161234e906147c9565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516124489190613027565b60405180910390a3505050565b612460848484611c2e565b61246c84848484612ab6565b6124ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124a29061485b565b60405180910390fd5b50505050565b606060405180602001604052806000815250905090565b60606000821415612510576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612624565b600082905060005b6000821461254257808061252b9061487b565b915050600a8261253b91906148f3565b9150612518565b60008167ffffffffffffffff81111561255e5761255d61366c565b5b6040519080825280601f01601f1916602001820160405280156125905781602001600182028036833780820191505090505b5090505b6000851461261d576001826125a99190614549565b9150600a856125b89190614924565b60306125c4919061457d565b60f81b8183815181106125da576125d961411f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561261691906148f3565b9450612594565b8093505050505b919050565b600061263782600001612c4d565b9050919050565b600061264a8383612c5e565b6126a35782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506126a8565b600090505b92915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612721575061272082612c81565b5b9050919050565b612733838383612cfb565b505050565b505050565b6060600060028360026127509190614955565b61275a919061457d565b67ffffffffffffffff8111156127735761277261366c565b5b6040519080825280601f01601f1916602001820160405280156127a55781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106127dd576127dc61411f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106128415761284061411f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026128819190614955565b61288b919061457d565b90505b600181111561292b577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106128cd576128cc61411f565b5b1a60f81b8282815181106128e4576128e361411f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612924906149af565b905061288e565b506000841461296f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161296690614a25565b60405180910390fd5b8091505092915050565b6129838282611357565b15612a575760006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506129fc611a8f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000612a83836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612d00565b905092915050565b6000826000018281548110612aa357612aa261411f565b5b9060005260206000200154905092915050565b6000612ad78473ffffffffffffffffffffffffffffffffffffffff16612e14565b15612c40578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612b00611a8f565b8786866040518563ffffffff1660e01b8152600401612b229493929190614a9a565b602060405180830381600087803b158015612b3c57600080fd5b505af1925050508015612b6d57506040513d601f19601f82011682018060405250810190612b6a9190614afb565b60015b612bf0573d8060008114612b9d576040519150601f19603f3d011682016040523d82523d6000602084013e612ba2565b606091505b50600081511415612be8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bdf9061485b565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612c45565b600190505b949350505050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612cf45750612cf382612e27565b5b9050919050565b505050565b60008083600101600084815260200190815260200160002054905060008114612e08576000600182612d329190614549565b9050600060018660000180549050612d4a9190614549565b9050818114612db9576000866000018281548110612d6b57612d6a61411f565b5b9060005260206000200154905080876000018481548110612d8f57612d8e61411f565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480612dcd57612dcc614b28565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050612e0e565b60009150505b92915050565b600080823b905060008111915050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612ef257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612f025750612f0182612f09565b5b9050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612fbc81612f87565b8114612fc757600080fd5b50565b600081359050612fd981612fb3565b92915050565b600060208284031215612ff557612ff4612f7d565b5b600061300384828501612fca565b91505092915050565b60008115159050919050565b6130218161300c565b82525050565b600060208201905061303c6000830184613018565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561307c578082015181840152602081019050613061565b8381111561308b576000848401525b50505050565b6000601f19601f8301169050919050565b60006130ad82613042565b6130b7818561304d565b93506130c781856020860161305e565b6130d081613091565b840191505092915050565b600060208201905081810360008301526130f581846130a2565b905092915050565b6000819050919050565b613110816130fd565b811461311b57600080fd5b50565b60008135905061312d81613107565b92915050565b60006020828403121561314957613148612f7d565b5b60006131578482850161311e565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061318b82613160565b9050919050565b61319b81613180565b82525050565b60006020820190506131b66000830184613192565b92915050565b6131c581613180565b81146131d057600080fd5b50565b6000813590506131e2816131bc565b92915050565b600080604083850312156131ff576131fe612f7d565b5b600061320d858286016131d3565b925050602061321e8582860161311e565b9150509250929050565b613231816130fd565b82525050565b600060208201905061324c6000830184613228565b92915050565b60008060006060848603121561326b5761326a612f7d565b5b6000613279868287016131d3565b935050602061328a868287016131d3565b925050604061329b8682870161311e565b9150509250925092565b6000819050919050565b6132b8816132a5565b81146132c357600080fd5b50565b6000813590506132d5816132af565b92915050565b6000602082840312156132f1576132f0612f7d565b5b60006132ff848285016132c6565b91505092915050565b613311816132a5565b82525050565b600060208201905061332c6000830184613308565b92915050565b6000806040838503121561334957613348612f7d565b5b6000613357858286016132c6565b9250506020613368858286016131d3565b9150509250929050565b60006020828403121561338857613387612f7d565b5b6000613396848285016131d3565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126133c4576133c361339f565b5b8235905067ffffffffffffffff8111156133e1576133e06133a4565b5b6020830191508360208202830111156133fd576133fc6133a9565b5b9250929050565b60008083601f84011261341a5761341961339f565b5b8235905067ffffffffffffffff811115613437576134366133a4565b5b602083019150836020820283011115613453576134526133a9565b5b9250929050565b6000806000806040858703121561347457613473612f7d565b5b600085013567ffffffffffffffff81111561349257613491612f82565b5b61349e878288016133ae565b9450945050602085013567ffffffffffffffff8111156134c1576134c0612f82565b5b6134cd87828801613404565b925092505092959194509250565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613510816130fd565b82525050565b60006135228383613507565b60208301905092915050565b6000602082019050919050565b6000613546826134db565b61355081856134e6565b935061355b836134f7565b8060005b8381101561358c5781516135738882613516565b975061357e8361352e565b92505060018101905061355f565b5085935050505092915050565b600060208201905081810360008301526135b3818461353b565b905092915050565b600080604083850312156135d2576135d1612f7d565b5b60006135e0858286016132c6565b92505060206135f18582860161311e565b9150509250929050565b6136048161300c565b811461360f57600080fd5b50565b600081359050613621816135fb565b92915050565b6000806040838503121561363e5761363d612f7d565b5b600061364c858286016131d3565b925050602061365d85828601613612565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6136a482613091565b810181811067ffffffffffffffff821117156136c3576136c261366c565b5b80604052505050565b60006136d6612f73565b90506136e2828261369b565b919050565b600067ffffffffffffffff8211156137025761370161366c565b5b61370b82613091565b9050602081019050919050565b82818337600083830152505050565b600061373a613735846136e7565b6136cc565b90508281526020810184848401111561375657613755613667565b5b613761848285613718565b509392505050565b600082601f83011261377e5761377d61339f565b5b813561378e848260208601613727565b91505092915050565b600080600080608085870312156137b1576137b0612f7d565b5b60006137bf878288016131d3565b94505060206137d0878288016131d3565b93505060406137e18782880161311e565b925050606085013567ffffffffffffffff81111561380257613801612f82565b5b61380e87828801613769565b91505092959194509250565b600061382582613180565b9050919050565b6138358161381a565b811461384057600080fd5b50565b6000813590506138528161382c565b92915050565b60006020828403121561386e5761386d612f7d565b5b600061387c84828501613843565b91505092915050565b6000806020838503121561389c5761389b612f7d565b5b600083013567ffffffffffffffff8111156138ba576138b9612f82565b5b6138c685828601613404565b92509250509250929050565b600080604083850312156138e9576138e8612f7d565b5b60006138f7858286016131d3565b9250506020613908858286016131d3565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061395957607f821691505b6020821081141561396d5761396c613912565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006139cf602c8361304d565b91506139da82613973565b604082019050919050565b600060208201905081810360008301526139fe816139c2565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613a6160218361304d565b9150613a6c82613a05565b604082019050919050565b60006020820190508181036000830152613a9081613a54565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000613af360388361304d565b9150613afe82613a97565b604082019050919050565b60006020820190508181036000830152613b2281613ae6565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000613b8560318361304d565b9150613b9082613b29565b604082019050919050565b60006020820190508181036000830152613bb481613b78565b9050919050565b7f4865726f3a3a746f6b656e4f664f776e65724279496e6465783a206f776e657260008201527f20696e646578206f7574206f6620626f756e6473000000000000000000000000602082015250565b6000613c1760348361304d565b9150613c2282613bbb565b604082019050919050565b60006020820190508181036000830152613c4681613c0a565b9050919050565b7f4865726f3a3a746f6b656e4f664f776e65724279496e6465783a20756e61626c60008201527f6520746f2067657420746f6b656e206f66206f776e657220627920696e646578602082015250565b6000613ca960408361304d565b9150613cb482613c4d565b604082019050919050565b60006020820190508181036000830152613cd881613c9c565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000613d3b602f8361304d565b9150613d4682613cdf565b604082019050919050565b60006020820190508181036000830152613d6a81613d2e565b9050919050565b600081519050613d80816131bc565b92915050565b600060208284031215613d9c57613d9b612f7d565b5b6000613daa84828501613d71565b91505092915050565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000602082015250565b6000613e0f60308361304d565b9150613e1a82613db3565b604082019050919050565b60006020820190508181036000830152613e3e81613e02565b9050919050565b7f4865726f3a3a746f6b656e4279496e6465783a20676c6f62616c20696e64657860008201527f206f7574206f6620626f756e6473000000000000000000000000000000000000602082015250565b6000613ea1602e8361304d565b9150613eac82613e45565b604082019050919050565b60006020820190508181036000830152613ed081613e94565b9050919050565b7f4865726f3a3a746f6b656e4279496e6465783a20756e61626c6520746f20676560008201527f7420746f6b656e20627920696e64657800000000000000000000000000000000602082015250565b6000613f3360308361304d565b9150613f3e82613ed7565b604082019050919050565b60006020820190508181036000830152613f6281613f26565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000613fc560298361304d565b9150613fd082613f69565b604082019050919050565b60006020820190508181036000830152613ff481613fb8565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000614057602a8361304d565b915061406282613ffb565b604082019050919050565b600060208201905081810360008301526140868161404a565b9050919050565b7f4865726f3a3a6d696e7442617463683a20506172616d65746572206c656e677460008201527f68206d69736d6174636800000000000000000000000000000000000000000000602082015250565b60006140e9602a8361304d565b91506140f48261408d565b604082019050919050565b60006020820190508181036000830152614118816140dc565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4865726f3a3a746f6b656e4f664f776e65724279496e6465783a20756e61626c60008201527f6520746f2067657420746f6b656e73206f66206f776e65720000000000000000602082015250565b60006141aa60388361304d565b91506141b58261414e565b604082019050919050565b600060208201905081810360008301526141d98161419d565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061423c602f8361304d565b9150614247826141e0565b604082019050919050565b6000602082019050818103600083015261426b8161422f565b9050919050565b600081905092915050565b600061428882613042565b6142928185614272565b93506142a281856020860161305e565b80840191505092915050565b60006142ba828561427d565b91506142c6828461427d565b91508190509392505050565b7f4865726f3a3a6275726e42617463683a2063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b600061432e60318361304d565b9150614339826142d2565b604082019050919050565b6000602082019050818103600083015261435d81614321565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006143c0602c8361304d565b91506143cb82614364565b604082019050919050565b600060208201905081810360008301526143ef816143b3565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061445260258361304d565b915061445d826143f6565b604082019050919050565b6000602082019050818103600083015261448181614445565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006144e460248361304d565b91506144ef82614488565b604082019050919050565b60006020820190508181036000830152614513816144d7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614554826130fd565b915061455f836130fd565b9250828210156145725761457161451a565b5b828203905092915050565b6000614588826130fd565b9150614593836130fd565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156145c8576145c761451a565b5b828201905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614609601783614272565b9150614614826145d3565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614655601183614272565b91506146608261461f565b601182019050919050565b6000614676826145fc565b9150614682828561427d565b915061468d82614648565b9150614699828461427d565b91508190509392505050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006146db60208361304d565b91506146e6826146a5565b602082019050919050565b6000602082019050818103600083015261470a816146ce565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614747601c8361304d565b915061475282614711565b602082019050919050565b600060208201905081810360008301526147768161473a565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006147b360198361304d565b91506147be8261477d565b602082019050919050565b600060208201905081810360008301526147e2816147a6565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061484560328361304d565b9150614850826147e9565b604082019050919050565b6000602082019050818103600083015261487481614838565b9050919050565b6000614886826130fd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156148b9576148b861451a565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006148fe826130fd565b9150614909836130fd565b925082614919576149186148c4565b5b828204905092915050565b600061492f826130fd565b915061493a836130fd565b92508261494a576149496148c4565b5b828206905092915050565b6000614960826130fd565b915061496b836130fd565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156149a4576149a361451a565b5b828202905092915050565b60006149ba826130fd565b915060008214156149ce576149cd61451a565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000614a0f60208361304d565b9150614a1a826149d9565b602082019050919050565b60006020820190508181036000830152614a3e81614a02565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614a6c82614a45565b614a768185614a50565b9350614a8681856020860161305e565b614a8f81613091565b840191505092915050565b6000608082019050614aaf6000830187613192565b614abc6020830186613192565b614ac96040830185613228565b8181036060830152614adb8184614a61565b905095945050505050565b600081519050614af581612fb3565b92915050565b600060208284031215614b1157614b10612f7d565b5b6000614b1f84828501614ae6565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122035fbe98a37194936c6ae1b6074f49f012cff3d585424ac636be76eb866739c9f64736f6c63430008090033000000000000000000000000cf2d2da4c2f9b0675a197febc6708704834f9c24

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c806370a082311161011a578063b88d4fde116100ad578063d53913931161007c578063d53913931461060a578063d547741f14610628578063dfca4f7914610644578063e4623c1b14610662578063e985e9c51461067e576101fb565b8063b88d4fde14610572578063bac426d01461058e578063c87b56dd146105aa578063ca15c873146105da576101fb565b806391d14854116100e957806391d14854146104ea57806395d89b411461051a578063a217fddf14610538578063a22cb46514610556576101fb565b806370a082311461043e5780637c88e3d91461046e5780638462151c1461048a5780639010d07c146104ba576101fb565b80632f2ff15d1161019257806342842e0e1161016157806342842e0e146103a657806342966c68146103c25780634f6ccce7146103de5780636352211e1461040e576101fb565b80632f2ff15d146103225780632f745c591461033e57806336568abe1461036e57806340c10f191461038a576101fb565b806312e028fd116101ce57806312e028fd1461029a57806318160ddd146102b857806323b872dd146102d6578063248a9ca3146102f2576101fb565b806301ffc9a71461020057806306fdde0314610230578063081812fc1461024e578063095ea7b31461027e575b600080fd5b61021a60048036038101906102159190612fdf565b6106ae565b6040516102279190613027565b60405180910390f35b6102386106c0565b60405161024591906130db565b60405180910390f35b61026860048036038101906102639190613133565b610752565b60405161027591906131a1565b60405180910390f35b610298600480360381019061029391906131e8565b6107d7565b005b6102a26108ef565b6040516102af91906131a1565b60405180910390f35b6102c0610919565b6040516102cd9190613237565b60405180910390f35b6102f060048036038101906102eb9190613252565b61092a565b005b61030c600480360381019061030791906132db565b61098a565b6040516103199190613317565b60405180910390f35b61033c60048036038101906103379190613332565b6109aa565b005b610358600480360381019061035391906131e8565b6109d3565b6040516103659190613237565b60405180910390f35b61038860048036038101906103839190613332565b610add565b005b6103a4600480360381019061039f91906131e8565b610b60565b005b6103c060048036038101906103bb9190613252565b610ce6565b005b6103dc60048036038101906103d79190613133565b610d06565b005b6103f860048036038101906103f39190613133565b610d73565b6040516104059190613237565b60405180910390f35b61042860048036038101906104239190613133565b610e47565b60405161043591906131a1565b60405180910390f35b61045860048036038101906104539190613372565b610ef9565b6040516104659190613237565b60405180910390f35b6104886004803603810190610483919061345a565b610fb1565b005b6104a4600480360381019061049f9190613372565b6111f5565b6040516104b19190613599565b60405180910390f35b6104d460048036038101906104cf91906135bb565b611328565b6040516104e191906131a1565b60405180910390f35b61050460048036038101906104ff9190613332565b611357565b6040516105119190613027565b60405180910390f35b6105226113c2565b60405161052f91906130db565b60405180910390f35b610540611454565b60405161054d9190613317565b60405180910390f35b610570600480360381019061056b9190613627565b61145b565b005b61058c60048036038101906105879190613797565b611471565b005b6105a860048036038101906105a39190613858565b6114d3565b005b6105c460048036038101906105bf9190613133565b611587565b6040516105d191906130db565b60405180910390f35b6105f460048036038101906105ef91906132db565b61162e565b6040516106019190613237565b60405180910390f35b610612611652565b60405161061f9190613317565b60405180910390f35b610642600480360381019061063d9190613332565b611676565b005b61064c61169f565b60405161065991906131a1565b60405180910390f35b61067c60048036038101906106779190613885565b611746565b005b610698600480360381019061069391906138d2565b611804565b6040516106a59190613027565b60405180910390f35b60006106b9826119a9565b9050919050565b6060600080546106cf90613941565b80601f01602080910402602001604051908101604052809291908181526020018280546106fb90613941565b80156107485780601f1061071d57610100808354040283529160200191610748565b820191906000526020600020905b81548152906001019060200180831161072b57829003601f168201915b5050505050905090565b600061075d82611a23565b61079c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610793906139e5565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006107e282610e47565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610853576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084a90613a77565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610872611a8f565b73ffffffffffffffffffffffffffffffffffffffff1614806108a157506108a08161089b611a8f565b611804565b5b6108e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d790613b09565b60405180910390fd5b6108ea8383611a97565b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600060016009546008540303905090565b61093b610935611a8f565b82611b50565b61097a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097190613b9b565b60405180910390fd5b610985838383611c2e565b505050565b600060066000838152602001908152602001600020600101549050919050565b6109b38261098a565b6109c4816109bf611a8f565b611e95565b6109ce8383611f32565b505050565b60006109de83610ef9565b8210610a1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1690613c2d565b60405180910390fd5b6000806000600190505b600854811015610a9b57610a3c81611f66565b92508573ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a8e5784821415610a8557809350505050610ad7565b81806001019250505b8080600101915050610a29565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ace90613cbf565b60405180910390fd5b92915050565b610ae5611a8f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4990613d51565b60405180910390fd5b610b5c8282611fa3565b5050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610b9281610b8d611a8f565b611e95565b60006008549050826008600082825401925050819055506000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dfca4f796040518163ffffffff1660e01b815260040160206040518083038186803b158015610c1357600080fd5b505afa158015610c27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4b9190613d86565b905060005b84811015610cde578173ffffffffffffffffffffffffffffffffffffffff1663a9df851a8285016040518263ffffffff1660e01b8152600401610c939190613237565b600060405180830381600087803b158015610cad57600080fd5b505af1158015610cc1573d6000803e3d6000fd5b50505050610cd186828501611fd7565b8080600101915050610c50565b505050505050565b610d0183838360405180602001604052806000815250611471565b505050565b6001600960008282540192505081905550610d28610d22611a8f565b82611b50565b610d67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5e90613e25565b60405180910390fd5b610d70816121b1565b50565b6000610d7d610919565b8210610dbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db590613eb7565b60405180910390fd5b60008080600190505b600854811015610e0657610dda81611a23565b15610df95784831415610df257819350505050610e42565b6001830192505b8080600101915050610dc7565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3990613f49565b60405180910390fd5b919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ef0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee790613fdb565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f619061406d565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610fe381610fde611a8f565b611e95565b82829050858590501461102b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611022906140ff565b60405180910390fd5b600080600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dfca4f796040518163ffffffff1660e01b815260040160206040518083038186803b15801561109657600080fd5b505afa1580156110aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ce9190613d86565b905060005b878790508110156111eb5760085492508585828181106110f6576110f561411f565b5b9050602002013560086000828254019250508190555060005b8686838181106111225761112161411f565b5b905060200201358110156111dd578273ffffffffffffffffffffffffffffffffffffffff1663a9df851a8286016040518263ffffffff1660e01b815260040161116b9190613237565b600060405180830381600087803b15801561118557600080fd5b505af1158015611199573d6000803e3d6000fd5b505050506111d08989848181106111b3576111b261411f565b5b90506020020160208101906111c89190613372565b828601611fd7565b808060010191505061110f565b5080806001019150506110d3565b5050505050505050565b6060600061120283610ef9565b905060008167ffffffffffffffff8111156112205761121f61366c565b5b60405190808252806020026020018201604052801561124e5781602001602082028036833780820191505090505b509050600080600190505b6008548110156112e7578573ffffffffffffffffffffffffffffffffffffffff1661128382611f66565b73ffffffffffffffffffffffffffffffffffffffff1614156112da57808383815181106112b3576112b261411f565b5b602002602001018181525050600182019150838214156112d95782945050505050611323565b5b8080600101915050611259565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131a906141c0565b60405180910390fd5b919050565b600061134f82600760008681526020019081526020016000206122ce90919063ffffffff16565b905092915050565b60006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600180546113d190613941565b80601f01602080910402602001604051908101604052809291908181526020018280546113fd90613941565b801561144a5780601f1061141f5761010080835404028352916020019161144a565b820191906000526020600020905b81548152906001019060200180831161142d57829003601f168201915b5050505050905090565b6000801b81565b61146d611466611a8f565b83836122e8565b5050565b61148261147c611a8f565b83611b50565b6114c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b890613b9b565b60405180910390fd5b6114cd84848484612455565b50505050565b6000801b6114e8816114e3611a8f565b611e95565b81600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f82858054a5cde8254500daf1cf352f2bd7da86e851c4e04e77ba793c6dd97ead60405160405180910390a35050565b606061159282611a23565b6115d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c890614252565b60405180910390fd5b60006115db6124b1565b905060008151116115fb5760405180602001604052806000815250611626565b80611605846124c8565b6040516020016116169291906142ae565b6040516020818303038152906040525b915050919050565b600061164b60076000848152602001908152602001600020612629565b9050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61167f8261098a565b6116908161168b611a8f565b611e95565b61169a8383611fa3565b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dfca4f796040518163ffffffff1660e01b815260040160206040518083038186803b15801561170957600080fd5b505afa15801561171d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117419190613d86565b905090565b8181905060096000828254019250508190555060005b828290508110156117ff57611791611772611a8f565b8484848181106117855761178461411f565b5b90506020020135611b50565b6117d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c790614344565b60405180910390fd5b6117f28383838181106117e6576117e561411f565b5b905060200201356121b1565b808060010191505061175c565b505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6118a28282611357565b6119755760016006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061191a611a8f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006119a1836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61263e565b905092915050565b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611a1c5750611a1b826126ae565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611b0a83610e47565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611b5b82611a23565b611b9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b91906143d6565b60405180910390fd5b6000611ba583610e47565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611c1457508373ffffffffffffffffffffffffffffffffffffffff16611bfc84610752565b73ffffffffffffffffffffffffffffffffffffffff16145b80611c255750611c248185611804565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611c4e82610e47565b73ffffffffffffffffffffffffffffffffffffffff1614611ca4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9b90614468565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0b906144fa565b60405180910390fd5b611d1f838383612728565b611d2a600082611a97565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d7a9190614549565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611dd1919061457d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611e90838383612738565b505050565b611e9f8282611357565b611f2e57611ec48173ffffffffffffffffffffffffffffffffffffffff16601461273d565b611ed28360001c602061273d565b604051602001611ee392919061466b565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2591906130db565b60405180910390fd5b5050565b611f3c8282611898565b611f61816007600085815260200190815260200160002061197990919063ffffffff16565b505050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b611fad8282612979565b611fd28160076000858152602001908152602001600020612a5b90919063ffffffff16565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612047576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203e906146f1565b60405180910390fd5b61205081611a23565b15612090576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120879061475d565b60405180910390fd5b61209c60008383612728565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120ec919061457d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46121ad60008383612738565b5050565b60006121bc82610e47565b90506121ca81600084612728565b6121d5600083611a97565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122259190614549565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46122ca81600084612738565b5050565b60006122dd8360000183612a8b565b60001c905092915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612357576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161234e906147c9565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516124489190613027565b60405180910390a3505050565b612460848484611c2e565b61246c84848484612ab6565b6124ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124a29061485b565b60405180910390fd5b50505050565b606060405180602001604052806000815250905090565b60606000821415612510576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612624565b600082905060005b6000821461254257808061252b9061487b565b915050600a8261253b91906148f3565b9150612518565b60008167ffffffffffffffff81111561255e5761255d61366c565b5b6040519080825280601f01601f1916602001820160405280156125905781602001600182028036833780820191505090505b5090505b6000851461261d576001826125a99190614549565b9150600a856125b89190614924565b60306125c4919061457d565b60f81b8183815181106125da576125d961411f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561261691906148f3565b9450612594565b8093505050505b919050565b600061263782600001612c4d565b9050919050565b600061264a8383612c5e565b6126a35782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506126a8565b600090505b92915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612721575061272082612c81565b5b9050919050565b612733838383612cfb565b505050565b505050565b6060600060028360026127509190614955565b61275a919061457d565b67ffffffffffffffff8111156127735761277261366c565b5b6040519080825280601f01601f1916602001820160405280156127a55781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106127dd576127dc61411f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106128415761284061411f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026128819190614955565b61288b919061457d565b90505b600181111561292b577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106128cd576128cc61411f565b5b1a60f81b8282815181106128e4576128e361411f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612924906149af565b905061288e565b506000841461296f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161296690614a25565b60405180910390fd5b8091505092915050565b6129838282611357565b15612a575760006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506129fc611a8f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000612a83836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612d00565b905092915050565b6000826000018281548110612aa357612aa261411f565b5b9060005260206000200154905092915050565b6000612ad78473ffffffffffffffffffffffffffffffffffffffff16612e14565b15612c40578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612b00611a8f565b8786866040518563ffffffff1660e01b8152600401612b229493929190614a9a565b602060405180830381600087803b158015612b3c57600080fd5b505af1925050508015612b6d57506040513d601f19601f82011682018060405250810190612b6a9190614afb565b60015b612bf0573d8060008114612b9d576040519150601f19603f3d011682016040523d82523d6000602084013e612ba2565b606091505b50600081511415612be8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bdf9061485b565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612c45565b600190505b949350505050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612cf45750612cf382612e27565b5b9050919050565b505050565b60008083600101600084815260200190815260200160002054905060008114612e08576000600182612d329190614549565b9050600060018660000180549050612d4a9190614549565b9050818114612db9576000866000018281548110612d6b57612d6a61411f565b5b9060005260206000200154905080876000018481548110612d8f57612d8e61411f565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480612dcd57612dcc614b28565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050612e0e565b60009150505b92915050565b600080823b905060008111915050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612ef257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612f025750612f0182612f09565b5b9050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612fbc81612f87565b8114612fc757600080fd5b50565b600081359050612fd981612fb3565b92915050565b600060208284031215612ff557612ff4612f7d565b5b600061300384828501612fca565b91505092915050565b60008115159050919050565b6130218161300c565b82525050565b600060208201905061303c6000830184613018565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561307c578082015181840152602081019050613061565b8381111561308b576000848401525b50505050565b6000601f19601f8301169050919050565b60006130ad82613042565b6130b7818561304d565b93506130c781856020860161305e565b6130d081613091565b840191505092915050565b600060208201905081810360008301526130f581846130a2565b905092915050565b6000819050919050565b613110816130fd565b811461311b57600080fd5b50565b60008135905061312d81613107565b92915050565b60006020828403121561314957613148612f7d565b5b60006131578482850161311e565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061318b82613160565b9050919050565b61319b81613180565b82525050565b60006020820190506131b66000830184613192565b92915050565b6131c581613180565b81146131d057600080fd5b50565b6000813590506131e2816131bc565b92915050565b600080604083850312156131ff576131fe612f7d565b5b600061320d858286016131d3565b925050602061321e8582860161311e565b9150509250929050565b613231816130fd565b82525050565b600060208201905061324c6000830184613228565b92915050565b60008060006060848603121561326b5761326a612f7d565b5b6000613279868287016131d3565b935050602061328a868287016131d3565b925050604061329b8682870161311e565b9150509250925092565b6000819050919050565b6132b8816132a5565b81146132c357600080fd5b50565b6000813590506132d5816132af565b92915050565b6000602082840312156132f1576132f0612f7d565b5b60006132ff848285016132c6565b91505092915050565b613311816132a5565b82525050565b600060208201905061332c6000830184613308565b92915050565b6000806040838503121561334957613348612f7d565b5b6000613357858286016132c6565b9250506020613368858286016131d3565b9150509250929050565b60006020828403121561338857613387612f7d565b5b6000613396848285016131d3565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126133c4576133c361339f565b5b8235905067ffffffffffffffff8111156133e1576133e06133a4565b5b6020830191508360208202830111156133fd576133fc6133a9565b5b9250929050565b60008083601f84011261341a5761341961339f565b5b8235905067ffffffffffffffff811115613437576134366133a4565b5b602083019150836020820283011115613453576134526133a9565b5b9250929050565b6000806000806040858703121561347457613473612f7d565b5b600085013567ffffffffffffffff81111561349257613491612f82565b5b61349e878288016133ae565b9450945050602085013567ffffffffffffffff8111156134c1576134c0612f82565b5b6134cd87828801613404565b925092505092959194509250565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613510816130fd565b82525050565b60006135228383613507565b60208301905092915050565b6000602082019050919050565b6000613546826134db565b61355081856134e6565b935061355b836134f7565b8060005b8381101561358c5781516135738882613516565b975061357e8361352e565b92505060018101905061355f565b5085935050505092915050565b600060208201905081810360008301526135b3818461353b565b905092915050565b600080604083850312156135d2576135d1612f7d565b5b60006135e0858286016132c6565b92505060206135f18582860161311e565b9150509250929050565b6136048161300c565b811461360f57600080fd5b50565b600081359050613621816135fb565b92915050565b6000806040838503121561363e5761363d612f7d565b5b600061364c858286016131d3565b925050602061365d85828601613612565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6136a482613091565b810181811067ffffffffffffffff821117156136c3576136c261366c565b5b80604052505050565b60006136d6612f73565b90506136e2828261369b565b919050565b600067ffffffffffffffff8211156137025761370161366c565b5b61370b82613091565b9050602081019050919050565b82818337600083830152505050565b600061373a613735846136e7565b6136cc565b90508281526020810184848401111561375657613755613667565b5b613761848285613718565b509392505050565b600082601f83011261377e5761377d61339f565b5b813561378e848260208601613727565b91505092915050565b600080600080608085870312156137b1576137b0612f7d565b5b60006137bf878288016131d3565b94505060206137d0878288016131d3565b93505060406137e18782880161311e565b925050606085013567ffffffffffffffff81111561380257613801612f82565b5b61380e87828801613769565b91505092959194509250565b600061382582613180565b9050919050565b6138358161381a565b811461384057600080fd5b50565b6000813590506138528161382c565b92915050565b60006020828403121561386e5761386d612f7d565b5b600061387c84828501613843565b91505092915050565b6000806020838503121561389c5761389b612f7d565b5b600083013567ffffffffffffffff8111156138ba576138b9612f82565b5b6138c685828601613404565b92509250509250929050565b600080604083850312156138e9576138e8612f7d565b5b60006138f7858286016131d3565b9250506020613908858286016131d3565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061395957607f821691505b6020821081141561396d5761396c613912565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006139cf602c8361304d565b91506139da82613973565b604082019050919050565b600060208201905081810360008301526139fe816139c2565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613a6160218361304d565b9150613a6c82613a05565b604082019050919050565b60006020820190508181036000830152613a9081613a54565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000613af360388361304d565b9150613afe82613a97565b604082019050919050565b60006020820190508181036000830152613b2281613ae6565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000613b8560318361304d565b9150613b9082613b29565b604082019050919050565b60006020820190508181036000830152613bb481613b78565b9050919050565b7f4865726f3a3a746f6b656e4f664f776e65724279496e6465783a206f776e657260008201527f20696e646578206f7574206f6620626f756e6473000000000000000000000000602082015250565b6000613c1760348361304d565b9150613c2282613bbb565b604082019050919050565b60006020820190508181036000830152613c4681613c0a565b9050919050565b7f4865726f3a3a746f6b656e4f664f776e65724279496e6465783a20756e61626c60008201527f6520746f2067657420746f6b656e206f66206f776e657220627920696e646578602082015250565b6000613ca960408361304d565b9150613cb482613c4d565b604082019050919050565b60006020820190508181036000830152613cd881613c9c565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000613d3b602f8361304d565b9150613d4682613cdf565b604082019050919050565b60006020820190508181036000830152613d6a81613d2e565b9050919050565b600081519050613d80816131bc565b92915050565b600060208284031215613d9c57613d9b612f7d565b5b6000613daa84828501613d71565b91505092915050565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000602082015250565b6000613e0f60308361304d565b9150613e1a82613db3565b604082019050919050565b60006020820190508181036000830152613e3e81613e02565b9050919050565b7f4865726f3a3a746f6b656e4279496e6465783a20676c6f62616c20696e64657860008201527f206f7574206f6620626f756e6473000000000000000000000000000000000000602082015250565b6000613ea1602e8361304d565b9150613eac82613e45565b604082019050919050565b60006020820190508181036000830152613ed081613e94565b9050919050565b7f4865726f3a3a746f6b656e4279496e6465783a20756e61626c6520746f20676560008201527f7420746f6b656e20627920696e64657800000000000000000000000000000000602082015250565b6000613f3360308361304d565b9150613f3e82613ed7565b604082019050919050565b60006020820190508181036000830152613f6281613f26565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000613fc560298361304d565b9150613fd082613f69565b604082019050919050565b60006020820190508181036000830152613ff481613fb8565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000614057602a8361304d565b915061406282613ffb565b604082019050919050565b600060208201905081810360008301526140868161404a565b9050919050565b7f4865726f3a3a6d696e7442617463683a20506172616d65746572206c656e677460008201527f68206d69736d6174636800000000000000000000000000000000000000000000602082015250565b60006140e9602a8361304d565b91506140f48261408d565b604082019050919050565b60006020820190508181036000830152614118816140dc565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4865726f3a3a746f6b656e4f664f776e65724279496e6465783a20756e61626c60008201527f6520746f2067657420746f6b656e73206f66206f776e65720000000000000000602082015250565b60006141aa60388361304d565b91506141b58261414e565b604082019050919050565b600060208201905081810360008301526141d98161419d565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061423c602f8361304d565b9150614247826141e0565b604082019050919050565b6000602082019050818103600083015261426b8161422f565b9050919050565b600081905092915050565b600061428882613042565b6142928185614272565b93506142a281856020860161305e565b80840191505092915050565b60006142ba828561427d565b91506142c6828461427d565b91508190509392505050565b7f4865726f3a3a6275726e42617463683a2063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b600061432e60318361304d565b9150614339826142d2565b604082019050919050565b6000602082019050818103600083015261435d81614321565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006143c0602c8361304d565b91506143cb82614364565b604082019050919050565b600060208201905081810360008301526143ef816143b3565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061445260258361304d565b915061445d826143f6565b604082019050919050565b6000602082019050818103600083015261448181614445565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006144e460248361304d565b91506144ef82614488565b604082019050919050565b60006020820190508181036000830152614513816144d7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614554826130fd565b915061455f836130fd565b9250828210156145725761457161451a565b5b828203905092915050565b6000614588826130fd565b9150614593836130fd565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156145c8576145c761451a565b5b828201905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614609601783614272565b9150614614826145d3565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614655601183614272565b91506146608261461f565b601182019050919050565b6000614676826145fc565b9150614682828561427d565b915061468d82614648565b9150614699828461427d565b91508190509392505050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006146db60208361304d565b91506146e6826146a5565b602082019050919050565b6000602082019050818103600083015261470a816146ce565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614747601c8361304d565b915061475282614711565b602082019050919050565b600060208201905081810360008301526147768161473a565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006147b360198361304d565b91506147be8261477d565b602082019050919050565b600060208201905081810360008301526147e2816147a6565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061484560328361304d565b9150614850826147e9565b604082019050919050565b6000602082019050818103600083015261487481614838565b9050919050565b6000614886826130fd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156148b9576148b861451a565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006148fe826130fd565b9150614909836130fd565b925082614919576149186148c4565b5b828204905092915050565b600061492f826130fd565b915061493a836130fd565b92508261494a576149496148c4565b5b828206905092915050565b6000614960826130fd565b915061496b836130fd565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156149a4576149a361451a565b5b828202905092915050565b60006149ba826130fd565b915060008214156149ce576149cd61451a565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000614a0f60208361304d565b9150614a1a826149d9565b602082019050919050565b60006020820190508181036000830152614a3e81614a02565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614a6c82614a45565b614a768185614a50565b9350614a8681856020860161305e565b614a8f81613091565b840191505092915050565b6000608082019050614aaf6000830187613192565b614abc6020830186613192565b614ac96040830185613228565b8181036060830152614adb8184614a61565b905095945050505050565b600081519050614af581612fb3565b92915050565b600060208284031215614b1157614b10612f7d565b5b6000614b1f84828501614ae6565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122035fbe98a37194936c6ae1b6074f49f012cff3d585424ac636be76eb866739c9f64736f6c63430008090033

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

000000000000000000000000cf2d2da4c2f9b0675a197febc6708704834f9c24

-----Decoded View---------------
Arg [0] : admin (address): 0xcF2D2dA4c2F9B0675A197FEbC6708704834f9c24

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000cf2d2da4c2f9b0675a197febc6708704834f9c24


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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