ETH Price: $3,112.75 (+1.45%)
Gas: 7 Gwei

Contract

0xb64d041bc702d06B955Ba10a6FfD437788967786
 

Overview

ETH Balance

1.97 ETH

Eth Value

$6,132.13 (@ $3,112.75/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Burn And Return188662982023-12-26 0:28:35197 days ago1703550515IN
0xb64d041b...788967786
0 ETH0.0010857115.26149253
Setup Fees187601462023-12-11 3:00:59212 days ago1702263659IN
0xb64d041b...788967786
0 ETH0.0018548446.99965371
Transfer From187565482023-12-10 14:56:59212 days ago1702220219IN
0xb64d041b...788967786
0 ETH0.0014294626.6343968
Transfer From187565442023-12-10 14:56:11212 days ago1702220171IN
0xb64d041b...788967786
0 ETH0.0018867325.54237439
Burn And Return187554382023-12-10 11:13:47213 days ago1702206827IN
0xb64d041b...788967786
0 ETH0.01086224.21711621
Safe Transfer Fr...187553692023-12-10 10:59:59213 days ago1702205999IN
0xb64d041b...788967786
0 ETH0.0014967626
Safe Transfer Fr...187553692023-12-10 10:59:59213 days ago1702205999IN
0xb64d041b...788967786
0 ETH0.0014967626
Safe Transfer Fr...187553692023-12-10 10:59:59213 days ago1702205999IN
0xb64d041b...788967786
0 ETH0.0014967626
Safe Transfer Fr...187553692023-12-10 10:59:59213 days ago1702205999IN
0xb64d041b...788967786
0 ETH0.0014967626
Safe Transfer Fr...187553692023-12-10 10:59:59213 days ago1702205999IN
0xb64d041b...788967786
0 ETH0.0015002526
Safe Transfer Fr...187553692023-12-10 10:59:59213 days ago1702205999IN
0xb64d041b...788967786
0 ETH0.0014967626
Safe Transfer Fr...187553692023-12-10 10:59:59213 days ago1702205999IN
0xb64d041b...788967786
0 ETH0.0014967626
Safe Transfer Fr...187553692023-12-10 10:59:59213 days ago1702205999IN
0xb64d041b...788967786
0 ETH0.0014964526
Safe Transfer Fr...187553692023-12-10 10:59:59213 days ago1702205999IN
0xb64d041b...788967786
0 ETH0.0014967626
Safe Transfer Fr...187553692023-12-10 10:59:59213 days ago1702205999IN
0xb64d041b...788967786
0 ETH0.0014964526
Safe Transfer Fr...187553682023-12-10 10:59:47213 days ago1702205987IN
0xb64d041b...788967786
0 ETH0.0020215726
Safe Transfer Fr...187553682023-12-10 10:59:47213 days ago1702205987IN
0xb64d041b...788967786
0 ETH0.0020218926
Safe Transfer Fr...187553682023-12-10 10:59:47213 days ago1702205987IN
0xb64d041b...788967786
0 ETH0.0020218926
Safe Transfer Fr...187553682023-12-10 10:59:47213 days ago1702205987IN
0xb64d041b...788967786
0 ETH0.0020218926
Safe Transfer Fr...187553682023-12-10 10:59:47213 days ago1702205987IN
0xb64d041b...788967786
0 ETH0.0020218926
Safe Transfer Fr...187553682023-12-10 10:59:47213 days ago1702205987IN
0xb64d041b...788967786
0 ETH0.0020218926
Safe Transfer Fr...187553682023-12-10 10:59:47213 days ago1702205987IN
0xb64d041b...788967786
0 ETH0.0020215726
Safe Transfer Fr...187553682023-12-10 10:59:47213 days ago1702205987IN
0xb64d041b...788967786
0 ETH0.0020218926
Safe Transfer Fr...187553682023-12-10 10:59:47213 days ago1702205987IN
0xb64d041b...788967786
0 ETH0.0020218926
Safe Transfer Fr...187553682023-12-10 10:59:47213 days ago1702205987IN
0xb64d041b...788967786
0 ETH0.0020218926
View all transactions

Latest 22 internal transactions

Advanced mode:
Parent Transaction Hash Block From To Value
188662982023-12-26 0:28:35197 days ago1703550515
0xb64d041b...788967786
0.01 ETH
187554382023-12-10 11:13:47213 days ago1702206827
0xb64d041b...788967786
0.2 ETH
187551232023-12-10 10:10:11213 days ago1702203011
0xb64d041b...788967786
0.2 ETH
187535222023-12-10 4:47:11213 days ago1702183631
0xb64d041b...788967786
0.2 ETH
187470242023-12-09 6:56:11214 days ago1702104971
0xb64d041b...788967786
0.14 ETH
164151682023-01-15 22:25:47541 days ago1673821547
0xb64d041b...788967786
0.02 ETH
163653892023-01-08 23:35:35548 days ago1673220935
0xb64d041b...788967786
0.02 ETH
163390482023-01-05 7:18:11552 days ago1672903091
0xb64d041b...788967786
0.01 ETH
163377882023-01-05 3:05:23552 days ago1672887923
0xb64d041b...788967786
0.85 ETH
163027822022-12-31 5:53:47557 days ago1672466027
0xb64d041b...788967786
0.01 ETH
162722942022-12-26 23:45:23561 days ago1672098323
0xb64d041b...788967786
0.01 ETH
162686552022-12-26 11:33:11562 days ago1672054391
0xb64d041b...788967786
0.02 ETH
162679572022-12-26 9:12:47562 days ago1672045967
0xb64d041b...788967786
0.08 ETH
162652432022-12-26 0:07:35562 days ago1672013255
0xb64d041b...788967786
0.03 ETH
162651832022-12-25 23:55:35562 days ago1672012535
0xb64d041b...788967786
0.01 ETH
162176102022-12-19 8:41:11569 days ago1671439271
0xb64d041b...788967786
0.01 ETH
162146862022-12-18 22:53:11569 days ago1671403991
0xb64d041b...788967786
0.02 ETH
162136932022-12-18 19:32:47569 days ago1671391967
0xb64d041b...788967786
0.01 ETH
162130672022-12-18 17:27:23569 days ago1671384443
0xb64d041b...788967786
0.01 ETH
162112502022-12-18 11:22:47570 days ago1671362567
0xb64d041b...788967786
0.01 ETH
162072732022-12-17 22:03:11570 days ago1671314591
0xb64d041b...788967786
0.01 ETH
162067652022-12-17 20:20:23570 days ago1671308423
0xb64d041b...788967786
0.02 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NewWorldMoney

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 1000 runs

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

/**
* NEW WORLD MONEY by Val Bochkov
* Old Money Has Let Us Down - It's Time For New World Money
*
* In collaboration with Rarity Garden, renowned US artist Val Bochkov 
* applies the vision of his New World Money idea to a first-of-its-kind 
* NFT collection. Not only New World Money suggests to value money 
* based on people's contributions to society, but also goes the extra 
* mile and preserves value for collectors.
*
* The New World money collection consists of 20 Eras and iconic faces
* for each with a total supply of 3315 NFTs. Each era has its own 
* secured floor, starting with a secured floor of 0.01 ETH for Era #1 
* and 2000 NFTs. Subsequent eras consist of less supply, until a total 
* of 3315 is reached. The floor price may be returned by burning NFTs 
* using this contract's "burnAndReturn" function (do not send to 0x0 directly!).
*
* Additionally, holders of Rarity Garden Unicorns receive $UNIVERSE tokens.
* For Era 1, the additional $UNIVERSE is 500 for each NFT being burned. 500 being 
* added for each subsequent era and NFT.
*
* Art reveal occurs after mint of each era.
*
* Mint & burn page: https://rarity.garden/new-world-money
* Twitter: https://twitter.com/rarity_garden
* Discord: https://discord.gg/Ur8XGaurSd
*/

pragma solidity ^0.8.17;

import "./ERC721A.sol";
import "./filter/DefaultOperatorFilterer.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

contract NewWorldMoney is IERC721A, ERC721A, ERC2981, DefaultOperatorFilterer, Ownable, ReentrancyGuard {

    using Strings for uint256;

    struct Edition {

        uint256 from;
        uint256 to;
    }

    struct Floor {

        uint256 price;
        uint256 edition;
        uint256 extraTokens;
    }

    struct MintData {

        uint256 maxMintsPerWallet;
        uint256 floorPrice;
        uint256 extraTokens;
        uint256 devFee;
        uint256 editionSupply;
        uint256 edition;
        uint256 totalMaxSupply;
        uint256 minted;
        uint256 devFees;
    }

    struct TokenUris {

        string baseTokenUri;
        string defaultURI;
    }

    MintData public _mintData;
    TokenUris public _tokenUris;
    mapping(uint256 => Floor) public _floors;
    mapping(uint256 => Edition) public _editions;
    mapping(uint256 => uint256) public _burned;
    mapping(uint256 => mapping(address => uint256)) public _minters;

    constructor(
        string memory name,
        string memory symbol,
        string memory baseTokenURI,
        string memory defaultURI,
        address royaltyAddress,
        uint96 royaltyAmount
    ) ERC721A(name, symbol) {

        // initial edition
        _mintData.maxMintsPerWallet = 2;
        _mintData.floorPrice = 10000000000000000;
        _mintData.extraTokens = 500000000000000000000;
        _mintData.devFee = 5000000000000000;
        _mintData.totalMaxSupply = 3315;
        _mintData.editionSupply = 2000;
        _mintData.edition = 1;
        _tokenUris.baseTokenUri = baseTokenURI;
        _tokenUris.defaultURI = defaultURI;

        // setting initial edition data.
        // "to" can change for the current edition if the edition 
        // didn't mint out before a new edition is set.
        _editions[1].from = 0;
        _editions[1].to = 1999;
        
        // initial royalties
        _setDefaultRoyalty(royaltyAddress, royaltyAmount);

        // should make it cheaper for the very first minter
        _floors[_mintData.totalMaxSupply].price = 1;
        _minters[_mintData.totalMaxSupply][_msgSender()] = 1;
    }

    /**
    * Minting
    *
    **/

    function mint(uint256 amount) external payable {

        MintData memory data = _mintData;
        
        require(amount != 0, "mint: amount must be larger than zero.");
        require(data.minted + amount <= data.editionSupply, "mint: max. supply would be reached with the requested amount.");
        require(_minters[data.edition][_msgSender()] + amount <= data.maxMintsPerWallet, "mint: exceeding max. allowed per wallet.");
        uint256 mintPrice = data.floorPrice + data.devFee;
        require(msg.value == amount * mintPrice, "mint: please send the exact amount.");

        uint256 nextTokenId = _nextTokenId();
        
        for(uint256 i = 0; i < amount; i++) {

            _floors[nextTokenId].price = data.floorPrice;
            _floors[nextTokenId].extraTokens = data.extraTokens;
            _floors[nextTokenId].edition = data.edition;
            nextTokenId += 1;
        }

        _mintData.devFees += amount * data.devFee;
        _mintData.minted += amount;
        _minters[data.edition][_msgSender()] += amount;

        _safeMint(_msgSender(), amount, "");
    }

    /**
    * Burn & Return
    *
    * Burns the desired NFTs owned by the caller and returns the guaranteed ETH floors for each.
    * If the returning address owns at least as many unicorns as New World Money tokens to be returned (at that moment),
    * the corresponding extra universe is granted.
    **/

    function burnAndReturn(uint256[] calldata tokenIds) external nonReentrant {

        uint256 refund = 0;
        uint256 universe = 0;
        address unicornAddress = 0x13fD344E39C30187D627e68075d6E9201163DF33;
        address universeAddress = 0xf6f31B8AFBf8E3F7FC8246BEf26093F02838dA98;
        uint256 unicornBalance = IERC721A(unicornAddress).balanceOf(_msgSender());
        
        for(uint256 i = 0; i < tokenIds.length; i++) {

            uint256 token = tokenIds[i];
            Floor memory floor = _floors[token];

            require(ownerOf(token) == _msgSender(), "burnAndReturn: not the owner.");

            if(i < unicornBalance) {
                
                universe += floor.extraTokens;
            }

            refund += floor.price;
            _burned[floor.edition] += 1;
            _burn(token);
        }

        if(universe != 0) {

            if(IERC20(universeAddress).balanceOf(address(this)) >= universe) {

                IERC20(universeAddress).transfer(_msgSender(), universe);
            }
        }

        (bool success,) = payable(_msgSender()).call{value: refund}("");

        if(!success) {

            revert("There has been a problem returning the funds.");
        }
    }

    /**
    * Infos
    *
    **/ 

    function _baseURI() internal view override returns (string memory) {

        return _tokenUris.baseTokenUri;
    }

    function tokenURI(uint256 tokenId) public view override(IERC721A, ERC721A) returns (string memory) {
        
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
          
        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString(), ".json")) : _tokenUris.defaultURI;
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(IERC721A, ERC721A, ERC2981)
        returns (bool)
    {

        return
            ERC721A.supportsInterface(interfaceId) ||
            ERC2981.supportsInterface(interfaceId);
    }

    /**
    * Admin
    * 
    **/

    function setupEdition(
        uint256 price,
        uint256 fee,
        uint256 extra,  
        uint256 mintsPerWallet, 
        uint256 edition,
        uint256 supply
    ) external onlyOwner {

        require(supply != 0, "setupEdition: supply must be larger than zero.");
        require(supply + _mintData.minted <= _mintData.totalMaxSupply, "setupEdition: total max reached.");
        require(edition == _mintData.edition + 1, "setupEdition: the next edition number must be an increment of 1.");

        uint256 prevEdition = edition - 1;
        uint256 to = _mintData.minted != 0 ? _mintData.minted - 1 : 0;

        if(to < _editions[prevEdition].from) {
            
            _editions[prevEdition].from = 0;
            _editions[prevEdition].to = 0;

        } else {

            _editions[prevEdition].to = to;
        }

        _editions[edition].from = _mintData.minted;
        _editions[edition].to = _mintData.minted + supply - 1;

        _mintData.floorPrice = price;
        _mintData.extraTokens = extra;
        _mintData.devFee = fee;
        _mintData.maxMintsPerWallet = mintsPerWallet;
        _mintData.edition = edition;
        _mintData.editionSupply = _mintData.minted + supply;
    }

    function setupFees(
        uint256 price, 
        uint256 fee,
        uint256 extra, 
        uint256 mintsPerWallet
    ) external onlyOwner {

        _mintData.floorPrice = price;
        _mintData.extraTokens = extra;
        _mintData.devFee = fee;
        _mintData.maxMintsPerWallet = mintsPerWallet;
    }

    function setBaseUri(string calldata baseTokenURI) external onlyOwner {

        _tokenUris.baseTokenUri = baseTokenURI;
    }

    function setDefaultUri(string calldata defaultURI) external onlyOwner {

        _tokenUris.defaultURI = defaultURI;
    }

    function performErc721Recover(address collection, uint256 token_id) external onlyOwner {

        IERC721A(collection).safeTransferFrom(address(this), _msgSender(), token_id);
    }

    /**
    * The owner may only recover ERC20 tokens that are NOT $UNIVERSE as they are reserved for burn & return.
    *
    */
    function performErc20Recover(address token, uint256 amount) external onlyOwner {

        require(token != 0xf6f31B8AFBf8E3F7FC8246BEf26093F02838dA98, "performErc20Recover: universe tokens only returnable through NWM burning.");

        IERC20(token).transfer(_msgSender(), amount);
    }

    function collectDevFees() external onlyOwner {
        
        uint256 tmp = _mintData.devFees;
        _mintData.devFees = 0;
        
        (bool success,) = payable(_msgSender()).call{value: tmp}("");

        if(!success) {

            revert("There has been a problem collecting the dev fees.");
        }
    }

    /**
    * ERC2981 Royalties
    *
    **/

    function setDefaultRoyalty(address royaltyAddress, uint96 royaltyAmount) external onlyOwner {

        _setDefaultRoyalty(royaltyAddress, royaltyAmount);
    }

    /**
    * Royalty enforcing overrides for OpenSea in order to be eligiible for creator fees on their platform.
    *
    * Since OpenSea basically controls where NFTs are allowed to get transferred to and by whom they may be approved,
    * we added a switch in onlyAllowedOperatorApproval() and onlyAllowedOperator() to turn it off 
    * in case if it will be mis-used by marketplaces.
    *
    * In case we want to allow certain addresses that are banned but the marketplace is not really bad acting,
    * we reserve the right to do so by using an internal allow-list for transfers and approvals.
    **/

    function setInternallyAllowed(address requestor, bool allowed) external onlyOwner {

        internallyAllowed[requestor] = allowed;
    }

    function isInternallyAllowed(address requestor) view external returns(bool) {

        return internallyAllowed[requestor];
    }

    function setOperatorFiltererAllowed(bool allowed) external onlyOwner {

        filterAllowed = allowed;
    }

    function isOperatorFiltererAllowed() view external returns(bool) {

        return filterAllowed;
    }

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

    function approve(address operator, uint256 tokenId) public payable override(IERC721A, ERC721A) onlyAllowedOperatorApproval(operator) {

        super.approve(operator, tokenId);
    }

    function transferFrom(address from, address to, uint256 tokenId) public payable override(IERC721A, ERC721A) onlyAllowedOperator(from) {

        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId) public payable override(IERC721A, ERC721A) onlyAllowedOperator(from) {

        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
        public payable
        override(IERC721A, ERC721A)
        onlyAllowedOperator(from)
    {

        super.safeTransferFrom(from, to, tokenId, data);
    }
}

File 2 of 15 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 3 of 15 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 4 of 15 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 5 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 15 : 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 7 of 15 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

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 8 of 15 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.17;

import "./IERC721A.sol";

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view virtual returns (uint256) {
        // Counter underflow is impossible as `_currentIndex` does not decrement,
        // and it is initialized to `_startTokenId()`.
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
    }

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
    }

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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) public payable virtual override {
        address owner = ownerOf(tokenId);

        if (_msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                revert ApprovalCallerNotOwnerNorApproved();
            }

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token IDs
     * are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token IDs
     * have been transferred. This includes minting.
     * And also called after one token has been burned.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

File 9 of 15 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

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

    bool internal filterAllowed = true;
    mapping(address => bool) internal internallyAllowed;

    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 {
        if(internallyAllowed[from]) {
            _;
            return;
        } else
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (filterAllowed && address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // 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) {
                _;
                return;
            }
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), msg.sender)) {
                revert OperatorNotAllowed(msg.sender);
            }
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        if(internallyAllowed[operator]) {
            _;
            return;
        } else
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (filterAllowed && address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
        _;
    }
}

