POL Price: $0.701592 (-1.31%)
Gas: 30 GWei
 

Overview

Max Total Supply

13,419 BEAT

Holders

719

Total Transfers

-

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xc682c31c...138788a8A
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
PixelynxNft

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 260 runs

Other Settings:
default evmVersion
File 1 of 22 : PixelynxNft.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.4 <0.9.0;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/IERC165.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import {SharedStructs} from '../shared-structs/SharedStructs.sol';
import {IPixelynxNftDeployer} from 'interfaces/IPixelynxNftDeployer.sol';
import {IPixelynxOwnership} from 'interfaces/IPixelynxOwnership.sol';
import {IERC2981} from 'interfaces/IERC2981.sol';
import {IERC4906} from 'interfaces/IERC4906.sol';
import 'operator-filter-registry/DefaultOperatorFilterer.sol';
import {Ownable} from '@openzeppelin/contracts/access/Ownable.sol';

contract PixelynxNft is
    DefaultOperatorFilterer,
    ReentrancyGuard,
    Ownable,
    IERC165,
    IERC721,
    IERC721Metadata,
    IERC2981,
    IERC4906
{
    using Address for address;
    using Strings for uint256;

    // ERRORS
    error AddressZero();
    error InvalidTokenId();
    error CanNotSetMintMaxSupply();
    error ApprovalToCurrentOwner();
    error ApproveCallerIsNotTokenOrApprovedForAll();
    error CallerIsNotTokenOwnerOrApproved();
    error TransferToNonErc721Receiver();
    error TimestampHigherThanMintTimestamp();
    error InvalidAddressOrNoTokensLeft();
    error MintNotStarted();
    error MintIsPaused();
    error MintToZeroAddress();
    error MintAtLeastOneToken();
    error MintMoreTokensThanSupply();
    error MintNotEnoughFunds();
    error MintNotEnoughAllowance();
    error MintTokenGatedRequirementFailed();
    error AirdropEmptyReceipientListOrMintingMoreThenSupply();
    error InvalidNumberOfBeneficiaries();
    error BeneficiaryPercentageHigherThanMax();
    error BeneficiaryPercentageMustBe100();
    error RoyaltiesRecipientZeroAddress();
    error RoyaltiesPercentageWrong();
    error TokenDoesNotExist();
    error TransferFromIncorrectOwner();
    error ApproveToCaller();
    error InvalidInternalTokenGatedContract();
    error NotAllowedToGift();
    // END ERRORS

    uint256 public constant MAX_BPS = 10_000;

    // the address of the PixelynNftDeployer contract
    address private _pixelynxNftDeployer;

    // Token name
    string private _name;
    // Token symbol
    string private _symbol;
    // price to mint
    uint256 private _price;
    // base URI
    string private _baseURI;
    // when the mint starts
    uint256 private _mintStartTimestamp;
    // the max supply of tokens
    uint256 _maxSupply;
    bool _random;
    address[] _internalTokenGatedContracts;
    // beneficiaries
    SharedStructs.Beneficiary[] private _beneficiaries;

    // the royality recipient
    address private _royaltyRecipient;
    // the percent of the royalty
    uint256 private _royaltyPercentage;
    // the token id to royalty recipient mapping if a custom royalty recipient is set
    mapping(uint256 => address) private _tokenRoyaltyRecipients;
    // the token id to royalty percentage
    mapping(uint256 => uint256) private _tokenRoyaltyPercentages;

    // kill switch
    bool private _killSwitch;

    // not minted tokens
    mapping(uint256 => uint256) private _unusedTokens;
    // mapping to see if tokens have been minted
    mapping(uint256 => bool) private _tokensMinted;
    // the number of unused tokens left
    uint256 private _unusedTokensLeft;
    // the number of minted tokens
    uint256 private _mintedTokensTotal;

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

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;
    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    // allowlist
    mapping(address => uint256) private _allowlist;
    uint256 private _allowlistStartTimestamp;

    // ownership contract
    address private _pixelynxOwnershipContract;

    /**
     * @dev Constructor function for the PixelynxNft contract.
     * Initializes various contract state variables such as name, symbol, price, maxSupply, beneficiaries, royalties, etc.
     * @param __pixelynxNftDeployer The address of the contract deployer.
     * @param collectionInitialize A struct containing various collection initialization parameters such as name, symbol, price, maxSupply, beneficiaries, royalties, etc.
     */
    constructor(
        address __pixelynxNftDeployer,
        address __pixelynxOwnershipContract,
        SharedStructs.NewCollectionInitialize memory collectionInitialize
    ) {
        _pixelynxNftDeployer = __pixelynxNftDeployer;
        _pixelynxOwnershipContract = __pixelynxOwnershipContract;

        _name = collectionInitialize.name;
        _symbol = collectionInitialize.symbol;
        _mintStartTimestamp = collectionInitialize.mintStartTimestamp;
        _allowlistStartTimestamp = collectionInitialize.allowlistStartTimestamp;
        _baseURI = collectionInitialize.baseURI;
        _price = collectionInitialize.price;
        _random = collectionInitialize.mintRandom;
        _internalTokenGatedContracts = collectionInitialize.internalTokenGatedContracts;
        if (collectionInitialize.maxSupply > 0) {
            _maxSupply = collectionInitialize.maxSupply;
            _unusedTokensLeft = collectionInitialize.maxSupply;
        } else {
            // unlimited supply
            _maxSupply = 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;
            _unusedTokensLeft = _maxSupply;
        }

        _setBeneficiaries(collectionInitialize.beneficiaries);

        // royalties can be not set
        if (collectionInitialize.royalties.percentage > 0) {
            _setGlobalRoyalties(collectionInitialize.royalties.to, collectionInitialize.royalties.percentage);
        }

        _transferOwnership(IPixelynxNftDeployer(_pixelynxNftDeployer).getSuperAdmin());
    }

    /**
     * @dev Throws if called by a account which does not have permission to perform this action
     */
    modifier isPixelynSuperAdmin() {
        require(IPixelynxNftDeployer(_pixelynxNftDeployer).getSuperAdmin() == _msgSender(), 'SA_O');
        _;
    }

    /**
     * @dev Throws if called by a account which does not have permission to perform this action
     */
    modifier isPixelynAdmin() {
        require(IPixelynxNftDeployer(_pixelynxNftDeployer).getAdminState(_msgSender()), 'A_O');
        _;
    }

    /**
     * @dev Throws if called by a account which does not have permission to perform this action
     */
    modifier isAirdropper() {
        require(IPixelynxNftDeployer(_pixelynxNftDeployer).getAirdropperState(_msgSender()), 'AIR_O');
        _;
    }

    /**
     * @dev Sets the kill switch to stop minting
     */
    function setKillSwitch(bool state) external isPixelynAdmin {
        _killSwitch = state;
    }

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

    /**
     * @dev update metadata for a token id and emit an event
     * this allows marketplaces to reindex it
     * @param _tokenId The token id to update metadata for
     */
    function metadataUpdate(uint256 _tokenId) external isAirdropper {
        emit MetadataUpdate(_tokenId);
    }

    /**
     * @dev update metadata for a range of token ids and emit an event
     * this allows marketplaces to reindex it
     * @param _fromTokenId The token id to start updating metadata for
     * @param _toTokenId The token id to stop updating metadata for
     */
    function batchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId) external isAirdropper {
        emit BatchMetadataUpdate(_fromTokenId, _toTokenId);
    }

    function _refreshAllMetadata() private {
        emit BatchMetadataUpdate(0, maxMintSupply());
    }

    /**
     * @dev update metadata for all token ids and emit an event
     * this allows marketplaces to reindex it
     * we use the full range of max mint supply as it random mints on-chain
     */
    function refreshAllMetadata() external isAirdropper {
        _refreshAllMetadata();
    }

    /**
     * @dev See {IERC721:-balanceOf}.
     */
    function balanceOf(address owner) public view returns (uint256) {
        if (owner == address(0)) revert AddressZero();
        return _balances[owner];
    }

    /**
     * @dev See {IERC721:-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert InvalidTokenId();
        address owner = _ownerOf(tokenId);
        return owner;
    }

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

    /**
     * @dev Set the name of the collection
     */
    function setName(string memory newName) external isPixelynAdmin {
        _name = newName;
    }

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

    /**
     * @dev Set the symbol of the collection
     */
    function setSymbol(string memory newSymbol) external isPixelynAdmin {
        _symbol = newSymbol;
    }

    /**
     * @dev Get the pixelynx nft deployer contract address
     */
    function pixelynxNftDeployer() public view returns (address) {
        return _pixelynxNftDeployer;
    }

    /**
     * @dev Set the pixelync nft deployer contract address
     */
    function setPixelynNftDeployer(address newPixelynNftDeployer) external isPixelynSuperAdmin {
        _pixelynxNftDeployer = newPixelynNftDeployer;
    }

    /**
     * @dev The mint price for the collection
     */
    function mintPrice() external view returns (uint256) {
        return _price;
    }

    /**
     * @dev Set the mint price for the collection
     */
    function setMintPrice(uint256 newMintPrice) external isPixelynAdmin {
        _price = newMintPrice;
    }

    /**
     * @dev Set the mint max supply for the collection
     * please note you can only update this if the mint has not started and
     * nothing has been minted in the collection. This is due to the fact that
     * the token ids are generated based on the max supply and are random.
     * so it is not safe to do so.
     */
    function setMintMaxSupply(uint256 newMintMaxSupply) external isPixelynAdmin {
        if (
            block.timestamp >= _mintStartTimestamp || newMintMaxSupply <= 0 || totalSupply() != 0
                || newMintMaxSupply < totalSupply()
        ) revert CanNotSetMintMaxSupply();

        _maxSupply = newMintMaxSupply;
        _unusedTokensLeft = newMintMaxSupply;
    }

    /**
     * @dev The max supply of the collection
     */
    function maxMintSupply() public view returns (uint256) {
        return _maxSupply;
    }

    /**
     * @dev The amount of tokens remaining to be minted
     */
    function tokensRemaining() public view returns (uint256) {
        return _unusedTokensLeft;
    }

    /**
     * @dev The mint start timestamp for the collection
     */
    function mintStartTimestamp() public view returns (uint256) {
        return _mintStartTimestamp;
    }

    /**
     * @dev Set the mint start timestamp for the collection
     */
    function setMintStartTimestamp(uint256 newMintStartTimestamp) external isPixelynAdmin {
        _mintStartTimestamp = newMintStartTimestamp;
    }

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

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

    /**
     * @dev Get the base URI for the collection
     */
    function getBaseURI() external view returns (string memory) {
        return _baseURI;
    }

    /**
     * @dev Set the base URI for the collection
     */
    function setBaseURI(string memory newBaseURI) external isPixelynAdmin {
        _baseURI = newBaseURI;
        _refreshAllMetadata();
    }

    /**
     * @dev Get the total supply of the collection
     */
    function totalSupply() public view returns (uint256) {
        return _mintedTokensTotal;
    }

    /**
     * @dev See {IERC721:-approve}.
     */
    function approve(address operator, uint256 tokenId) public virtual override onlyAllowedOperatorApproval(operator) {
        address owner = PixelynxNft.ownerOf(tokenId);
        if (operator == owner) revert ApprovalToCurrentOwner();

        if (!(_msgSender() == owner || isApprovedForAll(owner, _msgSender()))) {
            revert ApproveCallerIsNotTokenOrApprovedForAll();
        }

        _approve(operator, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

    /**
     * @dev See {IERC721:-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        // if OpenSea's ERC721 Proxy Address is detected, auto-return true
        if (operator == address(0x58807baD0B376efc12F5AD86aAc70E78ed67deaE)) return true;

        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721:-transferFrom}.
     */
    function transferFrom(address from, address to, uint256 tokenId)
        public
        virtual
        override
        onlyAllowedOperator(from)
    {
        if (!_isApprovedOrOwner(_msgSender(), tokenId)) revert CallerIsNotTokenOwnerOrApproved();

        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721:-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
        public
        virtual
        override
        onlyAllowedOperator(from)
    {
        if (!_isApprovedOrOwner(_msgSender(), tokenId)) revert CallerIsNotTokenOwnerOrApproved();

        _safeTransfer(from, to, tokenId, data);
    }

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

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

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

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

    /**
     * @dev The allowlist start timestamp for the collection
     */
    function allowlistStartTimestamp() public view returns (uint256) {
        return _allowlistStartTimestamp;
    }

    /**
     * @dev Set the allowlist start timestamp
     */
    function setAllowlistStartTimestamp(uint256 _timestamp) external isPixelynAdmin {
        if (_timestamp > _mintStartTimestamp) revert TimestampHigherThanMintTimestamp();

        _allowlistStartTimestamp = _timestamp;
    }

    /**
     * @dev Add addresses to the allowlist
     */
    function addToAllowlist(SharedStructs.AllowList[] memory allowList) external isAirdropper {
        for (uint256 i = 0; i < allowList.length; i++) {
            SharedStructs.AllowList memory item = allowList[i];
            _allowlist[item.account] = item.allowance;
        }
    }

    /**
     * @dev Remove addresses from the allowlist
     */
    function removeFromAllowlist(address[] memory _addresses) external isAirdropper {
        for (uint256 i = 0; i < _addresses.length; i++) {
            _allowlist[_addresses[i]] = 0;
        }
    }

    /**
     * @dev Set internal token gated contracts
     */
    function setInternalTokenGatedContracts(address[] memory _addresses) external isPixelynAdmin {
        for (uint256 i = 0; i < _addresses.length; i++) {
            if (!IPixelynxOwnership(_pixelynxOwnershipContract).isDeployedContract(_addresses[i])) {
                revert InvalidInternalTokenGatedContract();
            }
        }

        _internalTokenGatedContracts = _addresses;
    }

    /**
     * @dev Get internal token gated contracts
     */
    function getInternalTokenGatedContracts() external view returns (address[] memory) {
        return _internalTokenGatedContracts;
    }

    /**
     * @dev Get if the mint is random
     */
    function isRandomMint() external view returns (bool) {
        return _random;
    }

    /**
     * @dev This internal function returns a random and unused token ID for minting.
     * It uses keccak256 hash function with some arbitrary parameters to generate a random index.
     * The generated index is then used to retrieve the corresponding token ID from the list of unused tokens.
     * @param to The address of the recipient of the minted token.
     * @param unusedTokensLeft The number of unused tokens left for minting.
     * @return The random and unused token ID for minting.
     */
    function _getRandomMintingTokenId(address to, uint256 unusedTokensLeft) internal returns (uint256) {
        return _getUnusedTokenAtIndex(
            uint256(
                keccak256(
                    // good enough randomness for this use case!
                    abi.encode(
                        to,
                        tx.gasprice,
                        address(this),
                        unusedTokensLeft,
                        blockhash(block.number - 1),
                        block.timestamp,
                        block.number,
                        block.coinbase
                    )
                )
            ) % unusedTokensLeft,
            unusedTokensLeft
        );
    }

    /**
     * @dev This internal function retrieves the token ID at the specified index from the list of unused tokens.
     * If the value at the specified index is zero, the function returns the index itself as the token ID.
     * The function also updates the list of unused tokens by swapping the value at the specified index with the last unused token.
     * @param indexToUse The index of the token ID to retrieve from the list of unused tokens.
     * @param unusedTokensLeft The number of unused tokens left for minting.
     * @return The token ID at the specified index or the index itself if the value at the specified index is zero.
     */
    function _getUnusedTokenAtIndex(uint256 indexToUse, uint256 unusedTokensLeft) internal returns (uint256) {
        // Retrieve the value at the index in the _unusedTokens mapping
        uint256 valAtIndex = _unusedTokens[indexToUse];
        // If the value at the index is zero, use the index itself as the token ID, otherwise use the value at the index
        uint256 result = valAtIndex == 0 ? indexToUse : valAtIndex;

        // Calculate the index of the last unused token
        uint256 lastIndex = unusedTokensLeft - 1;
        // Retrieve the value of the last unused token in the _unusedTokens mapping
        uint256 lastValInArray = _unusedTokens[lastIndex];

        // If the index to use is not the last index, update the value at the index with the last unused token value or the lastIndex itself if the last unused token value is zero
        if (indexToUse != lastIndex) _unusedTokens[indexToUse] = lastValInArray == 0 ? lastIndex : lastValInArray;

        // If the last unused token value is not zero, delete the value at the lastIndex in the _unusedTokens mapping
        if (lastValInArray != 0) delete _unusedTokens[lastIndex];

        return result;
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` must not exist.
     */
    function _mint(address to, uint256 tokenId) private {
        ++_mintedTokensTotal;

        _owners[tokenId] = to;
        _tokensMinted[tokenId] = true;

        // Update the ownership state in the PixelynxOwnership contract
        IPixelynxOwnership(_pixelynxOwnershipContract).ownershipTransferStateUpdate(address(0), to);

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

    /**
     * @dev Split the payment between the beneficiaries
     */
    function _splitPayments() private {
        SharedStructs.Beneficiary[] memory beneficiaries = _beneficiaries;
        for (uint256 i = 0; i < beneficiaries.length; i++) {
            SharedStructs.Beneficiary memory beneficiary = beneficiaries[i];
            uint256 amount = (msg.value * beneficiary.percentage) / 10_000;
            payable(beneficiary.to).transfer(amount);
        }
    }

    /**
     * @dev Public mint started
     */
    function publicMintStarted() public view returns (bool) {
        return block.timestamp >= _mintStartTimestamp;
    }

    /**
     * @dev Allowlist mint started
     */
    function allowlistMintStarted() public view returns (bool) {
        return _allowlistStartTimestamp > 0 && block.timestamp >= _allowlistStartTimestamp;
    }

    /**
     * @dev In allowlist period
     */
    function inAllowlistPeriod() public view returns (bool) {
        return _allowlistStartTimestamp > 0 && block.timestamp >= _allowlistStartTimestamp
            && block.timestamp < _mintStartTimestamp;
    }

    /**
     * @dev In mintable period
     */
    function inMintablePeriod() public view returns (bool) {
        return allowlistMintStarted() || publicMintStarted();
    }

    /**
     * @dev Used for paper wallet integration
     */
    function checkClaimEligibility(address to, uint256 numToMint) external view returns (string memory) {
        if (
            !inMintablePeriod() || _killSwitch || to == address(0) || numToMint <= 0 || _unusedTokensLeft < numToMint
                || (inAllowlistPeriod() && _allowlist[to] < numToMint)
                || !IPixelynxOwnership(_pixelynxOwnershipContract).userOwnershipCheck(_internalTokenGatedContracts, to)
        ) return 'Can not mint';

        return '';
    }

    /**
     * @dev mints an NFT to an address - used for marketing assets and giveaways.
     * This still uses mint random to keep it fair.
     *
     * Requirements:
     *
     * - `to` must exist.
     * - `numToMint` must be greater than 0.
     *
     */
    function mintFor(address to, uint256 numToMint) external nonReentrant {
        if (!IPixelynxNftDeployer(_pixelynxNftDeployer).isAllowedToGift(_msgSender())) revert NotAllowedToGift();
        if (numToMint <= 0) revert MintAtLeastOneToken();
        if (_unusedTokensLeft < numToMint) revert MintMoreTokensThanSupply();

        // Mint the tokens
        if (_random) _mintRandom(to, numToMint);
        else _mintSequential(to, numToMint);
    }

    /**
     * @dev mint token to `to`.
     *
     * Requirements:
     *
     * - `to` must exist.
     * - `numToMint` must be greater than 0.
     *
     */
    function mint(address to, uint256 numToMint) external payable nonReentrant {
        if (!inMintablePeriod()) revert MintNotStarted();
        if (_killSwitch) revert MintIsPaused();
        if (to == address(0)) revert MintToZeroAddress();
        if (numToMint <= 0) revert MintAtLeastOneToken();
        if (_unusedTokensLeft < numToMint) revert MintMoreTokensThanSupply();
        if (msg.value != _price * numToMint) revert MintNotEnoughFunds();

        if (inAllowlistPeriod()) {
            if (_allowlist[to] < numToMint) revert MintNotEnoughAllowance();

            _allowlist[to] -= numToMint;
        }

        // check token gated!
        if (_internalTokenGatedContracts.length > 0) {
            if (!IPixelynxOwnership(_pixelynxOwnershipContract).userOwnershipCheck(_internalTokenGatedContracts, to)) {
                revert MintTokenGatedRequirementFailed();
            }
        }

        // free mint not need to split payments!
        if (msg.value > 0) {
            // Split the payments
            _splitPayments();
        }

        // Mint the tokens
        if (_random) _mintRandom(to, numToMint);
        else _mintSequential(to, numToMint);
    }

    /**
     * @dev Mint `numToMint` random tokens and assign them to `to`.
     * @param to The address to assign the minted tokens to.
     * @param numToMint The number of tokens to mint.
     */
    function _mintRandom(address to, uint256 numToMint) private {
        uint256 unusedTokensLeft = _unusedTokensLeft;
        for (uint256 i; i < numToMint; ++i) {
            uint256 tokenId = _getRandomMintingTokenId(to, unusedTokensLeft);

            _mint(to, tokenId);

            --unusedTokensLeft;
        }

        _unusedTokensLeft = unusedTokensLeft;
        _balances[to] += numToMint;
    }

    /**
     * @dev Mint `numToMint` sequential tokens and assign them to `to`.
     * @param to The address to assign the minted tokens to.
     * @param numToMint The number of tokens to mint.
     */
    function _mintSequential(address to, uint256 numToMint) private {
        uint256 _totalSupply = totalSupply();

        for (uint256 i = 0; i < numToMint; ++i) {
            uint256 tokenId = _totalSupply + i;

            _mint(to, tokenId);
        }

        _unusedTokensLeft -= numToMint;
        _balances[to] += numToMint;
    }

    /**
     * @dev airdrops NFTs to addresses.
     * This mints an NFT to the wallet
     *
     * Requirements:
     *
     * - `recipients` must exist.
     *
     */
    function airdrop(address[] calldata recipients) external isAirdropper {
        if (recipients.length == 0 || _unusedTokensLeft < recipients.length) {
            revert AirdropEmptyReceipientListOrMintingMoreThenSupply();
        }

        for (uint256 i; i < recipients.length; ++i) {
            // Mint the tokens
            if (_random) _mintRandom(recipients[i], 1);
            else _mintSequential(recipients[i], 1);
        }
    }

    /**
     * @dev Set the beneficiaries for the NFT minting payout.
     * @param beneficiaries An array of `SharedStructs.Beneficiary` structs representing the new beneficiaries.
     */
    function _setBeneficiaries(SharedStructs.Beneficiary[] memory beneficiaries) internal {
        // Ensure that the number of beneficiaries is valid
        if (beneficiaries.length == 0 || beneficiaries.length >= 4) revert InvalidNumberOfBeneficiaries();

        // Clear the existing beneficiaries
        while (_beneficiaries.length > 0) _beneficiaries.pop();

        // Add the new beneficiaries and validate their percentages
        uint256 totalPercentage;
        for (uint256 i; i < beneficiaries.length; i++) {
            SharedStructs.Beneficiary memory beneficiary = beneficiaries[i];
            if (beneficiary.percentage > MAX_BPS) revert BeneficiaryPercentageHigherThanMax();

            _beneficiaries.push(beneficiary);
            totalPercentage += beneficiary.percentage;
        }

        // Ensure that the total percentage adds up to 100
        if (totalPercentage != MAX_BPS) revert BeneficiaryPercentageMustBe100();
    }

    /**
     * @dev Set the beneficiaries for the NFT minting payout.
     * @param beneficiaries An array of `SharedStructs.Beneficiary` structs representing the new beneficiaries.
     */
    function setBeneficiaries(SharedStructs.Beneficiary[] memory beneficiaries) external isPixelynAdmin {
        _setBeneficiaries(beneficiaries);
    }

    /**
     * @dev Sets the global royalties for the contract, meaning if no token id is overriden
     * this will be the default royalty.
     */
    function _setGlobalRoyalties(address newRecipient, uint256 newPercentage) internal {
        if (newRecipient == address(0)) revert RoyaltiesRecipientZeroAddress();
        if (newPercentage > MAX_BPS || newPercentage < 0) revert RoyaltiesPercentageWrong();

        _royaltyRecipient = newRecipient;
        _royaltyPercentage = newPercentage;
    }

    /**
     * @dev Sets the global royalties for the contract, meaning if no token id is overriden
     * this will be the default royalty.
     */
    function setGlobalRoyalties(address newRecipient, uint256 percent) external isPixelynAdmin {
        _setGlobalRoyalties(newRecipient, percent);
    }

    /**
     * @dev Sets the royalties for a specific token id.
     */
    function setTokenRoyalty(uint256 tokenId, address receiver, uint256 royaltyPercentage) external isPixelynAdmin {
        if (receiver == address(0)) revert RoyaltiesRecipientZeroAddress();
        if (royaltyPercentage > MAX_BPS) revert RoyaltiesPercentageWrong();

        _tokenRoyaltyRecipients[tokenId] = receiver;
        _tokenRoyaltyPercentages[tokenId] = royaltyPercentage;
    }

    /**
     * @dev EIP2981 royalties implementation.
     * For now this will always return to the defined royalty recipient.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        if (!_exists(tokenId)) revert TokenDoesNotExist();

        uint256 royaltyPercentage = _royaltyPercentage;
        address royaltyRecipient = _royaltyRecipient;

        // Check if the token has a royalty override
        if (_tokenRoyaltyPercentages[tokenId] > 0) {
            royaltyPercentage = _tokenRoyaltyPercentages[tokenId];
            royaltyRecipient = _tokenRoyaltyRecipients[tokenId];
        }

        if (royaltyPercentage > 0) {
            royaltyAmount = (salePrice * royaltyPercentage) / MAX_BPS;
            receiver = royaltyRecipient;
        } else {
            royaltyAmount = 0;
            receiver = address(0);
        }
        return (receiver, royaltyAmount);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(address from, address to, uint256 tokenId) internal virtual {
        if (PixelynxNft.ownerOf(tokenId) != from) revert TransferFromIncorrectOwner();

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

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

        // Update the ownership state in the PixelynxOwnership contract
        IPixelynxOwnership(_pixelynxOwnershipContract).ownershipTransferStateUpdate(from, to);

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
        if (owner == operator) revert ApproveToCaller();

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

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        if (!_exists(tokenId)) revert InvalidTokenId();
    }

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 5 of 22 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 6 of 22 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 7 of 22 : 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);
}

File 8 of 22 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (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() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 9 of 22 : SharedStructs.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.4 <0.9.0;

/**
 * @title SharedStructs
 *
 * @notice A standard library of shared structs used throughout the codebase.
 */
library SharedStructs {
    struct Royality {
        address to;
        // * by 1e2 aka 10.05 = 1005
        uint256 percentage;
    }

    struct Beneficiary {
        address to;
        // * by 1e2 aka 10.05 = 1005
        uint256 percentage;
    }

    struct NewCollectionInitialize {
        string name;
        string symbol;
        string baseURI;
        uint256 price;
        uint256 maxSupply;
        uint256 mintStartTimestamp;
        uint256 allowlistStartTimestamp;
        bool mintRandom;
        address[] internalTokenGatedContracts;
        SharedStructs.Beneficiary[] beneficiaries;
        SharedStructs.Royality royalties;
    }

    struct Part {
        address payable account;
        uint96 value;
    }

    struct Roles {
        address user;
        bool isSuperAdmin;
        bool isAirdropper;
        bool isAdmin;
        bool isAllowedToGift;
    }

    struct AllowList {
        address account;
        uint256 allowance;
    }
}

File 10 of 22 : IPixelynxNftDeployer.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.4 <0.9.0;

import {IERC20} from 'isolmate/interfaces/tokens/IERC20.sol';
import {SharedStructs} from '../shared-structs/SharedStructs.sol';

/**
 * @title Pixelynx Nft Deployer Contract
 * @notice This is the contract that deploys the nft contracts
 */
interface IPixelynxNftDeployer {
    ///////////////////////////////////////////////////////// EVENTS
    /**
     * @notice The airdrop state has changed
     * @param _airdropper The airdropper address
     * @param _allowed  Whether the deployer is allowed to deploy
     */
    event AirdropperStateChanged(address indexed _airdropper, bool _allowed);

    /**
     * @notice The admin state has changed
     * @param _admin The admin address
     * @param _status  Whether the admin is an admin or not
     */
    event AdminStateChanged(address indexed _admin, bool _status);

    /**
     * @notice The admin state has changed
     * @param _collectionNft The NFT address of the collection
     * @param _collectionName The name of the collection
     * @param _deployer Who deployed it
     */
    event NewCollectionDeployed(address indexed _collectionNft, string _collectionName, address indexed _deployer);

    ///////////////////////////////////////////////////////// ERRORS

    ////////////////////////////////////////////////////// LOGIC
    /**
     * Deploy the nft contract
     */
    function deployNewCollection(SharedStructs.NewCollectionInitialize memory collectionInitialize)
        external
        returns (address);

    /**
     * Returns all deployed collections
     */
    function allDeployedCollections() external view returns (address[] memory);

    /**
     * Set the airdropper state for an address
     */
    function setAirdropperState(address airdropper, bool allowed) external;

    /**
     * Get the airdropper state
     */
    function getAirdropperState(address airdropper) external view returns (bool);

    /**
     * Get the super admin
     */
    function getSuperAdmin() external view returns (address);

    /**
     * Add a new admin
     */
    function addAdmin(address admin) external;

    /**
     * Remove an admin
     */
    function removeAdmin(address admin) external;

    /**
     * Get the admin state
     */
    function getAdminState(address deployer) external view returns (bool);

    /**
     * Get the admin state
     */
    function getRoles(address[] memory addresses) external view returns (SharedStructs.Roles[] memory);

    /**
     * Used to set the allowed to gift state contracts or wallets
     */
    function setAllowedToGift(address user, bool allowed) external;

    /**
     * Get the state if the address is allowed to gift
     */
    function isAllowedToGift(address user) external view returns (bool);

    /**
     * Get the state for the pixelynx ownership contract
     */
    function getPixelynxOwnership() external view returns (address);

    /**
     * Set the pixelynx ownership contract
     */
    function setPixelynxOwnership(address ownershipContract) external;
}

File 11 of 22 : IPixelynxOwnership.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.4 <0.9.0;

interface IPixelynxOwnership {
    /**
     * Check if the contract is deployed
     */
    function isDeployedContract(address deployedContract) external view returns (bool);
    /**
     * Set the deployed contract address
     */
    function setDeployedContract(address deployedContract) external;

    /**
     * Set the transfer state of ownership
     */
    function ownershipTransferStateUpdate(address from, address to) external;

    /**
     * Check if user owns all the contracts
     */
    function userOwnershipCheck(address[] memory contractAddresses, address user) external view returns (bool);
}

File 12 of 22 : IERC2981.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.4 <0.9.0;

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

interface IERC2981 is IERC165 {
    /// ERC165 bytes to add to interface array - set in parent contract
    /// implementing this standard
    ///
    /// bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a
    /// bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;
    /// _registerInterface(_INTERFACE_ID_ERC2981);

    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _salePrice - the sale price of the NFT asset specified by _tokenId
    /// @return receiver - address of who should be sent the royalty payment
    /// @return royaltyAmount - the royalty payment amount for _salePrice
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 13 of 22 : IERC4906.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.4 <0.9.0;

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

interface IERC4906 is IERC165 {
    /// @dev This event emits when the metadata of a token is changed.
    /// So that the third-party platforms such as NFT market could
    /// timely update the images and related attributes of the NFT.
    event MetadataUpdate(uint256 _tokenId);

    /// @dev This event emits when the metadata of a range of tokens is changed.
    /// So that the third-party platforms such as NFT market could
    /// timely update the images and related attributes of the NFTs.
    event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId);
}

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

import {OperatorFilterer} from "./OperatorFilterer.sol";
import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol";
/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 * @dev    Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}

File 15 of 22 : 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 16 of 22 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 17 of 22 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 18 of 22 : IERC20.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

interface IERC20 {
  /*///////////////////////////////////////////////////////////////
                              EVENTS
  //////////////////////////////////////////////////////////////*/
  event Transfer(address indexed from, address indexed to, uint256 amount);
  event Approval(address indexed owner, address indexed spender, uint256 amount);

  /*///////////////////////////////////////////////////////////////
                              VARIABLES
  //////////////////////////////////////////////////////////////*/
  function name() external view returns (string memory _name);

  function symbol() external view returns (string memory _symbol);

  function decimals() external view returns (uint8 _decimals);

  function totalSupply() external view returns (uint256 _totalSupply);

  function balanceOf(address _account) external view returns (uint256);

  function allowance(address _owner, address _spender) external view returns (uint256);

  function nonces(address _account) external view returns (uint256);

  /*///////////////////////////////////////////////////////////////
                                LOGIC
  //////////////////////////////////////////////////////////////*/
  function approve(address spender, uint256 amount) external returns (bool);

  function transfer(address to, uint256 amount) external returns (bool);

  function transferFrom(
    address from,
    address to,
    uint256 amount
  ) external returns (bool);

  function permit(
    address owner,
    address spender,
    uint256 value,
    uint256 deadline,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external;

  function DOMAIN_SEPARATOR() external view returns (bytes32);
}

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

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.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.
 *         Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract OperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);

    /// @dev The constructor that is called when the contract is being deployed.
    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));
                }
            }
        }
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if an operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

File 20 of 22 : Constants.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

File 21 of 22 : 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 22 of 22 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}

Settings
{
  "remappings": [
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "contracts/=solidity/contracts/",
    "ds-test/=lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "interfaces/=solidity/interfaces/",
    "isolmate/=lib/isolmate/src/",
    "openzeppelin-contracts-upgradeable/=lib/operator-filter-registry/lib/openzeppelin-contracts-upgradeable/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "operator-filter-registry/=lib/operator-filter-registry/src/",
    "prb-test/=lib/prb-test/src/",
    "prb/test/=lib/prb-test/src/",
    "test/=solidity/test/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 260
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"__pixelynxNftDeployer","type":"address"},{"internalType":"address","name":"__pixelynxOwnershipContract","type":"address"},{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"mintStartTimestamp","type":"uint256"},{"internalType":"uint256","name":"allowlistStartTimestamp","type":"uint256"},{"internalType":"bool","name":"mintRandom","type":"bool"},{"internalType":"address[]","name":"internalTokenGatedContracts","type":"address[]"},{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"percentage","type":"uint256"}],"internalType":"struct SharedStructs.Beneficiary[]","name":"beneficiaries","type":"tuple[]"},{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"percentage","type":"uint256"}],"internalType":"struct SharedStructs.Royality","name":"royalties","type":"tuple"}],"internalType":"struct SharedStructs.NewCollectionInitialize","name":"collectionInitialize","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AddressZero","type":"error"},{"inputs":[],"name":"AirdropEmptyReceipientListOrMintingMoreThenSupply","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveCallerIsNotTokenOrApprovedForAll","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BeneficiaryPercentageHigherThanMax","type":"error"},{"inputs":[],"name":"BeneficiaryPercentageMustBe100","type":"error"},{"inputs":[],"name":"CallerIsNotTokenOwnerOrApproved","type":"error"},{"inputs":[],"name":"CanNotSetMintMaxSupply","type":"error"},{"inputs":[],"name":"InvalidAddressOrNoTokensLeft","type":"error"},{"inputs":[],"name":"InvalidInternalTokenGatedContract","type":"error"},{"inputs":[],"name":"InvalidNumberOfBeneficiaries","type":"error"},{"inputs":[],"name":"InvalidTokenId","type":"error"},{"inputs":[],"name":"MintAtLeastOneToken","type":"error"},{"inputs":[],"name":"MintIsPaused","type":"error"},{"inputs":[],"name":"MintMoreTokensThanSupply","type":"error"},{"inputs":[],"name":"MintNotEnoughAllowance","type":"error"},{"inputs":[],"name":"MintNotEnoughFunds","type":"error"},{"inputs":[],"name":"MintNotStarted","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintTokenGatedRequirementFailed","type":"error"},{"inputs":[],"name":"NotAllowedToGift","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"RoyaltiesPercentageWrong","type":"error"},{"inputs":[],"name":"RoyaltiesRecipientZeroAddress","type":"error"},{"inputs":[],"name":"TimestampHigherThanMintTimestamp","type":"error"},{"inputs":[],"name":"TokenDoesNotExist","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonErc721Receiver","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","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":"MAX_BPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"}],"internalType":"struct SharedStructs.AllowList[]","name":"allowList","type":"tuple[]"}],"name":"addToAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allowlistMintStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowlistStartTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"batchMetadataUpdate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numToMint","type":"uint256"}],"name":"checkClaimEligibility","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getInternalTokenGatedContracts","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inAllowlistPeriod","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inMintablePeriod","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"isRandomMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"metadataUpdate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numToMint","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numToMint","type":"uint256"}],"name":"mintFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintStartTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"pixelynxNftDeployer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refreshAllMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"removeFromAllowlist","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":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"setAllowlistStartTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"percentage","type":"uint256"}],"internalType":"struct SharedStructs.Beneficiary[]","name":"beneficiaries","type":"tuple[]"}],"name":"setBeneficiaries","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRecipient","type":"address"},{"internalType":"uint256","name":"percent","type":"uint256"}],"name":"setGlobalRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"setInternalTokenGatedContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"setKillSwitch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMintMaxSupply","type":"uint256"}],"name":"setMintMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMintStartTimestamp","type":"uint256"}],"name":"setMintStartTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newName","type":"string"}],"name":"setName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPixelynNftDeployer","type":"address"}],"name":"setPixelynNftDeployer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newSymbol","type":"string"}],"name":"setSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyPercentage","type":"uint256"}],"name":"setTokenRoyalty","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":"tokensRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200480438038062004804833981016040819052620000349162000965565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016daaeb6d7670e522a718067333cd4e3b1562000190578015620000de57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b158015620000bf57600080fd5b505af1158015620000d4573d6000803e3d6000fd5b5050505062000190565b6001600160a01b038216156200012f5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620000a4565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200017657600080fd5b505af11580156200018b573d6000803e3d6000fd5b505050505b50506001600055620001a83362000352565b62000352565b600280546001600160a01b038086166001600160a01b031992831617909255601b80549285169290911691909117905580518051620001f091600391602090910190620005c4565b50602080820151805162000209926004920190620005c4565b5060a081015160075560c0810151601a55604081015180516200023591600691602090910190620005c4565b50606081015160055560e08101516009805460ff191691151591909117905561010081015180516200027091600a9160209091019062000653565b506080810151156200028f57608081015160088190556013556200029b565b60001960088190556013555b610120810151620002ac90620003a4565b6101408101516020015115620002d6576101408101518051602090910151620002d6919062000548565b60025460408051634102619360e11b8152905162000349926001600160a01b031691638204c3269160048083019260209291908290030181865afa15801562000323573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001a2919062000af4565b50505062000bce565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80511580620003b557506004815110155b15620003d45760405163173cfcf560e31b815260040160405180910390fd5b600b54156200042057600b805480620003f157620003f162000b19565b60008281526020812060026000199093019283020180546001600160a01b0319168155600101559055620003d4565b6000805b82518110156200052057600083828151811062000445576200044562000b2f565b60200260200101519050612710816020015111156200047757604051631e60463360e11b815260040160405180910390fd5b600b805460018101825560009190915281517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9600290920291820180546001600160a01b0319166001600160a01b0390921691909117905560208201517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dba90910181905562000507908462000b5b565b9250508080620005179062000b76565b91505062000424565b5061271081146200054457604051638e0ba91360e01b815260040160405180910390fd5b5050565b6001600160a01b0382166200057057604051632aa38f7960e11b815260040160405180910390fd5b6127108111806200057f575060005b156200059e5760405163665c1d6960e01b815260040160405180910390fd5b600c80546001600160a01b0319166001600160a01b039390931692909217909155600d55565b828054620005d29062000b92565b90600052602060002090601f016020900481019282620005f6576000855562000641565b82601f106200061157805160ff191683800117855562000641565b8280016001018555821562000641579182015b828111156200064157825182559160200191906001019062000624565b506200064f929150620006ab565b5090565b82805482825590600052602060002090810192821562000641579160200282015b828111156200064157825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000674565b5b808211156200064f5760008155600101620006ac565b80516001600160a01b0381168114620006da57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60405161016081016001600160401b03811182821017156200071b576200071b620006df565b60405290565b604051601f8201601f191681016001600160401b03811182821017156200074c576200074c620006df565b604052919050565b600082601f8301126200076657600080fd5b81516001600160401b03811115620007825762000782620006df565b602062000798601f8301601f1916820162000721565b8281528582848701011115620007ad57600080fd5b60005b83811015620007cd578581018301518282018401528201620007b0565b83811115620007df5760008385840101525b5095945050505050565b80518015158114620006da57600080fd5b60006001600160401b03821115620008165762000816620006df565b5060051b60200190565b600082601f8301126200083257600080fd5b815160206200084b6200084583620007fa565b62000721565b82815260059290921b840181019181810190868411156200086b57600080fd5b8286015b8481101562000891576200088381620006c2565b83529183019183016200086f565b509695505050505050565b600060408284031215620008af57600080fd5b604080519081016001600160401b0381118282101715620008d457620008d4620006df565b604052905080620008e583620006c2565b8152602083015160208201525092915050565b600082601f8301126200090a57600080fd5b815160206200091d6200084583620007fa565b82815260069290921b840181019181810190868411156200093d57600080fd5b8286015b8481101562000891576200095688826200089c565b83529183019160400162000941565b6000806000606084860312156200097b57600080fd5b6200098684620006c2565b92506200099660208501620006c2565b60408501519092506001600160401b0380821115620009b457600080fd5b908501906101808288031215620009ca57600080fd5b620009d4620006f5565b825182811115620009e457600080fd5b620009f28982860162000754565b82525060208301518281111562000a0857600080fd5b62000a168982860162000754565b60208301525060408301518281111562000a2f57600080fd5b62000a3d8982860162000754565b604083015250606083015160608201526080830151608082015260a083015160a082015260c083015160c082015262000a7960e08401620007e9565b60e0820152610100808401518381111562000a9357600080fd5b62000aa18a82870162000820565b828401525050610120808401518381111562000abc57600080fd5b62000aca8a828701620008f8565b828401525050610140915062000ae3888385016200089c565b828201528093505050509250925092565b60006020828403121562000b0757600080fd5b62000b1282620006c2565b9392505050565b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111562000b715762000b7162000b45565b500190565b60006001820162000b8b5762000b8b62000b45565b5060010190565b600181811c9082168062000ba757607f821691505b60208210810362000bc857634e487b7160e01b600052602260045260246000fd5b50919050565b613c268062000bde6000396000f3fe60806040526004361061034f5760003560e01c8063775fe52f116101c6578063c47f0027116100f7578063dd22155a11610095578063e9d60f921161006f578063e9d60f921461096a578063f2fde38b14610982578063f4a0a528146109a2578063fd967f47146109c257600080fd5b8063dd22155a1461090a578063e10967fa1461092a578063e985e9c51461094a57600080fd5b8063c8b08125116100d1578063c8b08125146108a0578063cc719281146108b5578063d17bf5cc146108d5578063da1919b3146108ea57600080fd5b8063c47f002714610840578063c758f60014610860578063c87b56dd1461088057600080fd5b8063a0e389de11610164578063b88d4fde1161013e578063b88d4fde146107d8578063bc0a2657146107f8578063bed20a8714610816578063c285e1071461082b57600080fd5b8063a0e389de14610783578063a22cb46514610798578063b84c8246146107b857600080fd5b80639213bda7116101a05780639213bda71461070e57806393a671251461072e57806395d89b411461074e5780639713c8071461076357600080fd5b8063775fe52f146106bb5780638da5cb5b146106d05780638f73716b146106ee57600080fd5b806334bf3d92116102a05780636352211e1161023e57806370a082311161021857806370a0823114610651578063714c539814610671578063715018a614610686578063729ad39e1461069b57600080fd5b80636352211e146105fc5780636817c76c1461061c5780636a1c34fb1461063157600080fd5b806342842e0e1161027a57806342842e0e1461057a57806354fee61f1461059a57806355f804b3146105ba5780635ac06b03146105da57600080fd5b806334bf3d921461052557806340c10f191461054557806341f434341461055857600080fd5b8063081812fc1161030d578063105dedfc116102e7578063105dedfc1461048757806318160ddd146104a757806323b872dd146104c65780632a55205a146104e657600080fd5b8063081812fc1461040f578063095ea7b314610447578063104b6cb71461046757600080fd5b8062c236a91461035457806301ffc9a71461037e578063035240051461039e5780630548b4ac146103b65780630618a1b8146103cb57806306fdde03146103ed575b600080fd5b34801561036057600080fd5b506103696109d8565b60405190151581526020015b60405180910390f35b34801561038a57600080fd5b506103696103993660046132e7565b6109f2565b3480156103aa57600080fd5b50600754421015610369565b3480156103c257600080fd5b50610369610a72565b3480156103d757600080fd5b506103eb6103e6366004613426565b610a8c565b005b3480156103f957600080fd5b50610402610b8d565b60405161037591906134c7565b34801561041b57600080fd5b5061042f61042a3660046134da565b610c1f565b6040516001600160a01b039091168152602001610375565b34801561045357600080fd5b506103eb6104623660046134f3565b610c46565b34801561047357600080fd5b506103eb61048236600461351f565b610cd8565b34801561049357600080fd5b506103eb6104a2366004613426565b610dd1565b3480156104b357600080fd5b506014545b604051908152602001610375565b3480156104d257600080fd5b506103eb6104e13660046135b9565b610e73565b3480156104f257600080fd5b506105066105013660046135fa565b610ebf565b604080516001600160a01b039093168352602083019190915201610375565b34801561053157600080fd5b506103eb6105403660046134f3565b610f76565b6103eb6105533660046134f3565b611016565b34801561056457600080fd5b5061042f6daaeb6d7670e522a718067333cd4e81565b34801561058657600080fd5b506103eb6105953660046135b9565b611247565b3480156105a657600080fd5b506103eb6105b53660046134da565b61127c565b3480156105c657600080fd5b506103eb6105d536600461367d565b611317565b3480156105e657600080fd5b506105ef6113c9565b60405161037591906136c6565b34801561060857600080fd5b5061042f6106173660046134da565b61142a565b34801561062857600080fd5b506005546104b8565b34801561063d57600080fd5b506103eb61064c3660046134da565b611479565b34801561065d57600080fd5b506104b861066c366004613713565b611545565b34801561067d57600080fd5b5061040261158a565b34801561069257600080fd5b506103eb611599565b3480156106a757600080fd5b506103eb6106b6366004613730565b6115ad565b3480156106c757600080fd5b50601a546104b8565b3480156106dc57600080fd5b506001546001600160a01b031661042f565b3480156106fa57600080fd5b506103eb6107093660046134da565b611701565b34801561071a57600080fd5b506103eb6107293660046137b3565b6117c2565b34801561073a57600080fd5b506103eb6107493660046134da565b61186b565b34801561075a57600080fd5b50610402611950565b34801561076f57600080fd5b506103eb61077e3660046137d0565b61195f565b34801561078f57600080fd5b506007546104b8565b3480156107a457600080fd5b506103eb6107b33660046137f7565b611a78565b3480156107c457600080fd5b506103eb6107d336600461367d565b611a8d565b3480156107e457600080fd5b506103eb6107f3366004613830565b611b36565b34801561080457600080fd5b506002546001600160a01b031661042f565b34801561082257600080fd5b506103eb611b8a565b34801561083757600080fd5b506008546104b8565b34801561084c57600080fd5b506103eb61085b36600461367d565b611c28565b34801561086c57600080fd5b506103eb61087b3660046135fa565b611cd1565b34801561088c57600080fd5b5061040261089b3660046134da565b611da4565b3480156108ac57600080fd5b506013546104b8565b3480156108c157600080fd5b506104026108d03660046134f3565b611e68565b3480156108e157600080fd5b50610369611f98565b3480156108f657600080fd5b506103eb6109053660046134f3565b611fbd565b34801561091657600080fd5b506103eb61092536600461351f565b6120a0565b34801561093657600080fd5b506103eb610945366004613713565b612222565b34801561095657600080fd5b506103696109653660046138b0565b6122f0565b34801561097657600080fd5b5060095460ff16610369565b34801561098e57600080fd5b506103eb61099d366004613713565b61234e565b3480156109ae57600080fd5b506103eb6109bd3660046134da565b6123c4565b3480156109ce57600080fd5b506104b861271081565b600080601a541180156109ed5750601a544210155b905090565b60006001600160e01b0319821663152a902d60e11b1480610a2357506001600160e01b031982166380ac58cd60e01b145b80610a3e57506001600160e01b03198216635b5e139f60e01b145b80610a5957506001600160e01b031982166301ffc9a760e01b145b80610a6c57506001600160e01b03198216155b92915050565b6000610a7c6109d8565b806109ed57505060075442101590565b6002546001600160a01b0316631177570f336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610ae2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0691906138de565b610b2b5760405162461bcd60e51b8152600401610b22906138fb565b60405180910390fd5b60005b8151811015610b89576000828281518110610b4b57610b4b61391a565b6020908102919091018101518082015190516001600160a01b0316600090815260199092526040909120555080610b8181613946565b915050610b2e565b5050565b606060038054610b9c9061395f565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc89061395f565b8015610c155780601f10610bea57610100808354040283529160200191610c15565b820191906000526020600020905b815481529060010190602001808311610bf857829003601f168201915b5050505050905090565b6000610c2a8261245f565b506000908152601760205260409020546001600160a01b031690565b81610c508161248e565b6000610c5b8361142a565b9050806001600160a01b0316846001600160a01b031603610c8f5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480610cab5750610cab81336122f0565b610cc857604051630d91f31960e01b815260040160405180910390fd5b610cd28484612547565b50505050565b6002546001600160a01b0316631177570f336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610d2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5291906138de565b610d6e5760405162461bcd60e51b8152600401610b22906138fb565b60005b8151811015610b8957600060196000848481518110610d9257610d9261391a565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080610dc990613946565b915050610d71565b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610e27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4b91906138de565b610e675760405162461bcd60e51b8152600401610b2290613999565b610e70816125b5565b50565b826001600160a01b0381163314610e8d57610e8d3361248e565b610e973383612743565b610eb457604051631ed2f88160e01b815260040160405180910390fd5b610cd28484846127a2565b600082815260126020526040812054819060ff16610ef05760405163677510db60e11b815260040160405180910390fd5b600d54600c546000868152600f60205260409020546001600160a01b039091169015610f3d5750506000848152600f6020908152604080832054600e909252909120546001600160a01b03165b8115610f6457612710610f5083876139b6565b610f5a91906139eb565b9250809350610f6d565b60009250600093505b50509250929050565b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610fcc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff091906138de565b61100c5760405162461bcd60e51b8152600401610b2290613999565b610b8982826128e2565b61101e61295b565b611026610a72565b61104357604051630314872760e11b815260040160405180910390fd5b60105460ff161561106757604051632c7e18c160e11b815260040160405180910390fd5b6001600160a01b03821661108d57604051622e076360e81b815260040160405180910390fd5b600081116110ae57604051638613ef3d60e01b815260040160405180910390fd5b8060135410156110d1576040516314b3a1a360e31b815260040160405180910390fd5b806005546110df91906139b6565b34146110fe5760405163923af9d160e01b815260040160405180910390fd5b611106611f98565b15611172576001600160a01b0382166000908152601960205260409020548111156111445760405163e96f199b60e01b815260040160405180910390fd5b6001600160a01b0382166000908152601960205260408120805483929061116c9084906139ff565b90915550505b600a541561120b57601b54604051630222cf5960e01b81526001600160a01b0390911690630222cf59906111ad90600a908690600401613a16565b602060405180830381865afa1580156111ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ee91906138de565b61120b5760405163af96fc3560e01b815260040160405180910390fd5b3415611219576112196129b4565b60095460ff16156112335761122e8282612abf565b61123d565b61123d8282612b3a565b610b896001600055565b826001600160a01b0381163314611261576112613361248e565b610cd284848460405180602001604052806000815250611b36565b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156112d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f691906138de565b6113125760405162461bcd60e51b8152600401610b2290613999565b600755565b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa15801561136d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061139191906138de565b6113ad5760405162461bcd60e51b8152600401610b2290613999565b80516113c09060069060208401906131e3565b50610e70612bbb565b6060600a805480602002602001604051908101604052809291908181526020018280548015610c1557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611403575050505050905090565b60008181526012602052604081205460ff16611459576040516307ed98ed60e31b815260040160405180910390fd5b6000828152601560205260408120546001600160a01b03165b9392505050565b6002546001600160a01b0316631177570f336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156114cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114f391906138de565b61150f5760405162461bcd60e51b8152600401610b22906138fb565b6040518181527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a150565b60006001600160a01b03821661156e57604051639fabe1c160e01b815260040160405180910390fd5b506001600160a01b031660009081526016602052604090205490565b606060068054610b9c9061395f565b6115a1612c01565b6115ab6000612c5b565b565b6002546001600160a01b0316631177570f336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611603573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061162791906138de565b6116435760405162461bcd60e51b8152600401610b22906138fb565b801580611651575060135481115b1561166f5760405163221d912f60e01b815260040160405180910390fd5b60005b818110156116fc5760095460ff16156116bb576116b683838381811061169a5761169a61391a565b90506020020160208101906116af9190613713565b6001612abf565b6116ec565b6116ec8383838181106116d0576116d061391a565b90506020020160208101906116e59190613713565b6001612b3a565b6116f581613946565b9050611672565b505050565b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611757573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177b91906138de565b6117975760405162461bcd60e51b8152600401610b2290613999565b6007548111156117bd576040516001620638cf60e21b0319815260040160405180910390fd5b601a55565b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611818573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061183c91906138de565b6118585760405162461bcd60e51b8152600401610b2290613999565b6010805460ff1916911515919091179055565b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156118c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e591906138de565b6119015760405162461bcd60e51b8152600401610b2290613999565b60075442101580611910575080155b8061191c575060145415155b80611928575060145481105b1561194657604051631825caff60e21b815260040160405180910390fd5b6008819055601355565b606060048054610b9c9061395f565b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156119b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119d991906138de565b6119f55760405162461bcd60e51b8152600401610b2290613999565b6001600160a01b038216611a1c57604051632aa38f7960e11b815260040160405180910390fd5b612710811115611a3f5760405163665c1d6960e01b815260040160405180910390fd5b6000928352600e6020908152604080852080546001600160a01b0319166001600160a01b039590951694909417909355600f9052912055565b81611a828161248e565b6116fc338484612cad565b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611ae3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b0791906138de565b611b235760405162461bcd60e51b8152600401610b2290613999565b8051610b899060049060208401906131e3565b836001600160a01b0381163314611b5057611b503361248e565b611b5a3384612743565b611b7757604051631ed2f88160e01b815260040160405180910390fd5b611b8385858585612d4c565b5050505050565b6002546001600160a01b0316631177570f336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611be0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0491906138de565b611c205760405162461bcd60e51b8152600401610b22906138fb565b6115ab612bbb565b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611c7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ca291906138de565b611cbe5760405162461bcd60e51b8152600401610b2290613999565b8051610b899060039060208401906131e3565b6002546001600160a01b0316631177570f336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611d27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d4b91906138de565b611d675760405162461bcd60e51b8152600401610b22906138fb565b60408051838152602081018390527f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c910160405180910390a15050565b6060611daf8261245f565b6000306001600160a01b031663714c53986040518163ffffffff1660e01b8152600401600060405180830381865afa158015611def573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e179190810190613a7b565b90506000815111611e375760405180602001604052806000815250611472565b80611e4184612d80565b604051602001611e52929190613af2565b6040516020818303038152906040529392505050565b6060611e72610a72565b1580611e80575060105460ff165b80611e9257506001600160a01b038316155b80611e9b575081155b80611ea7575081601354105b80611ed85750611eb5611f98565b8015611ed857506001600160a01b03831660009081526019602052604090205482115b80611f545750601b54604051630222cf5960e01b81526001600160a01b0390911690630222cf5990611f1190600a908790600401613a16565b602060405180830381865afa158015611f2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f5291906138de565b155b15611f82575060408051808201909152600c81526b10d85b881b9bdd081b5a5b9d60a21b6020820152610a6c565b5060408051602081019091526000815292915050565b600080601a54118015611fad5750601a544210155b80156109ed575050600754421090565b611fc561295b565b6002546001600160a01b031663fc2922d2336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa15801561201b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061203f91906138de565b61205c57604051633a946eab60e01b815260040160405180910390fd5b6000811161207d57604051638613ef3d60e01b815260040160405180910390fd5b806013541015611219576040516314b3a1a360e31b815260040160405180910390fd5b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156120f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061211a91906138de565b6121365760405162461bcd60e51b8152600401610b2290613999565b60005b815181101561220e57601b5482516001600160a01b0390911690636290caec9084908490811061216b5761216b61391a565b60200260200101516040518263ffffffff1660e01b815260040161219e91906001600160a01b0391909116815260200190565b602060405180830381865afa1580156121bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121df91906138de565b6121fc576040516387861e1160e01b815260040160405180910390fd5b8061220681613946565b915050612139565b508051610b8990600a906020840190613267565b60025460408051634102619360e11b8152905133926001600160a01b031691638204c3269160048083019260209291908290030181865afa15801561226b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061228f9190613b21565b6001600160a01b0316146122ce5760405162461bcd60e51b8152600401610b229060208082526004908201526353415f4f60e01b604082015260600190565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60007358807bad0b376efc12f5ad86aac70e78ed67dead196001600160a01b0383160161231f57506001610a6c565b506001600160a01b03918216600090815260186020908152604080832093909416825291909152205460ff1690565b612356612c01565b6001600160a01b0381166123bb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b22565b610e7081612c5b565b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa15801561241a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061243e91906138de565b61245a5760405162461bcd60e51b8152600401610b2290613999565b600555565b60008181526012602052604090205460ff16610e70576040516307ed98ed60e31b815260040160405180910390fd5b6daaeb6d7670e522a718067333cd4e3b15610e7057604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156124fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061251f91906138de565b610e7057604051633b79c77360e21b81526001600160a01b0382166004820152602401610b22565b600081815260176020526040902080546001600160a01b0319166001600160a01b038416908117909155819061257c8261142a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b805115806125c557506004815110155b156125e35760405163173cfcf560e31b815260040160405180910390fd5b600b541561262a57600b8054806125fc576125fc613b3e565b60008281526020812060026000199093019283020180546001600160a01b03191681556001015590556125e3565b6000805b825181101561272057600083828151811061264b5761264b61391a565b602002602001015190506127108160200151111561267c57604051631e60463360e11b815260040160405180910390fd5b600b805460018101825560009190915281517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9600290920291820180546001600160a01b0319166001600160a01b0390921691909117905560208201517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dba90910181905561270a9084613b54565b925050808061271890613946565b91505061262e565b506127108114610b8957604051638e0ba91360e01b815260040160405180910390fd5b60008061274f8361142a565b9050806001600160a01b0316846001600160a01b03161480612776575061277681856122f0565b8061279a5750836001600160a01b031661278f84610c1f565b6001600160a01b0316145b949350505050565b826001600160a01b03166127b58261142a565b6001600160a01b0316146127db5760405162a1148160e81b815260040160405180910390fd5b600081815260176020908152604080832080546001600160a01b03199081169091556001600160a01b038781168086526016855283862080546000190190558782168087528487208054600101905587875260159095529483902080549092168417909155601b54915163e6ca51c960e01b815260048101949094526024840192909252169063e6ca51c990604401600060405180830381600087803b15801561288457600080fd5b505af1158015612898573d6000803e3d6000fd5b5050505080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6001600160a01b03821661290957604051632aa38f7960e11b815260040160405180910390fd5b612710811180612917575060005b156129355760405163665c1d6960e01b815260040160405180910390fd5b600c80546001600160a01b0319166001600160a01b039390931692909217909155600d55565b6002600054036129ad5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b22565b6002600055565b6000600b805480602002602001604051908101604052809291908181526020016000905b82821015612a20576000848152602090819020604080518082019091526002850290910180546001600160a01b031682526001908101548284015290835290920191016129d8565b50505050905060005b8151811015610b89576000828281518110612a4657612a4661391a565b602002602001015190506000612710826020015134612a6591906139b6565b612a6f91906139eb565b82516040519192506001600160a01b03169082156108fc029083906000818181858888f19350505050158015612aa9573d6000803e3d6000fd5b5050508080612ab790613946565b915050612a29565b60135460005b82811015612b02576000612ad98584612e13565b9050612ae58582612e98565b612aee83613b6c565b92505080612afb90613946565b9050612ac5565b5060138190556001600160a01b03831660009081526016602052604081208054849290612b30908490613b54565b9091555050505050565b6000612b4560145490565b905060005b82811015612b7b576000612b5e8284613b54565b9050612b6a8582612e98565b50612b7481613946565b9050612b4a565b508160136000828254612b8e91906139ff565b90915550506001600160a01b03831660009081526016602052604081208054849290612b30908490613b54565b7f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c6000612be760085490565b6040805192835260208301919091520160405180910390a1565b6001546001600160a01b031633146115ab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b22565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603612cdf5760405163b06307db60e01b815260040160405180910390fd5b6001600160a01b03838116600081815260186020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612d578484846127a2565b612d6384848484612f84565b610cd25760405163da3349d960e01b815260040160405180910390fd5b60606000612d8d83613086565b600101905060008167ffffffffffffffff811115612dad57612dad613304565b6040519080825280601f01601f191660200182016040528015612dd7576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612de157509392505050565b600061147282843a3083612e286001436139ff565b604080516001600160a01b039687166020820152908101949094529390911660608301526080820152904060a08201524260c08201524360e082015241610100820152610120016040516020818303038152906040528051906020012060001c612e929190613b83565b8361315e565b601460008154612ea790613946565b90915550600081815260156020908152604080832080546001600160a01b0319166001600160a01b038781169182179092556012909352818420805460ff19166001179055601b54915163e6ca51c960e01b815260048101949094526024840192909252169063e6ca51c990604401600060405180830381600087803b158015612f3057600080fd5b505af1158015612f44573d6000803e3d6000fd5b50506040518392506001600160a01b03851691506000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561307b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612fc8903390899088908890600401613b97565b6020604051808303816000875af1925050508015613003575060408051601f3d908101601f1916820190925261300091810190613bd3565b60015b613061573d808015613031576040519150601f19603f3d011682016040523d82523d6000602084013e613036565b606091505b5080516000036130595760405163da3349d960e01b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061279a565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106130c55772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106130f1576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061310f57662386f26fc10000830492506010015b6305f5e1008310613127576305f5e100830492506008015b612710831061313b57612710830492506004015b6064831061314d576064830492506002015b600a8310610a6c5760010192915050565b60008281526011602052604081205481811561317a578161317c565b845b9050600061318b6001866139ff565b6000818152601160205260409020549091508682146131c25780156131b057806131b2565b815b6000888152601160205260409020555b80156131d8576000828152601160205260408120555b509095945050505050565b8280546131ef9061395f565b90600052602060002090601f0160209004810192826132115760008555613257565b82601f1061322a57805160ff1916838001178555613257565b82800160010185558215613257579182015b8281111561325757825182559160200191906001019061323c565b506132639291506132bc565b5090565b828054828255906000526020600020908101928215613257579160200282015b8281111561325757825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190613287565b5b8082111561326357600081556001016132bd565b6001600160e01b031981168114610e7057600080fd5b6000602082840312156132f957600080fd5b8135611472816132d1565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561334357613343613304565b604052919050565b600067ffffffffffffffff82111561336557613365613304565b5060051b60200190565b6001600160a01b0381168114610e7057600080fd5b60006133976133928461334b565b61331a565b8381529050602080820190600685901b8401868111156133b657600080fd5b845b8181101561341b57604080828a0312156133d25760008081fd5b805181810181811067ffffffffffffffff821117156133f3576133f3613304565b9091528135906134028261336f565b90815281840135848201528452928201926040016133b8565b505050509392505050565b60006020828403121561343857600080fd5b813567ffffffffffffffff81111561344f57600080fd5b8201601f8101841361346057600080fd5b61279a84823560208401613384565b60005b8381101561348a578181015183820152602001613472565b83811115610cd25750506000910152565b600081518084526134b381602086016020860161346f565b601f01601f19169290920160200192915050565b602081526000611472602083018461349b565b6000602082840312156134ec57600080fd5b5035919050565b6000806040838503121561350657600080fd5b82356135118161336f565b946020939093013593505050565b6000602080838503121561353257600080fd5b823567ffffffffffffffff81111561354957600080fd5b8301601f8101851361355a57600080fd5b80356135686133928261334b565b81815260059190911b8201830190838101908783111561358757600080fd5b928401925b828410156135ae57833561359f8161336f565b8252928401929084019061358c565b979650505050505050565b6000806000606084860312156135ce57600080fd5b83356135d98161336f565b925060208401356135e98161336f565b929592945050506040919091013590565b6000806040838503121561360d57600080fd5b50508035926020909101359150565b600067ffffffffffffffff82111561363657613636613304565b50601f01601f191660200190565b60006136526133928461361c565b905082815283838301111561366657600080fd5b828260208301376000602084830101529392505050565b60006020828403121561368f57600080fd5b813567ffffffffffffffff8111156136a657600080fd5b8201601f810184136136b757600080fd5b61279a84823560208401613644565b6020808252825182820181905260009190848201906040850190845b818110156137075783516001600160a01b0316835292840192918401916001016136e2565b50909695505050505050565b60006020828403121561372557600080fd5b81356114728161336f565b6000806020838503121561374357600080fd5b823567ffffffffffffffff8082111561375b57600080fd5b818501915085601f83011261376f57600080fd5b81358181111561377e57600080fd5b8660208260051b850101111561379357600080fd5b60209290920196919550909350505050565b8015158114610e7057600080fd5b6000602082840312156137c557600080fd5b8135611472816137a5565b6000806000606084860312156137e557600080fd5b8335925060208401356135e98161336f565b6000806040838503121561380a57600080fd5b82356138158161336f565b91506020830135613825816137a5565b809150509250929050565b6000806000806080858703121561384657600080fd5b84356138518161336f565b935060208501356138618161336f565b925060408501359150606085013567ffffffffffffffff81111561388457600080fd5b8501601f8101871361389557600080fd5b6138a487823560208401613644565b91505092959194509250565b600080604083850312156138c357600080fd5b82356138ce8161336f565b915060208301356138258161336f565b6000602082840312156138f057600080fd5b8151611472816137a5565b6020808252600590820152644149525f4f60d81b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161395857613958613930565b5060010190565b600181811c9082168061397357607f821691505b60208210810361399357634e487b7160e01b600052602260045260246000fd5b50919050565b602080825260039082015262415f4f60e81b604082015260600190565b60008160001904831182151516156139d0576139d0613930565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826139fa576139fa6139d5565b500490565b600082821015613a1157613a11613930565b500390565b6000604082016040835280855480835260608501915086600052602092508260002060005b82811015613a605781546001600160a01b031684529284019260019182019101613a3b565b5050506001600160a01b039490941692019190915250919050565b600060208284031215613a8d57600080fd5b815167ffffffffffffffff811115613aa457600080fd5b8201601f81018413613ab557600080fd5b8051613ac36133928261361c565b818152856020838501011115613ad857600080fd5b613ae982602083016020860161346f565b95945050505050565b60008351613b0481846020880161346f565b835190830190613b1881836020880161346f565b01949350505050565b600060208284031215613b3357600080fd5b81516114728161336f565b634e487b7160e01b600052603160045260246000fd5b60008219821115613b6757613b67613930565b500190565b600081613b7b57613b7b613930565b506000190190565b600082613b9257613b926139d5565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613bc9608083018461349b565b9695505050505050565b600060208284031215613be557600080fd5b8151611472816132d156fea264697066735822122060cdbc4cbcc21aaa418d47377bf46d5341f51f860c4dd03734363bc3be7d73db64736f6c634300080e00330000000000000000000000006dbef368ccdee6bb18554e893fb58eaa93f51e2b000000000000000000000000d5eba85c1f0557b4d22b33125295db950e94c7440000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e70000000000000000000000000000000000000000000000000000000064c134f00000000000000000000000000000000000000000000000000000000064c134f00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000004c24994b32d6785e5fc6d9101f9b2a04fb7f09a600000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000000136d6175357472617020444e4120564944454f530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044d41553500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004268747470733a2f2f6e66742d6173736574732e706978656c796e782e696f2f6e6674732f6d6175352d747261702d646e612d766964656f732f6d657461646174612f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000fcdd3d91f678b75f002873ff9e5f8ffea64505aa0000000000000000000000000000000000000000000000000000000000002710

Deployed Bytecode

0x60806040526004361061034f5760003560e01c8063775fe52f116101c6578063c47f0027116100f7578063dd22155a11610095578063e9d60f921161006f578063e9d60f921461096a578063f2fde38b14610982578063f4a0a528146109a2578063fd967f47146109c257600080fd5b8063dd22155a1461090a578063e10967fa1461092a578063e985e9c51461094a57600080fd5b8063c8b08125116100d1578063c8b08125146108a0578063cc719281146108b5578063d17bf5cc146108d5578063da1919b3146108ea57600080fd5b8063c47f002714610840578063c758f60014610860578063c87b56dd1461088057600080fd5b8063a0e389de11610164578063b88d4fde1161013e578063b88d4fde146107d8578063bc0a2657146107f8578063bed20a8714610816578063c285e1071461082b57600080fd5b8063a0e389de14610783578063a22cb46514610798578063b84c8246146107b857600080fd5b80639213bda7116101a05780639213bda71461070e57806393a671251461072e57806395d89b411461074e5780639713c8071461076357600080fd5b8063775fe52f146106bb5780638da5cb5b146106d05780638f73716b146106ee57600080fd5b806334bf3d92116102a05780636352211e1161023e57806370a082311161021857806370a0823114610651578063714c539814610671578063715018a614610686578063729ad39e1461069b57600080fd5b80636352211e146105fc5780636817c76c1461061c5780636a1c34fb1461063157600080fd5b806342842e0e1161027a57806342842e0e1461057a57806354fee61f1461059a57806355f804b3146105ba5780635ac06b03146105da57600080fd5b806334bf3d921461052557806340c10f191461054557806341f434341461055857600080fd5b8063081812fc1161030d578063105dedfc116102e7578063105dedfc1461048757806318160ddd146104a757806323b872dd146104c65780632a55205a146104e657600080fd5b8063081812fc1461040f578063095ea7b314610447578063104b6cb71461046757600080fd5b8062c236a91461035457806301ffc9a71461037e578063035240051461039e5780630548b4ac146103b65780630618a1b8146103cb57806306fdde03146103ed575b600080fd5b34801561036057600080fd5b506103696109d8565b60405190151581526020015b60405180910390f35b34801561038a57600080fd5b506103696103993660046132e7565b6109f2565b3480156103aa57600080fd5b50600754421015610369565b3480156103c257600080fd5b50610369610a72565b3480156103d757600080fd5b506103eb6103e6366004613426565b610a8c565b005b3480156103f957600080fd5b50610402610b8d565b60405161037591906134c7565b34801561041b57600080fd5b5061042f61042a3660046134da565b610c1f565b6040516001600160a01b039091168152602001610375565b34801561045357600080fd5b506103eb6104623660046134f3565b610c46565b34801561047357600080fd5b506103eb61048236600461351f565b610cd8565b34801561049357600080fd5b506103eb6104a2366004613426565b610dd1565b3480156104b357600080fd5b506014545b604051908152602001610375565b3480156104d257600080fd5b506103eb6104e13660046135b9565b610e73565b3480156104f257600080fd5b506105066105013660046135fa565b610ebf565b604080516001600160a01b039093168352602083019190915201610375565b34801561053157600080fd5b506103eb6105403660046134f3565b610f76565b6103eb6105533660046134f3565b611016565b34801561056457600080fd5b5061042f6daaeb6d7670e522a718067333cd4e81565b34801561058657600080fd5b506103eb6105953660046135b9565b611247565b3480156105a657600080fd5b506103eb6105b53660046134da565b61127c565b3480156105c657600080fd5b506103eb6105d536600461367d565b611317565b3480156105e657600080fd5b506105ef6113c9565b60405161037591906136c6565b34801561060857600080fd5b5061042f6106173660046134da565b61142a565b34801561062857600080fd5b506005546104b8565b34801561063d57600080fd5b506103eb61064c3660046134da565b611479565b34801561065d57600080fd5b506104b861066c366004613713565b611545565b34801561067d57600080fd5b5061040261158a565b34801561069257600080fd5b506103eb611599565b3480156106a757600080fd5b506103eb6106b6366004613730565b6115ad565b3480156106c757600080fd5b50601a546104b8565b3480156106dc57600080fd5b506001546001600160a01b031661042f565b3480156106fa57600080fd5b506103eb6107093660046134da565b611701565b34801561071a57600080fd5b506103eb6107293660046137b3565b6117c2565b34801561073a57600080fd5b506103eb6107493660046134da565b61186b565b34801561075a57600080fd5b50610402611950565b34801561076f57600080fd5b506103eb61077e3660046137d0565b61195f565b34801561078f57600080fd5b506007546104b8565b3480156107a457600080fd5b506103eb6107b33660046137f7565b611a78565b3480156107c457600080fd5b506103eb6107d336600461367d565b611a8d565b3480156107e457600080fd5b506103eb6107f3366004613830565b611b36565b34801561080457600080fd5b506002546001600160a01b031661042f565b34801561082257600080fd5b506103eb611b8a565b34801561083757600080fd5b506008546104b8565b34801561084c57600080fd5b506103eb61085b36600461367d565b611c28565b34801561086c57600080fd5b506103eb61087b3660046135fa565b611cd1565b34801561088c57600080fd5b5061040261089b3660046134da565b611da4565b3480156108ac57600080fd5b506013546104b8565b3480156108c157600080fd5b506104026108d03660046134f3565b611e68565b3480156108e157600080fd5b50610369611f98565b3480156108f657600080fd5b506103eb6109053660046134f3565b611fbd565b34801561091657600080fd5b506103eb61092536600461351f565b6120a0565b34801561093657600080fd5b506103eb610945366004613713565b612222565b34801561095657600080fd5b506103696109653660046138b0565b6122f0565b34801561097657600080fd5b5060095460ff16610369565b34801561098e57600080fd5b506103eb61099d366004613713565b61234e565b3480156109ae57600080fd5b506103eb6109bd3660046134da565b6123c4565b3480156109ce57600080fd5b506104b861271081565b600080601a541180156109ed5750601a544210155b905090565b60006001600160e01b0319821663152a902d60e11b1480610a2357506001600160e01b031982166380ac58cd60e01b145b80610a3e57506001600160e01b03198216635b5e139f60e01b145b80610a5957506001600160e01b031982166301ffc9a760e01b145b80610a6c57506001600160e01b03198216155b92915050565b6000610a7c6109d8565b806109ed57505060075442101590565b6002546001600160a01b0316631177570f336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610ae2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0691906138de565b610b2b5760405162461bcd60e51b8152600401610b22906138fb565b60405180910390fd5b60005b8151811015610b89576000828281518110610b4b57610b4b61391a565b6020908102919091018101518082015190516001600160a01b0316600090815260199092526040909120555080610b8181613946565b915050610b2e565b5050565b606060038054610b9c9061395f565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc89061395f565b8015610c155780601f10610bea57610100808354040283529160200191610c15565b820191906000526020600020905b815481529060010190602001808311610bf857829003601f168201915b5050505050905090565b6000610c2a8261245f565b506000908152601760205260409020546001600160a01b031690565b81610c508161248e565b6000610c5b8361142a565b9050806001600160a01b0316846001600160a01b031603610c8f5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480610cab5750610cab81336122f0565b610cc857604051630d91f31960e01b815260040160405180910390fd5b610cd28484612547565b50505050565b6002546001600160a01b0316631177570f336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610d2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5291906138de565b610d6e5760405162461bcd60e51b8152600401610b22906138fb565b60005b8151811015610b8957600060196000848481518110610d9257610d9261391a565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080610dc990613946565b915050610d71565b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610e27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4b91906138de565b610e675760405162461bcd60e51b8152600401610b2290613999565b610e70816125b5565b50565b826001600160a01b0381163314610e8d57610e8d3361248e565b610e973383612743565b610eb457604051631ed2f88160e01b815260040160405180910390fd5b610cd28484846127a2565b600082815260126020526040812054819060ff16610ef05760405163677510db60e11b815260040160405180910390fd5b600d54600c546000868152600f60205260409020546001600160a01b039091169015610f3d5750506000848152600f6020908152604080832054600e909252909120546001600160a01b03165b8115610f6457612710610f5083876139b6565b610f5a91906139eb565b9250809350610f6d565b60009250600093505b50509250929050565b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610fcc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff091906138de565b61100c5760405162461bcd60e51b8152600401610b2290613999565b610b8982826128e2565b61101e61295b565b611026610a72565b61104357604051630314872760e11b815260040160405180910390fd5b60105460ff161561106757604051632c7e18c160e11b815260040160405180910390fd5b6001600160a01b03821661108d57604051622e076360e81b815260040160405180910390fd5b600081116110ae57604051638613ef3d60e01b815260040160405180910390fd5b8060135410156110d1576040516314b3a1a360e31b815260040160405180910390fd5b806005546110df91906139b6565b34146110fe5760405163923af9d160e01b815260040160405180910390fd5b611106611f98565b15611172576001600160a01b0382166000908152601960205260409020548111156111445760405163e96f199b60e01b815260040160405180910390fd5b6001600160a01b0382166000908152601960205260408120805483929061116c9084906139ff565b90915550505b600a541561120b57601b54604051630222cf5960e01b81526001600160a01b0390911690630222cf59906111ad90600a908690600401613a16565b602060405180830381865afa1580156111ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ee91906138de565b61120b5760405163af96fc3560e01b815260040160405180910390fd5b3415611219576112196129b4565b60095460ff16156112335761122e8282612abf565b61123d565b61123d8282612b3a565b610b896001600055565b826001600160a01b0381163314611261576112613361248e565b610cd284848460405180602001604052806000815250611b36565b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156112d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f691906138de565b6113125760405162461bcd60e51b8152600401610b2290613999565b600755565b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa15801561136d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061139191906138de565b6113ad5760405162461bcd60e51b8152600401610b2290613999565b80516113c09060069060208401906131e3565b50610e70612bbb565b6060600a805480602002602001604051908101604052809291908181526020018280548015610c1557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611403575050505050905090565b60008181526012602052604081205460ff16611459576040516307ed98ed60e31b815260040160405180910390fd5b6000828152601560205260408120546001600160a01b03165b9392505050565b6002546001600160a01b0316631177570f336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156114cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114f391906138de565b61150f5760405162461bcd60e51b8152600401610b22906138fb565b6040518181527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a150565b60006001600160a01b03821661156e57604051639fabe1c160e01b815260040160405180910390fd5b506001600160a01b031660009081526016602052604090205490565b606060068054610b9c9061395f565b6115a1612c01565b6115ab6000612c5b565b565b6002546001600160a01b0316631177570f336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611603573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061162791906138de565b6116435760405162461bcd60e51b8152600401610b22906138fb565b801580611651575060135481115b1561166f5760405163221d912f60e01b815260040160405180910390fd5b60005b818110156116fc5760095460ff16156116bb576116b683838381811061169a5761169a61391a565b90506020020160208101906116af9190613713565b6001612abf565b6116ec565b6116ec8383838181106116d0576116d061391a565b90506020020160208101906116e59190613713565b6001612b3a565b6116f581613946565b9050611672565b505050565b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611757573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177b91906138de565b6117975760405162461bcd60e51b8152600401610b2290613999565b6007548111156117bd576040516001620638cf60e21b0319815260040160405180910390fd5b601a55565b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611818573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061183c91906138de565b6118585760405162461bcd60e51b8152600401610b2290613999565b6010805460ff1916911515919091179055565b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156118c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e591906138de565b6119015760405162461bcd60e51b8152600401610b2290613999565b60075442101580611910575080155b8061191c575060145415155b80611928575060145481105b1561194657604051631825caff60e21b815260040160405180910390fd5b6008819055601355565b606060048054610b9c9061395f565b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156119b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119d991906138de565b6119f55760405162461bcd60e51b8152600401610b2290613999565b6001600160a01b038216611a1c57604051632aa38f7960e11b815260040160405180910390fd5b612710811115611a3f5760405163665c1d6960e01b815260040160405180910390fd5b6000928352600e6020908152604080852080546001600160a01b0319166001600160a01b039590951694909417909355600f9052912055565b81611a828161248e565b6116fc338484612cad565b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611ae3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b0791906138de565b611b235760405162461bcd60e51b8152600401610b2290613999565b8051610b899060049060208401906131e3565b836001600160a01b0381163314611b5057611b503361248e565b611b5a3384612743565b611b7757604051631ed2f88160e01b815260040160405180910390fd5b611b8385858585612d4c565b5050505050565b6002546001600160a01b0316631177570f336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611be0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0491906138de565b611c205760405162461bcd60e51b8152600401610b22906138fb565b6115ab612bbb565b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611c7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ca291906138de565b611cbe5760405162461bcd60e51b8152600401610b2290613999565b8051610b899060039060208401906131e3565b6002546001600160a01b0316631177570f336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611d27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d4b91906138de565b611d675760405162461bcd60e51b8152600401610b22906138fb565b60408051838152602081018390527f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c910160405180910390a15050565b6060611daf8261245f565b6000306001600160a01b031663714c53986040518163ffffffff1660e01b8152600401600060405180830381865afa158015611def573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e179190810190613a7b565b90506000815111611e375760405180602001604052806000815250611472565b80611e4184612d80565b604051602001611e52929190613af2565b6040516020818303038152906040529392505050565b6060611e72610a72565b1580611e80575060105460ff165b80611e9257506001600160a01b038316155b80611e9b575081155b80611ea7575081601354105b80611ed85750611eb5611f98565b8015611ed857506001600160a01b03831660009081526019602052604090205482115b80611f545750601b54604051630222cf5960e01b81526001600160a01b0390911690630222cf5990611f1190600a908790600401613a16565b602060405180830381865afa158015611f2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f5291906138de565b155b15611f82575060408051808201909152600c81526b10d85b881b9bdd081b5a5b9d60a21b6020820152610a6c565b5060408051602081019091526000815292915050565b600080601a54118015611fad5750601a544210155b80156109ed575050600754421090565b611fc561295b565b6002546001600160a01b031663fc2922d2336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa15801561201b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061203f91906138de565b61205c57604051633a946eab60e01b815260040160405180910390fd5b6000811161207d57604051638613ef3d60e01b815260040160405180910390fd5b806013541015611219576040516314b3a1a360e31b815260040160405180910390fd5b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156120f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061211a91906138de565b6121365760405162461bcd60e51b8152600401610b2290613999565b60005b815181101561220e57601b5482516001600160a01b0390911690636290caec9084908490811061216b5761216b61391a565b60200260200101516040518263ffffffff1660e01b815260040161219e91906001600160a01b0391909116815260200190565b602060405180830381865afa1580156121bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121df91906138de565b6121fc576040516387861e1160e01b815260040160405180910390fd5b8061220681613946565b915050612139565b508051610b8990600a906020840190613267565b60025460408051634102619360e11b8152905133926001600160a01b031691638204c3269160048083019260209291908290030181865afa15801561226b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061228f9190613b21565b6001600160a01b0316146122ce5760405162461bcd60e51b8152600401610b229060208082526004908201526353415f4f60e01b604082015260600190565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60007358807bad0b376efc12f5ad86aac70e78ed67dead196001600160a01b0383160161231f57506001610a6c565b506001600160a01b03918216600090815260186020908152604080832093909416825291909152205460ff1690565b612356612c01565b6001600160a01b0381166123bb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b22565b610e7081612c5b565b6002546001600160a01b03166367499c7e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa15801561241a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061243e91906138de565b61245a5760405162461bcd60e51b8152600401610b2290613999565b600555565b60008181526012602052604090205460ff16610e70576040516307ed98ed60e31b815260040160405180910390fd5b6daaeb6d7670e522a718067333cd4e3b15610e7057604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156124fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061251f91906138de565b610e7057604051633b79c77360e21b81526001600160a01b0382166004820152602401610b22565b600081815260176020526040902080546001600160a01b0319166001600160a01b038416908117909155819061257c8261142a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b805115806125c557506004815110155b156125e35760405163173cfcf560e31b815260040160405180910390fd5b600b541561262a57600b8054806125fc576125fc613b3e565b60008281526020812060026000199093019283020180546001600160a01b03191681556001015590556125e3565b6000805b825181101561272057600083828151811061264b5761264b61391a565b602002602001015190506127108160200151111561267c57604051631e60463360e11b815260040160405180910390fd5b600b805460018101825560009190915281517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9600290920291820180546001600160a01b0319166001600160a01b0390921691909117905560208201517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dba90910181905561270a9084613b54565b925050808061271890613946565b91505061262e565b506127108114610b8957604051638e0ba91360e01b815260040160405180910390fd5b60008061274f8361142a565b9050806001600160a01b0316846001600160a01b03161480612776575061277681856122f0565b8061279a5750836001600160a01b031661278f84610c1f565b6001600160a01b0316145b949350505050565b826001600160a01b03166127b58261142a565b6001600160a01b0316146127db5760405162a1148160e81b815260040160405180910390fd5b600081815260176020908152604080832080546001600160a01b03199081169091556001600160a01b038781168086526016855283862080546000190190558782168087528487208054600101905587875260159095529483902080549092168417909155601b54915163e6ca51c960e01b815260048101949094526024840192909252169063e6ca51c990604401600060405180830381600087803b15801561288457600080fd5b505af1158015612898573d6000803e3d6000fd5b5050505080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6001600160a01b03821661290957604051632aa38f7960e11b815260040160405180910390fd5b612710811180612917575060005b156129355760405163665c1d6960e01b815260040160405180910390fd5b600c80546001600160a01b0319166001600160a01b039390931692909217909155600d55565b6002600054036129ad5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b22565b6002600055565b6000600b805480602002602001604051908101604052809291908181526020016000905b82821015612a20576000848152602090819020604080518082019091526002850290910180546001600160a01b031682526001908101548284015290835290920191016129d8565b50505050905060005b8151811015610b89576000828281518110612a4657612a4661391a565b602002602001015190506000612710826020015134612a6591906139b6565b612a6f91906139eb565b82516040519192506001600160a01b03169082156108fc029083906000818181858888f19350505050158015612aa9573d6000803e3d6000fd5b5050508080612ab790613946565b915050612a29565b60135460005b82811015612b02576000612ad98584612e13565b9050612ae58582612e98565b612aee83613b6c565b92505080612afb90613946565b9050612ac5565b5060138190556001600160a01b03831660009081526016602052604081208054849290612b30908490613b54565b9091555050505050565b6000612b4560145490565b905060005b82811015612b7b576000612b5e8284613b54565b9050612b6a8582612e98565b50612b7481613946565b9050612b4a565b508160136000828254612b8e91906139ff565b90915550506001600160a01b03831660009081526016602052604081208054849290612b30908490613b54565b7f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c6000612be760085490565b6040805192835260208301919091520160405180910390a1565b6001546001600160a01b031633146115ab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b22565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603612cdf5760405163b06307db60e01b815260040160405180910390fd5b6001600160a01b03838116600081815260186020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612d578484846127a2565b612d6384848484612f84565b610cd25760405163da3349d960e01b815260040160405180910390fd5b60606000612d8d83613086565b600101905060008167ffffffffffffffff811115612dad57612dad613304565b6040519080825280601f01601f191660200182016040528015612dd7576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612de157509392505050565b600061147282843a3083612e286001436139ff565b604080516001600160a01b039687166020820152908101949094529390911660608301526080820152904060a08201524260c08201524360e082015241610100820152610120016040516020818303038152906040528051906020012060001c612e929190613b83565b8361315e565b601460008154612ea790613946565b90915550600081815260156020908152604080832080546001600160a01b0319166001600160a01b038781169182179092556012909352818420805460ff19166001179055601b54915163e6ca51c960e01b815260048101949094526024840192909252169063e6ca51c990604401600060405180830381600087803b158015612f3057600080fd5b505af1158015612f44573d6000803e3d6000fd5b50506040518392506001600160a01b03851691506000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561307b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612fc8903390899088908890600401613b97565b6020604051808303816000875af1925050508015613003575060408051601f3d908101601f1916820190925261300091810190613bd3565b60015b613061573d808015613031576040519150601f19603f3d011682016040523d82523d6000602084013e613036565b606091505b5080516000036130595760405163da3349d960e01b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061279a565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106130c55772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106130f1576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061310f57662386f26fc10000830492506010015b6305f5e1008310613127576305f5e100830492506008015b612710831061313b57612710830492506004015b6064831061314d576064830492506002015b600a8310610a6c5760010192915050565b60008281526011602052604081205481811561317a578161317c565b845b9050600061318b6001866139ff565b6000818152601160205260409020549091508682146131c25780156131b057806131b2565b815b6000888152601160205260409020555b80156131d8576000828152601160205260408120555b509095945050505050565b8280546131ef9061395f565b90600052602060002090601f0160209004810192826132115760008555613257565b82601f1061322a57805160ff1916838001178555613257565b82800160010185558215613257579182015b8281111561325757825182559160200191906001019061323c565b506132639291506132bc565b5090565b828054828255906000526020600020908101928215613257579160200282015b8281111561325757825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190613287565b5b8082111561326357600081556001016132bd565b6001600160e01b031981168114610e7057600080fd5b6000602082840312156132f957600080fd5b8135611472816132d1565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561334357613343613304565b604052919050565b600067ffffffffffffffff82111561336557613365613304565b5060051b60200190565b6001600160a01b0381168114610e7057600080fd5b60006133976133928461334b565b61331a565b8381529050602080820190600685901b8401868111156133b657600080fd5b845b8181101561341b57604080828a0312156133d25760008081fd5b805181810181811067ffffffffffffffff821117156133f3576133f3613304565b9091528135906134028261336f565b90815281840135848201528452928201926040016133b8565b505050509392505050565b60006020828403121561343857600080fd5b813567ffffffffffffffff81111561344f57600080fd5b8201601f8101841361346057600080fd5b61279a84823560208401613384565b60005b8381101561348a578181015183820152602001613472565b83811115610cd25750506000910152565b600081518084526134b381602086016020860161346f565b601f01601f19169290920160200192915050565b602081526000611472602083018461349b565b6000602082840312156134ec57600080fd5b5035919050565b6000806040838503121561350657600080fd5b82356135118161336f565b946020939093013593505050565b6000602080838503121561353257600080fd5b823567ffffffffffffffff81111561354957600080fd5b8301601f8101851361355a57600080fd5b80356135686133928261334b565b81815260059190911b8201830190838101908783111561358757600080fd5b928401925b828410156135ae57833561359f8161336f565b8252928401929084019061358c565b979650505050505050565b6000806000606084860312156135ce57600080fd5b83356135d98161336f565b925060208401356135e98161336f565b929592945050506040919091013590565b6000806040838503121561360d57600080fd5b50508035926020909101359150565b600067ffffffffffffffff82111561363657613636613304565b50601f01601f191660200190565b60006136526133928461361c565b905082815283838301111561366657600080fd5b828260208301376000602084830101529392505050565b60006020828403121561368f57600080fd5b813567ffffffffffffffff8111156136a657600080fd5b8201601f810184136136b757600080fd5b61279a84823560208401613644565b6020808252825182820181905260009190848201906040850190845b818110156137075783516001600160a01b0316835292840192918401916001016136e2565b50909695505050505050565b60006020828403121561372557600080fd5b81356114728161336f565b6000806020838503121561374357600080fd5b823567ffffffffffffffff8082111561375b57600080fd5b818501915085601f83011261376f57600080fd5b81358181111561377e57600080fd5b8660208260051b850101111561379357600080fd5b60209290920196919550909350505050565b8015158114610e7057600080fd5b6000602082840312156137c557600080fd5b8135611472816137a5565b6000806000606084860312156137e557600080fd5b8335925060208401356135e98161336f565b6000806040838503121561380a57600080fd5b82356138158161336f565b91506020830135613825816137a5565b809150509250929050565b6000806000806080858703121561384657600080fd5b84356138518161336f565b935060208501356138618161336f565b925060408501359150606085013567ffffffffffffffff81111561388457600080fd5b8501601f8101871361389557600080fd5b6138a487823560208401613644565b91505092959194509250565b600080604083850312156138c357600080fd5b82356138ce8161336f565b915060208301356138258161336f565b6000602082840312156138f057600080fd5b8151611472816137a5565b6020808252600590820152644149525f4f60d81b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161395857613958613930565b5060010190565b600181811c9082168061397357607f821691505b60208210810361399357634e487b7160e01b600052602260045260246000fd5b50919050565b602080825260039082015262415f4f60e81b604082015260600190565b60008160001904831182151516156139d0576139d0613930565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826139fa576139fa6139d5565b500490565b600082821015613a1157613a11613930565b500390565b6000604082016040835280855480835260608501915086600052602092508260002060005b82811015613a605781546001600160a01b031684529284019260019182019101613a3b565b5050506001600160a01b039490941692019190915250919050565b600060208284031215613a8d57600080fd5b815167ffffffffffffffff811115613aa457600080fd5b8201601f81018413613ab557600080fd5b8051613ac36133928261361c565b818152856020838501011115613ad857600080fd5b613ae982602083016020860161346f565b95945050505050565b60008351613b0481846020880161346f565b835190830190613b1881836020880161346f565b01949350505050565b600060208284031215613b3357600080fd5b81516114728161336f565b634e487b7160e01b600052603160045260246000fd5b60008219821115613b6757613b67613930565b500190565b600081613b7b57613b7b613930565b506000190190565b600082613b9257613b926139d5565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613bc9608083018461349b565b9695505050505050565b600060208284031215613be557600080fd5b8151611472816132d156fea264697066735822122060cdbc4cbcc21aaa418d47377bf46d5341f51f860c4dd03734363bc3be7d73db64736f6c634300080e0033

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

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