ETH Price: $2,687.91 (-1.70%)

Token

A Bored Year (ABY)
 

Overview

Max Total Supply

300 ABY

Holders

182

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
bitsaga.eth
Balance
2 ABY
0x11175a3c2c2496ef723b24d9573a6e936c7b1331
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
ABoredYear

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : ABoredYear.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";

contract ABoredYear is ERC721, Ownable, DefaultOperatorFilterer {
    using Strings for uint256;
    using Counters for Counters.Counter;
    
    Counters.Counter private LEsupply;
    Counters.Counter private BEsupply;

    bytes32 public merkleRoot;
    bytes32 public allowMerkleRoot;
    string  public baseURI;
    string  public extension;
    uint256 public maxSupply                  = 5000;
    uint256 public limitedEdition             = 1000;
    uint256 public boredEdition               = 4000;
    uint256 public PP1                        = 0.08 ether;
    uint256 public PP2                        = 0.1 ether;
    uint256 public PP3                        = 0.12 ether;
    uint256 public PP4                        = 0.14 ether;
    uint256 public phase                      = 0;
    bool    public claiming                   = false;
    bool    public reserved                   = false;

    mapping(address => uint256) public _phase1Mints;
    mapping(address => uint256) public _phase2Mints;
    mapping(address => uint256) public _phase3Mints;
    mapping(uint256 => bool)    public claimed;

    address public constant w1 = 0xf98903F0E58b8063B67fB1c426b17d4227B6380C;
    address public constant w2 = 0xa5bd70354c6289CE6FbBa390FBF003c0a92f8879;
    address public constant w3 = 0x88375f4c4Dfe2f40154e76C3175DE7ceD551Dd33;
    address public constant w4 = 0xf8eCc89703a21DD0Db39988fABB6F8925FB1A232;
    address public constant w5 = 0xa2004B13Db88F0f8c5EE71a18D42EC653A61DA05;
    address public constant w6 = 0x98d8d01Cfe9078FD22acC91b876bC08edcD8BA52;
    address public constant w7 = 0x5554Ce83f7a8A82b81650A055310ac19bD915Aee;
    address public constant w8 = 0x207Ad8A7A3714e0b5d090c4d9d9cB116245D9B4E;
    address public constant w9 = 0xB14289984581c3D8CDc24663F5D0d6035eEd642c;

    IERC721 public immutable bayc = IERC721(0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D);
    IERC721 public immutable mayc = IERC721(0x60E4d786628Fea6478F785A6d7e704777c86a7c6);

    constructor() ERC721("A Bored Year", "ABY"){}

    event BookClaimed(uint256 tokenId, address holder);

    function mintLE(uint256 amount, address to, bytes32[] calldata merkleProof) external payable {
        require(phase > 0, "Mint is not live yet");
        require(phase < 4, "Mint is not live yet");
        require(msg.sender == tx.origin, "No contracts");
        require(ownsApe(to), "Not an ape holder, try Bored Edition");
        uint256 supply = LEsupply.current();
        require(supply + amount < limitedEdition + 1, "No more Limited Edition left");
        if (phase == 1) {
            // private
            require(MerkleProof.verify(merkleProof, merkleRoot, keccak256(abi.encodePacked(msg.sender))), "Not on the Private List");
            require(msg.value >= amount * PP2, "Not enough ETH");
            require(_phase1Mints[msg.sender] + amount < 3, "Too many per wallet");
            require(totalSupply() + amount < 867, "No more left in private sale");
            _phase1Mints[msg.sender] += amount;
        } else if (phase == 2) {
            // allow list
            require(MerkleProof.verify(merkleProof, allowMerkleRoot, keccak256(abi.encodePacked(msg.sender))), "Not on the Allow List");
            require(msg.value >= amount * PP3, "Not enough ETH");
            require(_phase2Mints[msg.sender] + amount < 6, "Too many per wallet");
            _phase2Mints[msg.sender] += amount;
        } else if (phase == 3) {
            // public
            require(msg.value >= amount * PP4, "Not enough ETH");
            require(_phase3Mints[msg.sender] + amount < 11, "Too many per wallet");
            _phase3Mints[msg.sender] += amount;
        }
        
        for (uint256 i = 1; i <= amount; i++) {
            LEsupply.increment();
            _safeMint(to, supply + i);
        }
    }

    function mintBE(uint256 amount, address to, bytes32[] calldata merkleProof) external payable {
        require(phase > 0, "Mint is not live yet");
        require(phase < 4, "Mint is not live yet");
        require(msg.sender == tx.origin, "No contracts");
        uint256 supply = BEsupply.current();
        require(supply + amount < boredEdition + 1, "No more Bored Edition left");
        if (phase == 1) {
            // private
            require(MerkleProof.verify(merkleProof, merkleRoot, keccak256(abi.encodePacked(msg.sender))), "Not on the Private List");
            require(msg.value >= amount * PP1, "Not enough ETH");
            require(_phase1Mints[msg.sender] + amount < 3, "Too many per wallet");
            require(totalSupply() + amount < 867, "No more left in private sale");
            _phase1Mints[msg.sender] += amount;
        } else if (phase == 2) {
            // allow list
            require(MerkleProof.verify(merkleProof, allowMerkleRoot, keccak256(abi.encodePacked(msg.sender))), "Not on the Allow List");
            require(msg.value >= amount * PP2, "Not enough ETH");
            require(_phase2Mints[msg.sender] + amount < 6, "Too many per wallet");
            _phase2Mints[msg.sender] += amount;
        } else if (phase == 3) {
            // public
            require(msg.value >= amount * PP3, "Not enough ETH");
            require(_phase3Mints[msg.sender] + amount < 11, "Too many per wallet");
            _phase3Mints[msg.sender] += amount;
        }
        
        for (uint256 i = 1; i <= amount; i++) {
            BEsupply.increment();
            _safeMint(to, supply + i + 1000);
        }
    }

    function claim(uint256 tokenId) external {
        require(_exists(tokenId), "Nonexistent token");
        require(claiming, "Claiming not open");
        require(ownerOf(tokenId) == msg.sender, "Not yours to claim");
        claimed[tokenId] = true;
        emit BookClaimed(tokenId, msg.sender);
    }

    function isClaimed(uint256 tokenId) public view returns (bool) {
        return claimed[tokenId] == true ? true : false;
    }

    function isMinted(uint256 tokenId) public view returns (bool) {
        return _exists(tokenId);
    }

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "Nonexistent token");

	    string memory currentBaseURI = _baseURI();
	    return bytes(currentBaseURI).length > 0	? string(abi.encodePacked(currentBaseURI, tokenId.toString(), extension)) : "";
    }
    
    function totalSupply() public view returns (uint256) {
        return LEsupply.current() + BEsupply.current();
    }

    function LESupply() public view returns (uint256) {
        return LEsupply.current();
    }

    function BESupply() public view returns (uint256) {
        return BEsupply.current();
    }

    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }

    function ownsApe(address _holder) public view returns (bool) {
        uint256 baycOwned = bayc.balanceOf(_holder);
        uint256 maycOwned = mayc.balanceOf(_holder);
        return baycOwned + maycOwned > 0 ? true : false;
    }

    function walletOfOwner(address _owner) public view returns (uint256[] memory) {
        uint256 ownerTokenCount = balanceOf(_owner);
        uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount);
        uint256 currentTokenId = 1;
        uint256 ownedTokenIndex = 0;

        while (ownedTokenIndex < ownerTokenCount && currentTokenId <= maxSupply) {
        if (_exists(currentTokenId)) {
            address currentTokenOwner = ownerOf(currentTokenId);

            if (currentTokenOwner == _owner) {
                ownedTokenIds[ownedTokenIndex] = currentTokenId;

                ownedTokenIndex++;
            }
        }

        currentTokenId++;
        }

        return ownedTokenIds;
    }

    function setBaseUri(string memory _baseuri) public onlyOwner {
        baseURI = _baseuri;
    }

    function setExtension(string memory _extension) public onlyOwner {
        extension = _extension;
    }

    function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
        merkleRoot = _merkleRoot;
    }

    function setAllowMerkleRoot(bytes32 _allowMerkleRoot) external onlyOwner {
        allowMerkleRoot = _allowMerkleRoot;
    }

    function toggleClaiming() external onlyOwner {
        claiming = !claiming;
    }

    function setPrices(uint256[] calldata _prices) external onlyOwner {
        PP1 = _prices[0];
        PP2 = _prices[1];
        PP3 = _prices[2];
        PP4 = _prices[3];
    }

    function setPhase(uint256 _phase) external onlyOwner {
        phase = _phase;
    }

    function reduceSupply(uint256 _limitedEditions, uint256 _boredEditions) external onlyOwner {
        require(_limitedEditions + _boredEditions < maxSupply, "Can't increase supply.");
        limitedEdition = _limitedEditions;
        boredEdition = _boredEditions;
        maxSupply = _limitedEditions + _boredEditions;
    }

    function reserve() external onlyOwner {
        require(!reserved, "Already reserved 40 books");
        reserved = true;
        // Reserve 35 Bored Editions
        for (uint256 i = 1; i <= 35; i++) {
            BEsupply.increment();
            _safeMint(msg.sender, i + 1000);
        }

        // Reserve 5 Limited Editions
        for (uint256 i = 1; i <= 5; i++) {
            LEsupply.increment();
            _safeMint(msg.sender, i);
        }
    }

    function withdrawAll() public onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0, "Insufficent balance");
        _withdraw(w1, ((balance * 109) / 200));
        _withdraw(w2, ((balance * 20) / 100));
        _withdraw(w3, ((balance * 10) / 100));
        _withdraw(w4, ((balance * 10) / 100));
        _withdraw(w5, ((balance * 3) / 100));
        _withdraw(w6, ((balance * 1) / 100));
        _withdraw(w7, ((balance * 1) / 200));
        _withdraw(w8, ((balance * 1) / 200));
        _withdraw(w9, ((balance * 1) / 200));
    }

    function _withdraw(address _address, uint256 _amount) private {
        (bool success, ) = _address.call{value: _amount}("");
        require(success, "Failed to withdraw Ether");
    }

    function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) {
        super.approve(operator, tokenId);
    }

    function transferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
        public
        override
        onlyAllowedOperator(from)
    {
        super.safeTransferFrom(from, to, tokenId, data);
    }
}

