POL Price: $0.378462 (-6.60%)
 

Sponsored

Transaction Hash
Method
Block
From
To
Create Listing585566962024-06-24 17:10:1083 days ago1719249010IN
0x3EC096F6...0cE877d9d
0 POL0.0122818563
Create Listing585566752024-06-24 17:09:2683 days ago1719248966IN
0x3EC096F6...0cE877d9d
0 POL0.012866766
Create Listing573387292024-05-24 14:50:33114 days ago1716562233IN
0x3EC096F6...0cE877d9d
0 POL0.006628334
Create Listing568153902024-05-10 20:45:40128 days ago1715373940IN
0x3EC096F6...0cE877d9d
0 POL0.0058485830.00045098
Create Listing568153792024-05-10 20:45:18128 days ago1715373918IN
0x3EC096F6...0cE877d9d
0 POL0.0058485930.00050675
Create Listing568153642024-05-10 20:44:46128 days ago1715373886IN
0x3EC096F6...0cE877d9d
0 POL0.0058485830.00041856
Create Listing568153492024-05-10 20:44:14128 days ago1715373854IN
0x3EC096F6...0cE877d9d
0 POL0.0058486130.00057026
Buy Listing567335652024-05-08 19:14:29130 days ago1715195669IN
0x3EC096F6...0cE877d9d
0 POL0.004570432
Buy Listing567335432024-05-08 19:13:43130 days ago1715195623IN
0x3EC096F6...0cE877d9d
0 POL0.005117632
Buy Listing567335282024-05-08 19:13:11130 days ago1715195591IN
0x3EC096F6...0cE877d9d
0 POL0.004570432
Buy Listing567335072024-05-08 19:12:27130 days ago1715195547IN
0x3EC096F6...0cE877d9d
0 POL0.004570432
Buy Listing567334992024-05-08 19:12:09130 days ago1715195529IN
0x3EC096F6...0cE877d9d
0 POL0.004570432
Buy Listing567334872024-05-08 19:11:43130 days ago1715195503IN
0x3EC096F6...0cE877d9d
0 POL0.004570432
Create Listing565689252024-05-04 13:23:59134 days ago1714829039IN
0x3EC096F6...0cE877d9d
0 POL0.0068232535
Create Listing565689022024-05-04 13:23:11134 days ago1714828991IN
0x3EC096F6...0cE877d9d
0 POL0.0072131537
Create Listing565688812024-05-04 13:22:27134 days ago1714828947IN
0x3EC096F6...0cE877d9d
0 POL0.006238432
Create Listing565688642024-05-04 13:21:51134 days ago1714828911IN
0x3EC096F6...0cE877d9d
0 POL0.0072131537
Create Listing565688452024-05-04 13:21:09134 days ago1714828869IN
0x3EC096F6...0cE877d9d
0 POL0.0072131537
Create Listing565687932024-05-04 13:18:47134 days ago1714828727IN
0x3EC096F6...0cE877d9d
0 POL0.0068232535
Create Listing562049342024-04-24 16:00:06144 days ago1713974406IN
0x3EC096F6...0cE877d9d
0 POL0.03435139176.19535519
Create Listing554797262024-04-05 17:09:47163 days ago1712336987IN
0x3EC096F6...0cE877d9d
0 POL0.0351601180.35450091
Cancel Listing551310762024-03-27 8:07:35172 days ago1711526855IN
0x3EC096F6...0cE877d9d
0 POL0.00528426199.97228692
Create Listing551310632024-03-27 8:06:57172 days ago1711526817IN
0x3EC096F6...0cE877d9d
0 POL0.02973849152.53484828
Create Listing551310482024-03-27 8:06:25172 days ago1711526785IN
0x3EC096F6...0cE877d9d
0 POL0.03035824155.71365819
Create Listing549831892024-03-23 9:10:00176 days ago1711185000IN
0x3EC096F6...0cE877d9d
0 POL0.0107222555
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LuchaMarketplaceERC1155

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : LuchaMarketplaceERC1155.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

interface IERC1155Supply {
	function totalSupply(uint256 id) external view returns (uint256);
}

