ETH Price: $3,276.60 (-2.31%)

Contract

0xA7206d878c5c3871826DfdB42191c49B1D11F466
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...214601452024-12-22 19:32:237 hrs ago1734895943IN
LOSTPOETS: Page
0 ETH0.0003066.63810462
Set Approval For...214565032024-12-22 7:19:5919 hrs ago1734851999IN
LOSTPOETS: Page
0 ETH0.000119084.92364083
Set Approval For...214545542024-12-22 0:48:1126 hrs ago1734828491IN
LOSTPOETS: Page
0 ETH0.000316136.8578363
Set Approval For...214520602024-12-21 16:24:3534 hrs ago1734798275IN
LOSTPOETS: Page
0 ETH0.000374718.12639434
Set Approval For...214445202024-12-20 15:07:112 days ago1734707231IN
LOSTPOETS: Page
0 ETH0.0020312144.06204554
Set Approval For...214215162024-12-17 9:59:595 days ago1734429599IN
LOSTPOETS: Page
0 ETH0.0005391611.69572785
Set Approval For...214215012024-12-17 9:56:595 days ago1734429419IN
LOSTPOETS: Page
0 ETH0.0005662312.2830894
Set Approval For...214195962024-12-17 3:34:355 days ago1734406475IN
LOSTPOETS: Page
0 ETH0.0005027610.90629298
Set Approval For...214129802024-12-16 5:26:116 days ago1734326771IN
LOSTPOETS: Page
0 ETH0.0003000312.36198966
Set Approval For...214090082024-12-15 16:07:477 days ago1734278867IN
LOSTPOETS: Page
0 ETH0.0004964210.76866777
Safe Transfer Fr...214089882024-12-15 16:03:477 days ago1734278627IN
LOSTPOETS: Page
0 ETH0.0006348310.77016133
Set Approval For...214061012024-12-15 6:22:237 days ago1734243743IN
LOSTPOETS: Page
0 ETH0.000150856.23700235
Set Approval For...214042072024-12-15 0:02:118 days ago1734220931IN
LOSTPOETS: Page
0 ETH0.000385878.37048004
Set Approval For...213982972024-12-14 4:14:238 days ago1734149663IN
LOSTPOETS: Page
0 ETH0.000454479.85863467
Set Approval For...213982612024-12-14 4:07:118 days ago1734149231IN
LOSTPOETS: Page
0 ETH0.00041539.008947
Set Approval For...213949252024-12-13 16:56:479 days ago1734109007IN
LOSTPOETS: Page
0 ETH0.0013247728.73759925
Set Approval For...213842822024-12-12 5:17:4710 days ago1733980667IN
LOSTPOETS: Page
0 ETH0.0006750514.64351052
Set Approval For...213590842024-12-08 16:51:4714 days ago1733676707IN
LOSTPOETS: Page
0 ETH0.0007851817.03250437
Set Approval For...213552902024-12-08 4:09:1114 days ago1733630951IN
LOSTPOETS: Page
0 ETH0.000376898.17573402
Set Approval For...213552762024-12-08 4:06:2314 days ago1733630783IN
LOSTPOETS: Page
0 ETH0.000380118.24568014
Safe Transfer Fr...213544572024-12-08 1:22:2315 days ago1733620943IN
LOSTPOETS: Page
0 ETH0.000496249.17605845
Set Approval For...213530292024-12-07 20:34:5915 days ago1733603699IN
LOSTPOETS: Page
0 ETH0.0006912514.99494085
Set Approval For...213487402024-12-07 6:10:4715 days ago1733551847IN
LOSTPOETS: Page
0 ETH0.000666514.45821955
Safe Transfer Fr...213461832024-12-06 21:35:5916 days ago1733520959IN
LOSTPOETS: Page
0 ETH0.0012749323.54711505
Safe Transfer Fr...213461552024-12-06 21:30:2316 days ago1733520623IN
LOSTPOETS: Page
0 ETH0.0011327427.01765881
View all transactions

Latest 9 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
131601762021-09-04 16:05:081205 days ago1630771508
LOSTPOETS: Page
2,516.7 ETH
131601382021-09-04 15:58:121205 days ago1630771092
LOSTPOETS: Page
0.1 ETH
131600322021-09-04 15:36:061205 days ago1630769766
LOSTPOETS: Page
14,251.1 ETH
131600182021-09-04 15:33:221205 days ago1630769602
LOSTPOETS: Page
0.1 ETH
131537582021-09-03 16:11:561206 days ago1630685516
LOSTPOETS: Page
19.84 ETH
131537032021-09-03 16:00:321206 days ago1630684832
LOSTPOETS: Page
40 ETH
131536002021-09-03 15:34:091206 days ago1630683249
LOSTPOETS: Page
0.96 ETH
131535022021-09-03 15:12:261206 days ago1630681946
LOSTPOETS: Page
0.32 ETH
131534462021-09-03 15:01:411206 days ago1630681301
LOSTPOETS: Page
99.52 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LostPoetPages

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 15 : LostPoetPages.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @artist: Pak
/// @author: manifold.xyz

import "@manifoldxyz/libraries-solidity/contracts/access/AdminControl.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                                           //
//  `7MMF'        .g8""8q.    .M"""bgd MMP""MM""YMM `7MM"""Mq.   .g8""8q. `7MM"""YMM MMP""MM""YMM  .M"""bgd  //
//    MM        .dP'    `YM. ,MI    "Y P'   MM   `7   MM   `MM..dP'    `YM. MM    `7 P'   MM   `7 ,MI    "Y  //
//    MM        dM'      `MM `MMb.          MM        MM   ,M9 dM'      `MM MM   d        MM      `MMb.      //
//    MM        MM        MM   `YMMNq.      MM        MMmmdM9  MM        MM MMmmMM        MM        `YMMNq.  //
//    MM      , MM.      ,MP .     `MM      MM        MM       MM.      ,MP MM   Y  ,     MM      .     `MM  //
//    MM     ,M `Mb.    ,dP' Mb     dM      MM        MM       `Mb.    ,dP' MM     ,M     MM      Mb     dM  //
//  .JMMmmmmMMM   `"bmmd"'   P"Ybmmd"     .JMML.    .JMML.       `"bmmd"' .JMMmmmmMMM   .JMML.    P"Ybmmd"   //
//                                                                                                           //
///////////////////////////////////////////////////////////////////////////////////////////////////////////////

