- We're indexing this chain right now. Some of the counts may be inaccurate.

Contract Address Details

0x34F1A7e97fd2ce72F3fe01E4DCF2778E64DE9e07

Contract Name
DomainWalletOracle
Creator
0xb8907c–4d2e8f at 0xb64fd2–1cc6b1
Balance
0 LIT
Tokens
Fetching tokens...
Transactions
0 Transactions
Transfers
0 Transfers
Gas Used
Fetching gas used...
Last Balance Update
2793394
Contract name:
DomainWalletOracle




Optimization enabled
false
Compiler version
v0.8.17+commit.8df45f5f




Verified at
2023-06-25T04:32:34.823431Z

Constructor Arguments

000000000000000000000000e169d088278f253601a8828fccb1c16ece223080

Arg [0] (address) : 0xe169d088278f253601a8828fccb1c16ece223080

              

contracts/domain-wallets/DomainWalletOracle.sol

//SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.17;

import "@openzeppelin/contracts/access/AccessControl.sol";

struct DomainWallet {
    bytes user_id;
    uint64 id;
    uint256 pkpTokenId;
    bytes uri;
    uint ttl;
    bool isWallet;
    bool isRegistered;
}

contract DomainWalletOracle is AccessControl {
    // uuid to domain wallet instance
    mapping(uint64 => DomainWallet) domainWallets;
    // pkpTokenId to DomainWallet
    mapping(uint256 => DomainWallet) pkpOwners;
    uint calcTime = 0;
    uint nonce = 0;
    address registry;

    bytes32 public constant REGISTRY_ROLE = keccak256("ADMIN"); // 0xdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42

    event Registered(uint64 id, bytes userId, uint256 tokenId);
    event Removed(uint64 id, bytes userId);
    event Revoked(uint64 id, uint256 pkptokenId);
    event Expired(uint64 id, uint ttl);

    constructor(address _registry) {
        registry = _registry;
        _grantRole(REGISTRY_ROLE, registry);
    }

    function isOwner(uint256 pkpTokenId) public view returns (bool) {
        if (pkpOwners[pkpTokenId].isRegistered == false) {
            return (false);
        }

        return (true);
    }

    function isRouted(uint64 id) public view returns (bool) {
        return (domainWallets[id].isRegistered);
    }

    function hasOwner(uint64 id) public view returns (bool) {
        if (domainWallets[id].isRegistered == false) {
            return (false);
        }
        return (true);
    }

    function hasExpired(uint64 id) public returns (bool) {
        uint ttl = domainWallets[id].ttl;
        bool isExpired = ttl > block.timestamp;
        if (isExpired) {
            emit Expired(id, ttl);
            return (true);
        }

        return (false);
    }

    function getDomainById(uint64 id) public view returns (bytes memory) {
        return (domainWallets[id].uri);
    }

    function getDomainUri(uint64 id) public view returns (bytes memory) {
        return (domainWallets[id].uri);
    }

    function getExpirery(uint64 id) public view returns (uint) {
        return (domainWallets[id].ttl);
    }

    function getPkpTokenId(uint64 id) public view returns (uint256) {
        return (domainWallets[id].pkpTokenId);
    }

    function registerDomain(
        uint64 id,
        bytes memory userId,
        bytes memory uri,
        uint256 pkpTokenId,
        uint ttl
    ) public {
        require(
            hasRole(REGISTRY_ROLE, msg.sender),
            "DomainWalletOracle: must have registry role"
        );

        domainWallets[id].user_id = userId;
        domainWallets[id].pkpTokenId = pkpTokenId;
        domainWallets[id].uri = uri;
        domainWallets[id].ttl = ttl;
        domainWallets[id].isRegistered = true;
        domainWallets[id].isWallet = true;

        /// set the value in the pkpOwners map from the domainWallets map to avoid memory storage.
        pkpOwners[pkpTokenId] = domainWallets[id];
        emit Registered(id, userId, pkpTokenId);
    }

    function registerPKP(uint64 id, uint256 pkpTokenId) public returns (bool) {
        require(
            hasRole(REGISTRY_ROLE, msg.sender),
            "DomainWalletOracle: must have registry role"
        );

        if (domainWallets[id].isWallet == false) {
            return (false);
        }

        domainWallets[id].pkpTokenId = pkpTokenId;

        return (true);
    }

    function removeDomain(uint64 id) public returns (bool) {
        require(
            hasRole(REGISTRY_ROLE, msg.sender),
            "DomainWalletOracle: must have registry role"
        );
        if (domainWallets[id].isWallet == false) {
            return (false);
        }
        delete pkpOwners[domainWallets[id].pkpTokenId]; // delete the pkp ownership relationship
        domainWallets[id].isRegistered = false;
        domainWallets[id].isWallet = false;
        domainWallets[id].pkpTokenId = 0; // null the tokenId since the owner is no longer this pkp
        emit Removed(id, domainWallets[id].user_id);

        domainWallets[id].user_id = hex"00"; // 0 out the bytes for the user id

        return (true);
    }

    function revokeDomain(uint64 id) public returns (bool) {
        require(
            hasRole(REGISTRY_ROLE, msg.sender),
            "DomainWalletOracle: must have registry role"
        );

        if (domainWallets[id].isRegistered == false) {
            return (false);
        }

        domainWallets[id].isRegistered = false;

        emit Revoked(id, domainWallets[id].pkpTokenId);

        domainWallets[id].pkpTokenId = 0; // null the tokenId since the owner is no longer this pkp;
        domainWallets[id].user_id = hex"00"; // 0 out the bytes for the user id

        return (true);
    }
}
        