contract LuchaMarketplaceERC1155 is AccessControl, Pausable, ReentrancyGuard {
	using SafeMath for uint256;
	using Counters for Counters.Counter;

	Counters.Counter public listingIds;
	Counters.Counter public offerIds;

	IERC20 public luchaToken = IERC20(0x6749441Fdc8650b5b5a854ed255C82EF361f1596);
	address public luchaVault = 0xdF789493B9C1aa8B78D467a094FDEb5e44c18e9B;
	address public luchaRewards = 0x72104d619BaEDf632936d9dcE38C089CA3bf12Dc;
	address public luchaTreasury = 0x0Cb11b92Fa5C30eAfe4aE84B7BB4dF3034C38b9d;

	uint256 public listingFee;
	uint256 public minListingPrice;
	uint256 public paymentDivisor;
	uint256 public vaultPart;
	uint256 public rewardsPart;
	uint256 public treasuryPart;

	struct Listing {
		address seller;
		uint256 tokenId;
		uint256 price;
		uint256 quantity;
		uint256 expiry;
	}

	struct Offer {
		address buyer;
		uint256 tokenId;
		uint256 price;
		uint256 quantity;
		uint256 expiry;
	}

	mapping(address => bool) public originsApproved;
	mapping(address => mapping(uint256 => Listing)) public listings;
	mapping(address => mapping(uint256 => Offer)) public offers;

	event ListingCreated(
		uint256 indexed listingId,
		address indexed originContract,
		address indexed seller,
		uint256 tokenId,
		uint256 price,
		uint256 quantity,
		uint256 expiry
	);

	event ListingSold(
		uint256 indexed listingId,
		address indexed originContract,
		address indexed seller,
		address buyer,
		uint256 tokenId,
		uint256 price,
		uint256 quantity
	);

	event ListingCancelled(
		uint256 indexed listingId,
		address indexed originContract
	);

	event OfferCreated(
		uint256 indexed offerId,
		address indexed originContract,
		address indexed buyer,
		uint256 tokenId,
		uint256 price,
		uint256 quantity,
		uint256 expiry
	);

	event OfferAccepted(
		uint256 indexed offerId,
		address indexed originContract,
		address indexed buyer,
		address seller,
		uint256 tokenId,
		uint256 price,
		uint256 quantity
	);

	event OfferCancelled(
		uint256 indexed offerId,
		address indexed originContract
	);

	bytes32 public constant FEES_MANAGER_ROLE = keccak256("FEES_MANAGER_ROLE");

	constructor() {
		_setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
		_setupRole(FEES_MANAGER_ROLE, msg.sender);
	}

	function createListing(address originContract, uint256 tokenId, uint256 price, uint256 quantity, uint256 expiresInDays) external whenNotPaused nonReentrant {
		require(originsApproved[originContract], "Origin contract not approved");
		require(IERC1155(originContract).balanceOf(msg.sender, tokenId) >= quantity, "Insufficient ERC1155 balance");
		require(IERC1155(originContract).isApprovedForAll(msg.sender, address(this)), "Must have approved marketplace");
		require(price >= minListingPrice, "Sale price must be greater than min listing price");
		require(quantity > 0, "Quantity must be greater then 0");
		require(expiresInDays >= 1 && expiresInDays <= 180, "Expiry must be 1-180 days");

		uint256 expiry = block.timestamp.add(expiresInDays.mul(86400));

		listingIds.increment();

		listings[originContract][listingIds.current()] = Listing({
			seller: msg.sender,
			tokenId: tokenId,
			price: price,
			quantity: quantity,
			expiry: expiry
		});

		if (listingFee > 0) luchaToken.transferFrom(msg.sender, luchaTreasury, listingFee);

		emit ListingCreated(listingIds.current(), originContract, msg.sender, tokenId, price, quantity, expiry);
	}

	function cancelListing(uint256 listingId, address originContract) external {
		Listing storage listing = listings[originContract][listingId];

		require(listing.seller == msg.sender, "Must be listing creator to cancel listing");
		require(listing.quantity > 0, "Listing already closed");

		listing.quantity = 0;

		emit ListingCancelled(listingId, originContract);
	}

	function buyListing(uint256 listingId, address originContract, uint256 price, uint256 quantity) external whenNotPaused nonReentrant {
		Listing storage listing = listings[originContract][listingId];
		uint256 cost = price.mul(quantity);

		require(listing.quantity > 0, "Listing closed");
		require(listing.price.mul(quantity) == cost, "Incorrect purchase price");
		require(quantity > 0, "Quantity must be greater than 0");
		require(listing.quantity >= quantity, "Quantity exceeds available balance");
		require(listing.expiry > block.timestamp, "Listing expired");

		listing.quantity = listing.quantity.sub(quantity);

		IERC1155(originContract).safeTransferFrom(listing.seller, msg.sender, listing.tokenId, quantity, "");
		splitPayment(msg.sender, listing.seller, cost);

		emit ListingSold(listingId, originContract, listing.seller, msg.sender, listing.tokenId, listing.price, quantity);
	}

	function createOffer(address originContract, uint256 tokenId, uint256 price, uint256 quantity, uint256 expiresInDays) external whenNotPaused nonReentrant {
		require(originsApproved[originContract], "Origin contract not approved");
		require(IERC1155Supply(originContract).totalSupply(tokenId) > 0, "Token ID does not exist");
		require(luchaToken.balanceOf(msg.sender) >= price.mul(quantity), "Insufficient LUCHA balance");
		require(price >= minListingPrice, "Offer must be greater than min listing price");
		require(quantity > 0, "Quantity must be greater than 0");
		require(expiresInDays >= 1 && expiresInDays <= 180, "Expiry must be 1-180 days");

		uint256 expiry = block.timestamp.add(expiresInDays.mul(86400));

		offerIds.increment();

		offers[originContract][offerIds.current()] = Offer({
			buyer: msg.sender,
			tokenId: tokenId,
			price: price,
			quantity: quantity,
			expiry: expiry
		});

		if (listingFee > 0) luchaToken.transferFrom(msg.sender, luchaTreasury, listingFee);

		emit OfferCreated(offerIds.current(), originContract, msg.sender, tokenId, price, quantity, expiry);
	}

	function cancelOffer(uint256 offerId, address originContract) external {
		Offer storage offer = offers[originContract][offerId];

		require(offer.buyer == msg.sender, "Must be offer creator to cancel offer");
		require(offer.quantity > 0, "Offer already closed");

		offer.quantity = 0;

		emit OfferCancelled(offerId, originContract);
	}

	function acceptOffer(uint256 offerId, address originContract, uint256 price, uint256 quantity) external whenNotPaused nonReentrant {
		Offer storage offer = offers[originContract][offerId];
		uint256 cost = price.mul(quantity);

		require(offer.quantity > 0, "Offer closed");
		require(offer.price.mul(quantity) == cost, "Incorrect offer price");
		require(quantity > 0, "Quantity must be greater than 0");
		require(offer.quantity >= quantity, "Quantity exceeds offer quantity");
		require(offer.expiry > block.timestamp, "Offer expired");

		offer.quantity = offer.quantity.sub(quantity);

		IERC1155(originContract).safeTransferFrom(msg.sender, offer.buyer, offer.tokenId, quantity, "");
		splitPayment(offer.buyer, msg.sender, cost);

		emit OfferAccepted(offerId, originContract, offer.buyer, msg.sender, offer.tokenId, offer.price, quantity);
	}

	function splitPayment(address from, address to, uint256 amount) internal {
		uint256 vaultShare = amount.div(paymentDivisor).mul(vaultPart);
		uint256 rewardsShare = amount.div(paymentDivisor).mul(rewardsPart);
		uint256 treasuryShare = amount.div(paymentDivisor).mul(treasuryPart);

		if (vaultShare > 0) luchaToken.transferFrom(from, luchaVault, vaultShare);
		if (rewardsShare > 0) luchaToken.transferFrom(from, luchaRewards, rewardsShare);
		if (treasuryShare > 0) luchaToken.transferFrom(from, luchaTreasury, treasuryShare);

		uint256 sellerShare = amount.sub(vaultShare).sub(rewardsShare).sub(treasuryShare);
		luchaToken.transferFrom(from, to, sellerShare);
	}

	function setSaleFees(uint256 _paymentDivisor, uint256 _vaultPart, uint256 _rewardsPart, uint256 _treasuryPart) external onlyRole(FEES_MANAGER_ROLE) {
		require(_paymentDivisor > 0 && _paymentDivisor % 100 == 0, "paymentDivisor must be divisible by 100");

		paymentDivisor = _paymentDivisor;
		vaultPart = _vaultPart;
		rewardsPart = _rewardsPart;
		treasuryPart = _treasuryPart;
	}

	function setListingFee(uint256 value) external onlyRole(FEES_MANAGER_ROLE) {
		listingFee = value;
	}

	function setMinListingPrice(uint256 value) external onlyRole(FEES_MANAGER_ROLE) {
		minListingPrice = value;
	}

	function approveOriginContract(address originContract, bool value) external onlyRole(DEFAULT_ADMIN_ROLE) {
		originsApproved[originContract] = value;
	}

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

	function unpause() external onlyRole(DEFAULT_ADMIN_ROLE) {
		_unpause();
	}
}

File 2 of 13 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

File 3 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