contract LostPoetPages is ReentrancyGuard, AdminControl, ERC1155 {

    struct Reward {
        address recipient;
        uint256 amount;
    }

    uint256 constant public maxPages = 65536;
    uint256 public claimedPages;
    bool public active;
    uint256 public privateActiveTimestamp;
    uint256 public publicActiveTimestamp;
    uint256 public endTimestamp;
    address public ashContract;
    uint256 public ashThreshold;

    uint256 constant private _tokenId = 1;
    uint256 private _price = 320000000000000000;

    uint256 private _royaltyBps;
    address payable private _royaltyRecipient;

    bytes4 private constant _INTERFACE_ID_ROYALTIES_CREATORCORE = 0xbb3bafd6;
    bytes4 private constant _INTERFACE_ID_ROYALTIES_EIP2981 = 0x2a55205a;
    bytes4 private constant _INTERFACE_ID_ROYALTIES_RARIBLE = 0xb7799584;

    event Activate();
    event Deactivate();

    constructor() ERC1155("https://arweave.net/Fx_J8h0B1q6BQYBEeB2bi2Cp4kdTepgM73SpDqK1iAU") {}

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(AdminControl, ERC1155) returns (bool) {
        return ERC1155.supportsInterface(interfaceId) || AdminControl.supportsInterface(interfaceId) || interfaceId == _INTERFACE_ID_ROYALTIES_CREATORCORE
               || interfaceId == _INTERFACE_ID_ROYALTIES_EIP2981 || interfaceId == _INTERFACE_ID_ROYALTIES_RARIBLE;
    }

    /**
     * @dev Withdraw funds
     */
    function withdraw(uint256 amount) external adminRequired {
        require(_royaltyRecipient != address(0x0), "Must set royalty recipient");
        _royaltyRecipient.transfer(amount);
    }

    /**
     * @dev Activate public sale
     */
    function activate(uint256 startTime, uint256 privateSaleInterval, uint256 publicSaleInterval, address ashContract_, uint256 ashThreshold_) external adminRequired {
        require(!active, "Already active");
        active = true;
        privateActiveTimestamp = startTime;
        publicActiveTimestamp = startTime+privateSaleInterval;
        endTimestamp = publicActiveTimestamp+publicSaleInterval;
        ashContract = ashContract_;
        ashThreshold = ashThreshold_;
        emit Activate();
    }

    /**
     * @dev Deactivate public sale
     */
    function deactivate() external adminRequired {
        active = false;
        emit Deactivate();
    }

    /**
     * @dev Change the URI
     */
    function setURI(string memory newuri) external adminRequired {
        _setURI(newuri);
    }

    /**
     * @dev Reward pages. Only available before activation
     */
    function rewardPages(Reward[] memory rewards) external adminRequired {
        require(!active && endTimestamp == 0, "Can only reward while inactive");
        for (uint i = 0; i < rewards.length; i++) {
            claimedPages += rewards[i].amount;
            require(claimedPages <= maxPages, "Too many requested");
            _mint(rewards[i].recipient, _tokenId, rewards[i].amount, "");
        }
    }

    /**
     * @dev Distribute remainder. Only available after sale completion
     */
    function distributeRemainder(Reward[] memory rewards) external adminRequired {
        require(endTimestamp > 0 && block.timestamp > endTimestamp, "Can only distribute remainder after sale end");
        for (uint i = 0; i < rewards.length; i++) {
            claimedPages += rewards[i].amount;
            require(claimedPages <= maxPages, "Too many requested");
            _mint(rewards[i].recipient, _tokenId, rewards[i].amount, "");
        }
    }

    /**
     * @dev Claim pages
     */
    function claimPages(uint256 amount) external payable nonReentrant {
        require(active && block.timestamp >= privateActiveTimestamp && block.timestamp <= endTimestamp, "Inactive");
        if (block.timestamp < publicActiveTimestamp) {
            // Private sale, check if individual has appropriate balance
            require(IERC20(ashContract).balanceOf(msg.sender) >= ashThreshold, "You do not have enough ASH to participate in the private sale");
        }

        // Can only claim 1000 at a time
        require(amount <= 1000, "Too many requested");

        // Bonus pages: one page for every 6 claimed
        uint256 totalPages = amount + calculateBonusPages(amount);

        claimedPages += totalPages;
        require(claimedPages <= maxPages, "Too many requested");
        require(amount > 0 && msg.value == amount*_price, "Invalid eth sent");

        _mint(msg.sender, _tokenId, totalPages, "");
    }

    /**
     * @dev calculate bonus pages
     */
    function calculateBonusPages(uint256 amount) public view returns(uint256) {
        uint256 remainder = 1;
        if (maxPages > claimedPages) {
            remainder = maxPages-claimedPages;
        }
        return amount*remainder/(maxPages*3);
    }

    /**
     * @dev calculate minimum number of pages to get one bonus page
     */
    function pagesPerBonus() public view returns(uint256) {
        uint256 remainder = 1;
        if (maxPages > claimedPages) {
            remainder = maxPages-claimedPages;
        }
        return (100*3*maxPages)/remainder+1;
    }

    /**
     * @dev Update royalties
     */
    function updateRoyalties(address payable recipient, uint256 bps) external adminRequired {
        _royaltyRecipient = recipient;
        _royaltyBps = bps;
    }

    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual override {
        require(claimedPages == maxPages, "Transfer locked");
        super._safeTransferFrom(from, to, id, amount, data);
    }

    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        require(claimedPages == maxPages, "Transfer locked");
        super._safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * ROYALTY FUNCTIONS
     */
    function getRoyalties(uint256) external view returns (address payable[] memory recipients, uint256[] memory bps) {
        if (_royaltyRecipient != address(0x0)) {
            recipients = new address payable[](1);
            recipients[0] = _royaltyRecipient;
            bps = new uint256[](1);
            bps[0] = _royaltyBps;
        }
        return (recipients, bps);
    }

    function getFeeRecipients(uint256) external view returns (address payable[] memory recipients) {
        if (_royaltyRecipient != address(0x0)) {
            recipients = new address payable[](1);
            recipients[0] = _royaltyRecipient;
        }
        return recipients;
    }

    function getFeeBps(uint256) external view returns (uint[] memory bps) {
        if (_royaltyRecipient != address(0x0)) {
            bps = new uint256[](1);
            bps[0] = _royaltyBps;
        }
        return bps;
    }

    function royaltyInfo(uint256, uint256 value) external view returns (address, uint256) {
        return (_royaltyRecipient, value*_royaltyBps/10000);
    }

}

File 2 of 15 : AdminControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./IAdminControl.sol";

abstract contract AdminControl is Ownable, IAdminControl, ERC165 {
    using EnumerableSet for EnumerableSet.AddressSet;

    // Track registered admins
    EnumerableSet.AddressSet private _admins;

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

    /**
     * @dev Only allows approved admins to call the specified function
     */
    modifier adminRequired() {
        require(owner() == msg.sender || _admins.contains(msg.sender), "AdminControl: Must be owner or admin");
        _;
    }   

    /**
     * @dev See {IAdminControl-getAdmins}.
     */
    function getAdmins() external view override returns (address[] memory admins) {
        admins = new address[](_admins.length());
        for (uint i = 0; i < _admins.length(); i++) {
            admins[i] = _admins.at(i);
        }
        return admins;
    }

    /**
     * @dev See {IAdminControl-approveAdmin}.
     */
    function approveAdmin(address admin) external override onlyOwner {
        if (!_admins.contains(admin)) {
            emit AdminApproved(admin, msg.sender);
            _admins.add(admin);
        }
    }

    /**
     * @dev See {IAdminControl-revokeAdmin}.
     */
    function revokeAdmin(address admin) external override onlyOwner {
        if (_admins.contains(admin)) {
            emit AdminRevoked(admin, msg.sender);
            _admins.remove(admin);
        }
    }

    /**
     * @dev See {IAdminControl-isAdmin}.
     */
    function isAdmin(address admin) public override view returns (bool) {
        return (owner() == admin || _admins.contains(admin));
    }

}