File 10 of 15 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.17;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Transfers `tokenId` 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 payable;

    /**
     * @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 payable;

    /**
     * @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);

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @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);

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 11 of 15 : 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 12 of 15 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 13 of 15 : 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 14 of 15 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

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 15 of 15 : 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": 1000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"string","name":"defaultURI","type":"string"},{"internalType":"address","name":"royaltyAddress","type":"address"},{"internalType":"uint96","name":"royaltyAmount","type":"uint96"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","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":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_burned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_editions","outputs":[{"internalType":"uint256","name":"from","type":"uint256"},{"internalType":"uint256","name":"to","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_floors","outputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"edition","type":"uint256"},{"internalType":"uint256","name":"extraTokens","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_mintData","outputs":[{"internalType":"uint256","name":"maxMintsPerWallet","type":"uint256"},{"internalType":"uint256","name":"floorPrice","type":"uint256"},{"internalType":"uint256","name":"extraTokens","type":"uint256"},{"internalType":"uint256","name":"devFee","type":"uint256"},{"internalType":"uint256","name":"editionSupply","type":"uint256"},{"internalType":"uint256","name":"edition","type":"uint256"},{"internalType":"uint256","name":"totalMaxSupply","type":"uint256"},{"internalType":"uint256","name":"minted","type":"uint256"},{"internalType":"uint256","name":"devFees","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"_minters","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_tokenUris","outputs":[{"internalType":"string","name":"baseTokenUri","type":"string"},{"internalType":"string","name":"defaultURI","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"burnAndReturn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectDevFees","outputs":[],"stateMutability":"nonpayable","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":"address","name":"requestor","type":"address"}],"name":"isInternallyAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOperatorFiltererAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","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":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"performErc20Recover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"token_id","type":"uint256"}],"name":"performErc721Recover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","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":"baseTokenURI","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"royaltyAddress","type":"address"},{"internalType":"uint96","name":"royaltyAmount","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"defaultURI","type":"string"}],"name":"setDefaultUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"requestor","type":"address"},{"internalType":"bool","name":"allowed","type":"bool"}],"name":"setInternallyAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"allowed","type":"bool"}],"name":"setOperatorFiltererAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"uint256","name":"extra","type":"uint256"},{"internalType":"uint256","name":"mintsPerWallet","type":"uint256"},{"internalType":"uint256","name":"edition","type":"uint256"},{"internalType":"uint256","name":"supply","type":"uint256"}],"name":"setupEdition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"uint256","name":"extra","type":"uint256"},{"internalType":"uint256","name":"mintsPerWallet","type":"uint256"}],"name":"setupFees","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":[{"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600a805460ff191660011790553480156200001e57600080fd5b5060405162003bd438038062003bd4833981016040819052620000419162000519565b733cc6cdda760b79bafa08df41ecfa224f810dceb660018787600262000068838262000685565b50600362000077828262000685565b506000805550506daaeb6d7670e522a718067333cd4e3b15620001c35780156200011157604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b158015620000f257600080fd5b505af115801562000107573d6000803e3d6000fd5b50505050620001c3565b6001600160a01b03821615620001625760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620000d7565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001a957600080fd5b505af1158015620001be573d6000803e3d6000fd5b505050505b50620001d1905033620002c8565b6001600d8190556002600e55662386f26fc10000600f55681b1ae4d6e2ef5000006010556611c37937e08000601155610cf36014556107d060125560135560176200021d858262000685565b5060186200022c848262000685565b5060016000908152601a6020527ff88cd8d612926ebb404e40725c01084b6e9b3ce0344cde068570342cbd448c61556107cf7ff88cd8d612926ebb404e40725c01084b6e9b3ce0344cde068570342cbd448c62556200028c82826200031a565b505060148054600090815260196020908152604080832060019081905593548352601c8252808320338452909152902055506200075192505050565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b03821611156200038e5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620003e65760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000385565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200044757600080fd5b81516001600160401b03808211156200046457620004646200041f565b604051601f8301601f19908116603f011681019082821181831017156200048f576200048f6200041f565b81604052838152602092508683858801011115620004ac57600080fd5b600091505b83821015620004d05785820183015181830184015290820190620004b1565b600093810190920192909252949350505050565b80516001600160a01b0381168114620004fc57600080fd5b919050565b80516001600160601b0381168114620004fc57600080fd5b60008060008060008060c087890312156200053357600080fd5b86516001600160401b03808211156200054b57600080fd5b620005598a838b0162000435565b975060208901519150808211156200057057600080fd5b6200057e8a838b0162000435565b965060408901519150808211156200059557600080fd5b620005a38a838b0162000435565b95506060890151915080821115620005ba57600080fd5b50620005c989828a0162000435565b935050620005da60808801620004e4565b9150620005ea60a0880162000501565b90509295509295509295565b600181811c908216806200060b57607f821691505b6020821081036200062c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200068057600081815260208120601f850160051c810160208610156200065b5750805b601f850160051c820191505b818110156200067c5782815560010162000667565b5050505b505050565b81516001600160401b03811115620006a157620006a16200041f565b620006b981620006b28454620005f6565b8462000632565b602080601f831160018114620006f15760008415620006d85750858301515b600019600386901b1c1916600185901b1785556200067c565b600085815260208120601f198616915b82811015620007225788860151825594840194600190910190840162000701565b5085821015620007415787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61347380620007616000396000f3fe6080604052600436106102a05760003560e01c80636e864c921161016e578063a0712d68116100cb578063c87b56dd1161007f578063e985e9c511610064578063e985e9c5146107f2578063e9dc83861461083b578063f2fde38b1461087357600080fd5b8063c87b56dd146107b2578063dbbf3550146107d257600080fd5b8063a22cb465116100b0578063a22cb4651461075f578063b88d4fde1461077f578063c3ab7b6d1461079257600080fd5b8063a0712d681461072c578063a0bcfc7f1461073f57600080fd5b80638da5cb5b11610122578063946147221161010757806394614722146106a057806395d89b41146106f7578063968a9e5d1461070c57600080fd5b80638da5cb5b146106625780638e6aecdd1461068057600080fd5b8063715018a611610153578063715018a6146105a5578063804d5efd146105ba57806382b7a622146105e757600080fd5b80636e864c921461056557806370a082311461058557600080fd5b80632a55205a1161021c5780634cd1ed41116101d05780635d0aa7b4116101b55780635d0aa7b4146104ec5780636352211e1461050c5780636b6e80ca1461052c57600080fd5b80634cd1ed411461048e5780635054e8bf146104d757600080fd5b806341f434341161020157806341f434341461043957806342842e0e1461045b578063466a18de1461046e57600080fd5b80632a55205a146103d75780632ce9413c1461041657600080fd5b8063095ea7b31161027357806318160ddd1161025857806318160ddd1461038157806323b872dd146103a457806326ef4f33146103b757600080fd5b8063095ea7b31461035657806311feb91b1461036957600080fd5b806301ffc9a7146102a557806304634d8d146102da57806306fdde03146102fc578063081812fc1461031e575b600080fd5b3480156102b157600080fd5b506102c56102c0366004612ca0565b610893565b60405190151581526020015b60405180910390f35b3480156102e657600080fd5b506102fa6102f5366004612cd9565b6108b3565b005b34801561030857600080fd5b506103116108c9565b6040516102d19190612d71565b34801561032a57600080fd5b5061033e610339366004612d84565b61095b565b6040516001600160a01b0390911681526020016102d1565b6102fa610364366004612d9d565b6109b8565b34801561037557600080fd5b50600a5460ff166102c5565b34801561038d57600080fd5b50600154600054035b6040519081526020016102d1565b6102fa6103b2366004612dc7565b610ac2565b3480156103c357600080fd5b506102fa6103d2366004612e03565b610bd8565b3480156103e357600080fd5b506103f76103f2366004612e78565b610fdd565b604080516001600160a01b0390931683526020830191909152016102d1565b34801561042257600080fd5b5061042b611098565b6040516102d1929190612e9a565b34801561044557600080fd5b5061033e6daaeb6d7670e522a718067333cd4e81565b6102fa610469366004612dc7565b6111b8565b34801561047a57600080fd5b506102fa610489366004612ec8565b6112c3565b34801561049a57600080fd5b506104c26104a9366004612d84565b601a602052600090815260409020805460019091015482565b604080519283526020830191909152016102d1565b3480156104e357600080fd5b506102fa6112d8565b3480156104f857600080fd5b506102fa610507366004612f28565b6113a8565b34801561051857600080fd5b5061033e610527366004612d84565b6113c1565b34801561053857600080fd5b506102c5610547366004612f5a565b6001600160a01b03166000908152600b602052604090205460ff1690565b34801561057157600080fd5b506102fa610580366004612d9d565b6113cc565b34801561059157600080fd5b506103966105a0366004612f5a565b61145d565b3480156105b157600080fd5b506102fa6114c5565b3480156105c657600080fd5b506103966105d5366004612d84565b601b6020526000908152604090205481565b3480156105f357600080fd5b50600e54600f5460105460115460125460135460145460155460165461061e98979695949392919089565b60408051998a5260208a0198909852968801959095526060870193909352608086019190915260a085015260c084015260e0830152610100820152610120016102d1565b34801561066e57600080fd5b50600c546001600160a01b031661033e565b34801561068c57600080fd5b506102fa61069b366004612f83565b6114d9565b3480156106ac57600080fd5b506106dc6106bb366004612d84565b60196020526000908152604090208054600182015460029092015490919083565b604080519384526020840192909252908201526060016102d1565b34801561070357600080fd5b506103116114f4565b34801561071857600080fd5b506102fa610727366004612d9d565b611503565b6102fa61073a366004612d84565b611644565b34801561074b57600080fd5b506102fa61075a366004612ec8565b6119b5565b34801561076b57600080fd5b506102fa61077a366004612fa0565b6119ca565b6102fa61078d366004612fe2565b611aca565b34801561079e57600080fd5b506102fa6107ad3660046130be565b611be4565b3480156107be57600080fd5b506103116107cd366004612d84565b611e32565b3480156107de57600080fd5b506102fa6107ed366004612fa0565b611f86565b3480156107fe57600080fd5b506102c561080d366004613101565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561084757600080fd5b50610396610856366004613134565b601c60209081526000928352604080842090915290825290205481565b34801561087f57600080fd5b506102fa61088e366004612f5a565b611fb9565b600061089e82612049565b806108ad57506108ad826120c9565b92915050565b6108bb612117565b6108c58282612171565b5050565b6060600280546108d890613157565b80601f016020809104026020016040519081016040528092919081815260200182805461090490613157565b80156109515780601f1061092657610100808354040283529160200191610951565b820191906000526020600020905b81548152906001019060200180831161093457829003601f168201915b5050505050905090565b60006109668261228b565b61099c576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6001600160a01b0382166000908152600b6020526040902054829060ff16156109ea576109e583836122b2565b505050565b600a5460ff168015610a0a57506daaeb6d7670e522a718067333cd4e3b15155b15610ab857604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610a67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8b9190613191565b610ab857604051633b79c77360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b6109e583836122b2565b6001600160a01b0383166000908152600b6020526040902054839060ff1615610af557610af0848484612395565b610bd2565b600a5460ff168015610b1557506daaeb6d7670e522a718067333cd4e3b15155b15610bc757336001600160a01b03821603610b3557610af0848484612395565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610b84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba89190613191565b610bc757604051633b79c77360e21b8152336004820152602401610aaf565b610bd2848484612395565b50505050565b6002600d5403610c2a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610aaf565b6002600d556000807313fd344e39c30187d627e68075d6e9201163df3373f6f31b8afbf8e3f7fc8246bef26093f02838da9882826370a08231336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610ca8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ccc91906131ae565b905060005b86811015610dfe576000888883818110610ced57610ced6131c7565b6020908102929092013560008181526019845260409081902081516060810183528154815260018201549581019590955260020154908401529250339050610d34836113c1565b6001600160a01b031614610d8a5760405162461bcd60e51b815260206004820152601d60248201527f6275726e416e6452657475726e3a206e6f7420746865206f776e65722e0000006044820152606401610aaf565b83831015610da4576040810151610da190886131f3565b96505b8051610db090896131f3565b97506001601b6000836020015181526020019081526020016000206000828254610dda91906131f3565b90915550610de9905082612584565b50508080610df690613206565b915050610cd1565b508315610f10576040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015284906001600160a01b038416906370a0823190602401602060405180830381865afa158015610e64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8891906131ae565b10610f10576001600160a01b03821663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018790526044016020604051808303816000875af1158015610eea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0e9190613191565b505b604051600090339087908381818185875af1925050503d8060008114610f52576040519150601f19603f3d011682016040523d82523d6000602084013e610f57565b606091505b5050905080610fce5760405162461bcd60e51b815260206004820152602d60248201527f546865726520686173206265656e20612070726f626c656d2072657475726e6960448201527f6e67207468652066756e64732e000000000000000000000000000000000000006064820152608401610aaf565b50506001600d55505050505050565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff1692820192909252829161105c5750604080518082019091526008546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090611080906bffffffffffffffffffffffff168761321f565b61108a919061324c565b915196919550909350505050565b6017805481906110a790613157565b80601f01602080910402602001604051908101604052809291908181526020018280546110d390613157565b80156111205780601f106110f557610100808354040283529160200191611120565b820191906000526020600020905b81548152906001019060200180831161110357829003601f168201915b50505050509080600101805461113590613157565b80601f016020809104026020016040519081016040528092919081815260200182805461116190613157565b80156111ae5780601f10611183576101008083540402835291602001916111ae565b820191906000526020600020905b81548152906001019060200180831161119157829003601f168201915b5050505050905082565b6001600160a01b0383166000908152600b6020526040902054839060ff16156111e657610af084848461258f565b600a5460ff16801561120657506daaeb6d7670e522a718067333cd4e3b15155b156112b857336001600160a01b0382160361122657610af084848461258f565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611275573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112999190613191565b6112b857604051633b79c77360e21b8152336004820152602401610aaf565b610bd284848461258f565b6112cb612117565b60186109e58284836132a6565b6112e0612117565b60168054600091829055604051909190339083908381818185875af1925050503d806000811461132c576040519150601f19603f3d011682016040523d82523d6000602084013e611331565b606091505b50509050806108c55760405162461bcd60e51b815260206004820152603160248201527f546865726520686173206265656e20612070726f626c656d20636f6c6c65637460448201527f696e67207468652064657620666565732e0000000000000000000000000000006064820152608401610aaf565b6113b0612117565b600f93909355601055601155600e55565b60006108ad826125aa565b6113d4612117565b604080517f42842e0e0000000000000000000000000000000000000000000000000000000081523060048201523360248201526044810183905290516001600160a01b038416916342842e0e91606480830192600092919082900301818387803b15801561144157600080fd5b505af1158015611455573d6000803e3d6000fd5b505050505050565b60006001600160a01b03821661149f576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6114cd612117565b6114d7600061262a565b565b6114e1612117565b600a805460ff1916911515919091179055565b6060600380546108d890613157565b61150b612117565b6001600160a01b03821673f6f31b8afbf8e3f7fc8246bef26093f02838da98036115c35760405162461bcd60e51b815260206004820152604960248201527f706572666f726d45726332305265636f7665723a20756e69766572736520746f60448201527f6b656e73206f6e6c792072657475726e61626c65207468726f756768204e574d60648201527f206275726e696e672e0000000000000000000000000000000000000000000000608482015260a401610aaf565b6001600160a01b03821663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015611620573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e59190613191565b6040805161012081018252600e548152600f546020820152601054918101919091526011546060820152601254608082015260135460a082015260145460c082015260155460e0820152601654610100820152600082900361170e5760405162461bcd60e51b815260206004820152602660248201527f6d696e743a20616d6f756e74206d757374206265206c6172676572207468616e60448201527f207a65726f2e00000000000000000000000000000000000000000000000000006064820152608401610aaf565b8060800151828260e0015161172391906131f3565b11156117975760405162461bcd60e51b815260206004820152603d60248201527f6d696e743a206d61782e20737570706c7920776f756c6420626520726561636860448201527f65642077697468207468652072657175657374656420616d6f756e742e0000006064820152608401610aaf565b805160a08201516000908152601c602090815260408083203384529091529020546117c39084906131f3565b11156118375760405162461bcd60e51b815260206004820152602860248201527f6d696e743a20657863656564696e67206d61782e20616c6c6f7765642070657260448201527f2077616c6c65742e0000000000000000000000000000000000000000000000006064820152608401610aaf565b60008160600151826020015161184d91906131f3565b9050611859818461321f565b34146118cd5760405162461bcd60e51b815260206004820152602360248201527f6d696e743a20706c656173652073656e642074686520657861637420616d6f7560448201527f6e742e00000000000000000000000000000000000000000000000000000000006064820152608401610aaf565b60008054905b84811015611926576020808501516000848152601990925260409182902090815590850151600282015560a085015160019182015561191290836131f3565b91508061191e81613206565b9150506118d3565b506060830151611936908561321f565b601680546000906119489084906131f3565b9091555050601580548591906000906119629084906131f3565b909155505060a08301516000908152601c60209081526040808320338452909152812080548692906119959084906131f3565b90915550610bd29050338560405180602001604052806000815250612689565b6119bd612117565b60176109e58284836132a6565b6001600160a01b0382166000908152600b6020526040902054829060ff16156119f7576109e583836126ef565b600a5460ff168015611a1757506daaeb6d7670e522a718067333cd4e3b15155b15611ac057604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611a74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a989190613191565b611ac057604051633b79c77360e21b81526001600160a01b0382166004820152602401610aaf565b6109e583836126ef565b6001600160a01b0384166000908152600b6020526040902054849060ff1615611afe57611af98585858561275b565b611bdd565b600a5460ff168015611b1e57506daaeb6d7670e522a718067333cd4e3b15155b15611bd157336001600160a01b03821603611b3f57611af98585858561275b565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611b8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bb29190613191565b611bd157604051633b79c77360e21b8152336004820152602401610aaf565b611bdd8585858561275b565b5050505050565b611bec612117565b80600003611c625760405162461bcd60e51b815260206004820152602e60248201527f736574757045646974696f6e3a20737570706c79206d757374206265206c617260448201527f676572207468616e207a65726f2e0000000000000000000000000000000000006064820152608401610aaf565b601454601554611c7290836131f3565b1115611cc05760405162461bcd60e51b815260206004820181905260248201527f736574757045646974696f6e3a20746f74616c206d617820726561636865642e6044820152606401610aaf565b601354611cce9060016131f3565b8214611d44576040805162461bcd60e51b81526020600482015260248101919091527f736574757045646974696f6e3a20746865206e6578742065646974696f6e206e60448201527f756d626572206d75737420626520616e20696e6372656d656e74206f6620312e6064820152608401610aaf565b6000611d51600184613366565b90506000600e60070154600003611d69576000611d78565b601554611d7890600190613366565b6000838152601a6020526040902054909150811015611dab576000828152601a6020526040812081815560010155611dc0565b6000828152601a602052604090206001018190555b6015546000858152601a60205260409020819055600190611de29085906131f3565b611dec9190613366565b6000858152601a6020526040902060010155600f88905560108690556011879055600e8590556013849055601554611e259084906131f3565b6012555050505050505050565b6060611e3d8261228b565b611eaf5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610aaf565b6000611eb961279f565b90506000815111611f545760188054611ed190613157565b80601f0160208091040260200160405190810160405280929190818152602001828054611efd90613157565b8015611f4a5780601f10611f1f57610100808354040283529160200191611f4a565b820191906000526020600020905b815481529060010190602001808311611f2d57829003601f168201915b5050505050611f7f565b80611f5e846127b1565b604051602001611f6f929190613379565b6040516020818303038152906040525b9392505050565b611f8e612117565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b611fc1612117565b6001600160a01b03811661203d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610aaf565b6120468161262a565b50565b60006301ffc9a760e01b6001600160e01b03198316148061209357507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b806108ad5750506001600160e01b0319167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b60006001600160e01b031982167f2a55205a0000000000000000000000000000000000000000000000000000000014806108ad57506301ffc9a760e01b6001600160e01b03198316146108ad565b600c546001600160a01b031633146114d75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610aaf565b6127106bffffffffffffffffffffffff821611156121f75760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610aaf565b6001600160a01b03821661224d5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610aaf565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600855565b60008054821080156108ad575050600090815260046020526040902054600160e01b161590565b60006122bd826113c1565b9050336001600160a01b0382161461232c576001600160a01b038116600090815260076020908152604080832033845290915290205460ff1661232c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006123a0826125aa565b9050836001600160a01b0316816001600160a01b0316146123ed576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040902080546124198187335b6001600160a01b039081169116811491141790565b612461576001600160a01b038616600090815260076020908152604080832033845290915290205460ff1661246157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166124a1576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80156124ac57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b8416900361253e5760018401600081815260046020526040812054900361253c57600054811461253c5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611455565b6120468160006128ee565b6109e583838360405180602001604052806000815250611aca565b6000816000548110156125f85760008181526004602052604081205490600160e01b821690036125f6575b80600003611f7f5750600019016000818152600460205260409020546125d5565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6126938383612a6e565b6001600160a01b0383163b156109e5576000548281035b6126bd6000868380600101945086612b9f565b6126da576040516368d2bf6b60e11b815260040160405180910390fd5b8181106126aa578160005414611bdd57600080fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b612766848484610ac2565b6001600160a01b0383163b15610bd25761278284848484612b9f565b610bd2576040516368d2bf6b60e11b815260040160405180910390fd5b6060601760000180546108d890613157565b6060816000036127f457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561281e578061280881613206565b91506128179050600a8361324c565b91506127f8565b60008167ffffffffffffffff81111561283957612839612fcc565b6040519080825280601f01601f191660200182016040528015612863576020820181803683370190505b5090505b84156128e657612878600183613366565b9150612885600a866133d0565b6128909060306131f3565b60f81b8183815181106128a5576128a56131c7565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506128df600a8661324c565b9450612867565b949350505050565b60006128f9836125aa565b90508060008061291786600090815260066020526040902080549091565b9150915084156129745761292c818433612404565b612974576001600160a01b038316600090815260076020908152604080832033845290915290205460ff1661297457604051632ce44b5f60e11b815260040160405180910390fd5b801561297f57600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b177c030000000000000000000000000000000000000000000000000000000017600087815260046020526040812091909155600160e11b85169003612a2657600186016000818152600460205260408120549003612a24576000548114612a245760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b6000805490829003612aac576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114612b5b57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101612b23565b5081600003612b96576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612bd49033908990889088906004016133e4565b6020604051808303816000875af1925050508015612c0f575060408051601f3d908101601f19168201909252612c0c91810190613420565b60015b612c6d573d808015612c3d576040519150601f19603f3d011682016040523d82523d6000602084013e612c42565b606091505b508051600003612c65576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6001600160e01b03198116811461204657600080fd5b600060208284031215612cb257600080fd5b8135611f7f81612c8a565b80356001600160a01b0381168114612cd457600080fd5b919050565b60008060408385031215612cec57600080fd5b612cf583612cbd565b915060208301356bffffffffffffffffffffffff81168114612d1657600080fd5b809150509250929050565b60005b83811015612d3c578181015183820152602001612d24565b50506000910152565b60008151808452612d5d816020860160208601612d21565b601f01601f19169290920160200192915050565b602081526000611f7f6020830184612d45565b600060208284031215612d9657600080fd5b5035919050565b60008060408385031215612db057600080fd5b612db983612cbd565b946020939093013593505050565b600080600060608486031215612ddc57600080fd5b612de584612cbd565b9250612df360208501612cbd565b9150604084013590509250925092565b60008060208385031215612e1657600080fd5b823567ffffffffffffffff80821115612e2e57600080fd5b818501915085601f830112612e4257600080fd5b813581811115612e5157600080fd5b8660208260051b8501011115612e6657600080fd5b60209290920196919550909350505050565b60008060408385031215612e8b57600080fd5b50508035926020909101359150565b604081526000612ead6040830185612d45565b8281036020840152612ebf8185612d45565b95945050505050565b60008060208385031215612edb57600080fd5b823567ffffffffffffffff80821115612ef357600080fd5b818501915085601f830112612f0757600080fd5b813581811115612f1657600080fd5b866020828501011115612e6657600080fd5b60008060008060808587031215612f3e57600080fd5b5050823594602084013594506040840135936060013592509050565b600060208284031215612f6c57600080fd5b611f7f82612cbd565b801515811461204657600080fd5b600060208284031215612f9557600080fd5b8135611f7f81612f75565b60008060408385031215612fb357600080fd5b612fbc83612cbd565b91506020830135612d1681612f75565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612ff857600080fd5b61300185612cbd565b935061300f60208601612cbd565b925060408501359150606085013567ffffffffffffffff8082111561303357600080fd5b818701915087601f83011261304757600080fd5b81358181111561305957613059612fcc565b604051601f8201601f19908116603f0116810190838211818310171561308157613081612fcc565b816040528281528a602084870101111561309a57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060008060008060c087890312156130d757600080fd5b505084359660208601359650604086013595606081013595506080810135945060a0013592509050565b6000806040838503121561311457600080fd5b61311d83612cbd565b915061312b60208401612cbd565b90509250929050565b6000806040838503121561314757600080fd5b8235915061312b60208401612cbd565b600181811c9082168061316b57607f821691505b60208210810361318b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156131a357600080fd5b8151611f7f81612f75565b6000602082840312156131c057600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156108ad576108ad6131dd565b600060018201613218576132186131dd565b5060010190565b80820281158282048414176108ad576108ad6131dd565b634e487b7160e01b600052601260045260246000fd5b60008261325b5761325b613236565b500490565b601f8211156109e557600081815260208120601f850160051c810160208610156132875750805b601f850160051c820191505b8181101561145557828155600101613293565b67ffffffffffffffff8311156132be576132be612fcc565b6132d2836132cc8354613157565b83613260565b6000601f84116001811461330657600085156132ee5750838201355b600019600387901b1c1916600186901b178355611bdd565b600083815260209020601f19861690835b828110156133375786850135825560209485019460019092019101613317565b50868210156133545760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b818103818111156108ad576108ad6131dd565b6000835161338b818460208801612d21565b83519083019061339f818360208801612d21565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b6000826133df576133df613236565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526134166080830184612d45565b9695505050505050565b60006020828403121561343257600080fd5b8151611f7f81612c8a56fea2646970667358221220759f3a67eb48c95d25cdff33efc4232337450d1b8f6fb7acf8d4f012e1cae00464736f6c6343000811003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001600000000000000000000000003fe7a1c84c1091e5814d0f6e347a9ab4196ead2700000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000000f4e657720576f726c64204d6f6e6579000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034e574d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f7261726974792e67617264656e2f6d656469612f6e776d2f70726572657665616c2e6a736f6e000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102a05760003560e01c80636e864c921161016e578063a0712d68116100cb578063c87b56dd1161007f578063e985e9c511610064578063e985e9c5146107f2578063e9dc83861461083b578063f2fde38b1461087357600080fd5b8063c87b56dd146107b2578063dbbf3550146107d257600080fd5b8063a22cb465116100b0578063a22cb4651461075f578063b88d4fde1461077f578063c3ab7b6d1461079257600080fd5b8063a0712d681461072c578063a0bcfc7f1461073f57600080fd5b80638da5cb5b11610122578063946147221161010757806394614722146106a057806395d89b41146106f7578063968a9e5d1461070c57600080fd5b80638da5cb5b146106625780638e6aecdd1461068057600080fd5b8063715018a611610153578063715018a6146105a5578063804d5efd146105ba57806382b7a622146105e757600080fd5b80636e864c921461056557806370a082311461058557600080fd5b80632a55205a1161021c5780634cd1ed41116101d05780635d0aa7b4116101b55780635d0aa7b4146104ec5780636352211e1461050c5780636b6e80ca1461052c57600080fd5b80634cd1ed411461048e5780635054e8bf146104d757600080fd5b806341f434341161020157806341f434341461043957806342842e0e1461045b578063466a18de1461046e57600080fd5b80632a55205a146103d75780632ce9413c1461041657600080fd5b8063095ea7b31161027357806318160ddd1161025857806318160ddd1461038157806323b872dd146103a457806326ef4f33146103b757600080fd5b8063095ea7b31461035657806311feb91b1461036957600080fd5b806301ffc9a7146102a557806304634d8d146102da57806306fdde03146102fc578063081812fc1461031e575b600080fd5b3480156102b157600080fd5b506102c56102c0366004612ca0565b610893565b60405190151581526020015b60405180910390f35b3480156102e657600080fd5b506102fa6102f5366004612cd9565b6108b3565b005b34801561030857600080fd5b506103116108c9565b6040516102d19190612d71565b34801561032a57600080fd5b5061033e610339366004612d84565b61095b565b6040516001600160a01b0390911681526020016102d1565b6102fa610364366004612d9d565b6109b8565b34801561037557600080fd5b50600a5460ff166102c5565b34801561038d57600080fd5b50600154600054035b6040519081526020016102d1565b6102fa6103b2366004612dc7565b610ac2565b3480156103c357600080fd5b506102fa6103d2366004612e03565b610bd8565b3480156103e357600080fd5b506103f76103f2366004612e78565b610fdd565b604080516001600160a01b0390931683526020830191909152016102d1565b34801561042257600080fd5b5061042b611098565b6040516102d1929190612e9a565b34801561044557600080fd5b5061033e6daaeb6d7670e522a718067333cd4e81565b6102fa610469366004612dc7565b6111b8565b34801561047a57600080fd5b506102fa610489366004612ec8565b6112c3565b34801561049a57600080fd5b506104c26104a9366004612d84565b601a602052600090815260409020805460019091015482565b604080519283526020830191909152016102d1565b3480156104e357600080fd5b506102fa6112d8565b3480156104f857600080fd5b506102fa610507366004612f28565b6113a8565b34801561051857600080fd5b5061033e610527366004612d84565b6113c1565b34801561053857600080fd5b506102c5610547366004612f5a565b6001600160a01b03166000908152600b602052604090205460ff1690565b34801561057157600080fd5b506102fa610580366004612d9d565b6113cc565b34801561059157600080fd5b506103966105a0366004612f5a565b61145d565b3480156105b157600080fd5b506102fa6114c5565b3480156105c657600080fd5b506103966105d5366004612d84565b601b6020526000908152604090205481565b3480156105f357600080fd5b50600e54600f5460105460115460125460135460145460155460165461061e98979695949392919089565b60408051998a5260208a0198909852968801959095526060870193909352608086019190915260a085015260c084015260e0830152610100820152610120016102d1565b34801561066e57600080fd5b50600c546001600160a01b031661033e565b34801561068c57600080fd5b506102fa61069b366004612f83565b6114d9565b3480156106ac57600080fd5b506106dc6106bb366004612d84565b60196020526000908152604090208054600182015460029092015490919083565b604080519384526020840192909252908201526060016102d1565b34801561070357600080fd5b506103116114f4565b34801561071857600080fd5b506102fa610727366004612d9d565b611503565b6102fa61073a366004612d84565b611644565b34801561074b57600080fd5b506102fa61075a366004612ec8565b6119b5565b34801561076b57600080fd5b506102fa61077a366004612fa0565b6119ca565b6102fa61078d366004612fe2565b611aca565b34801561079e57600080fd5b506102fa6107ad3660046130be565b611be4565b3480156107be57600080fd5b506103116107cd366004612d84565b611e32565b3480156107de57600080fd5b506102fa6107ed366004612fa0565b611f86565b3480156107fe57600080fd5b506102c561080d366004613101565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561084757600080fd5b50610396610856366004613134565b601c60209081526000928352604080842090915290825290205481565b34801561087f57600080fd5b506102fa61088e366004612f5a565b611fb9565b600061089e82612049565b806108ad57506108ad826120c9565b92915050565b6108bb612117565b6108c58282612171565b5050565b6060600280546108d890613157565b80601f016020809104026020016040519081016040528092919081815260200182805461090490613157565b80156109515780601f1061092657610100808354040283529160200191610951565b820191906000526020600020905b81548152906001019060200180831161093457829003601f168201915b5050505050905090565b60006109668261228b565b61099c576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6001600160a01b0382166000908152600b6020526040902054829060ff16156109ea576109e583836122b2565b505050565b600a5460ff168015610a0a57506daaeb6d7670e522a718067333cd4e3b15155b15610ab857604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610a67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8b9190613191565b610ab857604051633b79c77360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b6109e583836122b2565b6001600160a01b0383166000908152600b6020526040902054839060ff1615610af557610af0848484612395565b610bd2565b600a5460ff168015610b1557506daaeb6d7670e522a718067333cd4e3b15155b15610bc757336001600160a01b03821603610b3557610af0848484612395565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610b84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba89190613191565b610bc757604051633b79c77360e21b8152336004820152602401610aaf565b610bd2848484612395565b50505050565b6002600d5403610c2a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610aaf565b6002600d556000807313fd344e39c30187d627e68075d6e9201163df3373f6f31b8afbf8e3f7fc8246bef26093f02838da9882826370a08231336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610ca8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ccc91906131ae565b905060005b86811015610dfe576000888883818110610ced57610ced6131c7565b6020908102929092013560008181526019845260409081902081516060810183528154815260018201549581019590955260020154908401529250339050610d34836113c1565b6001600160a01b031614610d8a5760405162461bcd60e51b815260206004820152601d60248201527f6275726e416e6452657475726e3a206e6f7420746865206f776e65722e0000006044820152606401610aaf565b83831015610da4576040810151610da190886131f3565b96505b8051610db090896131f3565b97506001601b6000836020015181526020019081526020016000206000828254610dda91906131f3565b90915550610de9905082612584565b50508080610df690613206565b915050610cd1565b508315610f10576040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015284906001600160a01b038416906370a0823190602401602060405180830381865afa158015610e64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8891906131ae565b10610f10576001600160a01b03821663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018790526044016020604051808303816000875af1158015610eea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0e9190613191565b505b604051600090339087908381818185875af1925050503d8060008114610f52576040519150601f19603f3d011682016040523d82523d6000602084013e610f57565b606091505b5050905080610fce5760405162461bcd60e51b815260206004820152602d60248201527f546865726520686173206265656e20612070726f626c656d2072657475726e6960448201527f6e67207468652066756e64732e000000000000000000000000000000000000006064820152608401610aaf565b50506001600d55505050505050565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff1692820192909252829161105c5750604080518082019091526008546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090611080906bffffffffffffffffffffffff168761321f565b61108a919061324c565b915196919550909350505050565b6017805481906110a790613157565b80601f01602080910402602001604051908101604052809291908181526020018280546110d390613157565b80156111205780601f106110f557610100808354040283529160200191611120565b820191906000526020600020905b81548152906001019060200180831161110357829003601f168201915b50505050509080600101805461113590613157565b80601f016020809104026020016040519081016040528092919081815260200182805461116190613157565b80156111ae5780601f10611183576101008083540402835291602001916111ae565b820191906000526020600020905b81548152906001019060200180831161119157829003601f168201915b5050505050905082565b6001600160a01b0383166000908152600b6020526040902054839060ff16156111e657610af084848461258f565b600a5460ff16801561120657506daaeb6d7670e522a718067333cd4e3b15155b156112b857336001600160a01b0382160361122657610af084848461258f565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611275573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112999190613191565b6112b857604051633b79c77360e21b8152336004820152602401610aaf565b610bd284848461258f565b6112cb612117565b60186109e58284836132a6565b6112e0612117565b60168054600091829055604051909190339083908381818185875af1925050503d806000811461132c576040519150601f19603f3d011682016040523d82523d6000602084013e611331565b606091505b50509050806108c55760405162461bcd60e51b815260206004820152603160248201527f546865726520686173206265656e20612070726f626c656d20636f6c6c65637460448201527f696e67207468652064657620666565732e0000000000000000000000000000006064820152608401610aaf565b6113b0612117565b600f93909355601055601155600e55565b60006108ad826125aa565b6113d4612117565b604080517f42842e0e0000000000000000000000000000000000000000000000000000000081523060048201523360248201526044810183905290516001600160a01b038416916342842e0e91606480830192600092919082900301818387803b15801561144157600080fd5b505af1158015611455573d6000803e3d6000fd5b505050505050565b60006001600160a01b03821661149f576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6114cd612117565b6114d7600061262a565b565b6114e1612117565b600a805460ff1916911515919091179055565b6060600380546108d890613157565b61150b612117565b6001600160a01b03821673f6f31b8afbf8e3f7fc8246bef26093f02838da98036115c35760405162461bcd60e51b815260206004820152604960248201527f706572666f726d45726332305265636f7665723a20756e69766572736520746f60448201527f6b656e73206f6e6c792072657475726e61626c65207468726f756768204e574d60648201527f206275726e696e672e0000000000000000000000000000000000000000000000608482015260a401610aaf565b6001600160a01b03821663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015611620573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e59190613191565b6040805161012081018252600e548152600f546020820152601054918101919091526011546060820152601254608082015260135460a082015260145460c082015260155460e0820152601654610100820152600082900361170e5760405162461bcd60e51b815260206004820152602660248201527f6d696e743a20616d6f756e74206d757374206265206c6172676572207468616e60448201527f207a65726f2e00000000000000000000000000000000000000000000000000006064820152608401610aaf565b8060800151828260e0015161172391906131f3565b11156117975760405162461bcd60e51b815260206004820152603d60248201527f6d696e743a206d61782e20737570706c7920776f756c6420626520726561636860448201527f65642077697468207468652072657175657374656420616d6f756e742e0000006064820152608401610aaf565b805160a08201516000908152601c602090815260408083203384529091529020546117c39084906131f3565b11156118375760405162461bcd60e51b815260206004820152602860248201527f6d696e743a20657863656564696e67206d61782e20616c6c6f7765642070657260448201527f2077616c6c65742e0000000000000000000000000000000000000000000000006064820152608401610aaf565b60008160600151826020015161184d91906131f3565b9050611859818461321f565b34146118cd5760405162461bcd60e51b815260206004820152602360248201527f6d696e743a20706c656173652073656e642074686520657861637420616d6f7560448201527f6e742e00000000000000000000000000000000000000000000000000000000006064820152608401610aaf565b60008054905b84811015611926576020808501516000848152601990925260409182902090815590850151600282015560a085015160019182015561191290836131f3565b91508061191e81613206565b9150506118d3565b506060830151611936908561321f565b601680546000906119489084906131f3565b9091555050601580548591906000906119629084906131f3565b909155505060a08301516000908152601c60209081526040808320338452909152812080548692906119959084906131f3565b90915550610bd29050338560405180602001604052806000815250612689565b6119bd612117565b60176109e58284836132a6565b6001600160a01b0382166000908152600b6020526040902054829060ff16156119f7576109e583836126ef565b600a5460ff168015611a1757506daaeb6d7670e522a718067333cd4e3b15155b15611ac057604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611a74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a989190613191565b611ac057604051633b79c77360e21b81526001600160a01b0382166004820152602401610aaf565b6109e583836126ef565b6001600160a01b0384166000908152600b6020526040902054849060ff1615611afe57611af98585858561275b565b611bdd565b600a5460ff168015611b1e57506daaeb6d7670e522a718067333cd4e3b15155b15611bd157336001600160a01b03821603611b3f57611af98585858561275b565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611b8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bb29190613191565b611bd157604051633b79c77360e21b8152336004820152602401610aaf565b611bdd8585858561275b565b5050505050565b611bec612117565b80600003611c625760405162461bcd60e51b815260206004820152602e60248201527f736574757045646974696f6e3a20737570706c79206d757374206265206c617260448201527f676572207468616e207a65726f2e0000000000000000000000000000000000006064820152608401610aaf565b601454601554611c7290836131f3565b1115611cc05760405162461bcd60e51b815260206004820181905260248201527f736574757045646974696f6e3a20746f74616c206d617820726561636865642e6044820152606401610aaf565b601354611cce9060016131f3565b8214611d44576040805162461bcd60e51b81526020600482015260248101919091527f736574757045646974696f6e3a20746865206e6578742065646974696f6e206e60448201527f756d626572206d75737420626520616e20696e6372656d656e74206f6620312e6064820152608401610aaf565b6000611d51600184613366565b90506000600e60070154600003611d69576000611d78565b601554611d7890600190613366565b6000838152601a6020526040902054909150811015611dab576000828152601a6020526040812081815560010155611dc0565b6000828152601a602052604090206001018190555b6015546000858152601a60205260409020819055600190611de29085906131f3565b611dec9190613366565b6000858152601a6020526040902060010155600f88905560108690556011879055600e8590556013849055601554611e259084906131f3565b6012555050505050505050565b6060611e3d8261228b565b611eaf5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610aaf565b6000611eb961279f565b90506000815111611f545760188054611ed190613157565b80601f0160208091040260200160405190810160405280929190818152602001828054611efd90613157565b8015611f4a5780601f10611f1f57610100808354040283529160200191611f4a565b820191906000526020600020905b815481529060010190602001808311611f2d57829003601f168201915b5050505050611f7f565b80611f5e846127b1565b604051602001611f6f929190613379565b6040516020818303038152906040525b9392505050565b611f8e612117565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b611fc1612117565b6001600160a01b03811661203d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610aaf565b6120468161262a565b50565b60006301ffc9a760e01b6001600160e01b03198316148061209357507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b806108ad5750506001600160e01b0319167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b60006001600160e01b031982167f2a55205a0000000000000000000000000000000000000000000000000000000014806108ad57506301ffc9a760e01b6001600160e01b03198316146108ad565b600c546001600160a01b031633146114d75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610aaf565b6127106bffffffffffffffffffffffff821611156121f75760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610aaf565b6001600160a01b03821661224d5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610aaf565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600855565b60008054821080156108ad575050600090815260046020526040902054600160e01b161590565b60006122bd826113c1565b9050336001600160a01b0382161461232c576001600160a01b038116600090815260076020908152604080832033845290915290205460ff1661232c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006123a0826125aa565b9050836001600160a01b0316816001600160a01b0316146123ed576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040902080546124198187335b6001600160a01b039081169116811491141790565b612461576001600160a01b038616600090815260076020908152604080832033845290915290205460ff1661246157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166124a1576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80156124ac57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b8416900361253e5760018401600081815260046020526040812054900361253c57600054811461253c5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611455565b6120468160006128ee565b6109e583838360405180602001604052806000815250611aca565b6000816000548110156125f85760008181526004602052604081205490600160e01b821690036125f6575b80600003611f7f5750600019016000818152600460205260409020546125d5565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6126938383612a6e565b6001600160a01b0383163b156109e5576000548281035b6126bd6000868380600101945086612b9f565b6126da576040516368d2bf6b60e11b815260040160405180910390fd5b8181106126aa578160005414611bdd57600080fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b612766848484610ac2565b6001600160a01b0383163b15610bd25761278284848484612b9f565b610bd2576040516368d2bf6b60e11b815260040160405180910390fd5b6060601760000180546108d890613157565b6060816000036127f457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561281e578061280881613206565b91506128179050600a8361324c565b91506127f8565b60008167ffffffffffffffff81111561283957612839612fcc565b6040519080825280601f01601f191660200182016040528015612863576020820181803683370190505b5090505b84156128e657612878600183613366565b9150612885600a866133d0565b6128909060306131f3565b60f81b8183815181106128a5576128a56131c7565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506128df600a8661324c565b9450612867565b949350505050565b60006128f9836125aa565b90508060008061291786600090815260066020526040902080549091565b9150915084156129745761292c818433612404565b612974576001600160a01b038316600090815260076020908152604080832033845290915290205460ff1661297457604051632ce44b5f60e11b815260040160405180910390fd5b801561297f57600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b177c030000000000000000000000000000000000000000000000000000000017600087815260046020526040812091909155600160e11b85169003612a2657600186016000818152600460205260408120549003612a24576000548114612a245760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b6000805490829003612aac576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114612b5b57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101612b23565b5081600003612b96576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612bd49033908990889088906004016133e4565b6020604051808303816000875af1925050508015612c0f575060408051601f3d908101601f19168201909252612c0c91810190613420565b60015b612c6d573d808015612c3d576040519150601f19603f3d011682016040523d82523d6000602084013e612c42565b606091505b508051600003612c65576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6001600160e01b03198116811461204657600080fd5b600060208284031215612cb257600080fd5b8135611f7f81612c8a565b80356001600160a01b0381168114612cd457600080fd5b919050565b60008060408385031215612cec57600080fd5b612cf583612cbd565b915060208301356bffffffffffffffffffffffff81168114612d1657600080fd5b809150509250929050565b60005b83811015612d3c578181015183820152602001612d24565b50506000910152565b60008151808452612d5d816020860160208601612d21565b601f01601f19169290920160200192915050565b602081526000611f7f6020830184612d45565b600060208284031215612d9657600080fd5b5035919050565b60008060408385031215612db057600080fd5b612db983612cbd565b946020939093013593505050565b600080600060608486031215612ddc57600080fd5b612de584612cbd565b9250612df360208501612cbd565b9150604084013590509250925092565b60008060208385031215612e1657600080fd5b823567ffffffffffffffff80821115612e2e57600080fd5b818501915085601f830112612e4257600080fd5b813581811115612e5157600080fd5b8660208260051b8501011115612e6657600080fd5b60209290920196919550909350505050565b60008060408385031215612e8b57600080fd5b50508035926020909101359150565b604081526000612ead6040830185612d45565b8281036020840152612ebf8185612d45565b95945050505050565b60008060208385031215612edb57600080fd5b823567ffffffffffffffff80821115612ef357600080fd5b818501915085601f830112612f0757600080fd5b813581811115612f1657600080fd5b866020828501011115612e6657600080fd5b60008060008060808587031215612f3e57600080fd5b5050823594602084013594506040840135936060013592509050565b600060208284031215612f6c57600080fd5b611f7f82612cbd565b801515811461204657600080fd5b600060208284031215612f9557600080fd5b8135611f7f81612f75565b60008060408385031215612fb357600080fd5b612fbc83612cbd565b91506020830135612d1681612f75565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612ff857600080fd5b61300185612cbd565b935061300f60208601612cbd565b925060408501359150606085013567ffffffffffffffff8082111561303357600080fd5b818701915087601f83011261304757600080fd5b81358181111561305957613059612fcc565b604051601f8201601f19908116603f0116810190838211818310171561308157613081612fcc565b816040528281528a602084870101111561309a57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060008060008060c087890312156130d757600080fd5b505084359660208601359650604086013595606081013595506080810135945060a0013592509050565b6000806040838503121561311457600080fd5b61311d83612cbd565b915061312b60208401612cbd565b90509250929050565b6000806040838503121561314757600080fd5b8235915061312b60208401612cbd565b600181811c9082168061316b57607f821691505b60208210810361318b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156131a357600080fd5b8151611f7f81612f75565b6000602082840312156131c057600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156108ad576108ad6131dd565b600060018201613218576132186131dd565b5060010190565b80820281158282048414176108ad576108ad6131dd565b634e487b7160e01b600052601260045260246000fd5b60008261325b5761325b613236565b500490565b601f8211156109e557600081815260208120601f850160051c810160208610156132875750805b601f850160051c820191505b8181101561145557828155600101613293565b67ffffffffffffffff8311156132be576132be612fcc565b6132d2836132cc8354613157565b83613260565b6000601f84116001811461330657600085156132ee5750838201355b600019600387901b1c1916600186901b178355611bdd565b600083815260209020601f19861690835b828110156133375786850135825560209485019460019092019101613317565b50868210156133545760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b818103818111156108ad576108ad6131dd565b6000835161338b818460208801612d21565b83519083019061339f818360208801612d21565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b6000826133df576133df613236565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526134166080830184612d45565b9695505050505050565b60006020828403121561343257600080fd5b8151611f7f81612c8a56fea2646970667358221220759f3a67eb48c95d25cdff33efc4232337450d1b8f6fb7acf8d4f012e1cae00464736f6c63430008110033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001600000000000000000000000003fe7a1c84c1091e5814d0f6e347a9ab4196ead2700000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000000f4e657720576f726c64204d6f6e6579000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034e574d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f7261726974792e67617264656e2f6d656469612f6e776d2f70726572657665616c2e6a736f6e000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): New World Money
Arg [1] : symbol (string): NWM
Arg [2] : baseTokenURI (string):
Arg [3] : defaultURI (string): https://rarity.garden/media/nwm/prereveal.json
Arg [4] : royaltyAddress (address): 0x3Fe7A1c84c1091e5814D0f6E347A9ab4196eaD27
Arg [5] : royaltyAmount (uint96): 500

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 0000000000000000000000003fe7a1c84c1091e5814d0f6e347a9ab4196ead27
Arg [5] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [7] : 4e657720576f726c64204d6f6e65790000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [9] : 4e574d0000000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [11] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [12] : 68747470733a2f2f7261726974792e67617264656e2f6d656469612f6e776d2f
Arg [13] : 70726572657665616c2e6a736f6e000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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