File 4 of 13 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `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}.
     * ====
     */
    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);
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 5 of 13 : Pausable.sol
// SPDX-License-Identifier: MIT

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

File 6 of 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 7 of 13 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 8 of 13 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 9 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 10 of 13 : IAccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 11 of 13 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 12 of 13 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 13 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"listingId","type":"uint256"},{"indexed":true,"internalType":"address","name":"originContract","type":"address"}],"name":"ListingCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"listingId","type":"uint256"},{"indexed":true,"internalType":"address","name":"originContract","type":"address"},{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"expiry","type":"uint256"}],"name":"ListingCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"listingId","type":"uint256"},{"indexed":true,"internalType":"address","name":"originContract","type":"address"},{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"ListingSold","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"offerId","type":"uint256"},{"indexed":true,"internalType":"address","name":"originContract","type":"address"},{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"OfferAccepted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"offerId","type":"uint256"},{"indexed":true,"internalType":"address","name":"originContract","type":"address"}],"name":"OfferCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"offerId","type":"uint256"},{"indexed":true,"internalType":"address","name":"originContract","type":"address"},{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"expiry","type":"uint256"}],"name":"OfferCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEES_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"offerId","type":"uint256"},{"internalType":"address","name":"originContract","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"acceptOffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"originContract","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"approveOriginContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"listingId","type":"uint256"},{"internalType":"address","name":"originContract","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"buyListing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"listingId","type":"uint256"},{"internalType":"address","name":"originContract","type":"address"}],"name":"cancelListing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"offerId","type":"uint256"},{"internalType":"address","name":"originContract","type":"address"}],"name":"cancelOffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"originContract","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"expiresInDays","type":"uint256"}],"name":"createListing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"originContract","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"expiresInDays","type":"uint256"}],"name":"createOffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"listingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"listingIds","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"listings","outputs":[{"internalType":"address","name":"seller","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"luchaRewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"luchaToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"luchaTreasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"luchaVault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minListingPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"offerIds","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"offers","outputs":[{"internalType":"address","name":"buyer","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"originsApproved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paymentDivisor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardsPart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setListingFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setMinListingPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_paymentDivisor","type":"uint256"},{"internalType":"uint256","name":"_vaultPart","type":"uint256"},{"internalType":"uint256","name":"_rewardsPart","type":"uint256"},{"internalType":"uint256","name":"_treasuryPart","type":"uint256"}],"name":"setSaleFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryPart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultPart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

6080604052736749441fdc8650b5b5a854ed255c82ef361f1596600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073df789493b9c1aa8b78d467a094fdeb5e44c18e9b600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507372104d619baedf632936d9dce38c089ca3bf12dc600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550730cb11b92fa5c30eafe4ae84b7bb4df3034c38b9d600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200016557600080fd5b506000600160006101000a81548160ff02191690831515021790555060016002819055506200019e6000801b33620001d660201b60201c565b620001d07f0a12058624d2cac0254f96fdd1650ac397644194b2e575febdb2477da219fcfe33620001d660201b60201c565b6200034f565b620001e88282620001ec60201b60201c565b5050565b620001fe8282620002dd60201b60201c565b620002d957600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200027e6200034760201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b614635806200035f6000396000f3fe608060405234801561001057600080fd5b506004361061021b5760003560e01c80635c975abb11610125578063a217fddf116100ad578063c015bec51161007c578063c015bec5146105e8578063c0fc80a214610618578063c4dbc40114610634578063cad08b4514610650578063d547741f1461066e5761021b565b8063a217fddf1461055c578063aa1a84111461057a578063b33e156e146105ae578063b8cb2d97146105ca5761021b565b80637b9ed097116100f45780637b9ed097146104ca5780638456cb59146104e85780639057f289146104f257806391d148541461050e5780639ba6a7851461053e5761021b565b80635c975abb1461045457806360101d3a146104725780636a1b7ecc1461048e5780637b22c8fe146104ac5761021b565b80632e80669f116101a857806336568abe1161017757806336568abe146103d457806338d11859146103f05780633f4ba83a1461040e578063406ecfd514610418578063598acb10146104365761021b565b80632e80669f146103605780632f2ff15d1461037e57806334e384d31461039a57806336124498146103b85761021b565b80631171df89116101ef5780631171df89146102bc578063131dbd09146102da57806314f49c89146102f6578063161878e914610314578063248a9ca3146103305761021b565b806207df301461022057806301ffc9a71461025457806304a628341461028457806310f9ca7a146102a0575b600080fd5b61023a60048036038101906102359190613068565b61068a565b60405161024b959493929190613dfa565b60405180910390f35b61026e600480360381019061026991906131a9565b6106ed565b60405161027b9190613e4d565b60405180910390f35b61029e60048036038101906102999190613260565b610767565b005b6102ba60048036038101906102b591906132c3565b610b64565b005b6102c4610c14565b6040516102d19190613e83565b60405180910390f35b6102f460048036038101906102ef91906131d2565b610c3a565b005b6102fe610c77565b60405161030b9190613cb9565b60405180910390f35b61032e600480360381019061032991906130a4565b610c9d565b005b61034a60048036038101906103459190613144565b611305565b6040516103579190613e68565b60405180910390f35b610368611324565b6040516103759190614240565b60405180910390f35b6103986004803603810190610393919061316d565b61132a565b005b6103a2611353565b6040516103af9190613cb9565b60405180910390f35b6103d260048036038101906103cd919061302c565b611379565b005b6103ee60048036038101906103e9919061316d565b6113ea565b005b6103f861146d565b6040516104059190614240565b60405180910390f35b610416611479565b005b610420611499565b60405161042d9190614240565b60405180910390f35b61043e61149f565b60405161044b9190613cb9565b60405180910390f35b61045c6114c5565b6040516104699190613e4d565b60405180910390f35b61048c60048036038101906104879190613224565b6114dc565b005b61049661165c565b6040516104a39190614240565b60405180910390f35b6104b4611662565b6040516104c19190614240565b60405180910390f35b6104d261166e565b6040516104df9190613e68565b60405180910390f35b6104f0611692565b005b61050c600480360381019061050791906130a4565b6116b2565b005b6105286004803603810190610523919061316d565b611ce6565b6040516105359190613e4d565b60405180910390f35b610546611d50565b6040516105539190614240565b60405180910390f35b610564611d56565b6040516105719190613e68565b60405180910390f35b610594600480360381019061058f9190613068565b611d5d565b6040516105a5959493929190613dfa565b60405180910390f35b6105c860048036038101906105c391906131d2565b611dc0565b005b6105d2611dfd565b6040516105df9190614240565b60405180910390f35b61060260048036038101906105fd9190613003565b611e03565b60405161060f9190613e4d565b60405180910390f35b610632600480360381019061062d9190613224565b611e23565b005b61064e60048036038101906106499190613260565b611fa3565b005b6106586123a0565b6040516106659190614240565b60405180910390f35b6106886004803603810190610683919061316d565b6123a6565b005b6010602052816000526040600020602052806000526040600020600091509150508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040154905085565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610760575061075f826123cf565b5b9050919050565b61076f6114c5565b156107af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a690614040565b60405180910390fd5b6002805414156107f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107eb906141c0565b60405180910390fd5b600280819055506000601160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600086815260200190815260200160002090506000610864838561243990919063ffffffff16565b905060008260030154116108ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a490614100565b60405180910390fd5b806108c584846002015461243990919063ffffffff16565b14610905576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108fc906140c0565b60405180910390fd5b60008311610948576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093f90613ee0565b60405180910390fd5b828260030154101561098f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161098690614140565b60405180910390fd5b428260040154116109d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109cc90613f60565b60405180910390fd5b6109ec83836003015461244f90919063ffffffff16565b82600301819055508473ffffffffffffffffffffffffffffffffffffffff1663f242432a338460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168560010154876040518563ffffffff1660e01b8152600401610a5b9493929190613d34565b600060405180830381600087803b158015610a7557600080fd5b505af1158015610a89573d6000803e3d6000fd5b50505050610abc8260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff163383612465565b8160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16877f7ce1c9cf3b91d016e11c8e8887a1a27c299a020644a655ac579f0f394787e98f338660010154876002015489604051610b4c9493929190613db5565b60405180910390a45050600160028190555050505050565b7f0a12058624d2cac0254f96fdd1650ac397644194b2e575febdb2477da219fcfe610b9681610b9161287c565b612884565b600085118015610bb257506000606486610bb091906144ec565b145b610bf1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be8906140e0565b60405180910390fd5b84600b8190555083600c8190555082600d8190555081600e819055505050505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f0a12058624d2cac0254f96fdd1650ac397644194b2e575febdb2477da219fcfe610c6c81610c6761287c565b612884565b816009819055505050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610ca56114c5565b15610ce5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cdc90614040565b60405180910390fd5b600280541415610d2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d21906141c0565b60405180910390fd5b60028081905550600f60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610dbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db490614080565b60405180910390fd5b60008573ffffffffffffffffffffffffffffffffffffffff1663bd85b039866040518263ffffffff1660e01b8152600401610df89190614240565b60206040518083038186803b158015610e1057600080fd5b505afa158015610e24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4891906131fb565b11610e88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7f90614020565b60405180910390fd5b610e9b828461243990919063ffffffff16565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610ef69190613cb9565b60206040518083038186803b158015610f0e57600080fd5b505afa158015610f22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4691906131fb565b1015610f87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7e90614200565b60405180910390fd5b600a54831015610fcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc390614120565b60405180910390fd5b6000821161100f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100690613ee0565b60405180910390fd5b60018110158015611021575060b48111155b611060576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105790614000565b60405180910390fd5b600061108a61107b620151808461243990919063ffffffff16565b4261292190919063ffffffff16565b90506110966004612937565b6040518060a001604052803373ffffffffffffffffffffffffffffffffffffffff16815260200186815260200185815260200184815260200182815250601160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061111e600461294d565b815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015560608201518160030155608082015181600401559050506000600954111561128057600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166009546040518463ffffffff1660e01b815260040161122c93929190613cfd565b602060405180830381600087803b15801561124657600080fd5b505af115801561125a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061127e919061311b565b505b3373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff166112b8600461294d565b7f9b6c371dc35c1862d4ca7c8685a5514cadf8e224c9289dc529a9384021ebf726888888876040516112ed949392919061425b565b60405180910390a45060016002819055505050505050565b6000806000838152602001908152602001600020600101549050919050565b600c5481565b61133382611305565b6113448161133f61287c565b612884565b61134e838361295b565b505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000801b61138e8161138961287c565b612884565b81600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505050565b6113f261287c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461145f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145690614220565b60405180910390fd5b6114698282612a3b565b5050565b60048060000154905081565b6000801b61148e8161148961287c565b612884565b611496612b1c565b50565b600d5481565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600160009054906101000a900460ff16905090565b6000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002090503373ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146115c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b990614180565b60405180910390fd5b6000816003015411611609576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160090613fa0565b60405180910390fd5b600081600301819055508173ffffffffffffffffffffffffffffffffffffffff16837f8e25282255ab31897df2b0456bb993ac7f84d376861aefd84901d2d63a7428a260405160405180910390a3505050565b60095481565b60038060000154905081565b7f0a12058624d2cac0254f96fdd1650ac397644194b2e575febdb2477da219fcfe81565b6000801b6116a7816116a261287c565b612884565b6116af612bbe565b50565b6116ba6114c5565b156116fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f190614040565b60405180910390fd5b60028054141561173f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611736906141c0565b60405180910390fd5b60028081905550600f60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166117d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c990614080565b60405180910390fd5b818573ffffffffffffffffffffffffffffffffffffffff1662fdd58e33876040518363ffffffff1660e01b815260040161180d929190613d8c565b60206040518083038186803b15801561182557600080fd5b505afa158015611839573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061185d91906131fb565b101561189e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189590613f80565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff1663e985e9c533306040518363ffffffff1660e01b81526004016118d9929190613cd4565b60206040518083038186803b1580156118f157600080fd5b505afa158015611905573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611929919061311b565b611968576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195f90613f00565b60405180910390fd5b600a548310156119ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a4906141e0565b60405180910390fd5b600082116119f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e790613fc0565b60405180910390fd5b60018110158015611a02575060b48111155b611a41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3890614000565b60405180910390fd5b6000611a6b611a5c620151808461243990919063ffffffff16565b4261292190919063ffffffff16565b9050611a776003612937565b6040518060a001604052803373ffffffffffffffffffffffffffffffffffffffff16815260200186815260200185815260200184815260200182815250601060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000611aff600361294d565b815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020155606082015181600301556080820151816004015590505060006009541115611c6157600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166009546040518463ffffffff1660e01b8152600401611c0d93929190613cfd565b602060405180830381600087803b158015611c2757600080fd5b505af1158015611c3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5f919061311b565b505b3373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16611c99600361294d565b7ff0d936e51f712725cd6ba4e040622272bdccabca6df0efe3f26094c1fd25d58088888887604051611cce949392919061425b565b60405180910390a45060016002819055505050505050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600a5481565b6000801b81565b6011602052816000526040600020602052806000526040600020600091509150508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040154905085565b7f0a12058624d2cac0254f96fdd1650ac397644194b2e575febdb2477da219fcfe611df281611ded61287c565b612884565b81600a819055505050565b600b5481565b600f6020528060005260406000206000915054906101000a900460ff1681565b6000601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002090503373ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611f09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0090614060565b60405180910390fd5b6000816003015411611f50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f47906140a0565b60405180910390fd5b600081600301819055508173ffffffffffffffffffffffffffffffffffffffff16837f1f51377b3e685a0e2419f9bb4ba7c07ec54936353ba3d0fb3c6538dab676622260405160405180910390a3505050565b611fab6114c5565b15611feb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe290614040565b60405180910390fd5b600280541415612030576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612027906141c0565b60405180910390fd5b600280819055506000601060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000868152602001908152602001600020905060006120a0838561243990919063ffffffff16565b905060008260030154116120e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e090613fe0565b60405180910390fd5b8061210184846002015461243990919063ffffffff16565b14612141576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213890613ec0565b60405180910390fd5b60008311612184576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217b90613ee0565b60405180910390fd5b82826003015410156121cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c290614160565b60405180910390fd5b42826004015411612211576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612208906141a0565b60405180910390fd5b61222883836003015461244f90919063ffffffff16565b82600301819055508473ffffffffffffffffffffffffffffffffffffffff1663f242432a8360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16338560010154876040518563ffffffff1660e01b81526004016122979493929190613d34565b600060405180830381600087803b1580156122b157600080fd5b505af11580156122c5573d6000803e3d6000fd5b505050506122f8338360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683612465565b8160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16877f78bb881bd05e07751749a526ef972e955dab09e7cdab65819077d4062cf1df083386600101548760020154896040516123889493929190613db5565b60405180910390a45050600160028190555050505050565b600e5481565b6123af82611305565b6123c0816123bb61287c565b612884565b6123ca8383612a3b565b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008183612447919061435f565b905092915050565b6000818361245d91906143b9565b905092915050565b6000612490600c54612482600b5485612c6090919063ffffffff16565b61243990919063ffffffff16565b905060006124bd600d546124af600b5486612c6090919063ffffffff16565b61243990919063ffffffff16565b905060006124ea600e546124dc600b5487612c6090919063ffffffff16565b61243990919063ffffffff16565b905060008311156125ca57600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd87600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866040518463ffffffff1660e01b815260040161257693929190613cfd565b602060405180830381600087803b15801561259057600080fd5b505af11580156125a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125c8919061311b565b505b60008211156126a857600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd87600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16856040518463ffffffff1660e01b815260040161265493929190613cfd565b602060405180830381600087803b15801561266e57600080fd5b505af1158015612682573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126a6919061311b565b505b600081111561278657600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd87600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b815260040161273293929190613cfd565b602060405180830381600087803b15801561274c57600080fd5b505af1158015612760573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612784919061311b565b505b60006127bf826127b1856127a3888a61244f90919063ffffffff16565b61244f90919063ffffffff16565b61244f90919063ffffffff16565b9050600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd8888846040518463ffffffff1660e01b815260040161282093929190613cfd565b602060405180830381600087803b15801561283a57600080fd5b505af115801561284e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612872919061311b565b5050505050505050565b600033905090565b61288e8282611ce6565b61291d576128b38173ffffffffffffffffffffffffffffffffffffffff166014612c76565b6128c18360001c6020612c76565b6040516020016128d2929190613c7f565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129149190613e9e565b60405180910390fd5b5050565b6000818361292f91906142d8565b905092915050565b6001816000016000828254019250508190555050565b600081600001549050919050565b6129658282611ce6565b612a3757600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506129dc61287c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b612a458282611ce6565b15612b1857600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612abd61287c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b612b246114c5565b612b63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5a90613f40565b60405180910390fd5b6000600160006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612ba761287c565b604051612bb49190613cb9565b60405180910390a1565b612bc66114c5565b15612c06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bfd90614040565b60405180910390fd5b60018060006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612c4961287c565b604051612c569190613cb9565b60405180910390a1565b60008183612c6e919061432e565b905092915050565b606060006002836002612c89919061435f565b612c9391906142d8565b67ffffffffffffffff811115612cd2577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612d045781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612d62577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612dec577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612e2c919061435f565b612e3691906142d8565b90505b6001811115612f22577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612e9e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110612edb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612f1b906144c2565b9050612e39565b5060008414612f66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f5d90613f20565b60405180910390fd5b8091505092915050565b600081359050612f7f8161458c565b92915050565b600081359050612f94816145a3565b92915050565b600081519050612fa9816145a3565b92915050565b600081359050612fbe816145ba565b92915050565b600081359050612fd3816145d1565b92915050565b600081359050612fe8816145e8565b92915050565b600081519050612ffd816145e8565b92915050565b60006020828403121561301557600080fd5b600061302384828501612f70565b91505092915050565b6000806040838503121561303f57600080fd5b600061304d85828601612f70565b925050602061305e85828601612f85565b9150509250929050565b6000806040838503121561307b57600080fd5b600061308985828601612f70565b925050602061309a85828601612fd9565b9150509250929050565b600080600080600060a086880312156130bc57600080fd5b60006130ca88828901612f70565b95505060206130db88828901612fd9565b94505060406130ec88828901612fd9565b93505060606130fd88828901612fd9565b925050608061310e88828901612fd9565b9150509295509295909350565b60006020828403121561312d57600080fd5b600061313b84828501612f9a565b91505092915050565b60006020828403121561315657600080fd5b600061316484828501612faf565b91505092915050565b6000806040838503121561318057600080fd5b600061318e85828601612faf565b925050602061319f85828601612f70565b9150509250929050565b6000602082840312156131bb57600080fd5b60006131c984828501612fc4565b91505092915050565b6000602082840312156131e457600080fd5b60006131f284828501612fd9565b91505092915050565b60006020828403121561320d57600080fd5b600061321b84828501612fee565b91505092915050565b6000806040838503121561323757600080fd5b600061324585828601612fd9565b925050602061325685828601612f70565b9150509250929050565b6000806000806080858703121561327657600080fd5b600061328487828801612fd9565b945050602061329587828801612f70565b93505060406132a687828801612fd9565b92505060606132b787828801612fd9565b91505092959194509250565b600080600080608085870312156132d957600080fd5b60006132e787828801612fd9565b94505060206132f887828801612fd9565b935050604061330987828801612fd9565b925050606061331a87828801612fd9565b91505092959194509250565b61332f816143ed565b82525050565b61333e816143ff565b82525050565b61334d8161440b565b82525050565b61335c8161446b565b82525050565b600061336d826142a0565b61337781856142bc565b935061338781856020860161448f565b6133908161457b565b840191505092915050565b60006133a6826142a0565b6133b081856142cd565b93506133c081856020860161448f565b80840191505092915050565b60006133d96018836142bc565b91507f496e636f727265637420707572636861736520707269636500000000000000006000830152602082019050919050565b6000613419601f836142bc565b91507f5175616e74697479206d7573742062652067726561746572207468616e2030006000830152602082019050919050565b6000613459601e836142bc565b91507f4d757374206861766520617070726f766564206d61726b6574706c61636500006000830152602082019050919050565b60006134996020836142bc565b91507f537472696e67733a20686578206c656e67746820696e73756666696369656e746000830152602082019050919050565b60006134d96014836142bc565b91507f5061757361626c653a206e6f74207061757365640000000000000000000000006000830152602082019050919050565b6000613519600d836142bc565b91507f4f666665722065787069726564000000000000000000000000000000000000006000830152602082019050919050565b6000613559601c836142bc565b91507f496e73756666696369656e7420455243313135352062616c616e6365000000006000830152602082019050919050565b60006135996016836142bc565b91507f4c697374696e6720616c726561647920636c6f736564000000000000000000006000830152602082019050919050565b60006135d9601f836142bc565b91507f5175616e74697479206d7573742062652067726561746572207468656e2030006000830152602082019050919050565b6000613619600e836142bc565b91507f4c697374696e6720636c6f7365640000000000000000000000000000000000006000830152602082019050919050565b60006136596019836142bc565b91507f457870697279206d75737420626520312d3138302064617973000000000000006000830152602082019050919050565b60006136996017836142bc565b91507f546f6b656e20494420646f6573206e6f742065786973740000000000000000006000830152602082019050919050565b60006136d96010836142bc565b91507f5061757361626c653a20706175736564000000000000000000000000000000006000830152602082019050919050565b60006137196025836142bc565b91507f4d757374206265206f666665722063726561746f7220746f2063616e63656c2060008301527f6f666665720000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061377f601c836142bc565b91507f4f726967696e20636f6e7472616374206e6f7420617070726f766564000000006000830152602082019050919050565b60006137bf6014836142bc565b91507f4f6666657220616c726561647920636c6f7365640000000000000000000000006000830152602082019050919050565b60006137ff6015836142bc565b91507f496e636f7272656374206f6666657220707269636500000000000000000000006000830152602082019050919050565b600061383f6027836142bc565b91507f7061796d656e7444697669736f72206d75737420626520646976697369626c6560008301527f20627920313030000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006138a5600c836142bc565b91507f4f6666657220636c6f73656400000000000000000000000000000000000000006000830152602082019050919050565b60006138e5602c836142bc565b91507f4f66666572206d7573742062652067726561746572207468616e206d696e206c60008301527f697374696e6720707269636500000000000000000000000000000000000000006020830152604082019050919050565b600061394b601f836142bc565b91507f5175616e746974792065786365656473206f66666572207175616e74697479006000830152602082019050919050565b600061398b6022836142bc565b91507f5175616e74697479206578636565647320617661696c61626c652062616c616e60008301527f63650000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006139f16000836142ab565b9150600082019050919050565b6000613a0b6029836142bc565b91507f4d757374206265206c697374696e672063726561746f7220746f2063616e636560008301527f6c206c697374696e6700000000000000000000000000000000000000000000006020830152604082019050919050565b6000613a716017836142cd565b91507f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006000830152601782019050919050565b6000613ab1600f836142bc565b91507f4c697374696e67206578706972656400000000000000000000000000000000006000830152602082019050919050565b6000613af1601f836142bc565b91507f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006000830152602082019050919050565b6000613b316031836142bc565b91507f53616c65207072696365206d7573742062652067726561746572207468616e2060008301527f6d696e206c697374696e672070726963650000000000000000000000000000006020830152604082019050919050565b6000613b97601a836142bc565b91507f496e73756666696369656e74204c554348412062616c616e63650000000000006000830152602082019050919050565b6000613bd76011836142cd565b91507f206973206d697373696e6720726f6c65200000000000000000000000000000006000830152601182019050919050565b6000613c17602f836142bc565b91507f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008301527f20726f6c657320666f722073656c6600000000000000000000000000000000006020830152604082019050919050565b613c7981614461565b82525050565b6000613c8a82613a64565b9150613c96828561339b565b9150613ca182613bca565b9150613cad828461339b565b91508190509392505050565b6000602082019050613cce6000830184613326565b92915050565b6000604082019050613ce96000830185613326565b613cf66020830184613326565b9392505050565b6000606082019050613d126000830186613326565b613d1f6020830185613326565b613d2c6040830184613c70565b949350505050565b600060a082019050613d496000830187613326565b613d566020830186613326565b613d636040830185613c70565b613d706060830184613c70565b8181036080830152613d81816139e4565b905095945050505050565b6000604082019050613da16000830185613326565b613dae6020830184613c70565b9392505050565b6000608082019050613dca6000830187613326565b613dd76020830186613c70565b613de46040830185613c70565b613df16060830184613c70565b95945050505050565b600060a082019050613e0f6000830188613326565b613e1c6020830187613c70565b613e296040830186613c70565b613e366060830185613c70565b613e436080830184613c70565b9695505050505050565b6000602082019050613e626000830184613335565b92915050565b6000602082019050613e7d6000830184613344565b92915050565b6000602082019050613e986000830184613353565b92915050565b60006020820190508181036000830152613eb88184613362565b905092915050565b60006020820190508181036000830152613ed9816133cc565b9050919050565b60006020820190508181036000830152613ef98161340c565b9050919050565b60006020820190508181036000830152613f198161344c565b9050919050565b60006020820190508181036000830152613f398161348c565b9050919050565b60006020820190508181036000830152613f59816134cc565b9050919050565b60006020820190508181036000830152613f798161350c565b9050919050565b60006020820190508181036000830152613f998161354c565b9050919050565b60006020820190508181036000830152613fb98161358c565b9050919050565b60006020820190508181036000830152613fd9816135cc565b9050919050565b60006020820190508181036000830152613ff98161360c565b9050919050565b600060208201905081810360008301526140198161364c565b9050919050565b600060208201905081810360008301526140398161368c565b9050919050565b60006020820190508181036000830152614059816136cc565b9050919050565b600060208201905081810360008301526140798161370c565b9050919050565b6000602082019050818103600083015261409981613772565b9050919050565b600060208201905081810360008301526140b9816137b2565b9050919050565b600060208201905081810360008301526140d9816137f2565b9050919050565b600060208201905081810360008301526140f981613832565b9050919050565b6000602082019050818103600083015261411981613898565b9050919050565b60006020820190508181036000830152614139816138d8565b9050919050565b600060208201905081810360008301526141598161393e565b9050919050565b600060208201905081810360008301526141798161397e565b9050919050565b60006020820190508181036000830152614199816139fe565b9050919050565b600060208201905081810360008301526141b981613aa4565b9050919050565b600060208201905081810360008301526141d981613ae4565b9050919050565b600060208201905081810360008301526141f981613b24565b9050919050565b6000602082019050818103600083015261421981613b8a565b9050919050565b6000602082019050818103600083015261423981613c0a565b9050919050565b60006020820190506142556000830184613c70565b92915050565b60006080820190506142706000830187613c70565b61427d6020830186613c70565b61428a6040830185613c70565b6142976060830184613c70565b95945050505050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006142e382614461565b91506142ee83614461565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143235761432261451d565b5b828201905092915050565b600061433982614461565b915061434483614461565b9250826143545761435361454c565b5b828204905092915050565b600061436a82614461565b915061437583614461565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156143ae576143ad61451d565b5b828202905092915050565b60006143c482614461565b91506143cf83614461565b9250828210156143e2576143e161451d565b5b828203905092915050565b60006143f882614441565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006144768261447d565b9050919050565b600061448882614441565b9050919050565b60005b838110156144ad578082015181840152602081019050614492565b838111156144bc576000848401525b50505050565b60006144cd82614461565b915060008214156144e1576144e061451d565b5b600182039050919050565b60006144f782614461565b915061450283614461565b9250826145125761451161454c565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b614595816143ed565b81146145a057600080fd5b50565b6145ac816143ff565b81146145b757600080fd5b50565b6145c38161440b565b81146145ce57600080fd5b50565b6145da81614415565b81146145e557600080fd5b50565b6145f181614461565b81146145fc57600080fd5b5056fea2646970667358221220971679dc47cb3748193fa56839aed9bea9d6847b291947c8098b6773fb519f8664736f6c63430008000033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061021b5760003560e01c80635c975abb11610125578063a217fddf116100ad578063c015bec51161007c578063c015bec5146105e8578063c0fc80a214610618578063c4dbc40114610634578063cad08b4514610650578063d547741f1461066e5761021b565b8063a217fddf1461055c578063aa1a84111461057a578063b33e156e146105ae578063b8cb2d97146105ca5761021b565b80637b9ed097116100f45780637b9ed097146104ca5780638456cb59146104e85780639057f289146104f257806391d148541461050e5780639ba6a7851461053e5761021b565b80635c975abb1461045457806360101d3a146104725780636a1b7ecc1461048e5780637b22c8fe146104ac5761021b565b80632e80669f116101a857806336568abe1161017757806336568abe146103d457806338d11859146103f05780633f4ba83a1461040e578063406ecfd514610418578063598acb10146104365761021b565b80632e80669f146103605780632f2ff15d1461037e57806334e384d31461039a57806336124498146103b85761021b565b80631171df89116101ef5780631171df89146102bc578063131dbd09146102da57806314f49c89146102f6578063161878e914610314578063248a9ca3146103305761021b565b806207df301461022057806301ffc9a71461025457806304a628341461028457806310f9ca7a146102a0575b600080fd5b61023a60048036038101906102359190613068565b61068a565b60405161024b959493929190613dfa565b60405180910390f35b61026e600480360381019061026991906131a9565b6106ed565b60405161027b9190613e4d565b60405180910390f35b61029e60048036038101906102999190613260565b610767565b005b6102ba60048036038101906102b591906132c3565b610b64565b005b6102c4610c14565b6040516102d19190613e83565b60405180910390f35b6102f460048036038101906102ef91906131d2565b610c3a565b005b6102fe610c77565b60405161030b9190613cb9565b60405180910390f35b61032e600480360381019061032991906130a4565b610c9d565b005b61034a60048036038101906103459190613144565b611305565b6040516103579190613e68565b60405180910390f35b610368611324565b6040516103759190614240565b60405180910390f35b6103986004803603810190610393919061316d565b61132a565b005b6103a2611353565b6040516103af9190613cb9565b60405180910390f35b6103d260048036038101906103cd919061302c565b611379565b005b6103ee60048036038101906103e9919061316d565b6113ea565b005b6103f861146d565b6040516104059190614240565b60405180910390f35b610416611479565b005b610420611499565b60405161042d9190614240565b60405180910390f35b61043e61149f565b60405161044b9190613cb9565b60405180910390f35b61045c6114c5565b6040516104699190613e4d565b60405180910390f35b61048c60048036038101906104879190613224565b6114dc565b005b61049661165c565b6040516104a39190614240565b60405180910390f35b6104b4611662565b6040516104c19190614240565b60405180910390f35b6104d261166e565b6040516104df9190613e68565b60405180910390f35b6104f0611692565b005b61050c600480360381019061050791906130a4565b6116b2565b005b6105286004803603810190610523919061316d565b611ce6565b6040516105359190613e4d565b60405180910390f35b610546611d50565b6040516105539190614240565b60405180910390f35b610564611d56565b6040516105719190613e68565b60405180910390f35b610594600480360381019061058f9190613068565b611d5d565b6040516105a5959493929190613dfa565b60405180910390f35b6105c860048036038101906105c391906131d2565b611dc0565b005b6105d2611dfd565b6040516105df9190614240565b60405180910390f35b61060260048036038101906105fd9190613003565b611e03565b60405161060f9190613e4d565b60405180910390f35b610632600480360381019061062d9190613224565b611e23565b005b61064e60048036038101906106499190613260565b611fa3565b005b6106586123a0565b6040516106659190614240565b60405180910390f35b6106886004803603810190610683919061316d565b6123a6565b005b6010602052816000526040600020602052806000526040600020600091509150508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040154905085565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610760575061075f826123cf565b5b9050919050565b61076f6114c5565b156107af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a690614040565b60405180910390fd5b6002805414156107f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107eb906141c0565b60405180910390fd5b600280819055506000601160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600086815260200190815260200160002090506000610864838561243990919063ffffffff16565b905060008260030154116108ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a490614100565b60405180910390fd5b806108c584846002015461243990919063ffffffff16565b14610905576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108fc906140c0565b60405180910390fd5b60008311610948576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093f90613ee0565b60405180910390fd5b828260030154101561098f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161098690614140565b60405180910390fd5b428260040154116109d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109cc90613f60565b60405180910390fd5b6109ec83836003015461244f90919063ffffffff16565b82600301819055508473ffffffffffffffffffffffffffffffffffffffff1663f242432a338460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168560010154876040518563ffffffff1660e01b8152600401610a5b9493929190613d34565b600060405180830381600087803b158015610a7557600080fd5b505af1158015610a89573d6000803e3d6000fd5b50505050610abc8260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff163383612465565b8160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16877f7ce1c9cf3b91d016e11c8e8887a1a27c299a020644a655ac579f0f394787e98f338660010154876002015489604051610b4c9493929190613db5565b60405180910390a45050600160028190555050505050565b7f0a12058624d2cac0254f96fdd1650ac397644194b2e575febdb2477da219fcfe610b9681610b9161287c565b612884565b600085118015610bb257506000606486610bb091906144ec565b145b610bf1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be8906140e0565b60405180910390fd5b84600b8190555083600c8190555082600d8190555081600e819055505050505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f0a12058624d2cac0254f96fdd1650ac397644194b2e575febdb2477da219fcfe610c6c81610c6761287c565b612884565b816009819055505050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610ca56114c5565b15610ce5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cdc90614040565b60405180910390fd5b600280541415610d2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d21906141c0565b60405180910390fd5b60028081905550600f60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610dbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db490614080565b60405180910390fd5b60008573ffffffffffffffffffffffffffffffffffffffff1663bd85b039866040518263ffffffff1660e01b8152600401610df89190614240565b60206040518083038186803b158015610e1057600080fd5b505afa158015610e24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4891906131fb565b11610e88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7f90614020565b60405180910390fd5b610e9b828461243990919063ffffffff16565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610ef69190613cb9565b60206040518083038186803b158015610f0e57600080fd5b505afa158015610f22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4691906131fb565b1015610f87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7e90614200565b60405180910390fd5b600a54831015610fcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc390614120565b60405180910390fd5b6000821161100f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100690613ee0565b60405180910390fd5b60018110158015611021575060b48111155b611060576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105790614000565b60405180910390fd5b600061108a61107b620151808461243990919063ffffffff16565b4261292190919063ffffffff16565b90506110966004612937565b6040518060a001604052803373ffffffffffffffffffffffffffffffffffffffff16815260200186815260200185815260200184815260200182815250601160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061111e600461294d565b815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015560608201518160030155608082015181600401559050506000600954111561128057600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166009546040518463ffffffff1660e01b815260040161122c93929190613cfd565b602060405180830381600087803b15801561124657600080fd5b505af115801561125a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061127e919061311b565b505b3373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff166112b8600461294d565b7f9b6c371dc35c1862d4ca7c8685a5514cadf8e224c9289dc529a9384021ebf726888888876040516112ed949392919061425b565b60405180910390a45060016002819055505050505050565b6000806000838152602001908152602001600020600101549050919050565b600c5481565b61133382611305565b6113448161133f61287c565b612884565b61134e838361295b565b505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000801b61138e8161138961287c565b612884565b81600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505050565b6113f261287c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461145f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145690614220565b60405180910390fd5b6114698282612a3b565b5050565b60048060000154905081565b6000801b61148e8161148961287c565b612884565b611496612b1c565b50565b600d5481565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600160009054906101000a900460ff16905090565b6000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002090503373ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146115c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b990614180565b60405180910390fd5b6000816003015411611609576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160090613fa0565b60405180910390fd5b600081600301819055508173ffffffffffffffffffffffffffffffffffffffff16837f8e25282255ab31897df2b0456bb993ac7f84d376861aefd84901d2d63a7428a260405160405180910390a3505050565b60095481565b60038060000154905081565b7f0a12058624d2cac0254f96fdd1650ac397644194b2e575febdb2477da219fcfe81565b6000801b6116a7816116a261287c565b612884565b6116af612bbe565b50565b6116ba6114c5565b156116fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f190614040565b60405180910390fd5b60028054141561173f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611736906141c0565b60405180910390fd5b60028081905550600f60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166117d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c990614080565b60405180910390fd5b818573ffffffffffffffffffffffffffffffffffffffff1662fdd58e33876040518363ffffffff1660e01b815260040161180d929190613d8c565b60206040518083038186803b15801561182557600080fd5b505afa158015611839573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061185d91906131fb565b101561189e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189590613f80565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff1663e985e9c533306040518363ffffffff1660e01b81526004016118d9929190613cd4565b60206040518083038186803b1580156118f157600080fd5b505afa158015611905573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611929919061311b565b611968576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195f90613f00565b60405180910390fd5b600a548310156119ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a4906141e0565b60405180910390fd5b600082116119f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e790613fc0565b60405180910390fd5b60018110158015611a02575060b48111155b611a41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3890614000565b60405180910390fd5b6000611a6b611a5c620151808461243990919063ffffffff16565b4261292190919063ffffffff16565b9050611a776003612937565b6040518060a001604052803373ffffffffffffffffffffffffffffffffffffffff16815260200186815260200185815260200184815260200182815250601060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000611aff600361294d565b815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020155606082015181600301556080820151816004015590505060006009541115611c6157600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166009546040518463ffffffff1660e01b8152600401611c0d93929190613cfd565b602060405180830381600087803b158015611c2757600080fd5b505af1158015611c3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5f919061311b565b505b3373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16611c99600361294d565b7ff0d936e51f712725cd6ba4e040622272bdccabca6df0efe3f26094c1fd25d58088888887604051611cce949392919061425b565b60405180910390a45060016002819055505050505050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600a5481565b6000801b81565b6011602052816000526040600020602052806000526040600020600091509150508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040154905085565b7f0a12058624d2cac0254f96fdd1650ac397644194b2e575febdb2477da219fcfe611df281611ded61287c565b612884565b81600a819055505050565b600b5481565b600f6020528060005260406000206000915054906101000a900460ff1681565b6000601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002090503373ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611f09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0090614060565b60405180910390fd5b6000816003015411611f50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f47906140a0565b60405180910390fd5b600081600301819055508173ffffffffffffffffffffffffffffffffffffffff16837f1f51377b3e685a0e2419f9bb4ba7c07ec54936353ba3d0fb3c6538dab676622260405160405180910390a3505050565b611fab6114c5565b15611feb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe290614040565b60405180910390fd5b600280541415612030576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612027906141c0565b60405180910390fd5b600280819055506000601060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000868152602001908152602001600020905060006120a0838561243990919063ffffffff16565b905060008260030154116120e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e090613fe0565b60405180910390fd5b8061210184846002015461243990919063ffffffff16565b14612141576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213890613ec0565b60405180910390fd5b60008311612184576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217b90613ee0565b60405180910390fd5b82826003015410156121cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c290614160565b60405180910390fd5b42826004015411612211576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612208906141a0565b60405180910390fd5b61222883836003015461244f90919063ffffffff16565b82600301819055508473ffffffffffffffffffffffffffffffffffffffff1663f242432a8360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16338560010154876040518563ffffffff1660e01b81526004016122979493929190613d34565b600060405180830381600087803b1580156122b157600080fd5b505af11580156122c5573d6000803e3d6000fd5b505050506122f8338360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683612465565b8160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16877f78bb881bd05e07751749a526ef972e955dab09e7cdab65819077d4062cf1df083386600101548760020154896040516123889493929190613db5565b60405180910390a45050600160028190555050505050565b600e5481565b6123af82611305565b6123c0816123bb61287c565b612884565b6123ca8383612a3b565b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008183612447919061435f565b905092915050565b6000818361245d91906143b9565b905092915050565b6000612490600c54612482600b5485612c6090919063ffffffff16565b61243990919063ffffffff16565b905060006124bd600d546124af600b5486612c6090919063ffffffff16565b61243990919063ffffffff16565b905060006124ea600e546124dc600b5487612c6090919063ffffffff16565b61243990919063ffffffff16565b905060008311156125ca57600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd87600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866040518463ffffffff1660e01b815260040161257693929190613cfd565b602060405180830381600087803b15801561259057600080fd5b505af11580156125a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125c8919061311b565b505b60008211156126a857600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd87600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16856040518463ffffffff1660e01b815260040161265493929190613cfd565b602060405180830381600087803b15801561266e57600080fd5b505af1158015612682573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126a6919061311b565b505b600081111561278657600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd87600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b815260040161273293929190613cfd565b602060405180830381600087803b15801561274c57600080fd5b505af1158015612760573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612784919061311b565b505b60006127bf826127b1856127a3888a61244f90919063ffffffff16565b61244f90919063ffffffff16565b61244f90919063ffffffff16565b9050600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd8888846040518463ffffffff1660e01b815260040161282093929190613cfd565b602060405180830381600087803b15801561283a57600080fd5b505af115801561284e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612872919061311b565b5050505050505050565b600033905090565b61288e8282611ce6565b61291d576128b38173ffffffffffffffffffffffffffffffffffffffff166014612c76565b6128c18360001c6020612c76565b6040516020016128d2929190613c7f565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129149190613e9e565b60405180910390fd5b5050565b6000818361292f91906142d8565b905092915050565b6001816000016000828254019250508190555050565b600081600001549050919050565b6129658282611ce6565b612a3757600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506129dc61287c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b612a458282611ce6565b15612b1857600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612abd61287c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b612b246114c5565b612b63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5a90613f40565b60405180910390fd5b6000600160006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612ba761287c565b604051612bb49190613cb9565b60405180910390a1565b612bc66114c5565b15612c06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bfd90614040565b60405180910390fd5b60018060006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612c4961287c565b604051612c569190613cb9565b60405180910390a1565b60008183612c6e919061432e565b905092915050565b606060006002836002612c89919061435f565b612c9391906142d8565b67ffffffffffffffff811115612cd2577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612d045781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612d62577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612dec577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612e2c919061435f565b612e3691906142d8565b90505b6001811115612f22577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612e9e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110612edb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612f1b906144c2565b9050612e39565b5060008414612f66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f5d90613f20565b60405180910390fd5b8091505092915050565b600081359050612f7f8161458c565b92915050565b600081359050612f94816145a3565b92915050565b600081519050612fa9816145a3565b92915050565b600081359050612fbe816145ba565b92915050565b600081359050612fd3816145d1565b92915050565b600081359050612fe8816145e8565b92915050565b600081519050612ffd816145e8565b92915050565b60006020828403121561301557600080fd5b600061302384828501612f70565b91505092915050565b6000806040838503121561303f57600080fd5b600061304d85828601612f70565b925050602061305e85828601612f85565b9150509250929050565b6000806040838503121561307b57600080fd5b600061308985828601612f70565b925050602061309a85828601612fd9565b9150509250929050565b600080600080600060a086880312156130bc57600080fd5b60006130ca88828901612f70565b95505060206130db88828901612fd9565b94505060406130ec88828901612fd9565b93505060606130fd88828901612fd9565b925050608061310e88828901612fd9565b9150509295509295909350565b60006020828403121561312d57600080fd5b600061313b84828501612f9a565b91505092915050565b60006020828403121561315657600080fd5b600061316484828501612faf565b91505092915050565b6000806040838503121561318057600080fd5b600061318e85828601612faf565b925050602061319f85828601612f70565b9150509250929050565b6000602082840312156131bb57600080fd5b60006131c984828501612fc4565b91505092915050565b6000602082840312156131e457600080fd5b60006131f284828501612fd9565b91505092915050565b60006020828403121561320d57600080fd5b600061321b84828501612fee565b91505092915050565b6000806040838503121561323757600080fd5b600061324585828601612fd9565b925050602061325685828601612f70565b9150509250929050565b6000806000806080858703121561327657600080fd5b600061328487828801612fd9565b945050602061329587828801612f70565b93505060406132a687828801612fd9565b92505060606132b787828801612fd9565b91505092959194509250565b600080600080608085870312156132d957600080fd5b60006132e787828801612fd9565b94505060206132f887828801612fd9565b935050604061330987828801612fd9565b925050606061331a87828801612fd9565b91505092959194509250565b61332f816143ed565b82525050565b61333e816143ff565b82525050565b61334d8161440b565b82525050565b61335c8161446b565b82525050565b600061336d826142a0565b61337781856142bc565b935061338781856020860161448f565b6133908161457b565b840191505092915050565b60006133a6826142a0565b6133b081856142cd565b93506133c081856020860161448f565b80840191505092915050565b60006133d96018836142bc565b91507f496e636f727265637420707572636861736520707269636500000000000000006000830152602082019050919050565b6000613419601f836142bc565b91507f5175616e74697479206d7573742062652067726561746572207468616e2030006000830152602082019050919050565b6000613459601e836142bc565b91507f4d757374206861766520617070726f766564206d61726b6574706c61636500006000830152602082019050919050565b60006134996020836142bc565b91507f537472696e67733a20686578206c656e67746820696e73756666696369656e746000830152602082019050919050565b60006134d96014836142bc565b91507f5061757361626c653a206e6f74207061757365640000000000000000000000006000830152602082019050919050565b6000613519600d836142bc565b91507f4f666665722065787069726564000000000000000000000000000000000000006000830152602082019050919050565b6000613559601c836142bc565b91507f496e73756666696369656e7420455243313135352062616c616e6365000000006000830152602082019050919050565b60006135996016836142bc565b91507f4c697374696e6720616c726561647920636c6f736564000000000000000000006000830152602082019050919050565b60006135d9601f836142bc565b91507f5175616e74697479206d7573742062652067726561746572207468656e2030006000830152602082019050919050565b6000613619600e836142bc565b91507f4c697374696e6720636c6f7365640000000000000000000000000000000000006000830152602082019050919050565b60006136596019836142bc565b91507f457870697279206d75737420626520312d3138302064617973000000000000006000830152602082019050919050565b60006136996017836142bc565b91507f546f6b656e20494420646f6573206e6f742065786973740000000000000000006000830152602082019050919050565b60006136d96010836142bc565b91507f5061757361626c653a20706175736564000000000000000000000000000000006000830152602082019050919050565b60006137196025836142bc565b91507f4d757374206265206f666665722063726561746f7220746f2063616e63656c2060008301527f6f666665720000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061377f601c836142bc565b91507f4f726967696e20636f6e7472616374206e6f7420617070726f766564000000006000830152602082019050919050565b60006137bf6014836142bc565b91507f4f6666657220616c726561647920636c6f7365640000000000000000000000006000830152602082019050919050565b60006137ff6015836142bc565b91507f496e636f7272656374206f6666657220707269636500000000000000000000006000830152602082019050919050565b600061383f6027836142bc565b91507f7061796d656e7444697669736f72206d75737420626520646976697369626c6560008301527f20627920313030000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006138a5600c836142bc565b91507f4f6666657220636c6f73656400000000000000000000000000000000000000006000830152602082019050919050565b60006138e5602c836142bc565b91507f4f66666572206d7573742062652067726561746572207468616e206d696e206c60008301527f697374696e6720707269636500000000000000000000000000000000000000006020830152604082019050919050565b600061394b601f836142bc565b91507f5175616e746974792065786365656473206f66666572207175616e74697479006000830152602082019050919050565b600061398b6022836142bc565b91507f5175616e74697479206578636565647320617661696c61626c652062616c616e60008301527f63650000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006139f16000836142ab565b9150600082019050919050565b6000613a0b6029836142bc565b91507f4d757374206265206c697374696e672063726561746f7220746f2063616e636560008301527f6c206c697374696e6700000000000000000000000000000000000000000000006020830152604082019050919050565b6000613a716017836142cd565b91507f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006000830152601782019050919050565b6000613ab1600f836142bc565b91507f4c697374696e67206578706972656400000000000000000000000000000000006000830152602082019050919050565b6000613af1601f836142bc565b91507f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006000830152602082019050919050565b6000613b316031836142bc565b91507f53616c65207072696365206d7573742062652067726561746572207468616e2060008301527f6d696e206c697374696e672070726963650000000000000000000000000000006020830152604082019050919050565b6000613b97601a836142bc565b91507f496e73756666696369656e74204c554348412062616c616e63650000000000006000830152602082019050919050565b6000613bd76011836142cd565b91507f206973206d697373696e6720726f6c65200000000000000000000000000000006000830152601182019050919050565b6000613c17602f836142bc565b91507f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008301527f20726f6c657320666f722073656c6600000000000000000000000000000000006020830152604082019050919050565b613c7981614461565b82525050565b6000613c8a82613a64565b9150613c96828561339b565b9150613ca182613bca565b9150613cad828461339b565b91508190509392505050565b6000602082019050613cce6000830184613326565b92915050565b6000604082019050613ce96000830185613326565b613cf66020830184613326565b9392505050565b6000606082019050613d126000830186613326565b613d1f6020830185613326565b613d2c6040830184613c70565b949350505050565b600060a082019050613d496000830187613326565b613d566020830186613326565b613d636040830185613c70565b613d706060830184613c70565b8181036080830152613d81816139e4565b905095945050505050565b6000604082019050613da16000830185613326565b613dae6020830184613c70565b9392505050565b6000608082019050613dca6000830187613326565b613dd76020830186613c70565b613de46040830185613c70565b613df16060830184613c70565b95945050505050565b600060a082019050613e0f6000830188613326565b613e1c6020830187613c70565b613e296040830186613c70565b613e366060830185613c70565b613e436080830184613c70565b9695505050505050565b6000602082019050613e626000830184613335565b92915050565b6000602082019050613e7d6000830184613344565b92915050565b6000602082019050613e986000830184613353565b92915050565b60006020820190508181036000830152613eb88184613362565b905092915050565b60006020820190508181036000830152613ed9816133cc565b9050919050565b60006020820190508181036000830152613ef98161340c565b9050919050565b60006020820190508181036000830152613f198161344c565b9050919050565b60006020820190508181036000830152613f398161348c565b9050919050565b60006020820190508181036000830152613f59816134cc565b9050919050565b60006020820190508181036000830152613f798161350c565b9050919050565b60006020820190508181036000830152613f998161354c565b9050919050565b60006020820190508181036000830152613fb98161358c565b9050919050565b60006020820190508181036000830152613fd9816135cc565b9050919050565b60006020820190508181036000830152613ff98161360c565b9050919050565b600060208201905081810360008301526140198161364c565b9050919050565b600060208201905081810360008301526140398161368c565b9050919050565b60006020820190508181036000830152614059816136cc565b9050919050565b600060208201905081810360008301526140798161370c565b9050919050565b6000602082019050818103600083015261409981613772565b9050919050565b600060208201905081810360008301526140b9816137b2565b9050919050565b600060208201905081810360008301526140d9816137f2565b9050919050565b600060208201905081810360008301526140f981613832565b9050919050565b6000602082019050818103600083015261411981613898565b9050919050565b60006020820190508181036000830152614139816138d8565b9050919050565b600060208201905081810360008301526141598161393e565b9050919050565b600060208201905081810360008301526141798161397e565b9050919050565b60006020820190508181036000830152614199816139fe565b9050919050565b600060208201905081810360008301526141b981613aa4565b9050919050565b600060208201905081810360008301526141d981613ae4565b9050919050565b600060208201905081810360008301526141f981613b24565b9050919050565b6000602082019050818103600083015261421981613b8a565b9050919050565b6000602082019050818103600083015261423981613c0a565b9050919050565b60006020820190506142556000830184613c70565b92915050565b60006080820190506142706000830187613c70565b61427d6020830186613c70565b61428a6040830185613c70565b6142976060830184613c70565b95945050505050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006142e382614461565b91506142ee83614461565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143235761432261451d565b5b828201905092915050565b600061433982614461565b915061434483614461565b9250826143545761435361454c565b5b828204905092915050565b600061436a82614461565b915061437583614461565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156143ae576143ad61451d565b5b828202905092915050565b60006143c482614461565b91506143cf83614461565b9250828210156143e2576143e161451d565b5b828203905092915050565b60006143f882614441565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006144768261447d565b9050919050565b600061448882614441565b9050919050565b60005b838110156144ad578082015181840152602081019050614492565b838111156144bc576000848401525b50505050565b60006144cd82614461565b915060008214156144e1576144e061451d565b5b600182039050919050565b60006144f782614461565b915061450283614461565b9250826145125761451161454c565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b614595816143ed565b81146145a057600080fd5b50565b6145ac816143ff565b81146145b757600080fd5b50565b6145c38161440b565b81146145ce57600080fd5b50565b6145da81614415565b81146145e557600080fd5b50565b6145f181614461565b81146145fc57600080fd5b5056fea2646970667358221220971679dc47cb3748193fa56839aed9bea9d6847b291947c8098b6773fb519f8664736f6c63430008000033

Block Transaction Gas Used Reward
view all blocks produced

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

Validator Index Block Amount
View All Withdrawals

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

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