Address Details
contract

0x0caa875DB7B96538a716a9853FF45e44bB39aB3D

Contract Name
PxaMarket
Creator
0xebd0a5–5c1367 at 0x7941eb–f6f22a
Balance
1.1 CELO ( )
Locked CELO Balance
0.00 CELO
Voting CELO Balance
0.00 CELO
Pending Unlocked Gold
0.00 CELO
Tokens
Fetching tokens...
Transactions
Fetching transactions...
Transfers
Fetching transfers...
Gas Used
Fetching gas used...
Last Balance Update
11621018
This contract has been verified via Sourcify. View contract in Sourcify repository
Contract name:
PxaMarket




Optimization enabled
false
Compiler version
v0.8.12+commit.f00d7308




EVM Version
london




Verified at
2022-05-25T07:36:28.660301Z

contracts/PxaMarket.sol

// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.12;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";
import "./IPxaMarket.sol";
import "./IPWS.sol";

contract PxaMarket is Pausable, IPxaMarket, AccessControl, ERC721Holder {
  // constants
  bytes32 public constant COORDINATOR = keccak256("COORDINATOR");
  uint256 public constant RATE_BASE = 1e6;

  mapping(uint256 => Order) _orders;

  // vars

  uint256 private _income;
  uint256[] private _orderIds = new uint256[](0);
  address private _pxaAddress;
  address private _pwsAddress;
  uint256 private _feeRatio;
  uint256 private _feeShareRatio;
  string public name = "PixelAva Market";

  constructor(address pxaAddr, address pxaWeightAddr) {
    _pxaAddress = pxaAddr;
    _pwsAddress = pxaWeightAddr;
    _feeRatio = 10000;
    _feeShareRatio = 500000;
    _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
    _grantRole(COORDINATOR, msg.sender);
  }

  function order(uint256 tokenId) external view returns (Order memory _order) {
    return _orders[tokenId];
  }

  function createOrder(uint256 tokenId, uint256 price) external whenNotPaused {
    require(IERC721(_pxaAddress).ownerOf(tokenId) == msg.sender, "PxaMarket: invalid token owner");
    IERC721(_pxaAddress).safeTransferFrom(msg.sender, address(this), tokenId);
    _orders[tokenId] = Order(msg.sender, tokenId, price, 0, _orderIds.length);
    _orderIds.push(tokenId);

    emit OrderCreated(tokenId, msg.sender, price);
  }

  function buy(uint256 tokenId) external payable whenNotPaused {
    require(msg.value >= _orders[tokenId].price, "PxaMarket: insufficient CELO");
    uint256 fee = (msg.value * _feeRatio) / RATE_BASE;
    uint256 rest = msg.value - fee;
    uint256 feeShare = (fee * _feeShareRatio) / RATE_BASE;
    _addDividend(feeShare);
    uint256 feeForOwner = fee - feeShare;
    _addIncome(feeForOwner);
    payable(_orders[tokenId].seller).transfer(rest);
    _claim(msg.sender, tokenId);
    IERC721(_pxaAddress).safeTransferFrom(address(this), msg.sender, tokenId);
    _remove(tokenId);

    emit Bought(tokenId, msg.value, _orders[tokenId].revenue);
  }

  function claim(uint256 tokenId) external payable whenNotPaused {
    _claim(msg.sender, tokenId);
  }

  function cancelOrder(uint256 tokenId) external payable whenNotPaused {
    require(msg.sender == _orders[tokenId].seller, "PxaMarket: invalid seller");
    uint256 revenue = _orders[tokenId].revenue;
    _claim(msg.sender, tokenId);
    _remove(tokenId);
    IERC721(_pxaAddress).safeTransferFrom(address(this), msg.sender, tokenId);

    emit OrderRemoved(tokenId, revenue);
  }

  function pxaAddress() external view returns (address) {
    return _pxaAddress;
  }

  function setPxaAddress(address value) external onlyRole(COORDINATOR) {
    _pxaAddress = value;
  }

  function pwsAddress() external view returns (address) {
    return _pwsAddress;
  }

  function setPwsAddress(address value) external onlyRole(COORDINATOR) {
    _pwsAddress = value;
  }

  function rateBase() external pure returns (uint256) {
    return RATE_BASE;
  }

  function feeRatio() external view returns (uint256) {
    return _feeRatio;
  }

  function setFeeRatio(uint256 value) external onlyRole(COORDINATOR) {
    _feeRatio = value;
  }

  function feeShareRatio() external view returns (uint256) {
    return _feeShareRatio;
  }

  function setFeeShareRatio(uint256 value) external onlyRole(COORDINATOR) {
    _feeShareRatio = value;
  }

  function shareIncome() public payable {
    uint256 _dividends = (msg.value * _feeShareRatio) / RATE_BASE;
    uint256 _ownerIncome = msg.value - _dividends;
    _addDividend(_dividends);
    _addIncome(_ownerIncome);
  }

  function addDividend() public payable {
    _addDividend(msg.value);
  }

  function income() external view returns (uint256) {
    return _income;
  }

  function addIncome() external payable {
    _addIncome(msg.value);
  }

  function claimIncome(address receiver, uint256 amount) external onlyRole(DEFAULT_ADMIN_ROLE) {
    require(_income >= amount && address(this).balance >= amount, "PxaMarket: insufficient income to claim");
    payable(receiver).transfer(amount);
    _income = _income - amount;
    emit IncomeClaimed(receiver, amount);
  }

  function withdraw(address receiver, uint256 amount) external onlyRole(DEFAULT_ADMIN_ROLE) {
    require(address(this).balance >= amount, "PxaMarket: insufficient balance to withdraw");
    payable(receiver).transfer(amount);
    emit Withdraw(receiver, amount);
  }

  function _remove(uint256 tokenId) internal {
    uint256 removeIndex = _orders[tokenId].index;
    uint256 replaceIndex = _orderIds.length - 1;
    _orderIds[removeIndex] = _orderIds[replaceIndex];
    _orders[_orderIds[replaceIndex]].index = removeIndex;
    delete _orders[tokenId];
    _orderIds.pop();
  }

  function _addDividend(uint256 amount) internal {
    if (_orderIds.length == 0) return;
    uint256 totalWeight = IPWS(_pwsAddress).totalWeightOf(_orderIds);
    for (uint256 i = 0; i < _orderIds.length; i++) {
      uint256 id = _orderIds[i];
      uint256 weight = IPWS(_pwsAddress).weight(id);
      uint256 revenue = (amount * weight) / totalWeight;
      _orders[id].revenue += revenue;
      emit RevenueIncreased(id, _orders[id].revenue);
    }
  }

  function _claim(address receiver, uint256 tokenId) internal {
    uint256 unclaimed = _orders[tokenId].revenue;
    if (unclaimed == 0) return;
    require(unclaimed <= address(this).balance, "PxaMarket: insufficient balance");
    payable(receiver).transfer(unclaimed);
    _orders[tokenId].revenue = 0;
    emit Claimed(tokenId, unclaimed);
  }

  function _addIncome(uint256 amount) internal {
    _income = _income + amount;
    emit IncomeAdded(amount);
  }

  function pause() external onlyRole(COORDINATOR) {
    _pause();
  }

  function resume() external onlyRole(COORDINATOR) {
    _unpause();
  }
}
        