File 2 of 16 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

File 3 of 16 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 4 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 5 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

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() {
        _transferOwnership(_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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 6 of 16 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 7 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner or approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");
        _safeTransfer(from, to, tokenId, data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _ownerOf(tokenId) != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId, 1);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId, 1);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId, 1);

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId, 1);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256, /* firstTokenId */
        uint256 batchSize
    ) internal virtual {
        if (batchSize > 1) {
            if (from != address(0)) {
                _balances[from] -= batchSize;
            }
            if (to != address(0)) {
                _balances[to] += batchSize;
            }
        }
    }

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}
}

File 8 of 16 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

File 11 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 16 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 13 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 14 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 16 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"holder","type":"address"}],"name":"BookClaimed","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BESupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LESupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PP1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PP2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PP3","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PP4","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_phase1Mints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_phase2Mints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_phase3Mints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bayc","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boredEdition","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claiming","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"extension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitedEdition","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mayc","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintBE","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintLE","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","type":"address"}],"name":"ownsApe","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limitedEditions","type":"uint256"},{"internalType":"uint256","name":"_boredEditions","type":"uint256"}],"name":"reduceSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_allowMerkleRoot","type":"bytes32"}],"name":"setAllowMerkleRoot","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":"_baseuri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_extension","type":"string"}],"name":"setExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_phase","type":"uint256"}],"name":"setPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_prices","type":"uint256[]"}],"name":"setPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleClaiming","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"w1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"w2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"w3","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"w4","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"w5","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"w6","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"w7","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"w8","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"w9","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c0604052611388600d556103e8600e55610fa0600f5567011c37937e08000060105567016345785d8a00006011556701aa535d3d0c00006012556701f161421c8e000060135560006014556015805461ffff1916905573bc4ca0eda7647a8ab7c2061c2e118a18a936f13d6080527360e4d786628fea6478f785a6d7e704777c86a7c660a0523480156200009357600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600c81526020016b20902137b932b2102cb2b0b960a11b8152506040518060400160405280600381526020016241425960e81b8152508160009081620000fd919062000371565b5060016200010c828262000371565b50505062000129620001236200027660201b60201c565b6200027a565b6daaeb6d7670e522a718067333cd4e3b156200026e578015620001bc57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200019d57600080fd5b505af1158015620001b2573d6000803e3d6000fd5b505050506200026e565b6001600160a01b038216156200020d5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000182565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200025457600080fd5b505af115801562000269573d6000803e3d6000fd5b505050505b50506200043d565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620002f757607f821691505b6020821081036200031857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200036c57600081815260208120601f850160051c81016020861015620003475750805b601f850160051c820191505b81811015620003685782815560010162000353565b5050505b505050565b81516001600160401b038111156200038d576200038d620002cc565b620003a5816200039e8454620002e2565b846200031e565b602080601f831160018114620003dd5760008415620003c45750858301515b600019600386901b1c1916600185901b17855562000368565b600085815260208120601f198616915b828110156200040e57888601518255948401946001909101908401620003ed565b50858210156200042d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05161391f6200047160003960008181610bfc01526116bd015260008181610870015261162d015261391f6000f3fe6080604052600436106103d95760003560e01c80636fb722f3116101fd578063a044c98711610118578063c87b56dd116100ab578063dbe7e3bd1161007a578063dbe7e3bd14610b5b578063e985e9c514610b8b578063f2fde38b14610bab578063fe60d12c14610bcb578063ff5e653e14610bea57600080fd5b8063c87b56dd14610afd578063cd3293de14610b1d578063d5abeb0114610b32578063d7c02bef14610b4857600080fd5b8063af802480116100e7578063af80248014610a7a578063b1c9fe6e14610a9a578063b88d4fde14610ab0578063b911019814610ad057600080fd5b8063a044c987146109fd578063a0bcfc7f14610a25578063a138ea3814610a45578063a22cb46514610a5a57600080fd5b80638010fc45116101905780639bf57ccf1161015f5780639bf57ccf146109775780639c4575d61461099f5780639e34070f146109c75780639f127049146109e757600080fd5b80638010fc451461091a578063853828b61461092f5780638da5cb5b1461094457806395d89b411461096257600080fd5b806379cf92d3116101cc57806379cf92d3146108925780637cb64759146108b25780637e2285aa146108d25780637e44755b146108f257600080fd5b80636fb722f31461081357806370a0823114610829578063715018a6146108495780637685807d1461085e57600080fd5b80632cc82655116102f85780634081262e1161028b5780634eea49911161025a5780634eea4991146107805780636352211e1461079657806366c3a9c5146107b65780636c0360eb146107de5780636d5697ac146107f357600080fd5b80634081262e146106fb57806341f434341461071157806342842e0e14610733578063438b63001461075357600080fd5b806333c41a90116102c757806333c41a901461067d57806334f7a4e51461069d5780633602deb2146106b3578063379607f5146106db57600080fd5b80632cc82655146106125780632cdc30d3146106325780632d5537b0146106525780632eb4a7ab1461066757600080fd5b80630defc08a11610370578063203e33951161033f578063203e33951461059a5780632106defd146105af57806323b872dd146105c55780632c4b381b146105e557600080fd5b80630defc08a1461052d57806318160ddd146105475780631a4519d11461055c5780631ea5f5891461057257600080fd5b8063081812fc116103ac578063081812fc1461049d5780630862082d146104bd578063095ea7b3146104f857806309cde9581461051a57600080fd5b806301ffc9a7146103de57806302290f5d1461041357806303cf8a201461045357806306fdde031461047b575b600080fd5b3480156103ea57600080fd5b506103fe6103f9366004612fb3565b610c1e565b60405190151581526020015b60405180910390f35b34801561041f57600080fd5b5061043b7398d8d01cfe9078fd22acc91b876bc08edcd8ba5281565b6040516001600160a01b03909116815260200161040a565b34801561045f57600080fd5b5061043b73a5bd70354c6289ce6fbba390fbf003c0a92f887981565b34801561048757600080fd5b50610490610c70565b60405161040a9190613020565b3480156104a957600080fd5b5061043b6104b8366004613033565b610d02565b3480156104c957600080fd5b506104ea6104d8366004613068565b60186020526000908152604090205481565b60405190815260200161040a565b34801561050457600080fd5b50610518610513366004613083565b610d29565b005b6105186105283660046130f9565b610d42565b34801561053957600080fd5b506015546103fe9060ff1681565b34801561055357600080fd5b506104ea6111f2565b34801561056857600080fd5b506104ea600a5481565b34801561057e57600080fd5b5061043b73a2004b13db88f0f8c5ee71a18d42ec653a61da0581565b3480156105a657600080fd5b506104ea61120f565b3480156105bb57600080fd5b506104ea60115481565b3480156105d157600080fd5b506105186105e0366004613153565b61121a565b3480156105f157600080fd5b506104ea610600366004613068565b60176020526000908152604090205481565b34801561061e57600080fd5b5061051861062d366004613033565b611245565b34801561063e57600080fd5b5061051861064d366004613033565b611274565b34801561065e57600080fd5b506104906112a3565b34801561067357600080fd5b506104ea60095481565b34801561068957600080fd5b506103fe610698366004613033565b611331565b3480156106a957600080fd5b506104ea60125481565b3480156106bf57600080fd5b5061043b73f8ecc89703a21dd0db39988fabb6f8925fb1a23281565b3480156106e757600080fd5b506105186106f6366004613033565b61133c565b34801561070757600080fd5b506104ea60105481565b34801561071d57600080fd5b5061043b6daaeb6d7670e522a718067333cd4e81565b34801561073f57600080fd5b5061051861074e366004613153565b611488565b34801561075f57600080fd5b5061077361076e366004613068565b6114ad565b60405161040a919061318f565b34801561078c57600080fd5b506104ea600f5481565b3480156107a257600080fd5b5061043b6107b1366004613033565b61159c565b3480156107c257600080fd5b5061043b73b14289984581c3d8cdc24663f5d0d6035eed642c81565b3480156107ea57600080fd5b506104906115fc565b3480156107ff57600080fd5b506103fe61080e366004613068565b611609565b34801561081f57600080fd5b506104ea60135481565b34801561083557600080fd5b506104ea610844366004613068565b61174d565b34801561085557600080fd5b506105186117d3565b34801561086a57600080fd5b5061043b7f000000000000000000000000000000000000000000000000000000000000000081565b34801561089e57600080fd5b506105186108ad3660046131d3565b611809565b3480156108be57600080fd5b506105186108cd366004613033565b6118b3565b3480156108de57600080fd5b506105186108ed3660046132a1565b6118e2565b3480156108fe57600080fd5b5061043b73f98903f0e58b8063b67fb1c426b17d4227b6380c81565b34801561092657600080fd5b5061051861191c565b34801561093b57600080fd5b5061051861195a565b34801561095057600080fd5b506006546001600160a01b031661043b565b34801561096e57600080fd5b50610490611b27565b34801561098357600080fd5b5061043b73207ad8a7a3714e0b5d090c4d9d9cb116245d9b4e81565b3480156109ab57600080fd5b5061043b735554ce83f7a8a82b81650a055310ac19bd915aee81565b3480156109d357600080fd5b506103fe6109e2366004613033565b611b36565b3480156109f357600080fd5b506104ea600e5481565b348015610a0957600080fd5b5061043b7388375f4c4dfe2f40154e76c3175de7ced551dd3381565b348015610a3157600080fd5b50610518610a403660046132a1565b611b60565b348015610a5157600080fd5b506104ea611b96565b348015610a6657600080fd5b50610518610a753660046132f8565b611ba1565b348015610a8657600080fd5b50610518610a9536600461332f565b611bb5565b348015610aa657600080fd5b506104ea60145481565b348015610abc57600080fd5b50610518610acb366004613351565b611c4d565b348015610adc57600080fd5b506104ea610aeb366004613068565b60166020526000908152604090205481565b348015610b0957600080fd5b50610490610b18366004613033565b611c7a565b348015610b2957600080fd5b50610518611d24565b348015610b3e57600080fd5b506104ea600d5481565b610518610b563660046130f9565b611e26565b348015610b6757600080fd5b506103fe610b76366004613033565b60196020526000908152604090205460ff1681565b348015610b9757600080fd5b506103fe610ba63660046133cd565b6122fa565b348015610bb757600080fd5b50610518610bc6366004613068565b612328565b348015610bd757600080fd5b506015546103fe90610100900460ff1681565b348015610bf657600080fd5b5061043b7f000000000000000000000000000000000000000000000000000000000000000081565b60006001600160e01b031982166380ac58cd60e01b1480610c4f57506001600160e01b03198216635b5e139f60e01b145b80610c6a57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610c7f90613400565b80601f0160208091040260200160405190810160405280929190818152602001828054610cab90613400565b8015610cf85780601f10610ccd57610100808354040283529160200191610cf8565b820191906000526020600020905b815481529060010190602001808311610cdb57829003601f168201915b5050505050905090565b6000610d0d826123c0565b506000908152600460205260409020546001600160a01b031690565b81610d3381612410565b610d3d83836124c9565b505050565b600060145411610d6d5760405162461bcd60e51b8152600401610d649061343a565b60405180910390fd5b600460145410610d8f5760405162461bcd60e51b8152600401610d649061343a565b333214610dcd5760405162461bcd60e51b815260206004820152600c60248201526b4e6f20636f6e74726163747360a01b6044820152606401610d64565b6000610dd860085490565b9050600f546001610de9919061347e565b610df3868361347e565b10610e405760405162461bcd60e51b815260206004820152601a60248201527f4e6f206d6f726520426f7265642045646974696f6e206c6566740000000000006044820152606401610d64565b601454600103610feb57610eb183838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600954604051909250610e9691503390602001613491565b604051602081830303815290604052805190602001206125d9565b610ef75760405162461bcd60e51b8152602060048201526017602482015276139bdd081bdb881d1a1948141c9a5d985d1948131a5cdd604a1b6044820152606401610d64565b601054610f0490866134ae565b341015610f235760405162461bcd60e51b8152600401610d64906134c5565b33600090815260166020526040902054600390610f4190879061347e565b10610f5e5760405162461bcd60e51b8152600401610d64906134ed565b61036385610f6a6111f2565b610f74919061347e565b10610fc15760405162461bcd60e51b815260206004820152601c60248201527f4e6f206d6f7265206c65667420696e20707269766174652073616c65000000006044820152606401610d64565b3360009081526016602052604081208054879290610fe090849061347e565b909155506111a19050565b60145460020361110b5761104183838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a54604051909250610e9691503390602001613491565b6110855760405162461bcd60e51b8152602060048201526015602482015274139bdd081bdb881d1a1948105b1b1bddc8131a5cdd605a1b6044820152606401610d64565b60115461109290866134ae565b3410156110b15760405162461bcd60e51b8152600401610d64906134c5565b336000908152601760205260409020546006906110cf90879061347e565b106110ec5760405162461bcd60e51b8152600401610d64906134ed565b3360009081526017602052604081208054879290610fe090849061347e565b6014546003036111a15760125461112290866134ae565b3410156111415760405162461bcd60e51b8152600401610d64906134c5565b33600090815260186020526040902054600b9061115f90879061347e565b1061117c5760405162461bcd60e51b8152600401610d64906134ed565b336000908152601860205260408120805487929061119b90849061347e565b90915550505b60015b8581116111ea576111b9600880546001019055565b6111d8856111c7838561347e565b6111d3906103e861347e565b6125ef565b806111e28161351a565b9150506111a4565b505050505050565b60006111fd60085490565b60075461120a919061347e565b905090565b600061120a60085490565b826001600160a01b03811633146112345761123433612410565b61123f848484612609565b50505050565b6006546001600160a01b0316331461126f5760405162461bcd60e51b8152600401610d6490613533565b601455565b6006546001600160a01b0316331461129e5760405162461bcd60e51b8152600401610d6490613533565b600a55565b600c80546112b090613400565b80601f01602080910402602001604051908101604052809291908181526020018280546112dc90613400565b80156113295780601f106112fe57610100808354040283529160200191611329565b820191906000526020600020905b81548152906001019060200180831161130c57829003601f168201915b505050505081565b6000610c6a8261263a565b6113458161263a565b6113855760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610d64565b60155460ff166113cb5760405162461bcd60e51b815260206004820152601160248201527021b630b4b6b4b733903737ba1037b832b760791b6044820152606401610d64565b336113d58261159c565b6001600160a01b0316146114205760405162461bcd60e51b81526020600482015260126024820152714e6f7420796f75727320746f20636c61696d60701b6044820152606401610d64565b60008181526019602052604090819020805460ff19166001179055517f92ada2308b72aa340c22987e8947301cfd33576c80c3fdb29484753a646099d29061147d90839033909182526001600160a01b0316602082015260400190565b60405180910390a150565b826001600160a01b03811633146114a2576114a233612410565b61123f848484612657565b606060006114ba8361174d565b905060008167ffffffffffffffff8111156114d7576114d7613215565b604051908082528060200260200182016040528015611500578160200160208202803683370190505b509050600160005b83811080156115195750600d548211155b15611592576115278261263a565b156115805760006115378361159c565b9050866001600160a01b0316816001600160a01b03160361157e578284838151811061156557611565613568565b60209081029190910101528161157a8161351a565b9250505b505b8161158a8161351a565b925050611508565b5090949350505050565b6000818152600260205260408120546001600160a01b031680610c6a5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610d64565b600b80546112b090613400565b6040516370a0823160e01b81526001600160a01b03828116600483015260009182917f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611698919061357e565b6040516370a0823160e01b81526001600160a01b0385811660048301529192506000917f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015611704573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611728919061357e565b90506000611736828461347e565b11611742576000611745565b60015b949350505050565b60006001600160a01b0382166117b75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610d64565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146117fd5760405162461bcd60e51b8152600401610d6490613533565b6118076000612672565b565b6006546001600160a01b031633146118335760405162461bcd60e51b8152600401610d6490613533565b8181600081811061184657611846613568565b6020029190910135601055508181600181811061186557611865613568565b6020029190910135601155508181600281811061188457611884613568565b602002919091013560125550818160038181106118a3576118a3613568565b6020029190910135601355505050565b6006546001600160a01b031633146118dd5760405162461bcd60e51b8152600401610d6490613533565b600955565b6006546001600160a01b0316331461190c5760405162461bcd60e51b8152600401610d6490613533565b600c61191882826135dd565b5050565b6006546001600160a01b031633146119465760405162461bcd60e51b8152600401610d6490613533565b6015805460ff19811660ff90911615179055565b6006546001600160a01b031633146119845760405162461bcd60e51b8152600401610d6490613533565b47806119c85760405162461bcd60e51b8152602060048201526013602482015272496e737566666963656e742062616c616e636560681b6044820152606401610d64565b6119fc73f98903f0e58b8063b67fb1c426b17d4227b6380c60c86119ed84606d6134ae565b6119f791906136b3565b6126c4565b611a2173a5bd70354c6289ce6fbba390fbf003c0a92f887960646119ed8460146134ae565b611a467388375f4c4dfe2f40154e76c3175de7ced551dd3360646119ed84600a6134ae565b611a6b73f8ecc89703a21dd0db39988fabb6f8925fb1a23260646119ed84600a6134ae565b611a9073a2004b13db88f0f8c5ee71a18d42ec653a61da0560646119ed8460036134ae565b611ab57398d8d01cfe9078fd22acc91b876bc08edcd8ba5260646119ed8460016134ae565b611ada735554ce83f7a8a82b81650a055310ac19bd915aee60c86119ed8460016134ae565b611aff73207ad8a7a3714e0b5d090c4d9d9cb116245d9b4e60c86119ed8460016134ae565b611b2473b14289984581c3d8cdc24663f5d0d6035eed642c60c86119ed8460016134ae565b50565b606060018054610c7f90613400565b60008181526019602052604081205460ff161515600114611b58576000610c6a565b600192915050565b6006546001600160a01b03163314611b8a5760405162461bcd60e51b8152600401610d6490613533565b600b61191882826135dd565b600061120a60075490565b81611bab81612410565b610d3d8383612767565b6006546001600160a01b03163314611bdf5760405162461bcd60e51b8152600401610d6490613533565b600d54611bec828461347e565b10611c325760405162461bcd60e51b815260206004820152601660248201527521b0b713ba1034b731b932b0b9b29039bab838363c9760511b6044820152606401610d64565b600e829055600f819055611c46818361347e565b600d555050565b836001600160a01b0381163314611c6757611c6733612410565b611c7385858585612772565b5050505050565b6060611c858261263a565b611cc55760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610d64565b6000611ccf6127a4565b90506000815111611cef5760405180602001604052806000815250611d1d565b80611cf9846127b3565b600c604051602001611d0d939291906136c7565b6040516020818303038152906040525b9392505050565b6006546001600160a01b03163314611d4e5760405162461bcd60e51b8152600401610d6490613533565b601554610100900460ff1615611da65760405162461bcd60e51b815260206004820152601960248201527f416c726561647920726573657276656420343020626f6f6b73000000000000006044820152606401610d64565b6015805461ff00191661010017905560015b60238111611df057611dce600880546001019055565b611dde336111d3836103e861347e565b80611de88161351a565b915050611db8565b5060015b60058111611b2457611e0a600780546001019055565b611e1433826125ef565b80611e1e8161351a565b915050611df4565b600060145411611e485760405162461bcd60e51b8152600401610d649061343a565b600460145410611e6a5760405162461bcd60e51b8152600401610d649061343a565b333214611ea85760405162461bcd60e51b815260206004820152600c60248201526b4e6f20636f6e74726163747360a01b6044820152606401610d64565b611eb183611609565b611f095760405162461bcd60e51b8152602060048201526024808201527f4e6f7420616e2061706520686f6c6465722c2074727920426f726564204564696044820152633a34b7b760e11b6064820152608401610d64565b6000611f1460075490565b9050600e546001611f25919061347e565b611f2f868361347e565b10611f7c5760405162461bcd60e51b815260206004820152601c60248201527f4e6f206d6f7265204c696d697465642045646974696f6e206c656674000000006044820152606401610d64565b60145460010361210c57611fd283838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600954604051909250610e9691503390602001613491565b6120185760405162461bcd60e51b8152602060048201526017602482015276139bdd081bdb881d1a1948141c9a5d985d1948131a5cdd604a1b6044820152606401610d64565b60115461202590866134ae565b3410156120445760405162461bcd60e51b8152600401610d64906134c5565b3360009081526016602052604090205460039061206290879061347e565b1061207f5760405162461bcd60e51b8152600401610d64906134ed565b6103638561208b6111f2565b612095919061347e565b106120e25760405162461bcd60e51b815260206004820152601c60248201527f4e6f206d6f7265206c65667420696e20707269766174652073616c65000000006044820152606401610d64565b336000908152601660205260408120805487929061210190849061347e565b909155506122c29050565b60145460020361222c5761216283838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a54604051909250610e9691503390602001613491565b6121a65760405162461bcd60e51b8152602060048201526015602482015274139bdd081bdb881d1a1948105b1b1bddc8131a5cdd605a1b6044820152606401610d64565b6012546121b390866134ae565b3410156121d25760405162461bcd60e51b8152600401610d64906134c5565b336000908152601760205260409020546006906121f090879061347e565b1061220d5760405162461bcd60e51b8152600401610d64906134ed565b336000908152601760205260408120805487929061210190849061347e565b6014546003036122c25760135461224390866134ae565b3410156122625760405162461bcd60e51b8152600401610d64906134c5565b33600090815260186020526040902054600b9061228090879061347e565b1061229d5760405162461bcd60e51b8152600401610d64906134ed565b33600090815260186020526040812080548792906122bc90849061347e565b90915550505b60015b8581116111ea576122da600780546001019055565b6122e8856111d3838561347e565b806122f28161351a565b9150506122c5565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b031633146123525760405162461bcd60e51b8152600401610d6490613533565b6001600160a01b0381166123b75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d64565b611b2481612672565b6123c98161263a565b611b245760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610d64565b6daaeb6d7670e522a718067333cd4e3b15611b2457604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561247d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124a19190613767565b611b2457604051633b79c77360e21b81526001600160a01b0382166004820152602401610d64565b60006124d48261159c565b9050806001600160a01b0316836001600160a01b0316036125415760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610d64565b336001600160a01b038216148061255d575061255d81336122fa565b6125cf5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610d64565b610d3d83836128b4565b6000826125e68584612922565b14949350505050565b611918828260405180602001604052806000815250612996565b61261333826129c9565b61262f5760405162461bcd60e51b8152600401610d6490613784565b610d3d838383612a27565b6000908152600260205260409020546001600160a01b0316151590565b610d3d83838360405180602001604052806000815250611c4d565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612711576040519150601f19603f3d011682016040523d82523d6000602084013e612716565b606091505b5050905080610d3d5760405162461bcd60e51b815260206004820152601860248201527f4661696c656420746f20776974686472617720457468657200000000000000006044820152606401610d64565b611918338383612b98565b61277c33836129c9565b6127985760405162461bcd60e51b8152600401610d6490613784565b61123f84848484612c66565b6060600b8054610c7f90613400565b6060816000036127da5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561280457806127ee8161351a565b91506127fd9050600a836136b3565b91506127de565b60008167ffffffffffffffff81111561281f5761281f613215565b6040519080825280601f01601f191660200182016040528015612849576020820181803683370190505b5090505b84156117455761285e6001836137d1565b915061286b600a866137e4565b61287690603061347e565b60f81b81838151811061288b5761288b613568565b60200101906001600160f81b031916908160001a9053506128ad600a866136b3565b945061284d565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906128e98261159c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081815b845181101561298e57600085828151811061294457612944613568565b6020026020010151905080831161296a576000838152602082905260409020925061297b565b600081815260208490526040902092505b50806129868161351a565b915050612927565b509392505050565b6129a08383612c99565b6129ad6000848484612e14565b610d3d5760405162461bcd60e51b8152600401610d64906137f8565b6000806129d58361159c565b9050806001600160a01b0316846001600160a01b031614806129fc57506129fc81856122fa565b806117455750836001600160a01b0316612a1584610d02565b6001600160a01b031614949350505050565b826001600160a01b0316612a3a8261159c565b6001600160a01b031614612a605760405162461bcd60e51b8152600401610d649061384a565b6001600160a01b038216612ac25760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610d64565b612acf8383836001612f15565b826001600160a01b0316612ae28261159c565b6001600160a01b031614612b085760405162461bcd60e51b8152600401610d649061384a565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b031603612bf95760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d64565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612c71848484612a27565b612c7d84848484612e14565b61123f5760405162461bcd60e51b8152600401610d64906137f8565b6001600160a01b038216612cef5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d64565b612cf88161263a565b15612d455760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d64565b612d53600083836001612f15565b612d5c8161263a565b15612da95760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d64565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15612f0a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612e5890339089908890889060040161388f565b6020604051808303816000875af1925050508015612e93575060408051601f3d908101601f19168201909252612e90918101906138cc565b60015b612ef0573d808015612ec1576040519150601f19603f3d011682016040523d82523d6000602084013e612ec6565b606091505b508051600003612ee85760405162461bcd60e51b8152600401610d64906137f8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611745565b506001949350505050565b600181111561123f576001600160a01b03841615612f5b576001600160a01b03841660009081526003602052604081208054839290612f559084906137d1565b90915550505b6001600160a01b0383161561123f576001600160a01b03831660009081526003602052604081208054839290612f9290849061347e565b909155505050505050565b6001600160e01b031981168114611b2457600080fd5b600060208284031215612fc557600080fd5b8135611d1d81612f9d565b60005b83811015612feb578181015183820152602001612fd3565b50506000910152565b6000815180845261300c816020860160208601612fd0565b601f01601f19169290920160200192915050565b602081526000611d1d6020830184612ff4565b60006020828403121561304557600080fd5b5035919050565b80356001600160a01b038116811461306357600080fd5b919050565b60006020828403121561307a57600080fd5b611d1d8261304c565b6000806040838503121561309657600080fd5b61309f8361304c565b946020939093013593505050565b60008083601f8401126130bf57600080fd5b50813567ffffffffffffffff8111156130d757600080fd5b6020830191508360208260051b85010111156130f257600080fd5b9250929050565b6000806000806060858703121561310f57600080fd5b8435935061311f6020860161304c565b9250604085013567ffffffffffffffff81111561313b57600080fd5b613147878288016130ad565b95989497509550505050565b60008060006060848603121561316857600080fd5b6131718461304c565b925061317f6020850161304c565b9150604084013590509250925092565b6020808252825182820181905260009190848201906040850190845b818110156131c7578351835292840192918401916001016131ab565b50909695505050505050565b600080602083850312156131e657600080fd5b823567ffffffffffffffff8111156131fd57600080fd5b613209858286016130ad565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561324657613246613215565b604051601f8501601f19908116603f0116810190828211818310171561326e5761326e613215565b8160405280935085815286868601111561328757600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156132b357600080fd5b813567ffffffffffffffff8111156132ca57600080fd5b8201601f810184136132db57600080fd5b6117458482356020840161322b565b8015158114611b2457600080fd5b6000806040838503121561330b57600080fd5b6133148361304c565b91506020830135613324816132ea565b809150509250929050565b6000806040838503121561334257600080fd5b50508035926020909101359150565b6000806000806080858703121561336757600080fd5b6133708561304c565b935061337e6020860161304c565b925060408501359150606085013567ffffffffffffffff8111156133a157600080fd5b8501601f810187136133b257600080fd5b6133c18782356020840161322b565b91505092959194509250565b600080604083850312156133e057600080fd5b6133e98361304c565b91506133f76020840161304c565b90509250929050565b600181811c9082168061341457607f821691505b60208210810361343457634e487b7160e01b600052602260045260246000fd5b50919050565b602080825260149082015273135a5b9d081a5cc81b9bdd081b1a5d99481e595d60621b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610c6a57610c6a613468565b60609190911b6bffffffffffffffffffffffff1916815260140190565b8082028115828204841417610c6a57610c6a613468565b6020808252600e908201526d09cdee840cadcdeeaced0408aa8960931b604082015260600190565b602080825260139082015272151bdbc81b585b9e481c195c881dd85b1b195d606a1b604082015260600190565b60006001820161352c5761352c613468565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561359057600080fd5b5051919050565b601f821115610d3d57600081815260208120601f850160051c810160208610156135be5750805b601f850160051c820191505b818110156111ea578281556001016135ca565b815167ffffffffffffffff8111156135f7576135f7613215565b61360b816136058454613400565b84613597565b602080601f83116001811461364057600084156136285750858301515b600019600386901b1c1916600185901b1785556111ea565b600085815260208120601f198616915b8281101561366f57888601518255948401946001909101908401613650565b508582101561368d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601260045260246000fd5b6000826136c2576136c261369d565b500490565b6000845160206136da8285838a01612fd0565b8551918401916136ed8184848a01612fd0565b85549201916000906136fe81613400565b60018281168015613716576001811461372b57613757565b60ff1984168752821515830287019450613757565b896000528560002060005b8481101561374f57815489820152908301908701613736565b505082870194505b50929a9950505050505050505050565b60006020828403121561377957600080fd5b8151611d1d816132ea565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b81810381811115610c6a57610c6a613468565b6000826137f3576137f361369d565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906138c290830184612ff4565b9695505050505050565b6000602082840312156138de57600080fd5b8151611d1d81612f9d56fea2646970667358221220b27a1b0cc3666c4fc23e0c7e6a765ff5520fb0b6223de4059b89be9b71cb4d2664736f6c63430008110033