@openzeppelin/contracts/access/AccessControl.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

@openzeppelin/contracts/access/IAccessControl.sol

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

@openzeppelin/contracts/utils/Context.sol

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

pragma solidity ^0.8.0;

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

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

@openzeppelin/contracts/utils/Strings.sol

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

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

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

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

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

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

@openzeppelin/contracts/utils/introspection/ERC165.sol

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

@openzeppelin/contracts/utils/introspection/IERC165.sol

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

pragma solidity ^0.8.0;

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

@openzeppelin/contracts/utils/math/Math.sol

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_registry","internalType":"address"}]},{"type":"event","name":"Expired","inputs":[{"type":"uint64","name":"id","internalType":"uint64","indexed":false},{"type":"uint256","name":"ttl","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Registered","inputs":[{"type":"uint64","name":"id","internalType":"uint64","indexed":false},{"type":"bytes","name":"userId","internalType":"bytes","indexed":false},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Removed","inputs":[{"type":"uint64","name":"id","internalType":"uint64","indexed":false},{"type":"bytes","name":"userId","internalType":"bytes","indexed":false}],"anonymous":false},{"type":"event","name":"Revoked","inputs":[{"type":"uint64","name":"id","internalType":"uint64","indexed":false},{"type":"uint256","name":"pkptokenId","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"RoleAdminChanged","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"previousAdminRole","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"newAdminRole","internalType":"bytes32","indexed":true}],"anonymous":false},{"type":"event","name":"RoleGranted","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RoleRevoked","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DEFAULT_ADMIN_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"REGISTRY_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes","name":"","internalType":"bytes"}],"name":"getDomainById","inputs":[{"type":"uint64","name":"id","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes","name":"","internalType":"bytes"}],"name":"getDomainUri","inputs":[{"type":"uint64","name":"id","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getExpirery","inputs":[{"type":"uint64","name":"id","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getPkpTokenId","inputs":[{"type":"uint64","name":"id","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"getRoleAdmin","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"grantRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hasExpired","inputs":[{"type":"uint64","name":"id","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hasOwner","inputs":[{"type":"uint64","name":"id","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hasRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isOwner","inputs":[{"type":"uint256","name":"pkpTokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isRouted","inputs":[{"type":"uint64","name":"id","internalType":"uint64"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"registerDomain","inputs":[{"type":"uint64","name":"id","internalType":"uint64"},{"type":"bytes","name":"userId","internalType":"bytes"},{"type":"bytes","name":"uri","internalType":"bytes"},{"type":"uint256","name":"pkpTokenId","internalType":"uint256"},{"type":"uint256","name":"ttl","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"registerPKP","inputs":[{"type":"uint64","name":"id","internalType":"uint64"},{"type":"uint256","name":"pkpTokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"removeDomain","inputs":[{"type":"uint64","name":"id","internalType":"uint64"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"revokeDomain","inputs":[{"type":"uint64","name":"id","internalType":"uint64"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"revokeRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]}]
            

Contract Creation Code

0x6080604052600060035560006004553480156200001b57600080fd5b5060405162002ae938038062002ae98339818101604052810190620000419190620002aa565b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620000d67fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16620000dd60201b60201c565b50620002dc565b620000ef8282620001ce60201b60201c565b620001ca57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200016f6200023860201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002728262000245565b9050919050565b620002848162000265565b81146200029057600080fd5b50565b600081519050620002a48162000279565b92915050565b600060208284031215620002c357620002c262000240565b5b6000620002d38482850162000293565b91505092915050565b6127fd80620002ec6000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c8063850b422e116100ad578063a2f4210411610071578063a2f42104146103a1578063b6f70be0146103d1578063c9b2874914610401578063d547741f14610431578063d95c78c01461044d5761012c565b8063850b422e146102c35780638596f1c4146102f357806391d14854146103235780639800646114610353578063a217fddf146103835761012c565b806339c7639c116100f457806339c7639c146101e55780633dfee4ec1461021557806342f1e879146102455780637f36362f14610263578063847f5b22146102935761012c565b806301ffc9a7146101315780630c91d34214610161578063248a9ca31461017d5780632f2ff15d146101ad57806336568abe146101c9575b600080fd5b61014b6004803603810190610146919061187b565b61047d565b60405161015891906118c3565b60405180910390f35b61017b60048036038101906101769190611a9a565b6104f7565b005b61019760048036038101906101929190611b83565b61080c565b6040516101a49190611bbf565b60405180910390f35b6101c760048036038101906101c29190611c38565b61082b565b005b6101e360048036038101906101de9190611c38565b61084c565b005b6101ff60048036038101906101fa9190611c78565b6108cf565b60405161020c91906118c3565b60405180910390f35b61022f600480360381019061022a9190611ca5565b610912565b60405161023c91906118c3565b60405180910390f35b61024d610bec565b60405161025a9190611bbf565b60405180910390f35b61027d60048036038101906102789190611ca5565b610c10565b60405161028a91906118c3565b60405180910390f35b6102ad60048036038101906102a89190611ca5565b610c67565b6040516102ba9190611d51565b60405180910390f35b6102dd60048036038101906102d89190611ca5565b610d23565b6040516102ea9190611d51565b60405180910390f35b61030d60048036038101906103089190611ca5565b610ddf565b60405161031a91906118c3565b60405180910390f35b61033d60048036038101906103389190611c38565b610e20565b60405161034a91906118c3565b60405180910390f35b61036d60048036038101906103689190611ca5565b610e8a565b60405161037a91906118c3565b60405180910390f35b61038b61106f565b6040516103989190611bbf565b60405180910390f35b6103bb60048036038101906103b69190611ca5565b611076565b6040516103c89190611d82565b60405180910390f35b6103eb60048036038101906103e69190611ca5565b6110aa565b6040516103f891906118c3565b60405180910390f35b61041b60048036038101906104169190611d9d565b611137565b60405161042891906118c3565b60405180910390f35b61044b60048036038101906104469190611c38565b611228565b005b61046760048036038101906104629190611ca5565b611249565b6040516104749190611d82565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806104f057506104ef8261127d565b5b9050919050565b6105217fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4233610e20565b610560576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161055790611e60565b60405180910390fd5b83600160008767ffffffffffffffff1667ffffffffffffffff1681526020019081526020016000206000019081610597919061208c565b5081600160008767ffffffffffffffff1667ffffffffffffffff1681526020019081526020016000206002018190555082600160008767ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060030190816105fe919061208c565b5080600160008767ffffffffffffffff1667ffffffffffffffff1681526020019081526020016000206004018190555060018060008767ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060050160016101000a81548160ff02191690831515021790555060018060008767ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060050160006101000a81548160ff021916908315150217905550600160008667ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060026000848152602001908152602001600020600082018160000190816107009190612174565b506001820160009054906101000a900467ffffffffffffffff168160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060028201548160020155600382018160030190816107629190612174565b50600482015481600401556005820160009054906101000a900460ff168160050160006101000a81548160ff0219169083151502179055506005820160019054906101000a900460ff168160050160016101000a81548160ff0219169083151502179055509050507f0c4a7b4257cc983198b6124ef16d2152109a10515e26ad6183d80617786e8d7c8585846040516107fd9392919061226b565b60405180910390a15050505050565b6000806000838152602001908152602001600020600101549050919050565b6108348261080c565b61083d816112e7565b61084783836112fb565b505050565b6108546113db565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146108c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b89061231b565b60405180910390fd5b6108cb82826113e3565b5050565b60008015156002600084815260200190815260200160002060050160019054906101000a900460ff16151503610908576000905061090d565b600190505b919050565b600061093e7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4233610e20565b61097d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490611e60565b60405180910390fd5b60001515600160008467ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060050160009054906101000a900460ff161515036109c95760009050610be7565b60026000600160008567ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060020154815260200190815260200160002060008082016000610a1791906117b2565b6001820160006101000a81549067ffffffffffffffff02191690556002820160009055600382016000610a4a91906117b2565b60048201600090556005820160006101000a81549060ff02191690556005820160016101000a81549060ff021916905550506000600160008467ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060050160016101000a81548160ff0219169083151502179055506000600160008467ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060050160006101000a81548160ff0219169083151502179055506000600160008467ffffffffffffffff1667ffffffffffffffff168152602001908152602001600020600201819055507fe6c7218fcae4ed4870b84ce0215faaeda5c8ea428f00b5f039cd1edb815bd28682600160008567ffffffffffffffff1667ffffffffffffffff168152602001908152602001600020600001604051610b8c9291906123bf565b60405180910390a16040518060400160405280600181526020016000815250600160008467ffffffffffffffff1667ffffffffffffffff1681526020019081526020016000206000019081610be191906123fa565b50600190505b919050565b7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4281565b6000801515600160008467ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060050160019054906101000a900460ff16151503610c5d5760009050610c62565b600190505b919050565b6060600160008367ffffffffffffffff1667ffffffffffffffff1681526020019081526020016000206003018054610c9e90611eaf565b80601f0160208091040260200160405190810160405280929190818152602001828054610cca90611eaf565b8015610d175780601f10610cec57610100808354040283529160200191610d17565b820191906000526020600020905b815481529060010190602001808311610cfa57829003601f168201915b50505050509050919050565b6060600160008367ffffffffffffffff1667ffffffffffffffff1681526020019081526020016000206003018054610d5a90611eaf565b80601f0160208091040260200160405190810160405280929190818152602001828054610d8690611eaf565b8015610dd35780601f10610da857610100808354040283529160200191610dd3565b820191906000526020600020905b815481529060010190602001808311610db657829003601f168201915b50505050509050919050565b6000600160008367ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060050160019054906101000a900460ff169050919050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000610eb67fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4233610e20565b610ef5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eec90611e60565b60405180910390fd5b60001515600160008467ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060050160019054906101000a900460ff16151503610f41576000905061106a565b6000600160008467ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060050160016101000a81548160ff0219169083151502179055507fecd217e09f488cce368823cf22a1f3877c30635645f181319c79ce88292845fb82600160008567ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060020154604051610fdf9291906124cc565b60405180910390a16000600160008467ffffffffffffffff1667ffffffffffffffff168152602001908152602001600020600201819055506040518060400160405280600181526020016000815250600160008467ffffffffffffffff1667ffffffffffffffff168152602001908152602001600020600001908161106491906123fa565b50600190505b919050565b6000801b81565b6000600160008367ffffffffffffffff1667ffffffffffffffff168152602001908152602001600020600201549050919050565b600080600160008467ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060040154905060004282119050801561112b577f91cc37bcaeec164e5bc377adb7e09e2a00c91458581814d0294b11a1ab47958a84836040516111189291906124cc565b60405180910390a1600192505050611132565b6000925050505b919050565b60006111637fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4233610e20565b6111a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119990611e60565b60405180910390fd5b60001515600160008567ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060050160009054906101000a900460ff161515036111ee5760009050611222565b81600160008567ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060020181905550600190505b92915050565b6112318261080c565b61123a816112e7565b61124483836113e3565b505050565b6000600160008367ffffffffffffffff1667ffffffffffffffff168152602001908152602001600020600401549050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6112f8816112f36113db565b6114c4565b50565b6113058282610e20565b6113d757600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061137c6113db565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b6113ed8282610e20565b156114c057600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506114656113db565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6114ce8282610e20565b611545576114db81611549565b6114e98360001c6020611576565b6040516020016114fa9291906125c9565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153c919061263c565b60405180910390fd5b5050565b606061156f8273ffffffffffffffffffffffffffffffffffffffff16601460ff16611576565b9050919050565b606060006002836002611589919061268d565b61159391906126cf565b67ffffffffffffffff8111156115ac576115ab611939565b5b6040519080825280601f01601f1916602001820160405280156115de5781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061161657611615612703565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061167a57611679612703565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026116ba919061268d565b6116c491906126cf565b90505b6001811115611764577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061170657611705612703565b5b1a60f81b82828151811061171d5761171c612703565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061175d90612732565b90506116c7565b50600084146117a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179f906127a7565b60405180910390fd5b8091505092915050565b5080546117be90611eaf565b6000825580601f106117d057506117ef565b601f0160209004906000526020600020908101906117ee91906117f2565b5b50565b5b8082111561180b5760008160009055506001016117f3565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61185881611823565b811461186357600080fd5b50565b6000813590506118758161184f565b92915050565b60006020828403121561189157611890611819565b5b600061189f84828501611866565b91505092915050565b60008115159050919050565b6118bd816118a8565b82525050565b60006020820190506118d860008301846118b4565b92915050565b600067ffffffffffffffff82169050919050565b6118fb816118de565b811461190657600080fd5b50565b600081359050611918816118f2565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61197182611928565b810181811067ffffffffffffffff821117156119905761198f611939565b5b80604052505050565b60006119a361180f565b90506119af8282611968565b919050565b600067ffffffffffffffff8211156119cf576119ce611939565b5b6119d882611928565b9050602081019050919050565b82818337600083830152505050565b6000611a07611a02846119b4565b611999565b905082815260208101848484011115611a2357611a22611923565b5b611a2e8482856119e5565b509392505050565b600082601f830112611a4b57611a4a61191e565b5b8135611a5b8482602086016119f4565b91505092915050565b6000819050919050565b611a7781611a64565b8114611a8257600080fd5b50565b600081359050611a9481611a6e565b92915050565b600080600080600060a08688031215611ab657611ab5611819565b5b6000611ac488828901611909565b955050602086013567ffffffffffffffff811115611ae557611ae461181e565b5b611af188828901611a36565b945050604086013567ffffffffffffffff811115611b1257611b1161181e565b5b611b1e88828901611a36565b9350506060611b2f88828901611a85565b9250506080611b4088828901611a85565b9150509295509295909350565b6000819050919050565b611b6081611b4d565b8114611b6b57600080fd5b50565b600081359050611b7d81611b57565b92915050565b600060208284031215611b9957611b98611819565b5b6000611ba784828501611b6e565b91505092915050565b611bb981611b4d565b82525050565b6000602082019050611bd46000830184611bb0565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611c0582611bda565b9050919050565b611c1581611bfa565b8114611c2057600080fd5b50565b600081359050611c3281611c0c565b92915050565b60008060408385031215611c4f57611c4e611819565b5b6000611c5d85828601611b6e565b9250506020611c6e85828601611c23565b9150509250929050565b600060208284031215611c8e57611c8d611819565b5b6000611c9c84828501611a85565b91505092915050565b600060208284031215611cbb57611cba611819565b5b6000611cc984828501611909565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611d0c578082015181840152602081019050611cf1565b60008484015250505050565b6000611d2382611cd2565b611d2d8185611cdd565b9350611d3d818560208601611cee565b611d4681611928565b840191505092915050565b60006020820190508181036000830152611d6b8184611d18565b905092915050565b611d7c81611a64565b82525050565b6000602082019050611d976000830184611d73565b92915050565b60008060408385031215611db457611db3611819565b5b6000611dc285828601611909565b9250506020611dd385828601611a85565b9150509250929050565b600082825260208201905092915050565b7f446f6d61696e57616c6c65744f7261636c653a206d757374206861766520726560008201527f67697374727920726f6c65000000000000000000000000000000000000000000602082015250565b6000611e4a602b83611ddd565b9150611e5582611dee565b604082019050919050565b60006020820190508181036000830152611e7981611e3d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680611ec757607f821691505b602082108103611eda57611ed9611e80565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302611f427fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82611f05565b611f4c8683611f05565b95508019841693508086168417925050509392505050565b6000819050919050565b6000611f89611f84611f7f84611a64565b611f64565b611a64565b9050919050565b6000819050919050565b611fa383611f6e565b611fb7611faf82611f90565b848454611f12565b825550505050565b600090565b611fcc611fbf565b611fd7818484611f9a565b505050565b5b81811015611ffb57611ff0600082611fc4565b600181019050611fdd565b5050565b601f8211156120405761201181611ee0565b61201a84611ef5565b81016020851015612029578190505b61203d61203585611ef5565b830182611fdc565b50505b505050565b600082821c905092915050565b600061206360001984600802612045565b1980831691505092915050565b600061207c8383612052565b9150826002028217905092915050565b61209582611cd2565b67ffffffffffffffff8111156120ae576120ad611939565b5b6120b88254611eaf565b6120c3828285611fff565b600060209050601f8311600181146120f657600084156120e4578287015190505b6120ee8582612070565b865550612156565b601f19841661210486611ee0565b60005b8281101561212c57848901518255600182019150602085019450602081019050612107565b868310156121495784890151612145601f891682612052565b8355505b6001600288020188555050505b505050505050565b60008154905061216d81611eaf565b9050919050565b81810361218257505061225a565b61218b8261215e565b67ffffffffffffffff8111156121a4576121a3611939565b5b6121ae8254611eaf565b6121b9828285611fff565b6000601f8311600181146121e857600084156121d6578287015490505b6121e08582612070565b865550612253565b601f1984166121f687611ee0565b965061220186611ee0565b60005b8281101561222957848901548255600182019150600185019450602081019050612204565b868310156122465784890154612242601f891682612052565b8355505b6001600288020188555050505b5050505050505b565b612265816118de565b82525050565b6000606082019050612280600083018661225c565b81810360208301526122928185611d18565b90506122a16040830184611d73565b949350505050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000612305602f83611ddd565b9150612310826122a9565b604082019050919050565b60006020820190508181036000830152612334816122f8565b9050919050565b6000815461234881611eaf565b6123528186611cdd565b9450600182166000811461236d5760018114612383576123b6565b60ff1983168652811515602002860193506123b6565b61238c85611ee0565b60005b838110156123ae5781548189015260018201915060208101905061238f565b808801955050505b50505092915050565b60006040820190506123d4600083018561225c565b81810360208301526123e6818461233b565b90509392505050565b600081519050919050565b612403826123ef565b67ffffffffffffffff81111561241c5761241b611939565b5b6124268254611eaf565b612431828285611fff565b600060209050601f8311600181146124645760008415612452578287015190505b61245c8582612070565b8655506124c4565b601f19841661247286611ee0565b60005b8281101561249a57848901518255600182019150602085019450602081019050612475565b868310156124b757848901516124b3601f891682612052565b8355505b6001600288020188555050505b505050505050565b60006040820190506124e1600083018561225c565b6124ee6020830184611d73565b9392505050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006125366017836124f5565b915061254182612500565b601782019050919050565b6000612557826123ef565b61256181856124f5565b9350612571818560208601611cee565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006125b36011836124f5565b91506125be8261257d565b601182019050919050565b60006125d482612529565b91506125e0828561254c565b91506125eb826125a6565b91506125f7828461254c565b91508190509392505050565b600061260e826123ef565b6126188185611ddd565b9350612628818560208601611cee565b61263181611928565b840191505092915050565b600060208201905081810360008301526126568184612603565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061269882611a64565b91506126a383611a64565b92508282026126b181611a64565b915082820484148315176126c8576126c761265e565b5b5092915050565b60006126da82611a64565b91506126e583611a64565b92508282019050808211156126fd576126fc61265e565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061273d82611a64565b9150600082036127505761274f61265e565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000612791602083611ddd565b915061279c8261275b565b602082019050919050565b600060208201905081810360008301526127c081612784565b905091905056fea26469706673582212200d95b3c05db73714894266524a98244492a44b819fb8f6ec16c46cf8811601e564736f6c63430008110033000000000000000000000000e169d088278f253601a8828fccb1c16ece223080

Deployed ByteCode

0x608060405234801561001057600080fd5b506004361061012c5760003560e01c8063850b422e116100ad578063a2f4210411610071578063a2f42104146103a1578063b6f70be0146103d1578063c9b2874914610401578063d547741f14610431578063d95c78c01461044d5761012c565b8063850b422e146102c35780638596f1c4146102f357806391d14854146103235780639800646114610353578063a217fddf146103835761012c565b806339c7639c116100f457806339c7639c146101e55780633dfee4ec1461021557806342f1e879146102455780637f36362f14610263578063847f5b22146102935761012c565b806301ffc9a7146101315780630c91d34214610161578063248a9ca31461017d5780632f2ff15d146101ad57806336568abe146101c9575b600080fd5b61014b6004803603810190610146919061187b565b61047d565b60405161015891906118c3565b60405180910390f35b61017b60048036038101906101769190611a9a565b6104f7565b005b61019760048036038101906101929190611b83565b61080c565b6040516101a49190611bbf565b60405180910390f35b6101c760048036038101906101c29190611c38565b61082b565b005b6101e360048036038101906101de9190611c38565b61084c565b005b6101ff60048036038101906101fa9190611c78565b6108cf565b60405161020c91906118c3565b60405180910390f35b61022f600480360381019061022a9190611ca5565b610912565b60405161023c91906118c3565b60405180910390f35b61024d610bec565b60405161025a9190611bbf565b60405180910390f35b61027d60048036038101906102789190611ca5565b610c10565b60405161028a91906118c3565b60405180910390f35b6102ad60048036038101906102a89190611ca5565b610c67565b6040516102ba9190611d51565b60405180910390f35b6102dd60048036038101906102d89190611ca5565b610d23565b6040516102ea9190611d51565b60405180910390f35b61030d60048036038101906103089190611ca5565b610ddf565b60405161031a91906118c3565b60405180910390f35b61033d60048036038101906103389190611c38565b610e20565b60405161034a91906118c3565b60405180910390f35b61036d60048036038101906103689190611ca5565b610e8a565b60405161037a91906118c3565b60405180910390f35b61038b61106f565b6040516103989190611bbf565b60405180910390f35b6103bb60048036038101906103b69190611ca5565b611076565b6040516103c89190611d82565b60405180910390f35b6103eb60048036038101906103e69190611ca5565b6110aa565b6040516103f891906118c3565b60405180910390f35b61041b60048036038101906104169190611d9d565b611137565b60405161042891906118c3565b60405180910390f35b61044b60048036038101906104469190611c38565b611228565b005b61046760048036038101906104629190611ca5565b611249565b6040516104749190611d82565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806104f057506104ef8261127d565b5b9050919050565b6105217fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4233610e20565b610560576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161055790611e60565b60405180910390fd5b83600160008767ffffffffffffffff1667ffffffffffffffff1681526020019081526020016000206000019081610597919061208c565b5081600160008767ffffffffffffffff1667ffffffffffffffff1681526020019081526020016000206002018190555082600160008767ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060030190816105fe919061208c565b5080600160008767ffffffffffffffff1667ffffffffffffffff1681526020019081526020016000206004018190555060018060008767ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060050160016101000a81548160ff02191690831515021790555060018060008767ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060050160006101000a81548160ff021916908315150217905550600160008667ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060026000848152602001908152602001600020600082018160000190816107009190612174565b506001820160009054906101000a900467ffffffffffffffff168160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060028201548160020155600382018160030190816107629190612174565b50600482015481600401556005820160009054906101000a900460ff168160050160006101000a81548160ff0219169083151502179055506005820160019054906101000a900460ff168160050160016101000a81548160ff0219169083151502179055509050507f0c4a7b4257cc983198b6124ef16d2152109a10515e26ad6183d80617786e8d7c8585846040516107fd9392919061226b565b60405180910390a15050505050565b6000806000838152602001908152602001600020600101549050919050565b6108348261080c565b61083d816112e7565b61084783836112fb565b505050565b6108546113db565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146108c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b89061231b565b60405180910390fd5b6108cb82826113e3565b5050565b60008015156002600084815260200190815260200160002060050160019054906101000a900460ff16151503610908576000905061090d565b600190505b919050565b600061093e7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4233610e20565b61097d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490611e60565b60405180910390fd5b60001515600160008467ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060050160009054906101000a900460ff161515036109c95760009050610be7565b60026000600160008567ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060020154815260200190815260200160002060008082016000610a1791906117b2565b6001820160006101000a81549067ffffffffffffffff02191690556002820160009055600382016000610a4a91906117b2565b60048201600090556005820160006101000a81549060ff02191690556005820160016101000a81549060ff021916905550506000600160008467ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060050160016101000a81548160ff0219169083151502179055506000600160008467ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060050160006101000a81548160ff0219169083151502179055506000600160008467ffffffffffffffff1667ffffffffffffffff168152602001908152602001600020600201819055507fe6c7218fcae4ed4870b84ce0215faaeda5c8ea428f00b5f039cd1edb815bd28682600160008567ffffffffffffffff1667ffffffffffffffff168152602001908152602001600020600001604051610b8c9291906123bf565b60405180910390a16040518060400160405280600181526020016000815250600160008467ffffffffffffffff1667ffffffffffffffff1681526020019081526020016000206000019081610be191906123fa565b50600190505b919050565b7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4281565b6000801515600160008467ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060050160019054906101000a900460ff16151503610c5d5760009050610c62565b600190505b919050565b6060600160008367ffffffffffffffff1667ffffffffffffffff1681526020019081526020016000206003018054610c9e90611eaf565b80601f0160208091040260200160405190810160405280929190818152602001828054610cca90611eaf565b8015610d175780601f10610cec57610100808354040283529160200191610d17565b820191906000526020600020905b815481529060010190602001808311610cfa57829003601f168201915b50505050509050919050565b6060600160008367ffffffffffffffff1667ffffffffffffffff1681526020019081526020016000206003018054610d5a90611eaf565b80601f0160208091040260200160405190810160405280929190818152602001828054610d8690611eaf565b8015610dd35780601f10610da857610100808354040283529160200191610dd3565b820191906000526020600020905b815481529060010190602001808311610db657829003601f168201915b50505050509050919050565b6000600160008367ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060050160019054906101000a900460ff169050919050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000610eb67fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4233610e20565b610ef5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eec90611e60565b60405180910390fd5b60001515600160008467ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060050160019054906101000a900460ff16151503610f41576000905061106a565b6000600160008467ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060050160016101000a81548160ff0219169083151502179055507fecd217e09f488cce368823cf22a1f3877c30635645f181319c79ce88292845fb82600160008567ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060020154604051610fdf9291906124cc565b60405180910390a16000600160008467ffffffffffffffff1667ffffffffffffffff168152602001908152602001600020600201819055506040518060400160405280600181526020016000815250600160008467ffffffffffffffff1667ffffffffffffffff168152602001908152602001600020600001908161106491906123fa565b50600190505b919050565b6000801b81565b6000600160008367ffffffffffffffff1667ffffffffffffffff168152602001908152602001600020600201549050919050565b600080600160008467ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060040154905060004282119050801561112b577f91cc37bcaeec164e5bc377adb7e09e2a00c91458581814d0294b11a1ab47958a84836040516111189291906124cc565b60405180910390a1600192505050611132565b6000925050505b919050565b60006111637fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4233610e20565b6111a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119990611e60565b60405180910390fd5b60001515600160008567ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060050160009054906101000a900460ff161515036111ee5760009050611222565b81600160008567ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060020181905550600190505b92915050565b6112318261080c565b61123a816112e7565b61124483836113e3565b505050565b6000600160008367ffffffffffffffff1667ffffffffffffffff168152602001908152602001600020600401549050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6112f8816112f36113db565b6114c4565b50565b6113058282610e20565b6113d757600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061137c6113db565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b6113ed8282610e20565b156114c057600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506114656113db565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6114ce8282610e20565b611545576114db81611549565b6114e98360001c6020611576565b6040516020016114fa9291906125c9565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153c919061263c565b60405180910390fd5b5050565b606061156f8273ffffffffffffffffffffffffffffffffffffffff16601460ff16611576565b9050919050565b606060006002836002611589919061268d565b61159391906126cf565b67ffffffffffffffff8111156115ac576115ab611939565b5b6040519080825280601f01601f1916602001820160405280156115de5781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061161657611615612703565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061167a57611679612703565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026116ba919061268d565b6116c491906126cf565b90505b6001811115611764577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061170657611705612703565b5b1a60f81b82828151811061171d5761171c612703565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061175d90612732565b90506116c7565b50600084146117a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179f906127a7565b60405180910390fd5b8091505092915050565b5080546117be90611eaf565b6000825580601f106117d057506117ef565b601f0160209004906000526020600020908101906117ee91906117f2565b5b50565b5b8082111561180b5760008160009055506001016117f3565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61185881611823565b811461186357600080fd5b50565b6000813590506118758161184f565b92915050565b60006020828403121561189157611890611819565b5b600061189f84828501611866565b91505092915050565b60008115159050919050565b6118bd816118a8565b82525050565b60006020820190506118d860008301846118b4565b92915050565b600067ffffffffffffffff82169050919050565b6118fb816118de565b811461190657600080fd5b50565b600081359050611918816118f2565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61197182611928565b810181811067ffffffffffffffff821117156119905761198f611939565b5b80604052505050565b60006119a361180f565b90506119af8282611968565b919050565b600067ffffffffffffffff8211156119cf576119ce611939565b5b6119d882611928565b9050602081019050919050565b82818337600083830152505050565b6000611a07611a02846119b4565b611999565b905082815260208101848484011115611a2357611a22611923565b5b611a2e8482856119e5565b509392505050565b600082601f830112611a4b57611a4a61191e565b5b8135611a5b8482602086016119f4565b91505092915050565b6000819050919050565b611a7781611a64565b8114611a8257600080fd5b50565b600081359050611a9481611a6e565b92915050565b600080600080600060a08688031215611ab657611ab5611819565b5b6000611ac488828901611909565b955050602086013567ffffffffffffffff811115611ae557611ae461181e565b5b611af188828901611a36565b945050604086013567ffffffffffffffff811115611b1257611b1161181e565b5b611b1e88828901611a36565b9350506060611b2f88828901611a85565b9250506080611b4088828901611a85565b9150509295509295909350565b6000819050919050565b611b6081611b4d565b8114611b6b57600080fd5b50565b600081359050611b7d81611b57565b92915050565b600060208284031215611b9957611b98611819565b5b6000611ba784828501611b6e565b91505092915050565b611bb981611b4d565b82525050565b6000602082019050611bd46000830184611bb0565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611c0582611bda565b9050919050565b611c1581611bfa565b8114611c2057600080fd5b50565b600081359050611c3281611c0c565b92915050565b60008060408385031215611c4f57611c4e611819565b5b6000611c5d85828601611b6e565b9250506020611c6e85828601611c23565b9150509250929050565b600060208284031215611c8e57611c8d611819565b5b6000611c9c84828501611a85565b91505092915050565b600060208284031215611cbb57611cba611819565b5b6000611cc984828501611909565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611d0c578082015181840152602081019050611cf1565b60008484015250505050565b6000611d2382611cd2565b611d2d8185611cdd565b9350611d3d818560208601611cee565b611d4681611928565b840191505092915050565b60006020820190508181036000830152611d6b8184611d18565b905092915050565b611d7c81611a64565b82525050565b6000602082019050611d976000830184611d73565b92915050565b60008060408385031215611db457611db3611819565b5b6000611dc285828601611909565b9250506020611dd385828601611a85565b9150509250929050565b600082825260208201905092915050565b7f446f6d61696e57616c6c65744f7261636c653a206d757374206861766520726560008201527f67697374727920726f6c65000000000000000000000000000000000000000000602082015250565b6000611e4a602b83611ddd565b9150611e5582611dee565b604082019050919050565b60006020820190508181036000830152611e7981611e3d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680611ec757607f821691505b602082108103611eda57611ed9611e80565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302611f427fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82611f05565b611f4c8683611f05565b95508019841693508086168417925050509392505050565b6000819050919050565b6000611f89611f84611f7f84611a64565b611f64565b611a64565b9050919050565b6000819050919050565b611fa383611f6e565b611fb7611faf82611f90565b848454611f12565b825550505050565b600090565b611fcc611fbf565b611fd7818484611f9a565b505050565b5b81811015611ffb57611ff0600082611fc4565b600181019050611fdd565b5050565b601f8211156120405761201181611ee0565b61201a84611ef5565b81016020851015612029578190505b61203d61203585611ef5565b830182611fdc565b50505b505050565b600082821c905092915050565b600061206360001984600802612045565b1980831691505092915050565b600061207c8383612052565b9150826002028217905092915050565b61209582611cd2565b67ffffffffffffffff8111156120ae576120ad611939565b5b6120b88254611eaf565b6120c3828285611fff565b600060209050601f8311600181146120f657600084156120e4578287015190505b6120ee8582612070565b865550612156565b601f19841661210486611ee0565b60005b8281101561212c57848901518255600182019150602085019450602081019050612107565b868310156121495784890151612145601f891682612052565b8355505b6001600288020188555050505b505050505050565b60008154905061216d81611eaf565b9050919050565b81810361218257505061225a565b61218b8261215e565b67ffffffffffffffff8111156121a4576121a3611939565b5b6121ae8254611eaf565b6121b9828285611fff565b6000601f8311600181146121e857600084156121d6578287015490505b6121e08582612070565b865550612253565b601f1984166121f687611ee0565b965061220186611ee0565b60005b8281101561222957848901548255600182019150600185019450602081019050612204565b868310156122465784890154612242601f891682612052565b8355505b6001600288020188555050505b5050505050505b565b612265816118de565b82525050565b6000606082019050612280600083018661225c565b81810360208301526122928185611d18565b90506122a16040830184611d73565b949350505050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000612305602f83611ddd565b9150612310826122a9565b604082019050919050565b60006020820190508181036000830152612334816122f8565b9050919050565b6000815461234881611eaf565b6123528186611cdd565b9450600182166000811461236d5760018114612383576123b6565b60ff1983168652811515602002860193506123b6565b61238c85611ee0565b60005b838110156123ae5781548189015260018201915060208101905061238f565b808801955050505b50505092915050565b60006040820190506123d4600083018561225c565b81810360208301526123e6818461233b565b90509392505050565b600081519050919050565b612403826123ef565b67ffffffffffffffff81111561241c5761241b611939565b5b6124268254611eaf565b612431828285611fff565b600060209050601f8311600181146124645760008415612452578287015190505b61245c8582612070565b8655506124c4565b601f19841661247286611ee0565b60005b8281101561249a57848901518255600182019150602085019450602081019050612475565b868310156124b757848901516124b3601f891682612052565b8355505b6001600288020188555050505b505050505050565b60006040820190506124e1600083018561225c565b6124ee6020830184611d73565b9392505050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006125366017836124f5565b915061254182612500565b601782019050919050565b6000612557826123ef565b61256181856124f5565b9350612571818560208601611cee565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006125b36011836124f5565b91506125be8261257d565b601182019050919050565b60006125d482612529565b91506125e0828561254c565b91506125eb826125a6565b91506125f7828461254c565b91508190509392505050565b600061260e826123ef565b6126188185611ddd565b9350612628818560208601611cee565b61263181611928565b840191505092915050565b600060208201905081810360008301526126568184612603565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061269882611a64565b91506126a383611a64565b92508282026126b181611a64565b915082820484148315176126c8576126c761265e565b5b5092915050565b60006126da82611a64565b91506126e583611a64565b92508282019050808211156126fd576126fc61265e565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061273d82611a64565b9150600082036127505761274f61265e565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000612791602083611ddd565b915061279c8261275b565b602082019050919050565b600060208201905081810360008301526127c081612784565b905091905056fea26469706673582212200d95b3c05db73714894266524a98244492a44b819fb8f6ec16c46cf8811601e564736f6c63430008110033