/_openzeppelin/contracts/access/AccessControl.sol

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

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

/_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/security/Pausable.sol

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

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

/_openzeppelin/contracts/token/ERC721/IERC721.sol

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

/_openzeppelin/contracts/token/ERC721/IERC721Receiver.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

/_openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol

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

pragma solidity ^0.8.0;

import "../IERC721Receiver.sol";

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

/_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 v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

/contracts/IPWS.sol

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

pragma solidity ^0.8.12;

interface IPWS {
  event WeightAdded(uint256 indexed id, uint256 amount);
  event WeightReduced(uint256 indexed id, uint256 amount);

  function weight(uint256 id) external view returns (uint256);

  function totalWeightOf(uint256[] memory _ids) external view returns (uint256);

  function addWeight(uint256 id, uint256 amount) external;

  function reduceWeight(uint256 id, uint256 amount) external;
}
          

/contracts/IPxaMarket.sol

// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.12;

interface IPxaMarket {
  struct Order {
    address seller;
    uint256 tokenId;
    uint256 price;
    uint256 revenue;
    uint256 index;
  }

  event OrderCreated(uint256 indexed tokenId, address seller, uint256 price);
  event Bought(uint256 indexed tokenId, uint256 price, uint256 revenue);
  event Claimed(uint256 indexed tokenId, uint256 revenue);
  event OrderRemoved(uint256 indexed tokenId, uint256 revenue);
  event RevenueIncreased(uint256 indexed tokenId, uint256 revenue);
  event IncomeAdded(uint256 amount);
  event IncomeClaimed(address indexed receiver, uint256 amount);
  event Withdraw(address indexed receiver, uint256 amount);

  function rateBase() external view returns (uint256);

  function name() external view returns (string memory);

  function order(uint256 tokenId) external view returns (Order memory order);

  function createOrder(uint256 tokenId, uint256 price) external;

  function buy(uint256 tokenId) external payable;

  function claim(uint256 tokenId) external payable;

  function cancelOrder(uint256 tokenId) external payable;

  function pxaAddress() external view returns (address);

  function setPxaAddress(address value) external;

  function pwsAddress() external view returns (address);

  function setPwsAddress(address value) external;

  function feeRatio() external view returns (uint256);

  function setFeeRatio(uint256 value) external;

  function feeShareRatio() external view returns (uint256);

  function setFeeShareRatio(uint256 value) external;

  function addDividend() external payable;

  function shareIncome() external payable;

  function income() external view returns (uint256);

  function addIncome() external payable;

  function claimIncome(address receiver, uint256 amount) external;