Deployed Bytecode

0x6080604052600436106103d95760003560e01c80636fb722f3116101fd578063a044c98711610118578063c87b56dd116100ab578063dbe7e3bd1161007a578063dbe7e3bd14610b5b578063e985e9c514610b8b578063f2fde38b14610bab578063fe60d12c14610bcb578063ff5e653e14610bea57600080fd5b8063c87b56dd14610afd578063cd3293de14610b1d578063d5abeb0114610b32578063d7c02bef14610b4857600080fd5b8063af802480116100e7578063af80248014610a7a578063b1c9fe6e14610a9a578063b88d4fde14610ab0578063b911019814610ad057600080fd5b8063a044c987146109fd578063a0bcfc7f14610a25578063a138ea3814610a45578063a22cb46514610a5a57600080fd5b80638010fc45116101905780639bf57ccf1161015f5780639bf57ccf146109775780639c4575d61461099f5780639e34070f146109c75780639f127049146109e757600080fd5b80638010fc451461091a578063853828b61461092f5780638da5cb5b1461094457806395d89b411461096257600080fd5b806379cf92d3116101cc57806379cf92d3146108925780637cb64759146108b25780637e2285aa146108d25780637e44755b146108f257600080fd5b80636fb722f31461081357806370a0823114610829578063715018a6146108495780637685807d1461085e57600080fd5b80632cc82655116102f85780634081262e1161028b5780634eea49911161025a5780634eea4991146107805780636352211e1461079657806366c3a9c5146107b65780636c0360eb146107de5780636d5697ac146107f357600080fd5b80634081262e146106fb57806341f434341461071157806342842e0e14610733578063438b63001461075357600080fd5b806333c41a90116102c757806333c41a901461067d57806334f7a4e51461069d5780633602deb2146106b3578063379607f5146106db57600080fd5b80632cc82655146106125780632cdc30d3146106325780632d5537b0146106525780632eb4a7ab1461066757600080fd5b80630defc08a11610370578063203e33951161033f578063203e33951461059a5780632106defd146105af57806323b872dd146105c55780632c4b381b146105e557600080fd5b80630defc08a1461052d57806318160ddd146105475780631a4519d11461055c5780631ea5f5891461057257600080fd5b8063081812fc116103ac578063081812fc1461049d5780630862082d146104bd578063095ea7b3146104f857806309cde9581461051a57600080fd5b806301ffc9a7146103de57806302290f5d1461041357806303cf8a201461045357806306fdde031461047b575b600080fd5b3480156103ea57600080fd5b506103fe6103f9366004612fb3565b610c1e565b60405190151581526020015b60405180910390f35b34801561041f57600080fd5b5061043b7398d8d01cfe9078fd22acc91b876bc08edcd8ba5281565b6040516001600160a01b03909116815260200161040a565b34801561045f57600080fd5b5061043b73a5bd70354c6289ce6fbba390fbf003c0a92f887981565b34801561048757600080fd5b50610490610c70565b60405161040a9190613020565b3480156104a957600080fd5b5061043b6104b8366004613033565b610d02565b3480156104c957600080fd5b506104ea6104d8366004613068565b60186020526000908152604090205481565b60405190815260200161040a565b34801561050457600080fd5b50610518610513366004613083565b610d29565b005b6105186105283660046130f9565b610d42565b34801561053957600080fd5b506015546103fe9060ff1681565b34801561055357600080fd5b506104ea6111f2565b34801561056857600080fd5b506104ea600a5481565b34801561057e57600080fd5b5061043b73a2004b13db88f0f8c5ee71a18d42ec653a61da0581565b3480156105a657600080fd5b506104ea61120f565b3480156105bb57600080fd5b506104ea60115481565b3480156105d157600080fd5b506105186105e0366004613153565b61121a565b3480156105f157600080fd5b506104ea610600366004613068565b60176020526000908152604090205481565b34801561061e57600080fd5b5061051861062d366004613033565b611245565b34801561063e57600080fd5b5061051861064d366004613033565b611274565b34801561065e57600080fd5b506104906112a3565b34801561067357600080fd5b506104ea60095481565b34801561068957600080fd5b506103fe610698366004613033565b611331565b3480156106a957600080fd5b506104ea60125481565b3480156106bf57600080fd5b5061043b73f8ecc89703a21dd0db39988fabb6f8925fb1a23281565b3480156106e757600080fd5b506105186106f6366004613033565b61133c565b34801561070757600080fd5b506104ea60105481565b34801561071d57600080fd5b5061043b6daaeb6d7670e522a718067333cd4e81565b34801561073f57600080fd5b5061051861074e366004613153565b611488565b34801561075f57600080fd5b5061077361076e366004613068565b6114ad565b60405161040a919061318f565b34801561078c57600080fd5b506104ea600f5481565b3480156107a257600080fd5b5061043b6107b1366004613033565b61159c565b3480156107c257600080fd5b5061043b73b14289984581c3d8cdc24663f5d0d6035eed642c81565b3480156107ea57600080fd5b506104906115fc565b3480156107ff57600080fd5b506103fe61080e366004613068565b611609565b34801561081f57600080fd5b506104ea60135481565b34801561083557600080fd5b506104ea610844366004613068565b61174d565b34801561085557600080fd5b506105186117d3565b34801561086a57600080fd5b5061043b7f000000000000000000000000bc4ca0eda7647a8ab7c2061c2e118a18a936f13d81565b34801561089e57600080fd5b506105186108ad3660046131d3565b611809565b3480156108be57600080fd5b506105186108cd366004613033565b6118b3565b3480156108de57600080fd5b506105186108ed3660046132a1565b6118e2565b3480156108fe57600080fd5b5061043b73f98903f0e58b8063b67fb1c426b17d4227b6380c81565b34801561092657600080fd5b5061051861191c565b34801561093b57600080fd5b5061051861195a565b34801561095057600080fd5b506006546001600160a01b031661043b565b34801561096e57600080fd5b50610490611b27565b34801561098357600080fd5b5061043b73207ad8a7a3714e0b5d090c4d9d9cb116245d9b4e81565b3480156109ab57600080fd5b5061043b735554ce83f7a8a82b81650a055310ac19bd915aee81565b3480156109d357600080fd5b506103fe6109e2366004613033565b611b36565b3480156109f357600080fd5b506104ea600e5481565b348015610a0957600080fd5b5061043b7388375f4c4dfe2f40154e76c3175de7ced551dd3381565b348015610a3157600080fd5b50610518610a403660046132a1565b611b60565b348015610a5157600080fd5b506104ea611b96565b348015610a6657600080fd5b50610518610a753660046132f8565b611ba1565b348015610a8657600080fd5b50610518610a9536600461332f565b611bb5565b348015610aa657600080fd5b506104ea60145481565b348015610abc57600080fd5b50610518610acb366004613351565b611c4d565b348015610adc57600080fd5b506104ea610aeb366004613068565b60166020526000908152604090205481565b348015610b0957600080fd5b50610490610b18366004613033565b611c7a565b348015610b2957600080fd5b50610518611d24565b348015610b3e57600080fd5b506104ea600d5481565b610518610b563660046130f9565b611e26565b348015610b6757600080fd5b506103fe610b76366004613033565b60196020526000908152604090205460ff1681565b348015610b9757600080fd5b506103fe610ba63660046133cd565b6122fa565b348015610bb757600080fd5b50610518610bc6366004613068565b612328565b348015610bd757600080fd5b506015546103fe90610100900460ff1681565b348015610bf657600080fd5b5061043b7f00000000000000000000000060e4d786628fea6478f785a6d7e704777c86a7c681565b60006001600160e01b031982166380ac58cd60e01b1480610c4f57506001600160e01b03198216635b5e139f60e01b145b80610c6a57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610c7f90613400565b80601f0160208091040260200160405190810160405280929190818152602001828054610cab90613400565b8015610cf85780601f10610ccd57610100808354040283529160200191610cf8565b820191906000526020600020905b815481529060010190602001808311610cdb57829003601f168201915b5050505050905090565b6000610d0d826123c0565b506000908152600460205260409020546001600160a01b031690565b81610d3381612410565b610d3d83836124c9565b505050565b600060145411610d6d5760405162461bcd60e51b8152600401610d649061343a565b60405180910390fd5b600460145410610d8f5760405162461bcd60e51b8152600401610d649061343a565b333214610dcd5760405162461bcd60e51b815260206004820152600c60248201526b4e6f20636f6e74726163747360a01b6044820152606401610d64565b6000610dd860085490565b9050600f546001610de9919061347e565b610df3868361347e565b10610e405760405162461bcd60e51b815260206004820152601a60248201527f4e6f206d6f726520426f7265642045646974696f6e206c6566740000000000006044820152606401610d64565b601454600103610feb57610eb183838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600954604051909250610e9691503390602001613491565b604051602081830303815290604052805190602001206125d9565b610ef75760405162461bcd60e51b8152602060048201526017602482015276139bdd081bdb881d1a1948141c9a5d985d1948131a5cdd604a1b6044820152606401610d64565b601054610f0490866134ae565b341015610f235760405162461bcd60e51b8152600401610d64906134c5565b33600090815260166020526040902054600390610f4190879061347e565b10610f5e5760405162461bcd60e51b8152600401610d64906134ed565b61036385610f6a6111f2565b610f74919061347e565b10610fc15760405162461bcd60e51b815260206004820152601c60248201527f4e6f206d6f7265206c65667420696e20707269766174652073616c65000000006044820152606401610d64565b3360009081526016602052604081208054879290610fe090849061347e565b909155506111a19050565b60145460020361110b5761104183838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a54604051909250610e9691503390602001613491565b6110855760405162461bcd60e51b8152602060048201526015602482015274139bdd081bdb881d1a1948105b1b1bddc8131a5cdd605a1b6044820152606401610d64565b60115461109290866134ae565b3410156110b15760405162461bcd60e51b8152600401610d64906134c5565b336000908152601760205260409020546006906110cf90879061347e565b106110ec5760405162461bcd60e51b8152600401610d64906134ed565b3360009081526017602052604081208054879290610fe090849061347e565b6014546003036111a15760125461112290866134ae565b3410156111415760405162461bcd60e51b8152600401610d64906134c5565b33600090815260186020526040902054600b9061115f90879061347e565b1061117c5760405162461bcd60e51b8152600401610d64906134ed565b336000908152601860205260408120805487929061119b90849061347e565b90915550505b60015b8581116111ea576111b9600880546001019055565b6111d8856111c7838561347e565b6111d3906103e861347e565b6125ef565b806111e28161351a565b9150506111a4565b505050505050565b60006111fd60085490565b60075461120a919061347e565b905090565b600061120a60085490565b826001600160a01b03811633146112345761123433612410565b61123f848484612609565b50505050565b6006546001600160a01b0316331461126f5760405162461bcd60e51b8152600401610d6490613533565b601455565b6006546001600160a01b0316331461129e5760405162461bcd60e51b8152600401610d6490613533565b600a55565b600c80546112b090613400565b80601f01602080910402602001604051908101604052809291908181526020018280546112dc90613400565b80156113295780601f106112fe57610100808354040283529160200191611329565b820191906000526020600020905b81548152906001019060200180831161130c57829003601f168201915b505050505081565b6000610c6a8261263a565b6113458161263a565b6113855760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610d64565b60155460ff166113cb5760405162461bcd60e51b815260206004820152601160248201527021b630b4b6b4b733903737ba1037b832b760791b6044820152606401610d64565b336113d58261159c565b6001600160a01b0316146114205760405162461bcd60e51b81526020600482015260126024820152714e6f7420796f75727320746f20636c61696d60701b6044820152606401610d64565b60008181526019602052604090819020805460ff19166001179055517f92ada2308b72aa340c22987e8947301cfd33576c80c3fdb29484753a646099d29061147d90839033909182526001600160a01b0316602082015260400190565b60405180910390a150565b826001600160a01b03811633146114a2576114a233612410565b61123f848484612657565b606060006114ba8361174d565b905060008167ffffffffffffffff8111156114d7576114d7613215565b604051908082528060200260200182016040528015611500578160200160208202803683370190505b509050600160005b83811080156115195750600d548211155b15611592576115278261263a565b156115805760006115378361159c565b9050866001600160a01b0316816001600160a01b03160361157e578284838151811061156557611565613568565b60209081029190910101528161157a8161351a565b9250505b505b8161158a8161351a565b925050611508565b5090949350505050565b6000818152600260205260408120546001600160a01b031680610c6a5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610d64565b600b80546112b090613400565b6040516370a0823160e01b81526001600160a01b03828116600483015260009182917f000000000000000000000000bc4ca0eda7647a8ab7c2061c2e118a18a936f13d16906370a0823190602401602060405180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611698919061357e565b6040516370a0823160e01b81526001600160a01b0385811660048301529192506000917f00000000000000000000000060e4d786628fea6478f785a6d7e704777c86a7c616906370a0823190602401602060405180830381865afa158015611704573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611728919061357e565b90506000611736828461347e565b11611742576000611745565b60015b949350505050565b60006001600160a01b0382166117b75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610d64565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146117fd5760405162461bcd60e51b8152600401610d6490613533565b6118076000612672565b565b6006546001600160a01b031633146118335760405162461bcd60e51b8152600401610d6490613533565b8181600081811061184657611846613568565b6020029190910135601055508181600181811061186557611865613568565b6020029190910135601155508181600281811061188457611884613568565b602002919091013560125550818160038181106118a3576118a3613568565b6020029190910135601355505050565b6006546001600160a01b031633146118dd5760405162461bcd60e51b8152600401610d6490613533565b600955565b6006546001600160a01b0316331461190c5760405162461bcd60e51b8152600401610d6490613533565b600c61191882826135dd565b5050565b6006546001600160a01b031633146119465760405162461bcd60e51b8152600401610d6490613533565b6015805460ff19811660ff90911615179055565b6006546001600160a01b031633146119845760405162461bcd60e51b8152600401610d6490613533565b47806119c85760405162461bcd60e51b8152602060048201526013602482015272496e737566666963656e742062616c616e636560681b6044820152606401610d64565b6119fc73f98903f0e58b8063b67fb1c426b17d4227b6380c60c86119ed84606d6134ae565b6119f791906136b3565b6126c4565b611a2173a5bd70354c6289ce6fbba390fbf003c0a92f887960646119ed8460146134ae565b611a467388375f4c4dfe2f40154e76c3175de7ced551dd3360646119ed84600a6134ae565b611a6b73f8ecc89703a21dd0db39988fabb6f8925fb1a23260646119ed84600a6134ae565b611a9073a2004b13db88f0f8c5ee71a18d42ec653a61da0560646119ed8460036134ae565b611ab57398d8d01cfe9078fd22acc91b876bc08edcd8ba5260646119ed8460016134ae565b611ada735554ce83f7a8a82b81650a055310ac19bd915aee60c86119ed8460016134ae565b611aff73207ad8a7a3714e0b5d090c4d9d9cb116245d9b4e60c86119ed8460016134ae565b611b2473b14289984581c3d8cdc24663f5d0d6035eed642c60c86119ed8460016134ae565b50565b606060018054610c7f90613400565b60008181526019602052604081205460ff161515600114611b58576000610c6a565b600192915050565b6006546001600160a01b03163314611b8a5760405162461bcd60e51b8152600401610d6490613533565b600b61191882826135dd565b600061120a60075490565b81611bab81612410565b610d3d8383612767565b6006546001600160a01b03163314611bdf5760405162461bcd60e51b8152600401610d6490613533565b600d54611bec828461347e565b10611c325760405162461bcd60e51b815260206004820152601660248201527521b0b713ba1034b731b932b0b9b29039bab838363c9760511b6044820152606401610d64565b600e829055600f819055611c46818361347e565b600d555050565b836001600160a01b0381163314611c6757611c6733612410565b611c7385858585612772565b5050505050565b6060611c858261263a565b611cc55760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610d64565b6000611ccf6127a4565b90506000815111611cef5760405180602001604052806000815250611d1d565b80611cf9846127b3565b600c604051602001611d0d939291906136c7565b6040516020818303038152906040525b9392505050565b6006546001600160a01b03163314611d4e5760405162461bcd60e51b8152600401610d6490613533565b601554610100900460ff1615611da65760405162461bcd60e51b815260206004820152601960248201527f416c726561647920726573657276656420343020626f6f6b73000000000000006044820152606401610d64565b6015805461ff00191661010017905560015b60238111611df057611dce600880546001019055565b611dde336111d3836103e861347e565b80611de88161351a565b915050611db8565b5060015b60058111611b2457611e0a600780546001019055565b611e1433826125ef565b80611e1e8161351a565b915050611df4565b600060145411611e485760405162461bcd60e51b8152600401610d649061343a565b600460145410611e6a5760405162461bcd60e51b8152600401610d649061343a565b333214611ea85760405162461bcd60e51b815260206004820152600c60248201526b4e6f20636f6e74726163747360a01b6044820152606401610d64565b611eb183611609565b611f095760405162461bcd60e51b8152602060048201526024808201527f4e6f7420616e2061706520686f6c6465722c2074727920426f726564204564696044820152633a34b7b760e11b6064820152608401610d64565b6000611f1460075490565b9050600e546001611f25919061347e565b611f2f868361347e565b10611f7c5760405162461bcd60e51b815260206004820152601c60248201527f4e6f206d6f7265204c696d697465642045646974696f6e206c656674000000006044820152606401610d64565b60145460010361210c57611fd283838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600954604051909250610e9691503390602001613491565b6120185760405162461bcd60e51b8152602060048201526017602482015276139bdd081bdb881d1a1948141c9a5d985d1948131a5cdd604a1b6044820152606401610d64565b60115461202590866134ae565b3410156120445760405162461bcd60e51b8152600401610d64906134c5565b3360009081526016602052604090205460039061206290879061347e565b1061207f5760405162461bcd60e51b8152600401610d64906134ed565b6103638561208b6111f2565b612095919061347e565b106120e25760405162461bcd60e51b815260206004820152601c60248201527f4e6f206d6f7265206c65667420696e20707269766174652073616c65000000006044820152606401610d64565b336000908152601660205260408120805487929061210190849061347e565b909155506122c29050565b60145460020361222c5761216283838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a54604051909250610e9691503390602001613491565b6121a65760405162461bcd60e51b8152602060048201526015602482015274139bdd081bdb881d1a1948105b1b1bddc8131a5cdd605a1b6044820152606401610d64565b6012546121b390866134ae565b3410156121d25760405162461bcd60e51b8152600401610d64906134c5565b336000908152601760205260409020546006906121f090879061347e565b1061220d5760405162461bcd60e51b8152600401610d64906134ed565b336000908152601760205260408120805487929061210190849061347e565b6014546003036122c25760135461224390866134ae565b3410156122625760405162461bcd60e51b8152600401610d64906134c5565b33600090815260186020526040902054600b9061228090879061347e565b1061229d5760405162461bcd60e51b8152600401610d64906134ed565b33600090815260186020526040812080548792906122bc90849061347e565b90915550505b60015b8581116111ea576122da600780546001019055565b6122e8856111d3838561347e565b806122f28161351a565b9150506122c5565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b031633146123525760405162461bcd60e51b8152600401610d6490613533565b6001600160a01b0381166123b75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d64565b611b2481612672565b6123c98161263a565b611b245760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610d64565b6daaeb6d7670e522a718067333cd4e3b15611b2457604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561247d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124a19190613767565b611b2457604051633b79c77360e21b81526001600160a01b0382166004820152602401610d64565b60006124d48261159c565b9050806001600160a01b0316836001600160a01b0316036125415760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610d64565b336001600160a01b038216148061255d575061255d81336122fa565b6125cf5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610d64565b610d3d83836128b4565b6000826125e68584612922565b14949350505050565b611918828260405180602001604052806000815250612996565b61261333826129c9565b61262f5760405162461bcd60e51b8152600401610d6490613784565b610d3d838383612a27565b6000908152600260205260409020546001600160a01b0316151590565b610d3d83838360405180602001604052806000815250611c4d565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612711576040519150601f19603f3d011682016040523d82523d6000602084013e612716565b606091505b5050905080610d3d5760405162461bcd60e51b815260206004820152601860248201527f4661696c656420746f20776974686472617720457468657200000000000000006044820152606401610d64565b611918338383612b98565b61277c33836129c9565b6127985760405162461bcd60e51b8152600401610d6490613784565b61123f84848484612c66565b6060600b8054610c7f90613400565b6060816000036127da5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561280457806127ee8161351a565b91506127fd9050600a836136b3565b91506127de565b60008167ffffffffffffffff81111561281f5761281f613215565b6040519080825280601f01601f191660200182016040528015612849576020820181803683370190505b5090505b84156117455761285e6001836137d1565b915061286b600a866137e4565b61287690603061347e565b60f81b81838151811061288b5761288b613568565b60200101906001600160f81b031916908160001a9053506128ad600a866136b3565b945061284d565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906128e98261159c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081815b845181101561298e57600085828151811061294457612944613568565b6020026020010151905080831161296a576000838152602082905260409020925061297b565b600081815260208490526040902092505b50806129868161351a565b915050612927565b509392505050565b6129a08383612c99565b6129ad6000848484612e14565b610d3d5760405162461bcd60e51b8152600401610d64906137f8565b6000806129d58361159c565b9050806001600160a01b0316846001600160a01b031614806129fc57506129fc81856122fa565b806117455750836001600160a01b0316612a1584610d02565b6001600160a01b031614949350505050565b826001600160a01b0316612a3a8261159c565b6001600160a01b031614612a605760405162461bcd60e51b8152600401610d649061384a565b6001600160a01b038216612ac25760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610d64565b612acf8383836001612f15565b826001600160a01b0316612ae28261159c565b6001600160a01b031614612b085760405162461bcd60e51b8152600401610d649061384a565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b031603612bf95760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d64565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612c71848484612a27565b612c7d84848484612e14565b61123f5760405162461bcd60e51b8152600401610d64906137f8565b6001600160a01b038216612cef5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d64565b612cf88161263a565b15612d455760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d64565b612d53600083836001612f15565b612d5c8161263a565b15612da95760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d64565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15612f0a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612e5890339089908890889060040161388f565b6020604051808303816000875af1925050508015612e93575060408051601f3d908101601f19168201909252612e90918101906138cc565b60015b612ef0573d808015612ec1576040519150601f19603f3d011682016040523d82523d6000602084013e612ec6565b606091505b508051600003612ee85760405162461bcd60e51b8152600401610d64906137f8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611745565b506001949350505050565b600181111561123f576001600160a01b03841615612f5b576001600160a01b03841660009081526003602052604081208054839290612f559084906137d1565b90915550505b6001600160a01b0383161561123f576001600160a01b03831660009081526003602052604081208054839290612f9290849061347e565b909155505050505050565b6001600160e01b031981168114611b2457600080fd5b600060208284031215612fc557600080fd5b8135611d1d81612f9d565b60005b83811015612feb578181015183820152602001612fd3565b50506000910152565b6000815180845261300c816020860160208601612fd0565b601f01601f19169290920160200192915050565b602081526000611d1d6020830184612ff4565b60006020828403121561304557600080fd5b5035919050565b80356001600160a01b038116811461306357600080fd5b919050565b60006020828403121561307a57600080fd5b611d1d8261304c565b6000806040838503121561309657600080fd5b61309f8361304c565b946020939093013593505050565b60008083601f8401126130bf57600080fd5b50813567ffffffffffffffff8111156130d757600080fd5b6020830191508360208260051b85010111156130f257600080fd5b9250929050565b6000806000806060858703121561310f57600080fd5b8435935061311f6020860161304c565b9250604085013567ffffffffffffffff81111561313b57600080fd5b613147878288016130ad565b95989497509550505050565b60008060006060848603121561316857600080fd5b6131718461304c565b925061317f6020850161304c565b9150604084013590509250925092565b6020808252825182820181905260009190848201906040850190845b818110156131c7578351835292840192918401916001016131ab565b50909695505050505050565b600080602083850312156131e657600080fd5b823567ffffffffffffffff8111156131fd57600080fd5b613209858286016130ad565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561324657613246613215565b604051601f8501601f19908116603f0116810190828211818310171561326e5761326e613215565b8160405280935085815286868601111561328757600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156132b357600080fd5b813567ffffffffffffffff8111156132ca57600080fd5b8201601f810184136132db57600080fd5b6117458482356020840161322b565b8015158114611b2457600080fd5b6000806040838503121561330b57600080fd5b6133148361304c565b91506020830135613324816132ea565b809150509250929050565b6000806040838503121561334257600080fd5b50508035926020909101359150565b6000806000806080858703121561336757600080fd5b6133708561304c565b935061337e6020860161304c565b925060408501359150606085013567ffffffffffffffff8111156133a157600080fd5b8501601f810187136133b257600080fd5b6133c18782356020840161322b565b91505092959194509250565b600080604083850312156133e057600080fd5b6133e98361304c565b91506133f76020840161304c565b90509250929050565b600181811c9082168061341457607f821691505b60208210810361343457634e487b7160e01b600052602260045260246000fd5b50919050565b602080825260149082015273135a5b9d081a5cc81b9bdd081b1a5d99481e595d60621b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610c6a57610c6a613468565b60609190911b6bffffffffffffffffffffffff1916815260140190565b8082028115828204841417610c6a57610c6a613468565b6020808252600e908201526d09cdee840cadcdeeaced0408aa8960931b604082015260600190565b602080825260139082015272151bdbc81b585b9e481c195c881dd85b1b195d606a1b604082015260600190565b60006001820161352c5761352c613468565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561359057600080fd5b5051919050565b601f821115610d3d57600081815260208120601f850160051c810160208610156135be5750805b601f850160051c820191505b818110156111ea578281556001016135ca565b815167ffffffffffffffff8111156135f7576135f7613215565b61360b816136058454613400565b84613597565b602080601f83116001811461364057600084156136285750858301515b600019600386901b1c1916600185901b1785556111ea565b600085815260208120601f198616915b8281101561366f57888601518255948401946001909101908401613650565b508582101561368d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601260045260246000fd5b6000826136c2576136c261369d565b500490565b6000845160206136da8285838a01612fd0565b8551918401916136ed8184848a01612fd0565b85549201916000906136fe81613400565b60018281168015613716576001811461372b57613757565b60ff1984168752821515830287019450613757565b896000528560002060005b8481101561374f57815489820152908301908701613736565b505082870194505b50929a9950505050505050505050565b60006020828403121561377957600080fd5b8151611d1d816132ea565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b81810381811115610c6a57610c6a613468565b6000826137f3576137f361369d565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906138c290830184612ff4565b9695505050505050565b6000602082840312156138de57600080fd5b8151611d1d81612f9d56fea2646970667358221220b27a1b0cc3666c4fc23e0c7e6a765ff5520fb0b6223de4059b89be9b71cb4d2664736f6c63430008110033

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.