File 3 of 15 : 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 4 of 15 : ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `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 memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - 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[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(account != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][account] += amount;
        emit TransferSingle(operator, address(0), account, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * 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 _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `account`
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 accountBalance = _balances[id][account];
        require(accountBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][account] = accountBalance - amount;
        }

        emit TransferSingle(operator, account, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 accountBalance = _balances[id][account];
            require(accountBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][account] = accountBalance - amount;
            }
        }

        emit TransferBatch(operator, account, address(0), ids, amounts);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 5 of 15 : 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 6 of 15 : 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;
    }
}

File 7 of 15 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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

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

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

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

        assembly {
            result := store
        }

        return result;
    }
}

File 8 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 9 of 15 : IAdminControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

/**
 * @dev Interface for admin control
 */
interface IAdminControl is IERC165 {

    event AdminApproved(address indexed account, address indexed sender);
    event AdminRevoked(address indexed account, address indexed sender);

    /**
     * @dev gets address of all admins
     */
    function getAdmins() external view returns (address[] memory);

    /**
     * @dev add an admin.  Can only be called by contract owner.
     */
    function approveAdmin(address admin) external;

    /**
     * @dev remove an admin.  Can only be called by contract owner.
     */
    function revokeAdmin(address admin) external;

    /**
     * @dev checks whether or not given address is an admin
     * Returns True if they are
     */
    function isAdmin(address admin) external view returns (bool);

}

File 10 of 15 : 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 11 of 15 : 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 15 : 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 13 of 15 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 14 of 15 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 15 of 15 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"Activate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[],"name":"Deactivate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"privateSaleInterval","type":"uint256"},{"internalType":"uint256","name":"publicSaleInterval","type":"uint256"},{"internalType":"address","name":"ashContract_","type":"address"},{"internalType":"uint256","name":"ashThreshold_","type":"uint256"}],"name":"activate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"approveAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ashContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ashThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"calculateBonusPages","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claimPages","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"claimedPages","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deactivate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct LostPoetPages.Reward[]","name":"rewards","type":"tuple[]"}],"name":"distributeRemainder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAdmins","outputs":[{"internalType":"address[]","name":"admins","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"bps","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"recipients","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getRoyalties","outputs":[{"internalType":"address payable[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"bps","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPages","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pagesPerBonus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateActiveTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicActiveTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"revokeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct LostPoetPages.Reward[]","name":"rewards","type":"tuple[]"}],"name":"rewardPages","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"bps","type":"uint256"}],"name":"updateRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052670470de4df8200000600e553480156200001d57600080fd5b506040518060600160405280603f815260200162003699603f9139600160005562000048336200005a565b6200005381620000ac565b50620001a8565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8051620000c1906006906020840190620000c5565b5050565b828054620000d3906200016b565b90600052602060002090601f016020900481019282620000f7576000855562000142565b82601f106200011257805160ff191683800117855562000142565b8280016001018555821562000142579182015b828111156200014257825182559160200191906001019062000125565b506200015092915062000154565b5090565b5b8082111562000150576000815560010162000155565b600181811c908216806200018057607f821691505b60208210811415620001a257634e487b7160e01b600052602260045260246000fd5b50919050565b6134e180620001b86000396000f3fe6080604052600436106102695760003560e01c80636c2f5acd11610153578063a85adeab116100cb578063d5e1d5091161007f578063f242432a11610064578063f242432a146106f5578063f2fde38b14610715578063fba3ad561461073557600080fd5b8063d5e1d50914610696578063e985e9c5146106ac57600080fd5b8063bb3bafd6116100b0578063bb3bafd614610635578063bd27653c14610663578063cc8cfc0e1461068357600080fd5b8063a85adeab146105f2578063b9c4d9fb1461060857600080fd5b80638da5cb5b1161012257806399e831aa1161010757806399e831aa1461059c578063a22cb465146105b2578063a420ed3e146105d257600080fd5b80638da5cb5b1461054a57806392b36dbd1461057c57600080fd5b80636c2f5acd146104d55780636d73e669146104f5578063715018a61461051557806385676a6c1461052a57600080fd5b80632e1a7d4d116101e657806346dabab4116101b557806351b42b001161019a57806351b42b001461049557806354650209146104aa57806358e465e0146104bf57600080fd5b806346dabab41461045f5780634e1273f41461047557600080fd5b80632e1a7d4d146103e65780632eb2c2d61461040657806331ae450b1461042657806346a8e5781461044857600080fd5b80630e89341c1161023d57806324d7806c1161022257806324d7806c146103675780632a55205a146103875780632d345670146103c657600080fd5b80630e89341c1461030d5780630ebd4c7f1461033a57600080fd5b8062fdd58e1461026e57806301ffc9a7146102a157806302fb0c5e146102d157806302fe5305146102eb575b600080fd5b34801561027a57600080fd5b5061028e610289366004612ba1565b610755565b6040519081526020015b60405180910390f35b3480156102ad57600080fd5b506102c16102bc366004612ef4565b610803565b6040519015158152602001610298565b3480156102dd57600080fd5b506008546102c19060ff1681565b3480156102f757600080fd5b5061030b610306366004612f2e565b6108be565b005b34801561031957600080fd5b5061032d610328366004612f7f565b610950565b6040516102989190613232565b34801561034657600080fd5b5061035a610355366004612f7f565b6109e4565b604051610298919061320c565b34801561037357600080fd5b506102c1610382366004612b84565b610a40565b34801561039357600080fd5b506103a76103a2366004612fb1565b610a79565b604080516001600160a01b039093168352602083019190915201610298565b3480156103d257600080fd5b5061030b6103e1366004612b84565b610ab3565b3480156103f257600080fd5b5061030b610401366004612f7f565b610b62565b34801561041257600080fd5b5061030b610421366004612c06565b610c7a565b34801561043257600080fd5b5061043b610d1c565b604051610298919061317e565b34801561045457600080fd5b5061028e6201000081565b34801561046b57600080fd5b5061028e60075481565b34801561048157600080fd5b5061035a610490366004612d50565b610dcb565b3480156104a157600080fd5b5061030b610f09565b3480156104b657600080fd5b5061028e610fc4565b3480156104cb57600080fd5b5061028e60095481565b3480156104e157600080fd5b5061030b6104f0366004612ba1565b611015565b34801561050157600080fd5b5061030b610510366004612b84565b6110ce565b34801561052157600080fd5b5061030b611178565b34801561053657600080fd5b5061030b610545366004612e23565b6111de565b34801561055657600080fd5b506001546001600160a01b03165b6040516001600160a01b039091168152602001610298565b34801561058857600080fd5b5061028e610597366004612f7f565b6113db565b3480156105a857600080fd5b5061028e600d5481565b3480156105be57600080fd5b5061030b6105cd366004612d1d565b61142a565b3480156105de57600080fd5b50600c54610564906001600160a01b031681565b3480156105fe57600080fd5b5061028e600b5481565b34801561061457600080fd5b50610628610623366004612f7f565b611515565b60405161029891906131cb565b34801561064157600080fd5b50610655610650366004612f7f565b61158e565b6040516102989291906131de565b34801561066f57600080fd5b5061030b61067e366004612e23565b611642565b61030b610691366004612f7f565b6117d8565b3480156106a257600080fd5b5061028e600a5481565b3480156106b857600080fd5b506102c16106c7366004612bcd565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561070157600080fd5b5061030b610710366004612cb4565b611afe565b34801561072157600080fd5b5061030b610730366004612b84565b611b99565b34801561074157600080fd5b5061030b610750366004612fd3565b611c78565b60006001600160a01b0383166107d85760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060008181526004602090815260408083206001600160a01b03861684529091529020545b92915050565b600061080e82611ddd565b8061081d575061081d82611e4b565b8061085157506001600160e01b031982167fbb3bafd600000000000000000000000000000000000000000000000000000000145b8061088557506001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000145b806107fd57506001600160e01b031982167fb7799584000000000000000000000000000000000000000000000000000000001492915050565b336108d16001546001600160a01b031690565b6001600160a01b031614806108ec57506108ec600233611eb2565b6109445760405162461bcd60e51b8152602060048201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616044820152633236b4b760e11b60648201526084016107cf565b61094d81611ed4565b50565b60606006805461095f906132d9565b80601f016020809104026020016040519081016040528092919081815260200182805461098b906132d9565b80156109d85780601f106109ad576101008083540402835291602001916109d8565b820191906000526020600020905b8154815290600101906020018083116109bb57829003601f168201915b50505050509050919050565b6010546060906001600160a01b031615610a3b576040805160018082528183019092529060208083019080368337019050509050600f5481600081518110610a2e57610a2e6133ae565b6020026020010181815250505b919050565b6000816001600160a01b0316610a5e6001546001600160a01b031690565b6001600160a01b031614806107fd57506107fd600283611eb2565b601054600f5460009182916001600160a01b039091169061271090610a9e90866132a3565b610aa89190613281565b915091509250929050565b6001546001600160a01b03163314610b0d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107cf565b610b18600282611eb2565b1561094d5760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a3610b5e600282611ee7565b5050565b33610b756001546001600160a01b031690565b6001600160a01b03161480610b905750610b90600233611eb2565b610be85760405162461bcd60e51b8152602060048201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616044820152633236b4b760e11b60648201526084016107cf565b6010546001600160a01b0316610c405760405162461bcd60e51b815260206004820152601a60248201527f4d7573742073657420726f79616c747920726563697069656e7400000000000060448201526064016107cf565b6010546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015610b5e573d6000803e3d6000fd5b6001600160a01b038516331480610c965750610c9685336106c7565b610d085760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016107cf565b610d158585858585611efc565b5050505050565b6060610d286002611f5d565b67ffffffffffffffff811115610d4057610d406133c4565b604051908082528060200260200182016040528015610d69578160200160208202803683370190505b50905060005b610d796002611f5d565b811015610dc757610d8b600282611f67565b828281518110610d9d57610d9d6133ae565b6001600160a01b039092166020928302919091019091015280610dbf81613367565b915050610d6f565b5090565b60608151835114610e445760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d61746368000000000000000000000000000000000000000000000060648201526084016107cf565b6000835167ffffffffffffffff811115610e6057610e606133c4565b604051908082528060200260200182016040528015610e89578160200160208202803683370190505b50905060005b8451811015610f0157610ed4858281518110610ead57610ead6133ae565b6020026020010151858381518110610ec757610ec76133ae565b6020026020010151610755565b828281518110610ee657610ee66133ae565b6020908102919091010152610efa81613367565b9050610e8f565b509392505050565b33610f1c6001546001600160a01b031690565b6001600160a01b03161480610f375750610f37600233611eb2565b610f8f5760405162461bcd60e51b8152602060048201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616044820152633236b4b760e11b60648201526084016107cf565b6008805460ff191690556040517fc2a8834045efeaf0b37df1cf2e5979bff82a0c7f93c99b649a004940ef3cda4590600090a1565b600754600090600190620100001115610fea57600754610fe790620100006132c2565b90505b80610ffa6201000061012c6132a3565b6110049190613281565b61100f906001613269565b91505090565b336110286001546001600160a01b031690565b6001600160a01b031614806110435750611043600233611eb2565b61109b5760405162461bcd60e51b8152602060048201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616044820152633236b4b760e11b60648201526084016107cf565b6010805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039390931692909217909155600f55565b6001546001600160a01b031633146111285760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107cf565b611133600282611eb2565b61094d5760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a3610b5e600282611f73565b6001546001600160a01b031633146111d25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107cf565b6111dc6000611f88565b565b336111f16001546001600160a01b031690565b6001600160a01b0316148061120c575061120c600233611eb2565b6112645760405162461bcd60e51b8152602060048201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616044820152633236b4b760e11b60648201526084016107cf565b6000600b541180156112775750600b5442115b6112e95760405162461bcd60e51b815260206004820152602c60248201527f43616e206f6e6c7920646973747269627574652072656d61696e64657220616660448201527f7465722073616c6520656e64000000000000000000000000000000000000000060648201526084016107cf565b60005b8151811015610b5e57818181518110611307576113076133ae565b602002602001015160200151600760008282546113249190613269565b90915550506007546201000010156113735760405162461bcd60e51b8152602060048201526012602482015271151bdbc81b585b9e481c995c5d595cdd195960721b60448201526064016107cf565b6113c9828281518110611388576113886133ae565b60200260200101516000015160018484815181106113a8576113a86133ae565b60200260200101516020015160405180602001604052806000815250611fe7565b806113d381613367565b9150506112ec565b600754600090600190620100001115611401576007546113fe90620100006132c2565b90505b61140f6201000060036132a3565b61141982856132a3565b6114239190613281565b9392505050565b336001600160a01b03831614156114a95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c66000000000000000000000000000000000000000000000060648201526084016107cf565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6010546060906001600160a01b031615610a3b576040805160018082528183019092529060208083019080368337505060105482519293506001600160a01b031691839150600090611569576115696133ae565b60200260200101906001600160a01b031690816001600160a01b031681525050919050565b60105460609081906001600160a01b03161561163d576040805160018082528183019092529060208083019080368337505060105482519294506001600160a01b0316918491506000906115e4576115e46133ae565b6001600160a01b0392909216602092830291909101820152604080516001808252818301909252918281019080368337019050509050600f5481600081518110611630576116306133ae565b6020026020010181815250505b915091565b336116556001546001600160a01b031690565b6001600160a01b031614806116705750611670600233611eb2565b6116c85760405162461bcd60e51b8152602060048201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616044820152633236b4b760e11b60648201526084016107cf565b60085460ff161580156116db5750600b54155b6117275760405162461bcd60e51b815260206004820152601e60248201527f43616e206f6e6c7920726577617264207768696c6520696e616374697665000060448201526064016107cf565b60005b8151811015610b5e57818181518110611745576117456133ae565b602002602001015160200151600760008282546117629190613269565b90915550506007546201000010156117b15760405162461bcd60e51b8152602060048201526012602482015271151bdbc81b585b9e481c995c5d595cdd195960721b60448201526064016107cf565b6117c6828281518110611388576113886133ae565b806117d081613367565b91505061172a565b6002600054141561182b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107cf565b600260005560085460ff16801561184457506009544210155b80156118525750600b544211155b61189e5760405162461bcd60e51b815260206004820152600860248201527f496e61637469766500000000000000000000000000000000000000000000000060448201526064016107cf565b600a544210156119b357600d54600c546040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561190757600080fd5b505afa15801561191b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061193f9190612f98565b10156119b35760405162461bcd60e51b815260206004820152603d60248201527f596f7520646f206e6f74206861766520656e6f7567682041534820746f20706160448201527f72746963697061746520696e2074686520707269766174652073616c6500000060648201526084016107cf565b6103e88111156119fa5760405162461bcd60e51b8152602060048201526012602482015271151bdbc81b585b9e481c995c5d595cdd195960721b60448201526064016107cf565b6000611a05826113db565b611a0f9083613269565b90508060076000828254611a239190613269565b9091555050600754620100001015611a725760405162461bcd60e51b8152602060048201526012602482015271151bdbc81b585b9e481c995c5d595cdd195960721b60448201526064016107cf565b600082118015611a8d5750600e54611a8a90836132a3565b34145b611ad95760405162461bcd60e51b815260206004820152601060248201527f496e76616c6964206574682073656e740000000000000000000000000000000060448201526064016107cf565b611af53360018360405180602001604052806000815250611fe7565b50506001600055565b6001600160a01b038516331480611b1a5750611b1a85336106c7565b611b8c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f766564000000000000000000000000000000000000000000000060648201526084016107cf565b610d15858585858561210f565b6001546001600160a01b03163314611bf35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107cf565b6001600160a01b038116611c6f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107cf565b61094d81611f88565b33611c8b6001546001600160a01b031690565b6001600160a01b03161480611ca65750611ca6600233611eb2565b611cfe5760405162461bcd60e51b8152602060048201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616044820152633236b4b760e11b60648201526084016107cf565b60085460ff1615611d515760405162461bcd60e51b815260206004820152600e60248201527f416c72656164792061637469766500000000000000000000000000000000000060448201526064016107cf565b6008805460ff191660011790556009859055611d6d8486613269565b600a819055611d7d908490613269565b600b55600c805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416179055600d8190556040517f59d3ce47d6ad6c6003cef97d136155b29d88653eb355c8bed6e03fbf694570ca90600090a15050505050565b60006001600160e01b031982167fd9b67a26000000000000000000000000000000000000000000000000000000001480611e4057506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b806107fd57506107fd825b60006001600160e01b031982167f553e757e0000000000000000000000000000000000000000000000000000000014806107fd57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146107fd565b6001600160a01b03811660009081526001830160205260408120541515611423565b8051610b5e9060069060208401906129ff565b6000611423836001600160a01b038416612170565b6201000060075414611f505760405162461bcd60e51b815260206004820152600f60248201527f5472616e73666572206c6f636b6564000000000000000000000000000000000060448201526064016107cf565b610d158585858585612263565b60006107fd825490565b600061142383836124d9565b6000611423836001600160a01b038416612503565b600180546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0384166120635760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016107cf565b3361207d8160008761207488612552565b610d1588612552565b60008481526004602090815260408083206001600160a01b0389168452909152812080548592906120af908490613269565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610d158160008787878761259d565b62010000600754146121635760405162461bcd60e51b815260206004820152600f60248201527f5472616e73666572206c6f636b6564000000000000000000000000000000000060448201526064016107cf565b610d15858585858561275b565b600081815260018301602052604081205480156122595760006121946001836132c2565b85549091506000906121a8906001906132c2565b905081811461220d5760008660000182815481106121c8576121c86133ae565b90600052602060002001549050808760000184815481106121eb576121eb6133ae565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061221e5761221e613398565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506107fd565b60009150506107fd565b81518351146122da5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d6174636800000000000000000000000000000000000000000000000060648201526084016107cf565b6001600160a01b03841661233e5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016107cf565b3360005b845181101561246b57600085828151811061235f5761235f6133ae565b60200260200101519050600085838151811061237d5761237d6133ae565b60209081029190910181015160008481526004835260408082206001600160a01b038e1683529093529190912054909150818110156124115760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016107cf565b60008381526004602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612450908490613269565b925050819055505050508061246490613367565b9050612342565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516124bb92919061321f565b60405180910390a46124d18187878787876128f4565b505050505050565b60008260000182815481106124f0576124f06133ae565b9060005260206000200154905092915050565b600081815260018301602052604081205461254a575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556107fd565b5060006107fd565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061258c5761258c6133ae565b602090810291909101015292915050565b6001600160a01b0384163b156124d15760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906125e1908990899088908890889060040161313b565b602060405180830381600087803b1580156125fb57600080fd5b505af192505050801561262b575060408051601f3d908101601f1916820190925261262891810190612f11565b60015b6126e1576126376133da565b806308c379a01415612671575061264c6133f6565b806126575750612673565b8060405162461bcd60e51b81526004016107cf9190613232565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016107cf565b6001600160e01b0319811663f23a6e6160e01b146127525760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016107cf565b50505050505050565b6001600160a01b0384166127bf5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016107cf565b336127cf81878761207488612552565b60008481526004602090815260408083206001600160a01b038a168452909152902054838110156128555760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016107cf565b60008581526004602090815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612894908490613269565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461275282888888888861259d565b6001600160a01b0384163b156124d15760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061293890899089908890889088906004016130dd565b602060405180830381600087803b15801561295257600080fd5b505af1925050508015612982575060408051601f3d908101601f1916820190925261297f91810190612f11565b60015b61298e576126376133da565b6001600160e01b0319811663bc197c8160e01b146127525760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016107cf565b828054612a0b906132d9565b90600052602060002090601f016020900481019282612a2d5760008555612a73565b82601f10612a4657805160ff1916838001178555612a73565b82800160010185558215612a73579182015b82811115612a73578251825591602001919060010190612a58565b50610dc79291505b80821115610dc75760008155600101612a7b565b600067ffffffffffffffff831115612aa957612aa96133c4565b604051612ac0601f8501601f19166020018261333a565b809150838152848484011115612ad557600080fd5b83836020830137600060208583010152509392505050565b600082601f830112612afe57600080fd5b81356020612b0b82613245565b604051612b18828261333a565b8381528281019150858301600585901b87018401881015612b3857600080fd5b60005b85811015612b5757813584529284019290840190600101612b3b565b5090979650505050505050565b600082601f830112612b7557600080fd5b61142383833560208501612a8f565b600060208284031215612b9657600080fd5b813561142381613480565b60008060408385031215612bb457600080fd5b8235612bbf81613480565b946020939093013593505050565b60008060408385031215612be057600080fd5b8235612beb81613480565b91506020830135612bfb81613480565b809150509250929050565b600080600080600060a08688031215612c1e57600080fd5b8535612c2981613480565b94506020860135612c3981613480565b9350604086013567ffffffffffffffff80821115612c5657600080fd5b612c6289838a01612aed565b94506060880135915080821115612c7857600080fd5b612c8489838a01612aed565b93506080880135915080821115612c9a57600080fd5b50612ca788828901612b64565b9150509295509295909350565b600080600080600060a08688031215612ccc57600080fd5b8535612cd781613480565b94506020860135612ce781613480565b93506040860135925060608601359150608086013567ffffffffffffffff811115612d1157600080fd5b612ca788828901612b64565b60008060408385031215612d3057600080fd5b8235612d3b81613480565b915060208301358015158114612bfb57600080fd5b60008060408385031215612d6357600080fd5b823567ffffffffffffffff80821115612d7b57600080fd5b818501915085601f830112612d8f57600080fd5b81356020612d9c82613245565b604051612da9828261333a565b8381528281019150858301600585901b870184018b1015612dc957600080fd5b600096505b84871015612df5578035612de181613480565b835260019690960195918301918301612dce565b5096505086013592505080821115612e0c57600080fd5b50612e1985828601612aed565b9150509250929050565b60006020808385031215612e3657600080fd5b823567ffffffffffffffff811115612e4d57600080fd5b8301601f81018513612e5e57600080fd5b8035612e6981613245565b60408051612e77838261333a565b8381528581019250848601600685901b860187018a1015612e9757600080fd5b60009550855b85811015612ee55783828c031215612eb3578687fd5b8351612ebe81613314565b8235612ec981613480565b8152828901358982015285529387019390830190600101612e9d565b50909998505050505050505050565b600060208284031215612f0657600080fd5b813561142381613495565b600060208284031215612f2357600080fd5b815161142381613495565b600060208284031215612f4057600080fd5b813567ffffffffffffffff811115612f5757600080fd5b8201601f81018413612f6857600080fd5b612f7784823560208401612a8f565b949350505050565b600060208284031215612f9157600080fd5b5035919050565b600060208284031215612faa57600080fd5b5051919050565b60008060408385031215612fc457600080fd5b50508035926020909101359150565b600080600080600060a08688031215612feb57600080fd5b853594506020860135935060408601359250606086013561300b81613480565b949793965091946080013592915050565b600081518084526020808501945080840160005b838110156130555781516001600160a01b031687529582019590820190600101613030565b509495945050505050565b600081518084526020808501945080840160005b8381101561305557815187529582019590820190600101613074565b6000815180845260005b818110156130b65760208185018101518683018201520161309a565b818111156130c8576000602083870101525b50601f01601f19169290920160200192915050565b60006001600160a01b03808816835280871660208401525060a0604083015261310960a0830186613060565b828103606084015261311b8186613060565b9050828103608084015261312f8185613090565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261317360a0830184613090565b979650505050505050565b6020808252825182820181905260009190848201906040850190845b818110156131bf5783516001600160a01b03168352928401929184019160010161319a565b50909695505050505050565b602081526000611423602083018461301c565b6040815260006131f1604083018561301c565b82810360208401526132038185613060565b95945050505050565b6020815260006114236020830184613060565b6040815260006131f16040830185613060565b6020815260006114236020830184613090565b600067ffffffffffffffff82111561325f5761325f6133c4565b5060051b60200190565b6000821982111561327c5761327c613382565b500190565b60008261329e57634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156132bd576132bd613382565b500290565b6000828210156132d4576132d4613382565b500390565b600181811c908216806132ed57607f821691505b6020821081141561330e57634e487b7160e01b600052602260045260246000fd5b50919050565b6040810181811067ffffffffffffffff82111715613334576133346133c4565b60405250565b601f8201601f1916810167ffffffffffffffff81118282101715613360576133606133c4565b6040525050565b600060001982141561337b5761337b613382565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156133f35760046000803e5060005160e01c5b90565b600060443d10156134045790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561343457505050505090565b828501915081518181111561344c5750505050505090565b843d87010160208285010111156134665750505050505090565b6134756020828601018761333a565b509095945050505050565b6001600160a01b038116811461094d57600080fd5b6001600160e01b03198116811461094d57600080fdfea2646970667358221220b168c93b757310e716558ad4b48b46aa593da406e039156171709e7d6fa735ac64736f6c6343000807003368747470733a2f2f617277656176652e6e65742f46785f4a3868304231713642515942456542326269324370346b64546570674d3733537044714b31694155

Deployed Bytecode

0x6080604052600436106102695760003560e01c80636c2f5acd11610153578063a85adeab116100cb578063d5e1d5091161007f578063f242432a11610064578063f242432a146106f5578063f2fde38b14610715578063fba3ad561461073557600080fd5b8063d5e1d50914610696578063e985e9c5146106ac57600080fd5b8063bb3bafd6116100b0578063bb3bafd614610635578063bd27653c14610663578063cc8cfc0e1461068357600080fd5b8063a85adeab146105f2578063b9c4d9fb1461060857600080fd5b80638da5cb5b1161012257806399e831aa1161010757806399e831aa1461059c578063a22cb465146105b2578063a420ed3e146105d257600080fd5b80638da5cb5b1461054a57806392b36dbd1461057c57600080fd5b80636c2f5acd146104d55780636d73e669146104f5578063715018a61461051557806385676a6c1461052a57600080fd5b80632e1a7d4d116101e657806346dabab4116101b557806351b42b001161019a57806351b42b001461049557806354650209146104aa57806358e465e0146104bf57600080fd5b806346dabab41461045f5780634e1273f41461047557600080fd5b80632e1a7d4d146103e65780632eb2c2d61461040657806331ae450b1461042657806346a8e5781461044857600080fd5b80630e89341c1161023d57806324d7806c1161022257806324d7806c146103675780632a55205a146103875780632d345670146103c657600080fd5b80630e89341c1461030d5780630ebd4c7f1461033a57600080fd5b8062fdd58e1461026e57806301ffc9a7146102a157806302fb0c5e146102d157806302fe5305146102eb575b600080fd5b34801561027a57600080fd5b5061028e610289366004612ba1565b610755565b6040519081526020015b60405180910390f35b3480156102ad57600080fd5b506102c16102bc366004612ef4565b610803565b6040519015158152602001610298565b3480156102dd57600080fd5b506008546102c19060ff1681565b3480156102f757600080fd5b5061030b610306366004612f2e565b6108be565b005b34801561031957600080fd5b5061032d610328366004612f7f565b610950565b6040516102989190613232565b34801561034657600080fd5b5061035a610355366004612f7f565b6109e4565b604051610298919061320c565b34801561037357600080fd5b506102c1610382366004612b84565b610a40565b34801561039357600080fd5b506103a76103a2366004612fb1565b610a79565b604080516001600160a01b039093168352602083019190915201610298565b3480156103d257600080fd5b5061030b6103e1366004612b84565b610ab3565b3480156103f257600080fd5b5061030b610401366004612f7f565b610b62565b34801561041257600080fd5b5061030b610421366004612c06565b610c7a565b34801561043257600080fd5b5061043b610d1c565b604051610298919061317e565b34801561045457600080fd5b5061028e6201000081565b34801561046b57600080fd5b5061028e60075481565b34801561048157600080fd5b5061035a610490366004612d50565b610dcb565b3480156104a157600080fd5b5061030b610f09565b3480156104b657600080fd5b5061028e610fc4565b3480156104cb57600080fd5b5061028e60095481565b3480156104e157600080fd5b5061030b6104f0366004612ba1565b611015565b34801561050157600080fd5b5061030b610510366004612b84565b6110ce565b34801561052157600080fd5b5061030b611178565b34801561053657600080fd5b5061030b610545366004612e23565b6111de565b34801561055657600080fd5b506001546001600160a01b03165b6040516001600160a01b039091168152602001610298565b34801561058857600080fd5b5061028e610597366004612f7f565b6113db565b3480156105a857600080fd5b5061028e600d5481565b3480156105be57600080fd5b5061030b6105cd366004612d1d565b61142a565b3480156105de57600080fd5b50600c54610564906001600160a01b031681565b3480156105fe57600080fd5b5061028e600b5481565b34801561061457600080fd5b50610628610623366004612f7f565b611515565b60405161029891906131cb565b34801561064157600080fd5b50610655610650366004612f7f565b61158e565b6040516102989291906131de565b34801561066f57600080fd5b5061030b61067e366004612e23565b611642565b61030b610691366004612f7f565b6117d8565b3480156106a257600080fd5b5061028e600a5481565b3480156106b857600080fd5b506102c16106c7366004612bcd565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561070157600080fd5b5061030b610710366004612cb4565b611afe565b34801561072157600080fd5b5061030b610730366004612b84565b611b99565b34801561074157600080fd5b5061030b610750366004612fd3565b611c78565b60006001600160a01b0383166107d85760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060008181526004602090815260408083206001600160a01b03861684529091529020545b92915050565b600061080e82611ddd565b8061081d575061081d82611e4b565b8061085157506001600160e01b031982167fbb3bafd600000000000000000000000000000000000000000000000000000000145b8061088557506001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000145b806107fd57506001600160e01b031982167fb7799584000000000000000000000000000000000000000000000000000000001492915050565b336108d16001546001600160a01b031690565b6001600160a01b031614806108ec57506108ec600233611eb2565b6109445760405162461bcd60e51b8152602060048201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616044820152633236b4b760e11b60648201526084016107cf565b61094d81611ed4565b50565b60606006805461095f906132d9565b80601f016020809104026020016040519081016040528092919081815260200182805461098b906132d9565b80156109d85780601f106109ad576101008083540402835291602001916109d8565b820191906000526020600020905b8154815290600101906020018083116109bb57829003601f168201915b50505050509050919050565b6010546060906001600160a01b031615610a3b576040805160018082528183019092529060208083019080368337019050509050600f5481600081518110610a2e57610a2e6133ae565b6020026020010181815250505b919050565b6000816001600160a01b0316610a5e6001546001600160a01b031690565b6001600160a01b031614806107fd57506107fd600283611eb2565b601054600f5460009182916001600160a01b039091169061271090610a9e90866132a3565b610aa89190613281565b915091509250929050565b6001546001600160a01b03163314610b0d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107cf565b610b18600282611eb2565b1561094d5760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a3610b5e600282611ee7565b5050565b33610b756001546001600160a01b031690565b6001600160a01b03161480610b905750610b90600233611eb2565b610be85760405162461bcd60e51b8152602060048201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616044820152633236b4b760e11b60648201526084016107cf565b6010546001600160a01b0316610c405760405162461bcd60e51b815260206004820152601a60248201527f4d7573742073657420726f79616c747920726563697069656e7400000000000060448201526064016107cf565b6010546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015610b5e573d6000803e3d6000fd5b6001600160a01b038516331480610c965750610c9685336106c7565b610d085760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016107cf565b610d158585858585611efc565b5050505050565b6060610d286002611f5d565b67ffffffffffffffff811115610d4057610d406133c4565b604051908082528060200260200182016040528015610d69578160200160208202803683370190505b50905060005b610d796002611f5d565b811015610dc757610d8b600282611f67565b828281518110610d9d57610d9d6133ae565b6001600160a01b039092166020928302919091019091015280610dbf81613367565b915050610d6f565b5090565b60608151835114610e445760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d61746368000000000000000000000000000000000000000000000060648201526084016107cf565b6000835167ffffffffffffffff811115610e6057610e606133c4565b604051908082528060200260200182016040528015610e89578160200160208202803683370190505b50905060005b8451811015610f0157610ed4858281518110610ead57610ead6133ae565b6020026020010151858381518110610ec757610ec76133ae565b6020026020010151610755565b828281518110610ee657610ee66133ae565b6020908102919091010152610efa81613367565b9050610e8f565b509392505050565b33610f1c6001546001600160a01b031690565b6001600160a01b03161480610f375750610f37600233611eb2565b610f8f5760405162461bcd60e51b8152602060048201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616044820152633236b4b760e11b60648201526084016107cf565b6008805460ff191690556040517fc2a8834045efeaf0b37df1cf2e5979bff82a0c7f93c99b649a004940ef3cda4590600090a1565b600754600090600190620100001115610fea57600754610fe790620100006132c2565b90505b80610ffa6201000061012c6132a3565b6110049190613281565b61100f906001613269565b91505090565b336110286001546001600160a01b031690565b6001600160a01b031614806110435750611043600233611eb2565b61109b5760405162461bcd60e51b8152602060048201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616044820152633236b4b760e11b60648201526084016107cf565b6010805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039390931692909217909155600f55565b6001546001600160a01b031633146111285760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107cf565b611133600282611eb2565b61094d5760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a3610b5e600282611f73565b6001546001600160a01b031633146111d25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107cf565b6111dc6000611f88565b565b336111f16001546001600160a01b031690565b6001600160a01b0316148061120c575061120c600233611eb2565b6112645760405162461bcd60e51b8152602060048201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616044820152633236b4b760e11b60648201526084016107cf565b6000600b541180156112775750600b5442115b6112e95760405162461bcd60e51b815260206004820152602c60248201527f43616e206f6e6c7920646973747269627574652072656d61696e64657220616660448201527f7465722073616c6520656e64000000000000000000000000000000000000000060648201526084016107cf565b60005b8151811015610b5e57818181518110611307576113076133ae565b602002602001015160200151600760008282546113249190613269565b90915550506007546201000010156113735760405162461bcd60e51b8152602060048201526012602482015271151bdbc81b585b9e481c995c5d595cdd195960721b60448201526064016107cf565b6113c9828281518110611388576113886133ae565b60200260200101516000015160018484815181106113a8576113a86133ae565b60200260200101516020015160405180602001604052806000815250611fe7565b806113d381613367565b9150506112ec565b600754600090600190620100001115611401576007546113fe90620100006132c2565b90505b61140f6201000060036132a3565b61141982856132a3565b6114239190613281565b9392505050565b336001600160a01b03831614156114a95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c66000000000000000000000000000000000000000000000060648201526084016107cf565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6010546060906001600160a01b031615610a3b576040805160018082528183019092529060208083019080368337505060105482519293506001600160a01b031691839150600090611569576115696133ae565b60200260200101906001600160a01b031690816001600160a01b031681525050919050565b60105460609081906001600160a01b03161561163d576040805160018082528183019092529060208083019080368337505060105482519294506001600160a01b0316918491506000906115e4576115e46133ae565b6001600160a01b0392909216602092830291909101820152604080516001808252818301909252918281019080368337019050509050600f5481600081518110611630576116306133ae565b6020026020010181815250505b915091565b336116556001546001600160a01b031690565b6001600160a01b031614806116705750611670600233611eb2565b6116c85760405162461bcd60e51b8152602060048201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616044820152633236b4b760e11b60648201526084016107cf565b60085460ff161580156116db5750600b54155b6117275760405162461bcd60e51b815260206004820152601e60248201527f43616e206f6e6c7920726577617264207768696c6520696e616374697665000060448201526064016107cf565b60005b8151811015610b5e57818181518110611745576117456133ae565b602002602001015160200151600760008282546117629190613269565b90915550506007546201000010156117b15760405162461bcd60e51b8152602060048201526012602482015271151bdbc81b585b9e481c995c5d595cdd195960721b60448201526064016107cf565b6117c6828281518110611388576113886133ae565b806117d081613367565b91505061172a565b6002600054141561182b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107cf565b600260005560085460ff16801561184457506009544210155b80156118525750600b544211155b61189e5760405162461bcd60e51b815260206004820152600860248201527f496e61637469766500000000000000000000000000000000000000000000000060448201526064016107cf565b600a544210156119b357600d54600c546040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561190757600080fd5b505afa15801561191b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061193f9190612f98565b10156119b35760405162461bcd60e51b815260206004820152603d60248201527f596f7520646f206e6f74206861766520656e6f7567682041534820746f20706160448201527f72746963697061746520696e2074686520707269766174652073616c6500000060648201526084016107cf565b6103e88111156119fa5760405162461bcd60e51b8152602060048201526012602482015271151bdbc81b585b9e481c995c5d595cdd195960721b60448201526064016107cf565b6000611a05826113db565b611a0f9083613269565b90508060076000828254611a239190613269565b9091555050600754620100001015611a725760405162461bcd60e51b8152602060048201526012602482015271151bdbc81b585b9e481c995c5d595cdd195960721b60448201526064016107cf565b600082118015611a8d5750600e54611a8a90836132a3565b34145b611ad95760405162461bcd60e51b815260206004820152601060248201527f496e76616c6964206574682073656e740000000000000000000000000000000060448201526064016107cf565b611af53360018360405180602001604052806000815250611fe7565b50506001600055565b6001600160a01b038516331480611b1a5750611b1a85336106c7565b611b8c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f766564000000000000000000000000000000000000000000000060648201526084016107cf565b610d15858585858561210f565b6001546001600160a01b03163314611bf35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107cf565b6001600160a01b038116611c6f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107cf565b61094d81611f88565b33611c8b6001546001600160a01b031690565b6001600160a01b03161480611ca65750611ca6600233611eb2565b611cfe5760405162461bcd60e51b8152602060048201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616044820152633236b4b760e11b60648201526084016107cf565b60085460ff1615611d515760405162461bcd60e51b815260206004820152600e60248201527f416c72656164792061637469766500000000000000000000000000000000000060448201526064016107cf565b6008805460ff191660011790556009859055611d6d8486613269565b600a819055611d7d908490613269565b600b55600c805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416179055600d8190556040517f59d3ce47d6ad6c6003cef97d136155b29d88653eb355c8bed6e03fbf694570ca90600090a15050505050565b60006001600160e01b031982167fd9b67a26000000000000000000000000000000000000000000000000000000001480611e4057506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b806107fd57506107fd825b60006001600160e01b031982167f553e757e0000000000000000000000000000000000000000000000000000000014806107fd57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146107fd565b6001600160a01b03811660009081526001830160205260408120541515611423565b8051610b5e9060069060208401906129ff565b6000611423836001600160a01b038416612170565b6201000060075414611f505760405162461bcd60e51b815260206004820152600f60248201527f5472616e73666572206c6f636b6564000000000000000000000000000000000060448201526064016107cf565b610d158585858585612263565b60006107fd825490565b600061142383836124d9565b6000611423836001600160a01b038416612503565b600180546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0384166120635760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016107cf565b3361207d8160008761207488612552565b610d1588612552565b60008481526004602090815260408083206001600160a01b0389168452909152812080548592906120af908490613269565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610d158160008787878761259d565b62010000600754146121635760405162461bcd60e51b815260206004820152600f60248201527f5472616e73666572206c6f636b6564000000000000000000000000000000000060448201526064016107cf565b610d15858585858561275b565b600081815260018301602052604081205480156122595760006121946001836132c2565b85549091506000906121a8906001906132c2565b905081811461220d5760008660000182815481106121c8576121c86133ae565b90600052602060002001549050808760000184815481106121eb576121eb6133ae565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061221e5761221e613398565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506107fd565b60009150506107fd565b81518351146122da5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d6174636800000000000000000000000000000000000000000000000060648201526084016107cf565b6001600160a01b03841661233e5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016107cf565b3360005b845181101561246b57600085828151811061235f5761235f6133ae565b60200260200101519050600085838151811061237d5761237d6133ae565b60209081029190910181015160008481526004835260408082206001600160a01b038e1683529093529190912054909150818110156124115760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016107cf565b60008381526004602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612450908490613269565b925050819055505050508061246490613367565b9050612342565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516124bb92919061321f565b60405180910390a46124d18187878787876128f4565b505050505050565b60008260000182815481106124f0576124f06133ae565b9060005260206000200154905092915050565b600081815260018301602052604081205461254a575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556107fd565b5060006107fd565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061258c5761258c6133ae565b602090810291909101015292915050565b6001600160a01b0384163b156124d15760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906125e1908990899088908890889060040161313b565b602060405180830381600087803b1580156125fb57600080fd5b505af192505050801561262b575060408051601f3d908101601f1916820190925261262891810190612f11565b60015b6126e1576126376133da565b806308c379a01415612671575061264c6133f6565b806126575750612673565b8060405162461bcd60e51b81526004016107cf9190613232565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016107cf565b6001600160e01b0319811663f23a6e6160e01b146127525760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016107cf565b50505050505050565b6001600160a01b0384166127bf5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016107cf565b336127cf81878761207488612552565b60008481526004602090815260408083206001600160a01b038a168452909152902054838110156128555760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016107cf565b60008581526004602090815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612894908490613269565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461275282888888888861259d565b6001600160a01b0384163b156124d15760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061293890899089908890889088906004016130dd565b602060405180830381600087803b15801561295257600080fd5b505af1925050508015612982575060408051601f3d908101601f1916820190925261297f91810190612f11565b60015b61298e576126376133da565b6001600160e01b0319811663bc197c8160e01b146127525760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016107cf565b828054612a0b906132d9565b90600052602060002090601f016020900481019282612a2d5760008555612a73565b82601f10612a4657805160ff1916838001178555612a73565b82800160010185558215612a73579182015b82811115612a73578251825591602001919060010190612a58565b50610dc79291505b80821115610dc75760008155600101612a7b565b600067ffffffffffffffff831115612aa957612aa96133c4565b604051612ac0601f8501601f19166020018261333a565b809150838152848484011115612ad557600080fd5b83836020830137600060208583010152509392505050565b600082601f830112612afe57600080fd5b81356020612b0b82613245565b604051612b18828261333a565b8381528281019150858301600585901b87018401881015612b3857600080fd5b60005b85811015612b5757813584529284019290840190600101612b3b565b5090979650505050505050565b600082601f830112612b7557600080fd5b61142383833560208501612a8f565b600060208284031215612b9657600080fd5b813561142381613480565b60008060408385031215612bb457600080fd5b8235612bbf81613480565b946020939093013593505050565b60008060408385031215612be057600080fd5b8235612beb81613480565b91506020830135612bfb81613480565b809150509250929050565b600080600080600060a08688031215612c1e57600080fd5b8535612c2981613480565b94506020860135612c3981613480565b9350604086013567ffffffffffffffff80821115612c5657600080fd5b612c6289838a01612aed565b94506060880135915080821115612c7857600080fd5b612c8489838a01612aed565b93506080880135915080821115612c9a57600080fd5b50612ca788828901612b64565b9150509295509295909350565b600080600080600060a08688031215612ccc57600080fd5b8535612cd781613480565b94506020860135612ce781613480565b93506040860135925060608601359150608086013567ffffffffffffffff811115612d1157600080fd5b612ca788828901612b64565b60008060408385031215612d3057600080fd5b8235612d3b81613480565b915060208301358015158114612bfb57600080fd5b60008060408385031215612d6357600080fd5b823567ffffffffffffffff80821115612d7b57600080fd5b818501915085601f830112612d8f57600080fd5b81356020612d9c82613245565b604051612da9828261333a565b8381528281019150858301600585901b870184018b1015612dc957600080fd5b600096505b84871015612df5578035612de181613480565b835260019690960195918301918301612dce565b5096505086013592505080821115612e0c57600080fd5b50612e1985828601612aed565b9150509250929050565b60006020808385031215612e3657600080fd5b823567ffffffffffffffff811115612e4d57600080fd5b8301601f81018513612e5e57600080fd5b8035612e6981613245565b60408051612e77838261333a565b8381528581019250848601600685901b860187018a1015612e9757600080fd5b60009550855b85811015612ee55783828c031215612eb3578687fd5b8351612ebe81613314565b8235612ec981613480565b8152828901358982015285529387019390830190600101612e9d565b50909998505050505050505050565b600060208284031215612f0657600080fd5b813561142381613495565b600060208284031215612f2357600080fd5b815161142381613495565b600060208284031215612f4057600080fd5b813567ffffffffffffffff811115612f5757600080fd5b8201601f81018413612f6857600080fd5b612f7784823560208401612a8f565b949350505050565b600060208284031215612f9157600080fd5b5035919050565b600060208284031215612faa57600080fd5b5051919050565b60008060408385031215612fc457600080fd5b50508035926020909101359150565b600080600080600060a08688031215612feb57600080fd5b853594506020860135935060408601359250606086013561300b81613480565b949793965091946080013592915050565b600081518084526020808501945080840160005b838110156130555781516001600160a01b031687529582019590820190600101613030565b509495945050505050565b600081518084526020808501945080840160005b8381101561305557815187529582019590820190600101613074565b6000815180845260005b818110156130b65760208185018101518683018201520161309a565b818111156130c8576000602083870101525b50601f01601f19169290920160200192915050565b60006001600160a01b03808816835280871660208401525060a0604083015261310960a0830186613060565b828103606084015261311b8186613060565b9050828103608084015261312f8185613090565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261317360a0830184613090565b979650505050505050565b6020808252825182820181905260009190848201906040850190845b818110156131bf5783516001600160a01b03168352928401929184019160010161319a565b50909695505050505050565b602081526000611423602083018461301c565b6040815260006131f1604083018561301c565b82810360208401526132038185613060565b95945050505050565b6020815260006114236020830184613060565b6040815260006131f16040830185613060565b6020815260006114236020830184613090565b600067ffffffffffffffff82111561325f5761325f6133c4565b5060051b60200190565b6000821982111561327c5761327c613382565b500190565b60008261329e57634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156132bd576132bd613382565b500290565b6000828210156132d4576132d4613382565b500390565b600181811c908216806132ed57607f821691505b6020821081141561330e57634e487b7160e01b600052602260045260246000fd5b50919050565b6040810181811067ffffffffffffffff82111715613334576133346133c4565b60405250565b601f8201601f1916810167ffffffffffffffff81118282101715613360576133606133c4565b6040525050565b600060001982141561337b5761337b613382565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156133f35760046000803e5060005160e01c5b90565b600060443d10156134045790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561343457505050505090565b828501915081518181111561344c5750505050505090565b843d87010160208285010111156134665750505050505090565b6134756020828601018761333a565b509095945050505050565b6001600160a01b038116811461094d57600080fd5b6001600160e01b03198116811461094d57600080fdfea2646970667358221220b168c93b757310e716558ad4b48b46aa593da406e039156171709e7d6fa735ac64736f6c63430008070033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

LOSTPOETS is an NFT collectible and a strategy game. The NFT collection includes 65536 obtainable NFTs and 1024 Origin NFTs.

Validator Index Block Amount
View All Withdrawals

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

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