  function withdraw(address receiver, uint256 amount) external;
}
          

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"pxaAddr","internalType":"address"},{"type":"address","name":"pxaWeightAddr","internalType":"address"}]},{"type":"event","name":"Bought","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"uint256","name":"price","internalType":"uint256","indexed":false},{"type":"uint256","name":"revenue","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Claimed","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"uint256","name":"revenue","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"IncomeAdded","inputs":[{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"IncomeClaimed","inputs":[{"type":"address","name":"receiver","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OrderCreated","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"address","name":"seller","internalType":"address","indexed":false},{"type":"uint256","name":"price","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OrderRemoved","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"uint256","name":"revenue","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Paused","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"RevenueIncreased","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"uint256","name":"revenue","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":"event","name":"Unpaused","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"Withdraw","inputs":[{"type":"address","name":"receiver","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"COORDINATOR","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DEFAULT_ADMIN_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"RATE_BASE","inputs":[]},{"type":"function","stateMutability":"payable","outputs":[],"name":"addDividend","inputs":[]},{"type":"function","stateMutability":"payable","outputs":[],"name":"addIncome","inputs":[]},{"type":"function","stateMutability":"payable","outputs":[],"name":"buy","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"cancelOrder","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"claim","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claimIncome","inputs":[{"type":"address","name":"receiver","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"createOrder","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"price","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"feeRatio","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"feeShareRatio","inputs":[]},{"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":"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":"uint256","name":"","internalType":"uint256"}],"name":"income","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bytes4","name":"","internalType":"bytes4"}],"name":"onERC721Received","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"address","name":"","internalType":"address"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"bytes","name":"","internalType":"bytes"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple","name":"_order","internalType":"struct IPxaMarket.Order","components":[{"type":"address","name":"seller","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"price","internalType":"uint256"},{"type":"uint256","name":"revenue","internalType":"uint256"},{"type":"uint256","name":"index","internalType":"uint256"}]}],"name":"order","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"pause","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"paused","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"pwsAddress","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"pxaAddress","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"rateBase","inputs":[]},{"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":[],"name":"resume","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"revokeRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setFeeRatio","inputs":[{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setFeeShareRatio","inputs":[{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPwsAddress","inputs":[{"type":"address","name":"value","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPxaAddress","inputs":[{"type":"address","name":"value","internalType":"address"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"shareIncome","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdraw","inputs":[{"type":"address","name":"receiver","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]}]
              

Contract Creation Code

0x6080604052600067ffffffffffffffff8111156200002257620000216200044f565b5b604051908082528060200260200182016040528015620000515781602001602082028036833780820191505090505b5060049080519060200190620000699291906200034d565b506040518060400160405280600f81526020017f506978656c417661204d61726b6574000000000000000000000000000000000081525060099080519060200190620000b79291906200039f565b50348015620000c557600080fd5b50604051620039aa380380620039aa8339818101604052810190620000eb9190620004e8565b60008060006101000a81548160ff02191690831515021790555081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506127106007819055506207a120600881905550620001af6000801b33620001e960201b60201c565b620001e17fd578563424ab02f85ec03c6b1aee04947ebdd4a30db46cba3bcd7f56ef40b19933620001e960201b60201c565b505062000594565b620001fb8282620002da60201b60201c565b620002d657600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200027b6200034560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b8280548282559060005260206000209081019282156200038c579160200282015b828111156200038b5782518255916020019190600101906200036e565b5b5090506200039b919062000430565b5090565b828054620003ad906200055e565b90600052602060002090601f016020900481019282620003d157600085556200041d565b82601f10620003ec57805160ff19168380011785556200041d565b828001600101855582156200041d579182015b828111156200041c578251825591602001919060010190620003ff565b5b5090506200042c919062000430565b5090565b5b808211156200044b57600081600090555060010162000431565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004b08262000483565b9050919050565b620004c281620004a3565b8114620004ce57600080fd5b50565b600081519050620004e281620004b7565b92915050565b600080604083850312156200050257620005016200047e565b5b60006200051285828601620004d1565b92505060206200052585828601620004d1565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200057757607f821691505b602082108114156200058e576200058d6200052f565b5b50919050565b61340680620005a46000396000f3fe6080604052600436106101f95760003560e01c80635c975abb1161010d57806396bc578f116100a0578063da8912251161006f578063da891225146106af578063dbf56517146106b9578063e779c84e146106e4578063ed67d3a8146106ee578063f3fef3a314610719576101f9565b806396bc578f14610616578063a217fddf1461063f578063d547741f1461066a578063d96a094a14610693576101f9565b80638456cb59116100dc5780638456cb591461058d57806388b45046146105a45780638cac3b42146105cf57806391d14854146105d9576101f9565b80635c975abb146104e55780636117d0a9146105105780636266d5451461053957806379109baa14610564576101f9565b8063248a9ca311610190578063379607f51161015f578063379607f51461042e5780633b2bcbf11461044a57806341744dd41461047557806346652153146104a0578063514fcac7146104c9576101f9565b8063248a9ca3146103765780632f2ff15d146103b357806333c445ee146103dc57806336568abe14610405576101f9565b80630873c6ec116101cc5780630873c6ec146102a8578063150b7a02146102d357806319f4ff2f1461031057806321603f4314610339576101f9565b8063014e95ba146101fe57806301ffc9a714610229578063046f7da21461026657806306fdde031461027d575b600080fd5b34801561020a57600080fd5b50610213610742565b60405161022091906122c2565b60405180910390f35b34801561023557600080fd5b50610250600480360381019061024b9190612349565b61074d565b60405161025d9190612391565b60405180910390f35b34801561027257600080fd5b5061027b6107c7565b005b34801561028957600080fd5b50610292610804565b60405161029f9190612445565b60405180910390f35b3480156102b457600080fd5b506102bd610892565b6040516102ca91906122c2565b60405180910390f35b3480156102df57600080fd5b506102fa60048036038101906102f59190612626565b610899565b60405161030791906126b8565b60405180910390f35b34801561031c57600080fd5b50610337600480360381019061033291906126d3565b6108ad565b005b34801561034557600080fd5b50610360600480360381019061035b91906126d3565b6108ea565b60405161036d9190612786565b60405180910390f35b34801561038257600080fd5b5061039d600480360381019061039891906127d7565b610995565b6040516103aa9190612813565b60405180910390f35b3480156103bf57600080fd5b506103da60048036038101906103d5919061282e565b6109b5565b005b3480156103e857600080fd5b5061040360048036038101906103fe91906126d3565b6109de565b005b34801561041157600080fd5b5061042c6004803603810190610427919061282e565b610a1b565b005b610448600480360381019061044391906126d3565b610a9e565b005b34801561045657600080fd5b5061045f610af3565b60405161046c9190612813565b60405180910390f35b34801561048157600080fd5b5061048a610b17565b60405161049791906122c2565b60405180910390f35b3480156104ac57600080fd5b506104c760048036038101906104c2919061286e565b610b21565b005b6104e360048036038101906104de91906126d3565b610b98565b005b3480156104f157600080fd5b506104fa610d7f565b6040516105079190612391565b60405180910390f35b34801561051c57600080fd5b506105376004803603810190610532919061289b565b610d95565b005b34801561054557600080fd5b5061054e610ea9565b60405161055b91906128ea565b60405180910390f35b34801561057057600080fd5b5061058b60048036038101906105869190612905565b610ed3565b005b34801561059957600080fd5b506105a26111e4565b005b3480156105b057600080fd5b506105b9611221565b6040516105c691906122c2565b60405180910390f35b6105d761122b565b005b3480156105e557600080fd5b5061060060048036038101906105fb919061282e565b611236565b60405161060d9190612391565b60405180910390f35b34801561062257600080fd5b5061063d6004803603810190610638919061286e565b6112a1565b005b34801561064b57600080fd5b50610654611318565b6040516106619190612813565b60405180910390f35b34801561067657600080fd5b50610691600480360381019061068c919061282e565b61131f565b005b6106ad60048036038101906106a891906126d3565b611348565b005b6106b76115d3565b005b3480156106c557600080fd5b506106ce6115de565b6040516106db91906128ea565b60405180910390f35b6106ec611608565b005b3480156106fa57600080fd5b5061070361164e565b60405161071091906122c2565b60405180910390f35b34801561072557600080fd5b50610740600480360381019061073b919061289b565b611658565b005b6000620f4240905090565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107c057506107bf8261174a565b5b9050919050565b7fd578563424ab02f85ec03c6b1aee04947ebdd4a30db46cba3bcd7f56ef40b1996107f9816107f46117b4565b6117bc565b610801611859565b50565b6009805461081190612974565b80601f016020809104026020016040519081016040528092919081815260200182805461083d90612974565b801561088a5780601f1061085f5761010080835404028352916020019161088a565b820191906000526020600020905b81548152906001019060200180831161086d57829003601f168201915b505050505081565b620f424081565b600063150b7a0260e01b9050949350505050565b7fd578563424ab02f85ec03c6b1aee04947ebdd4a30db46cba3bcd7f56ef40b1996108df816108da6117b4565b6117bc565b816007819055505050565b6108f2612264565b600260008381526020019081526020016000206040518060a00160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820154815260200160028201548152602001600382015481526020016004820154815250509050919050565b600060016000838152602001908152602001600020600101549050919050565b6109be82610995565b6109cf816109ca6117b4565b6117bc565b6109d983836118fa565b505050565b7fd578563424ab02f85ec03c6b1aee04947ebdd4a30db46cba3bcd7f56ef40b199610a1081610a0b6117b4565b6117bc565b816008819055505050565b610a236117b4565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8790612a18565b60405180910390fd5b610a9a82826119da565b5050565b610aa6610d7f565b15610ae6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610add90612a84565b60405180910390fd5b610af03382611abc565b50565b7fd578563424ab02f85ec03c6b1aee04947ebdd4a30db46cba3bcd7f56ef40b19981565b6000600754905090565b7fd578563424ab02f85ec03c6b1aee04947ebdd4a30db46cba3bcd7f56ef40b199610b5381610b4e6117b4565b6117bc565b81600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b610ba0610d7f565b15610be0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd790612a84565b60405180910390fd5b6002600082815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7b90612af0565b60405180910390fd5b600060026000838152602001908152602001600020600301549050610ca93383611abc565b610cb282611bca565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3033856040518463ffffffff1660e01b8152600401610d1193929190612b10565b600060405180830381600087803b158015610d2b57600080fd5b505af1158015610d3f573d6000803e3d6000fd5b50505050817fdec16ec0a15607be6e73ed1ca935aa1269ae828874049d254f31b28c102f6dd082604051610d7391906122c2565b60405180910390a25050565b60008060009054906101000a900460ff16905090565b6000801b610daa81610da56117b4565b6117bc565b8160035410158015610dbc5750814710155b610dfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df290612bb9565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015610e41573d6000803e3d6000fd5b5081600354610e509190612c08565b6003819055508273ffffffffffffffffffffffffffffffffffffffff167f7e18eb4382c89bcd38f6993b694deaee84f17304e35dd53e49cff77704e9eaba83604051610e9c91906122c2565b60405180910390a2505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610edb610d7f565b15610f1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1290612a84565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b8152600401610f8d91906122c2565b602060405180830381865afa158015610faa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fce9190612c51565b73ffffffffffffffffffffffffffffffffffffffff1614611024576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101b90612cca565b60405180910390fd5b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3330856040518463ffffffff1660e01b815260040161108393929190612b10565b600060405180830381600087803b15801561109d57600080fd5b505af11580156110b1573d6000803e3d6000fd5b505050506040518060a001604052803373ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001600081526020016004805490508152506002600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015560608201518160030155608082015181600401559050506004829080600181540180825580915050600190039060005260206000200160009091909190915055817f28eb86fd03c9bd96a8a83e4a46ab2ad257b70cea893d98ad6d482e96aa25fad033836040516111d8929190612cea565b60405180910390a25050565b7fd578563424ab02f85ec03c6b1aee04947ebdd4a30db46cba3bcd7f56ef40b199611216816112116117b4565b6117bc565b61121e611cff565b50565b6000600354905090565b61123434611da1565b565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7fd578563424ab02f85ec03c6b1aee04947ebdd4a30db46cba3bcd7f56ef40b1996112d3816112ce6117b4565b6117bc565b81600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000801b81565b61132882610995565b611339816113346117b4565b6117bc565b61134383836119da565b505050565b611350610d7f565b15611390576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138790612a84565b60405180910390fd5b60026000828152602001908152602001600020600201543410156113e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e090612d5f565b60405180910390fd5b6000620f4240600754346113fd9190612d7f565b6114079190612e08565b9050600081346114179190612c08565b90506000620f42406008548461142d9190612d7f565b6114379190612e08565b905061144281611da1565b600081846114509190612c08565b905061145b81611fda565b6002600086815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f193505050501580156114d7573d6000803e3d6000fd5b506114e23386611abc565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3033886040518463ffffffff1660e01b815260040161154193929190612b10565b600060405180830381600087803b15801561155b57600080fd5b505af115801561156f573d6000803e3d6000fd5b5050505061157c85611bca565b847f871cca9c30ebd3d38d92d08304561880d6466ddb658d2fd88e501a929c497fd93460026000898152602001908152602001600020600301546040516115c4929190612e39565b60405180910390a25050505050565b6115dc34611fda565b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000620f42406008543461161c9190612d7f565b6116269190612e08565b9050600081346116369190612c08565b905061164182611da1565b61164a81611fda565b5050565b6000600854905090565b6000801b61166d816116686117b4565b6117bc565b814710156116b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a790612ed4565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050501580156116f6573d6000803e3d6000fd5b508273ffffffffffffffffffffffffffffffffffffffff167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243648360405161173d91906122c2565b60405180910390a2505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b6117c68282611236565b611855576117eb8173ffffffffffffffffffffffffffffffffffffffff166014612028565b6117f98360001c6020612028565b60405160200161180a929190612fc8565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184c9190612445565b60405180910390fd5b5050565b611861610d7f565b6118a0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118979061304e565b60405180910390fd5b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6118e36117b4565b6040516118f091906128ea565b60405180910390a1565b6119048282611236565b6119d657600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061197b6117b4565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6119e48282611236565b15611ab85760006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611a5d6117b4565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000600260008381526020019081526020016000206003015490506000811415611ae65750611bc6565b47811115611b29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b20906130ba565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611b6f573d6000803e3d6000fd5b5060006002600084815260200190815260200160002060030181905550817fc83b5086ce94ec8d5a88a9f5fea4b18a522bb238ed0d2d8abd959549a80c16b882604051611bbc91906122c2565b60405180910390a2505b5050565b60006002600083815260200190815260200160002060040154905060006001600480549050611bf99190612c08565b905060048181548110611c0f57611c0e6130da565b5b906000526020600020015460048381548110611c2e57611c2d6130da565b5b9060005260206000200181905550816002600060048481548110611c5557611c546130da565b5b906000526020600020015481526020019081526020016000206004018190555060026000848152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600182016000905560028201600090556003820160009055600482016000905550506004805480611ce457611ce3613109565b5b60019003818190600052602060002001600090559055505050565b611d07610d7f565b15611d47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3e90612a84565b60405180910390fd5b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d8a6117b4565b604051611d9791906128ea565b60405180910390a1565b60006004805490501415611db457611fd7565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bdbe93f360046040518263ffffffff1660e01b8152600401611e129190613237565b602060405180830381865afa158015611e2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e53919061326e565b905060005b600480549050811015611fd457600060048281548110611e7b57611e7a6130da565b5b906000526020600020015490506000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f8e27f93836040518263ffffffff1660e01b8152600401611ee591906122c2565b602060405180830381865afa158015611f02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f26919061326e565b90506000848287611f379190612d7f565b611f419190612e08565b905080600260008581526020019081526020016000206003016000828254611f69919061329b565b92505081905550827fa916eef8b97ca0570d37ecb046f524f745075ea4e82b3067d873334377e9f8b76002600086815260200190815260200160002060030154604051611fb691906122c2565b60405180910390a25050508080611fcc906132f1565b915050611e58565b50505b50565b80600354611fe8919061329b565b6003819055507f1fbb551cc9353e15f244d4528f00d8986e351b90d15ad354ad91fef5f3b15eca8160405161201d91906122c2565b60405180910390a150565b60606000600283600261203b9190612d7f565b612045919061329b565b67ffffffffffffffff81111561205e5761205d6124fb565b5b6040519080825280601f01601f1916602001820160405280156120905781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106120c8576120c76130da565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061212c5761212b6130da565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261216c9190612d7f565b612176919061329b565b90505b6001811115612216577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106121b8576121b76130da565b5b1a60f81b8282815181106121cf576121ce6130da565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061220f9061333a565b9050612179565b506000841461225a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612251906133b0565b60405180910390fd5b8091505092915050565b6040518060a00160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081526020016000815260200160008152602001600081525090565b6000819050919050565b6122bc816122a9565b82525050565b60006020820190506122d760008301846122b3565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612326816122f1565b811461233157600080fd5b50565b6000813590506123438161231d565b92915050565b60006020828403121561235f5761235e6122e7565b5b600061236d84828501612334565b91505092915050565b60008115159050919050565b61238b81612376565b82525050565b60006020820190506123a66000830184612382565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156123e65780820151818401526020810190506123cb565b838111156123f5576000848401525b50505050565b6000601f19601f8301169050919050565b6000612417826123ac565b61242181856123b7565b93506124318185602086016123c8565b61243a816123fb565b840191505092915050565b6000602082019050818103600083015261245f818461240c565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061249282612467565b9050919050565b6124a281612487565b81146124ad57600080fd5b50565b6000813590506124bf81612499565b92915050565b6124ce816122a9565b81146124d957600080fd5b50565b6000813590506124eb816124c5565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612533826123fb565b810181811067ffffffffffffffff82111715612552576125516124fb565b5b80604052505050565b60006125656122dd565b9050612571828261252a565b919050565b600067ffffffffffffffff821115612591576125906124fb565b5b61259a826123fb565b9050602081019050919050565b82818337600083830152505050565b60006125c96125c484612576565b61255b565b9050828152602081018484840111156125e5576125e46124f6565b5b6125f08482856125a7565b509392505050565b600082601f83011261260d5761260c6124f1565b5b813561261d8482602086016125b6565b91505092915050565b600080600080608085870312156126405761263f6122e7565b5b600061264e878288016124b0565b945050602061265f878288016124b0565b9350506040612670878288016124dc565b925050606085013567ffffffffffffffff811115612691576126906122ec565b5b61269d878288016125f8565b91505092959194509250565b6126b2816122f1565b82525050565b60006020820190506126cd60008301846126a9565b92915050565b6000602082840312156126e9576126e86122e7565b5b60006126f7848285016124dc565b91505092915050565b61270981612487565b82525050565b612718816122a9565b82525050565b60a0820160008201516127346000850182612700565b506020820151612747602085018261270f565b50604082015161275a604085018261270f565b50606082015161276d606085018261270f565b506080820151612780608085018261270f565b50505050565b600060a08201905061279b600083018461271e565b92915050565b6000819050919050565b6127b4816127a1565b81146127bf57600080fd5b50565b6000813590506127d1816127ab565b92915050565b6000602082840312156127ed576127ec6122e7565b5b60006127fb848285016127c2565b91505092915050565b61280d816127a1565b82525050565b60006020820190506128286000830184612804565b92915050565b60008060408385031215612845576128446122e7565b5b6000612853858286016127c2565b9250506020612864858286016124b0565b9150509250929050565b600060208284031215612884576128836122e7565b5b6000612892848285016124b0565b91505092915050565b600080604083850312156128b2576128b16122e7565b5b60006128c0858286016124b0565b92505060206128d1858286016124dc565b9150509250929050565b6128e481612487565b82525050565b60006020820190506128ff60008301846128db565b92915050565b6000806040838503121561291c5761291b6122e7565b5b600061292a858286016124dc565b925050602061293b858286016124dc565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061298c57607f821691505b602082108114156129a05761299f612945565b5b50919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000612a02602f836123b7565b9150612a0d826129a6565b604082019050919050565b60006020820190508181036000830152612a31816129f5565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000612a6e6010836123b7565b9150612a7982612a38565b602082019050919050565b60006020820190508181036000830152612a9d81612a61565b9050919050565b7f5078614d61726b65743a20696e76616c69642073656c6c657200000000000000600082015250565b6000612ada6019836123b7565b9150612ae582612aa4565b602082019050919050565b60006020820190508181036000830152612b0981612acd565b9050919050565b6000606082019050612b2560008301866128db565b612b3260208301856128db565b612b3f60408301846122b3565b949350505050565b7f5078614d61726b65743a20696e73756666696369656e7420696e636f6d65207460008201527f6f20636c61696d00000000000000000000000000000000000000000000000000602082015250565b6000612ba36027836123b7565b9150612bae82612b47565b604082019050919050565b60006020820190508181036000830152612bd281612b96565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612c13826122a9565b9150612c1e836122a9565b925082821015612c3157612c30612bd9565b5b828203905092915050565b600081519050612c4b81612499565b92915050565b600060208284031215612c6757612c666122e7565b5b6000612c7584828501612c3c565b91505092915050565b7f5078614d61726b65743a20696e76616c696420746f6b656e206f776e65720000600082015250565b6000612cb4601e836123b7565b9150612cbf82612c7e565b602082019050919050565b60006020820190508181036000830152612ce381612ca7565b9050919050565b6000604082019050612cff60008301856128db565b612d0c60208301846122b3565b9392505050565b7f5078614d61726b65743a20696e73756666696369656e742043454c4f00000000600082015250565b6000612d49601c836123b7565b9150612d5482612d13565b602082019050919050565b60006020820190508181036000830152612d7881612d3c565b9050919050565b6000612d8a826122a9565b9150612d95836122a9565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612dce57612dcd612bd9565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612e13826122a9565b9150612e1e836122a9565b925082612e2e57612e2d612dd9565b5b828204905092915050565b6000604082019050612e4e60008301856122b3565b612e5b60208301846122b3565b9392505050565b7f5078614d61726b65743a20696e73756666696369656e742062616c616e63652060008201527f746f207769746864726177000000000000000000000000000000000000000000602082015250565b6000612ebe602b836123b7565b9150612ec982612e62565b604082019050919050565b60006020820190508181036000830152612eed81612eb1565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000612f35601783612ef4565b9150612f4082612eff565b601782019050919050565b6000612f56826123ac565b612f608185612ef4565b9350612f708185602086016123c8565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000612fb2601183612ef4565b9150612fbd82612f7c565b601182019050919050565b6000612fd382612f28565b9150612fdf8285612f4b565b9150612fea82612fa5565b9150612ff68284612f4b565b91508190509392505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006130386014836123b7565b915061304382613002565b602082019050919050565b600060208201905081810360008301526130678161302b565b9050919050565b7f5078614d61726b65743a20696e73756666696369656e742062616c616e636500600082015250565b60006130a4601f836123b7565b91506130af8261306e565b602082019050919050565b600060208201905081810360008301526130d381613097565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600081549050919050565b600082825260208201905092915050565b60008190508160005260206000209050919050565b6000613175838361270f565b60208301905092915050565b60008160001c9050919050565b6000819050919050565b60006131ab6131a683613181565b61318e565b9050919050565b60006131be8254613198565b9050919050565b6000600182019050919050565b60006131dd82613138565b6131e78185613143565b93506131f283613154565b8060005b8381101561322a57613207826131b2565b6132118882613169565b975061321c836131c5565b9250506001810190506131f6565b5085935050505092915050565b6000602082019050818103600083015261325181846131d2565b905092915050565b600081519050613268816124c5565b92915050565b600060208284031215613284576132836122e7565b5b600061329284828501613259565b91505092915050565b60006132a6826122a9565b91506132b1836122a9565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156132e6576132e5612bd9565b5b828201905092915050565b60006132fc826122a9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561332f5761332e612bd9565b5b600182019050919050565b6000613345826122a9565b9150600082141561335957613358612bd9565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b600061339a6020836123b7565b91506133a582613364565b602082019050919050565b600060208201905081810360008301526133c98161338d565b905091905056fea26469706673582212208e0f07ea1675e97e41949082666a55cb4311db8ca935f7e690d7716dc8adf8ab64736f6c634300080c0033000000000000000000000000082c09c950d002a6020d68ba8e20a13802b0b20d0000000000000000000000007b692f3a5b32fd50c0254eb89c382cf43196a0b6

Deployed ByteCode

0x6080604052600436106101f95760003560e01c80635c975abb1161010d57806396bc578f116100a0578063da8912251161006f578063da891225146106af578063dbf56517146106b9578063e779c84e146106e4578063ed67d3a8146106ee578063f3fef3a314610719576101f9565b806396bc578f14610616578063a217fddf1461063f578063d547741f1461066a578063d96a094a14610693576101f9565b80638456cb59116100dc5780638456cb591461058d57806388b45046146105a45780638cac3b42146105cf57806391d14854146105d9576101f9565b80635c975abb146104e55780636117d0a9146105105780636266d5451461053957806379109baa14610564576101f9565b8063248a9ca311610190578063379607f51161015f578063379607f51461042e5780633b2bcbf11461044a57806341744dd41461047557806346652153146104a0578063514fcac7146104c9576101f9565b8063248a9ca3146103765780632f2ff15d146103b357806333c445ee146103dc57806336568abe14610405576101f9565b80630873c6ec116101cc5780630873c6ec146102a8578063150b7a02146102d357806319f4ff2f1461031057806321603f4314610339576101f9565b8063014e95ba146101fe57806301ffc9a714610229578063046f7da21461026657806306fdde031461027d575b600080fd5b34801561020a57600080fd5b50610213610742565b60405161022091906122c2565b60405180910390f35b34801561023557600080fd5b50610250600480360381019061024b9190612349565b61074d565b60405161025d9190612391565b60405180910390f35b34801561027257600080fd5b5061027b6107c7565b005b34801561028957600080fd5b50610292610804565b60405161029f9190612445565b60405180910390f35b3480156102b457600080fd5b506102bd610892565b6040516102ca91906122c2565b60405180910390f35b3480156102df57600080fd5b506102fa60048036038101906102f59190612626565b610899565b60405161030791906126b8565b60405180910390f35b34801561031c57600080fd5b50610337600480360381019061033291906126d3565b6108ad565b005b34801561034557600080fd5b50610360600480360381019061035b91906126d3565b6108ea565b60405161036d9190612786565b60405180910390f35b34801561038257600080fd5b5061039d600480360381019061039891906127d7565b610995565b6040516103aa9190612813565b60405180910390f35b3480156103bf57600080fd5b506103da60048036038101906103d5919061282e565b6109b5565b005b3480156103e857600080fd5b5061040360048036038101906103fe91906126d3565b6109de565b005b34801561041157600080fd5b5061042c6004803603810190610427919061282e565b610a1b565b005b610448600480360381019061044391906126d3565b610a9e565b005b34801561045657600080fd5b5061045f610af3565b60405161046c9190612813565b60405180910390f35b34801561048157600080fd5b5061048a610b17565b60405161049791906122c2565b60405180910390f35b3480156104ac57600080fd5b506104c760048036038101906104c2919061286e565b610b21565b005b6104e360048036038101906104de91906126d3565b610b98565b005b3480156104f157600080fd5b506104fa610d7f565b6040516105079190612391565b60405180910390f35b34801561051c57600080fd5b506105376004803603810190610532919061289b565b610d95565b005b34801561054557600080fd5b5061054e610ea9565b60405161055b91906128ea565b60405180910390f35b34801561057057600080fd5b5061058b60048036038101906105869190612905565b610ed3565b005b34801561059957600080fd5b506105a26111e4565b005b3480156105b057600080fd5b506105b9611221565b6040516105c691906122c2565b60405180910390f35b6105d761122b565b005b3480156105e557600080fd5b5061060060048036038101906105fb919061282e565b611236565b60405161060d9190612391565b60405180910390f35b34801561062257600080fd5b5061063d6004803603810190610638919061286e565b6112a1565b005b34801561064b57600080fd5b50610654611318565b6040516106619190612813565b60405180910390f35b34801561067657600080fd5b50610691600480360381019061068c919061282e565b61131f565b005b6106ad60048036038101906106a891906126d3565b611348565b005b6106b76115d3565b005b3480156106c557600080fd5b506106ce6115de565b6040516106db91906128ea565b60405180910390f35b6106ec611608565b005b3480156106fa57600080fd5b5061070361164e565b60405161071091906122c2565b60405180910390f35b34801561072557600080fd5b50610740600480360381019061073b919061289b565b611658565b005b6000620f4240905090565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107c057506107bf8261174a565b5b9050919050565b7fd578563424ab02f85ec03c6b1aee04947ebdd4a30db46cba3bcd7f56ef40b1996107f9816107f46117b4565b6117bc565b610801611859565b50565b6009805461081190612974565b80601f016020809104026020016040519081016040528092919081815260200182805461083d90612974565b801561088a5780601f1061085f5761010080835404028352916020019161088a565b820191906000526020600020905b81548152906001019060200180831161086d57829003601f168201915b505050505081565b620f424081565b600063150b7a0260e01b9050949350505050565b7fd578563424ab02f85ec03c6b1aee04947ebdd4a30db46cba3bcd7f56ef40b1996108df816108da6117b4565b6117bc565b816007819055505050565b6108f2612264565b600260008381526020019081526020016000206040518060a00160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820154815260200160028201548152602001600382015481526020016004820154815250509050919050565b600060016000838152602001908152602001600020600101549050919050565b6109be82610995565b6109cf816109ca6117b4565b6117bc565b6109d983836118fa565b505050565b7fd578563424ab02f85ec03c6b1aee04947ebdd4a30db46cba3bcd7f56ef40b199610a1081610a0b6117b4565b6117bc565b816008819055505050565b610a236117b4565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8790612a18565b60405180910390fd5b610a9a82826119da565b5050565b610aa6610d7f565b15610ae6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610add90612a84565b60405180910390fd5b610af03382611abc565b50565b7fd578563424ab02f85ec03c6b1aee04947ebdd4a30db46cba3bcd7f56ef40b19981565b6000600754905090565b7fd578563424ab02f85ec03c6b1aee04947ebdd4a30db46cba3bcd7f56ef40b199610b5381610b4e6117b4565b6117bc565b81600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b610ba0610d7f565b15610be0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd790612a84565b60405180910390fd5b6002600082815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7b90612af0565b60405180910390fd5b600060026000838152602001908152602001600020600301549050610ca93383611abc565b610cb282611bca565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3033856040518463ffffffff1660e01b8152600401610d1193929190612b10565b600060405180830381600087803b158015610d2b57600080fd5b505af1158015610d3f573d6000803e3d6000fd5b50505050817fdec16ec0a15607be6e73ed1ca935aa1269ae828874049d254f31b28c102f6dd082604051610d7391906122c2565b60405180910390a25050565b60008060009054906101000a900460ff16905090565b6000801b610daa81610da56117b4565b6117bc565b8160035410158015610dbc5750814710155b610dfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df290612bb9565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015610e41573d6000803e3d6000fd5b5081600354610e509190612c08565b6003819055508273ffffffffffffffffffffffffffffffffffffffff167f7e18eb4382c89bcd38f6993b694deaee84f17304e35dd53e49cff77704e9eaba83604051610e9c91906122c2565b60405180910390a2505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610edb610d7f565b15610f1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1290612a84565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b8152600401610f8d91906122c2565b602060405180830381865afa158015610faa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fce9190612c51565b73ffffffffffffffffffffffffffffffffffffffff1614611024576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101b90612cca565b60405180910390fd5b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3330856040518463ffffffff1660e01b815260040161108393929190612b10565b600060405180830381600087803b15801561109d57600080fd5b505af11580156110b1573d6000803e3d6000fd5b505050506040518060a001604052803373ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001600081526020016004805490508152506002600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015560608201518160030155608082015181600401559050506004829080600181540180825580915050600190039060005260206000200160009091909190915055817f28eb86fd03c9bd96a8a83e4a46ab2ad257b70cea893d98ad6d482e96aa25fad033836040516111d8929190612cea565b60405180910390a25050565b7fd578563424ab02f85ec03c6b1aee04947ebdd4a30db46cba3bcd7f56ef40b199611216816112116117b4565b6117bc565b61121e611cff565b50565b6000600354905090565b61123434611da1565b565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7fd578563424ab02f85ec03c6b1aee04947ebdd4a30db46cba3bcd7f56ef40b1996112d3816112ce6117b4565b6117bc565b81600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000801b81565b61132882610995565b611339816113346117b4565b6117bc565b61134383836119da565b505050565b611350610d7f565b15611390576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138790612a84565b60405180910390fd5b60026000828152602001908152602001600020600201543410156113e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e090612d5f565b60405180910390fd5b6000620f4240600754346113fd9190612d7f565b6114079190612e08565b9050600081346114179190612c08565b90506000620f42406008548461142d9190612d7f565b6114379190612e08565b905061144281611da1565b600081846114509190612c08565b905061145b81611fda565b6002600086815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f193505050501580156114d7573d6000803e3d6000fd5b506114e23386611abc565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3033886040518463ffffffff1660e01b815260040161154193929190612b10565b600060405180830381600087803b15801561155b57600080fd5b505af115801561156f573d6000803e3d6000fd5b5050505061157c85611bca565b847f871cca9c30ebd3d38d92d08304561880d6466ddb658d2fd88e501a929c497fd93460026000898152602001908152602001600020600301546040516115c4929190612e39565b60405180910390a25050505050565b6115dc34611fda565b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000620f42406008543461161c9190612d7f565b6116269190612e08565b9050600081346116369190612c08565b905061164182611da1565b61164a81611fda565b5050565b6000600854905090565b6000801b61166d816116686117b4565b6117bc565b814710156116b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a790612ed4565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050501580156116f6573d6000803e3d6000fd5b508273ffffffffffffffffffffffffffffffffffffffff167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243648360405161173d91906122c2565b60405180910390a2505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b6117c68282611236565b611855576117eb8173ffffffffffffffffffffffffffffffffffffffff166014612028565b6117f98360001c6020612028565b60405160200161180a929190612fc8565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184c9190612445565b60405180910390fd5b5050565b611861610d7f565b6118a0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118979061304e565b60405180910390fd5b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6118e36117b4565b6040516118f091906128ea565b60405180910390a1565b6119048282611236565b6119d657600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061197b6117b4565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6119e48282611236565b15611ab85760006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611a5d6117b4565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000600260008381526020019081526020016000206003015490506000811415611ae65750611bc6565b47811115611b29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b20906130ba565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611b6f573d6000803e3d6000fd5b5060006002600084815260200190815260200160002060030181905550817fc83b5086ce94ec8d5a88a9f5fea4b18a522bb238ed0d2d8abd959549a80c16b882604051611bbc91906122c2565b60405180910390a2505b5050565b60006002600083815260200190815260200160002060040154905060006001600480549050611bf99190612c08565b905060048181548110611c0f57611c0e6130da565b5b906000526020600020015460048381548110611c2e57611c2d6130da565b5b9060005260206000200181905550816002600060048481548110611c5557611c546130da565b5b906000526020600020015481526020019081526020016000206004018190555060026000848152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600182016000905560028201600090556003820160009055600482016000905550506004805480611ce457611ce3613109565b5b60019003818190600052602060002001600090559055505050565b611d07610d7f565b15611d47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3e90612a84565b60405180910390fd5b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d8a6117b4565b604051611d9791906128ea565b60405180910390a1565b60006004805490501415611db457611fd7565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bdbe93f360046040518263ffffffff1660e01b8152600401611e129190613237565b602060405180830381865afa158015611e2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e53919061326e565b905060005b600480549050811015611fd457600060048281548110611e7b57611e7a6130da565b5b906000526020600020015490506000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f8e27f93836040518263ffffffff1660e01b8152600401611ee591906122c2565b602060405180830381865afa158015611f02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f26919061326e565b90506000848287611f379190612d7f565b611f419190612e08565b905080600260008581526020019081526020016000206003016000828254611f69919061329b565b92505081905550827fa916eef8b97ca0570d37ecb046f524f745075ea4e82b3067d873334377e9f8b76002600086815260200190815260200160002060030154604051611fb691906122c2565b60405180910390a25050508080611fcc906132f1565b915050611e58565b50505b50565b80600354611fe8919061329b565b6003819055507f1fbb551cc9353e15f244d4528f00d8986e351b90d15ad354ad91fef5f3b15eca8160405161201d91906122c2565b60405180910390a150565b60606000600283600261203b9190612d7f565b612045919061329b565b67ffffffffffffffff81111561205e5761205d6124fb565b5b6040519080825280601f01601f1916602001820160405280156120905781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106120c8576120c76130da565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061212c5761212b6130da565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261216c9190612d7f565b612176919061329b565b90505b6001811115612216577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106121b8576121b76130da565b5b1a60f81b8282815181106121cf576121ce6130da565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061220f9061333a565b9050612179565b506000841461225a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612251906133b0565b60405180910390fd5b8091505092915050565b6040518060a00160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081526020016000815260200160008152602001600081525090565b6000819050919050565b6122bc816122a9565b82525050565b60006020820190506122d760008301846122b3565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612326816122f1565b811461233157600080fd5b50565b6000813590506123438161231d565b92915050565b60006020828403121561235f5761235e6122e7565b5b600061236d84828501612334565b91505092915050565b60008115159050919050565b61238b81612376565b82525050565b60006020820190506123a66000830184612382565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156123e65780820151818401526020810190506123cb565b838111156123f5576000848401525b50505050565b6000601f19601f8301169050919050565b6000612417826123ac565b61242181856123b7565b93506124318185602086016123c8565b61243a816123fb565b840191505092915050565b6000602082019050818103600083015261245f818461240c565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061249282612467565b9050919050565b6124a281612487565b81146124ad57600080fd5b50565b6000813590506124bf81612499565b92915050565b6124ce816122a9565b81146124d957600080fd5b50565b6000813590506124eb816124c5565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612533826123fb565b810181811067ffffffffffffffff82111715612552576125516124fb565b5b80604052505050565b60006125656122dd565b9050612571828261252a565b919050565b600067ffffffffffffffff821115612591576125906124fb565b5b61259a826123fb565b9050602081019050919050565b82818337600083830152505050565b60006125c96125c484612576565b61255b565b9050828152602081018484840111156125e5576125e46124f6565b5b6125f08482856125a7565b509392505050565b600082601f83011261260d5761260c6124f1565b5b813561261d8482602086016125b6565b91505092915050565b600080600080608085870312156126405761263f6122e7565b5b600061264e878288016124b0565b945050602061265f878288016124b0565b9350506040612670878288016124dc565b925050606085013567ffffffffffffffff811115612691576126906122ec565b5b61269d878288016125f8565b91505092959194509250565b6126b2816122f1565b82525050565b60006020820190506126cd60008301846126a9565b92915050565b6000602082840312156126e9576126e86122e7565b5b60006126f7848285016124dc565b91505092915050565b61270981612487565b82525050565b612718816122a9565b82525050565b60a0820160008201516127346000850182612700565b506020820151612747602085018261270f565b50604082015161275a604085018261270f565b50606082015161276d606085018261270f565b506080820151612780608085018261270f565b50505050565b600060a08201905061279b600083018461271e565b92915050565b6000819050919050565b6127b4816127a1565b81146127bf57600080fd5b50565b6000813590506127d1816127ab565b92915050565b6000602082840312156127ed576127ec6122e7565b5b60006127fb848285016127c2565b91505092915050565b61280d816127a1565b82525050565b60006020820190506128286000830184612804565b92915050565b60008060408385031215612845576128446122e7565b5b6000612853858286016127c2565b9250506020612864858286016124b0565b9150509250929050565b600060208284031215612884576128836122e7565b5b6000612892848285016124b0565b91505092915050565b600080604083850312156128b2576128b16122e7565b5b60006128c0858286016124b0565b92505060206128d1858286016124dc565b9150509250929050565b6128e481612487565b82525050565b60006020820190506128ff60008301846128db565b92915050565b6000806040838503121561291c5761291b6122e7565b5b600061292a858286016124dc565b925050602061293b858286016124dc565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061298c57607f821691505b602082108114156129a05761299f612945565b5b50919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000612a02602f836123b7565b9150612a0d826129a6565b604082019050919050565b60006020820190508181036000830152612a31816129f5565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000612a6e6010836123b7565b9150612a7982612a38565b602082019050919050565b60006020820190508181036000830152612a9d81612a61565b9050919050565b7f5078614d61726b65743a20696e76616c69642073656c6c657200000000000000600082015250565b6000612ada6019836123b7565b9150612ae582612aa4565b602082019050919050565b60006020820190508181036000830152612b0981612acd565b9050919050565b6000606082019050612b2560008301866128db565b612b3260208301856128db565b612b3f60408301846122b3565b949350505050565b7f5078614d61726b65743a20696e73756666696369656e7420696e636f6d65207460008201527f6f20636c61696d00000000000000000000000000000000000000000000000000602082015250565b6000612ba36027836123b7565b9150612bae82612b47565b604082019050919050565b60006020820190508181036000830152612bd281612b96565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612c13826122a9565b9150612c1e836122a9565b925082821015612c3157612c30612bd9565b5b828203905092915050565b600081519050612c4b81612499565b92915050565b600060208284031215612c6757612c666122e7565b5b6000612c7584828501612c3c565b91505092915050565b7f5078614d61726b65743a20696e76616c696420746f6b656e206f776e65720000600082015250565b6000612cb4601e836123b7565b9150612cbf82612c7e565b602082019050919050565b60006020820190508181036000830152612ce381612ca7565b9050919050565b6000604082019050612cff60008301856128db565b612d0c60208301846122b3565b9392505050565b7f5078614d61726b65743a20696e73756666696369656e742043454c4f00000000600082015250565b6000612d49601c836123b7565b9150612d5482612d13565b602082019050919050565b60006020820190508181036000830152612d7881612d3c565b9050919050565b6000612d8a826122a9565b9150612d95836122a9565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612dce57612dcd612bd9565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612e13826122a9565b9150612e1e836122a9565b925082612e2e57612e2d612dd9565b5b828204905092915050565b6000604082019050612e4e60008301856122b3565b612e5b60208301846122b3565b9392505050565b7f5078614d61726b65743a20696e73756666696369656e742062616c616e63652060008201527f746f207769746864726177000000000000000000000000000000000000000000602082015250565b6000612ebe602b836123b7565b9150612ec982612e62565b604082019050919050565b60006020820190508181036000830152612eed81612eb1565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000612f35601783612ef4565b9150612f4082612eff565b601782019050919050565b6000612f56826123ac565b612f608185612ef4565b9350612f708185602086016123c8565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000612fb2601183612ef4565b9150612fbd82612f7c565b601182019050919050565b6000612fd382612f28565b9150612fdf8285612f4b565b9150612fea82612fa5565b9150612ff68284612f4b565b91508190509392505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006130386014836123b7565b915061304382613002565b602082019050919050565b600060208201905081810360008301526130678161302b565b9050919050565b7f5078614d61726b65743a20696e73756666696369656e742062616c616e636500600082015250565b60006130a4601f836123b7565b91506130af8261306e565b602082019050919050565b600060208201905081810360008301526130d381613097565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600081549050919050565b600082825260208201905092915050565b60008190508160005260206000209050919050565b6000613175838361270f565b60208301905092915050565b60008160001c9050919050565b6000819050919050565b60006131ab6131a683613181565b61318e565b9050919050565b60006131be8254613198565b9050919050565b6000600182019050919050565b60006131dd82613138565b6131e78185613143565b93506131f283613154565b8060005b8381101561322a57613207826131b2565b6132118882613169565b975061321c836131c5565b9250506001810190506131f6565b5085935050505092915050565b6000602082019050818103600083015261325181846131d2565b905092915050565b600081519050613268816124c5565b92915050565b600060208284031215613284576132836122e7565b5b600061329284828501613259565b91505092915050565b60006132a6826122a9565b91506132b1836122a9565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156132e6576132e5612bd9565b5b828201905092915050565b60006132fc826122a9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561332f5761332e612bd9565b5b600182019050919050565b6000613345826122a9565b9150600082141561335957613358612bd9565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b600061339a6020836123b7565b91506133a582613364565b602082019050919050565b600060208201905081810360008301526133c98161338d565b905091905056fea26469706673582212208e0f07ea1675e97e41949082666a55cb4311db8ca935f7e690d7716dc8adf8ab64736f6c634300080c0033