ETH Price: $3,700.74 (+3.89%)

Token

Monster Satoshibles (MSBLS)
 

Overview

Max Total Supply

2,299 MSBLS

Holders

456

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
abhij.eth
Balance
5 MSBLS
0xd19790bf3498be7219629c02bcf6dd41f42efc7d
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

6666 algorithmically generated crypto collectible NFTs that have been generated using 189 hand-illustrated attributes, spread over 12 traits. Users can collect the parts of monsters to create Prime Monsters. There are also 666 Prime Monsters available.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MonsterSatoshible

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 6666 runs

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

pragma solidity ^0.8.9;

/**
 *      __  __                 _
 *     |  \/  | ___  _ __  ___| |_ ___ _ __
 *     | |\/| |/ _ \| '_ \/ __| __/ _ \ '__|
 *     | |  | | (_) | | | \__ \ ||  __/ |
 *     |_|__|_|\___/|_| |_|___/\__\___|_|_     _
 *     / ___|  __ _| |_ ___  ___| |__ (_) |__ | | ___  ___
 *     \___ \ / _` | __/ _ \/ __| '_ \| | '_ \| |/ _ \/ __|
 *      ___) | (_| | || (_) \__ \ | | | | |_) | |  __/\__ \
 *     |____/ \__,_|\__\___/|___/_| |_|_|_.__/|_|\___||___/
 *
 */

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

import "./ERC2981ContractWideRoyalties.sol";
import "./MerkleProof.sol";

/**
 * @notice Original Satoshibles contract interface
 */
interface ISatoshible {
    function ownerOf(
        uint256 _tokenId
    )
        external
        view
        returns (address owner);
}

/**
 * @title Monster Satoshibles
 * @notice NFT of monsters that can be burned and combined into prime monsters!
 * @author Aaron Hanson
 */
contract MonsterSatoshible is ERC721, ERC2981ContractWideRoyalties, Ownable {

    /// The max token supply
    uint256 public constant MAX_SUPPLY = 6666;

    /// The presale portion of the max supply
    uint256 public constant MAX_PRESALE_SUPPLY = 3333;

    /// Mysterious constants 💀
    uint256 constant DEATH = 0xDEAD;
    uint256 constant LIFE = 0x024350AC;
    uint256 constant ALPHA = LIFE % DEATH * 1000;
    uint256 constant OMEGA = LIFE % DEATH + ALPHA;

    /// Prime types
    uint256 constant FRANKENSTEIN = 0;
    uint256 constant WEREWOLF = 1;
    uint256 constant VAMPIRE = 2;
    uint256 constant ZOMBIE = 3;
    uint256 constant INVALID = 4;

    /// Number of prime parts
    uint256 constant NUM_PARTS = 4;

    /// Bitfield mask for prime part detection during prime minting
    uint256 constant HAS_ALL_PARTS = 2 ** NUM_PARTS - 1;

    /// Merkle root summarizing the presale whitelist
    bytes32 public constant WHITELIST_MERKLE_ROOT =
        0xdb6eea27a6a35a02d1928e9582f75c1e0a518ad5992b5cfee9cc0d86fb387b8d;

    /// Additional team wallets (can withdraw)
    address public constant TEAM_WALLET_A =
        0xF746362D8162Eeb3624c17654FFAa6EB8bD71820;
    address public constant TEAM_WALLET_B =
        0x16659F9D2ab9565B0c07199687DE3634c0965391;
    address public constant TEAM_WALLET_C =
        0x7a73f770873761054ab7757E909ae48f771379D4;
    address public constant TEAM_WALLET_D =
        0xB7c7e3809591F720f3a75Fb3efa05E76E6B7B92A;

    /// The maximum ERC-2981 royalties percentage
    uint256 public constant MAX_ROYALTIES_PCT = 600;

    /// Original Satoshibles contract instance
    ISatoshible public immutable SATOSHIBLE_CONTRACT;

    /// The max presale token ID
    uint256 public immutable MAX_PRESALE_TOKEN_ID;

    /// The current token supply
    uint256 public totalSupply;

    /// The current state of the sale
    bool public saleIsActive;

    /// Indicates if the public sale was opened manually
    bool public publicSaleOpenedEarly;

    /// The default and discount token prices in wei
    uint256 public tokenPrice    = 99900000000000000; // 0.0999 ether
    uint256 public discountPrice = 66600000000000000; // 0.0666 ether

    /// Tracks number of presale mints already used per address
    mapping(address => uint256) public whitelistMintsUsed;

    /// The current state of the laboratory
    bool public laboratoryHasElectricity;

    /// Merkle root summarizing all monster IDs and their prime parts
    bytes32 public primePartsMerkleRoot;

    /// The provenance URI
    string public provenanceURI = "Not Yet Set";

    /// When true, the provenanceURI can no longer be changed
    bool public provenanceUriLocked;

    /// The base URI
    string public baseURI = "https://api.satoshibles.com/monsters/token/";

    /// When true, the baseURI can no longer be changed
    bool public baseUriLocked;

    /// Use Counters for token IDs
    using Counters for Counters.Counter;

    /// Monster token ID counter
    Counters.Counter monsterIds;

    /// Prime token ID counter for each prime type
    mapping(uint256 => Counters.Counter) primeIds;

    /// Prime ID offsets for each prime type
    mapping(uint256 => uint256) primeIdOffset;

    /// Bitfields that track original Satoshibles already used for discounts
    mapping(uint256 => uint256) satDiscountBitfields;

    /// Bitfields that track original Satoshibles already used in lab
    mapping(uint256 => uint256) satLabBitfields;

    /**
     * @notice Emitted when the saleIsActive flag changes
     * @param isActive Indicates whether or not the sale is now active
     */
    event SaleStateChanged(
        bool indexed isActive
    );

    /**
     * @notice Emitted when the public sale is opened early
     */
    event PublicSaleOpenedEarly();

    /**
     * @notice Emitted when the laboratoryHasElectricity flag changes
     * @param hasElectricity Indicates whether or not the laboratory is open
     */
    event LaboratoryStateChanged(
        bool indexed hasElectricity
    );

    /**
     * @notice Emitted when a prime is created in the lab
     * @param creator The account that created the prime
     * @param primeId The ID of the prime created
     * @param satId The Satoshible used as the 'key' to the lab
     * @param monsterIdsBurned The IDs of the monsters burned
     */
    event PrimeCreated(
        address indexed creator,
        uint256 indexed primeId,
        uint256 indexed satId,
        uint256[4] monsterIdsBurned
    );

    /**
     * @notice Requires the specified Satoshible to be owned by msg.sender
     * @param _satId Original Satoshible token ID
     */
    modifier onlySatHolder(
        uint256 _satId
    ) {
        require(
            SATOSHIBLE_CONTRACT.ownerOf(_satId) == _msgSender(),
            "Sat not owned"
        );
        _;
    }

    /**
     * @notice Requires msg.sender to be the owner or a team wallet
     */
    modifier onlyTeam() {
        require(
            _msgSender() == TEAM_WALLET_A
                || _msgSender() == TEAM_WALLET_B
                || _msgSender() == TEAM_WALLET_C
                || _msgSender() == TEAM_WALLET_D
                || _msgSender() == owner(),
            "Not owner or team address"
        );
        _;
    }

    /**
     * @notice Boom... Let's go!
     * @param _initialBatchCount Number of tokens to mint to msg.sender
     * @param _immutableSatoshible Original Satoshible contract address
     * @param _royaltiesPercentage Initial royalties percentage for ERC-2981
     */
    constructor(
        uint256 _initialBatchCount,
        address _immutableSatoshible,
        uint256 _royaltiesPercentage
    )
        ERC721("Monster Satoshibles", "MSBLS")
    {
        SATOSHIBLE_CONTRACT = ISatoshible(
            _immutableSatoshible
        );

        require(
            _royaltiesPercentage <= MAX_ROYALTIES_PCT,
            "Royalties too high"
        );

        _setRoyalties(
            _msgSender(),
            _royaltiesPercentage
        );

        _initializePrimeIdOffsets();
        _initializeSatDiscountAvailability();
        _initializeSatLabAvailability();
        _mintTokens(_initialBatchCount);

        require(
            belowMaximum(_initialBatchCount, MAX_PRESALE_SUPPLY,
                MAX_SUPPLY
            ) == true,
            "Would exceed max supply"
        );

        unchecked {
            MAX_PRESALE_TOKEN_ID = _initialBatchCount + MAX_PRESALE_SUPPLY;
        }
    }

    /**
     * @notice Mints monster tokens during presale, optionally with discounts
     * @param _numberOfTokens Number of tokens to mint
     * @param _satsForDiscount Array of Satoshible IDs for discounted mints
     * @param _whitelistedTokens Account's total number of whitelisted tokens
     * @param _proof Merkle proof to be verified
     */
    function mintTokensPresale(
        uint256 _numberOfTokens,
        uint256[] calldata _satsForDiscount,
        uint256 _whitelistedTokens,
        bytes32[] calldata _proof
    )
        external
        payable
    {
        require(
            publicSaleOpenedEarly == false,
            "Presale has ended"
        );

        require(
            belowMaximum(monsterIds.current(), _numberOfTokens,
                MAX_PRESALE_TOKEN_ID
            ) == true,
            "Would exceed presale size"
        );

        require(
            belowMaximum(whitelistMintsUsed[_msgSender()], _numberOfTokens,
                _whitelistedTokens
            ) == true,
            "Would exceed whitelisted count"
        );

        require(
            verifyWhitelisted(_msgSender(), _whitelistedTokens,
                _proof
            ) == true,
            "Invalid whitelist proof"
        );

        whitelistMintsUsed[_msgSender()] += _numberOfTokens;

        _doMintTokens(
            _numberOfTokens,
            _satsForDiscount
        );
    }

    /**
     * @notice Mints monsters during public sale, optionally with discounts
     * @param _numberOfTokens Number of monster tokens to mint
     * @param _satsForDiscount Array of Satoshible IDs for discounted mints
     */
    function mintTokensPublicSale(
        uint256 _numberOfTokens,
        uint256[] calldata _satsForDiscount
    )
        external
        payable
    {
        require(
            publicSaleOpened() == true,
            "Public sale has not started"
        );

        require(
            belowMaximum(monsterIds.current(), _numberOfTokens,
                MAX_SUPPLY
            ) == true,
            "Not enough tokens left"
        );

        _doMintTokens(
            _numberOfTokens,
            _satsForDiscount
        );
    }

    /**
     * @notice Mints a prime token by burning two or more monster tokens
     * @param _primeType Prime type to mint
     * @param _satId Original Satoshible token ID to use as 'key' to the lab
     * @param _monsterIds Array of monster token IDs to potentially be burned
     * @param _monsterPrimeParts Array of bitfields of monsters' prime parts
     * @param _proofs Array of merkle proofs to be verified
     */
    function mintPrimeToken(
        uint256 _primeType,
        uint256 _satId,
        uint256[] calldata _monsterIds,
        uint256[] calldata _monsterPrimeParts,
        bytes32[][] calldata _proofs
    )
        external
        onlySatHolder(_satId)
    {
        require(
            laboratoryHasElectricity == true,
            "Prime laboratory not yet open"
        );

        require(
            _primeType < INVALID,
            "Invalid prime type"
        );

        require(
            belowMaximum(
                primeIdOffset[_primeType],
                primeIds[_primeType].current() + 1,
                primeIdOffset[_primeType + 1]
            ) == true,
            "No more primes left of this type"
        );

        require(
            satIsAvailableForLab(_satId) == true,
            "Sat has already been used in lab"
        );

        // bitfield tracking aggregate parts across monsters
        // (head = 1, eyes = 2, mouth = 4, body = 8)
        uint256 combinedParts;

        uint256[4] memory burnedIds;

        unchecked {
            uint256 burnedIndex;
            for (uint256 i = 0; i < _monsterIds.length; i++) {
                require(
                    verifyMonsterPrimeParts(
                        _monsterIds[i],
                        _monsterPrimeParts[i],
                        _proofs[i]
                    ) == true,
                    "Invalid monster traits proof"
                );

                uint256 theseParts = _monsterPrimeParts[i]
                    >> (_primeType * NUM_PARTS) & HAS_ALL_PARTS;

                if (combinedParts | theseParts != combinedParts) {
                    _burn(
                        _monsterIds[i]
                    );
                    burnedIds[burnedIndex++] = _monsterIds[i];
                    combinedParts |= theseParts;
                    if (combinedParts == HAS_ALL_PARTS) {
                        break;
                    }
                }
            }
        }

        require(
            combinedParts == HAS_ALL_PARTS,
            "Not enough parts for this prime"
        );

        _retireSatFromLab(_satId);
        primeIds[_primeType].increment();

        unchecked {
            uint256 primeId = primeIdOffset[_primeType]
                + primeIds[_primeType].current();

            totalSupply++;

            _safeMint(
                _msgSender(),
                primeId
            );

            emit PrimeCreated(
                _msgSender(),
                primeId,
                _satId,
                burnedIds
            );
        }
    }

    /**
     * @notice Activates or deactivates the sale
     * @param _isActive Whether to activate or deactivate the sale
     */
    function activateSale(
        bool _isActive
    )
        external
        onlyOwner
    {
        saleIsActive = _isActive;

        emit SaleStateChanged(
            _isActive
        );
    }

    /**
     * @notice Starts the public sale before MAX_PRESALE_TOKEN_ID is minted
     */
    function openPublicSaleEarly()
        external
        onlyOwner
    {
        publicSaleOpenedEarly = true;

        emit PublicSaleOpenedEarly();
    }

    /**
     * @notice Modifies the prices in case of major ETH price changes
     * @param _tokenPrice The new default token price
     * @param _discountPrice The new discount token price
     */
    function updateTokenPrices(
        uint256 _tokenPrice,
        uint256 _discountPrice
    )
        external
        onlyOwner
    {
        require(
            _tokenPrice >= _discountPrice,
            "discountPrice cannot be larger"
        );

        require(
            saleIsActive == false,
            "Sale is active"
        );

        tokenPrice = _tokenPrice;
        discountPrice = _discountPrice;
    }

    /**
     * @notice Sets primePartsMerkleRoot summarizing all monster prime parts
     * @param _merkleRoot The new merkle root
     */
    function setPrimePartsMerkleRoot(
        bytes32 _merkleRoot
    )
        external
        onlyOwner
    {
        primePartsMerkleRoot = _merkleRoot;
    }

    /**
     * @notice Turns the laboratory on or off
     * @param _hasElectricity Whether to turn the laboratory on or off
     */
    function electrifyLaboratory(
        bool _hasElectricity
    )
        external
        onlyOwner
    {
        laboratoryHasElectricity = _hasElectricity;

        emit LaboratoryStateChanged(
            _hasElectricity
        );
    }

    /**
     * @notice Mints the final prime token
     */
    function mintFinalPrime()
        external
        onlyOwner
    {
        require(
            _exists(OMEGA) == false,
            "Final prime already exists"
        );

        unchecked {
            totalSupply++;
        }

        _safeMint(
            _msgSender(),
            OMEGA
        );
    }

    /**
     * @notice Sets the provenance URI
     * @param _newProvenanceURI The new provenance URI
     */
    function setProvenanceURI(
        string calldata _newProvenanceURI
    )
        external
        onlyOwner
    {
        require(
            provenanceUriLocked == false,
            "Provenance URI has been locked"
        );

        provenanceURI = _newProvenanceURI;
    }

    /**
     * @notice Prevents further changes to the provenance URI
     */
    function lockProvenanceURI()
        external
        onlyOwner
    {
        provenanceUriLocked = true;
    }

    /**
     * @notice Sets a new base URI
     * @param _newBaseURI The new base URI
     */
    function setBaseURI(
        string calldata _newBaseURI
    )
        external
        onlyOwner
    {
        require(
            baseUriLocked == false,
            "Base URI has been locked"
        );

        baseURI = _newBaseURI;
    }

    /**
     * @notice Prevents further changes to the base URI
     */
    function lockBaseURI()
        external
        onlyOwner
    {
        baseUriLocked = true;
    }

    /**
     * @notice Withdraws sale proceeds
     * @param _amount Amount to withdraw in wei
     */
    function withdraw(
        uint256 _amount
    )
        external
        onlyTeam
    {
        payable(_msgSender()).transfer(
            _amount
        );
    }

    /**
     * @notice Withdraws any other tokens
     * @dev WARNING: Double check token is legit before calling this
     * @param _token Contract address of token
     * @param _to Address to which to withdraw
     * @param _amount Amount to withdraw
     * @param _hasVerifiedToken Must be true (sanity check)
     */
    function withdrawOther(
        address _token,
        address _to,
        uint256 _amount,
        bool _hasVerifiedToken
    )
        external
        onlyOwner
    {
        require(
            _hasVerifiedToken == true,
            "Need to verify token"
        );

        IERC20(_token).transfer(
            _to,
            _amount
        );
    }

    /**
     * @notice Sets token royalties (ERC-2981)
     * @param _recipient Recipient of the royalties
     * @param _value Royalty percentage (using 2 decimals - 10000 = 100, 0 = 0)
     */
    function setRoyalties(
        address _recipient,
        uint256 _value
    )
        external
        onlyOwner
    {
        require(
            _value <= MAX_ROYALTIES_PCT,
            "Royalties too high"
        );

        _setRoyalties(
            _recipient,
            _value
        );
    }

    /**
     * @notice Checks which Satoshibles can still be used for a discounted mint
     * @dev Uses bitwise operators to find the bit representing each Satoshible
     * @param _satIds Array of original Satoshible token IDs
     * @return Token ID for each of the available _satIds, zero otherwise
     */
    function satsAvailableForDiscountMint(
        uint256[] calldata _satIds
    )
        external
        view
        returns (uint256[] memory)
    {
        uint256[] memory satsAvailable = new uint256[](_satIds.length);

        unchecked {
            for (uint256 i = 0; i < _satIds.length; i++) {
                if (satIsAvailableForDiscountMint(_satIds[i])) {
                    satsAvailable[i] = _satIds[i];
                }
            }
        }

        return satsAvailable;
    }

    /**
     * @notice Checks which Satoshibles can still be used to mint a prime
     * @dev Uses bitwise operators to find the bit representing each Satoshible
     * @param _satIds Array of original Satoshible token IDs
     * @return Token ID for each of the available _satIds, zero otherwise
     */
    function satsAvailableForLab(
        uint256[] calldata _satIds
    )
        external
        view
        returns (uint256[] memory)
    {
        uint256[] memory satsAvailable = new uint256[](_satIds.length);

        unchecked {
            for (uint256 i = 0; i < _satIds.length; i++) {
                if (satIsAvailableForLab(_satIds[i])) {
                    satsAvailable[i] = _satIds[i];
                }
            }
        }

        return satsAvailable;
    }

    /**
     * @notice Checks if a Satoshible can still be used for a discounted mint
     * @dev Uses bitwise operators to find the bit representing the Satoshible
     * @param _satId Original Satoshible token ID
     * @return isAvailable True if _satId can be used for a discounted mint
     */
    function satIsAvailableForDiscountMint(
        uint256 _satId
    )
        public
        view
        returns (bool isAvailable)
    {
        unchecked {
            uint256 page = _satId / 256;
            uint256 shift = _satId % 256;
            isAvailable = satDiscountBitfields[page] >> shift & 1 == 1;
        }
    }

    /**
     * @notice Checks if a Satoshible can still be used to mint a prime
     * @dev Uses bitwise operators to find the bit representing the Satoshible
     * @param _satId Original Satoshible token ID
     * @return isAvailable True if _satId can still be used to mint a prime
     */
    function satIsAvailableForLab(
        uint256 _satId
    )
        public
        view
        returns (bool isAvailable)
    {
        unchecked {
            uint256 page = _satId / 256;
            uint256 shift = _satId % 256;
            isAvailable = satLabBitfields[page] >> shift & 1 == 1;
        }
    }

    /**
     * @notice Verifies a merkle proof for a monster ID and its prime parts
     * @param _monsterId Monster token ID
     * @param _monsterPrimeParts Bitfield of the monster's prime parts
     * @param _proof Merkle proof be verified
     * @return isVerified True if the merkle proof is verified
     */
    function verifyMonsterPrimeParts(
        uint256 _monsterId,
        uint256 _monsterPrimeParts,
        bytes32[] calldata _proof
    )
        public
        view
        returns (bool isVerified)
    {
        bytes32 node = keccak256(
            abi.encodePacked(
                _monsterId,
                _monsterPrimeParts
            )
        );

        isVerified = MerkleProof.verify(
            _proof,
            primePartsMerkleRoot,
            node
        );
    }

    /**
     * @notice Gets total count of existing prime tokens for a prime type
     * @param _primeType Prime type
     * @return supply Count of existing prime tokens for this prime type
     */
    function primeSupply(
        uint256 _primeType
    )
        public
        view
        returns (uint256 supply)
    {
        supply = primeIds[_primeType].current();
    }

    /**
     * @notice Gets total count of existing prime tokens
     * @return supply Count of existing prime tokens
     */
    function totalPrimeSupply()
        public
        view
        returns (uint256 supply)
    {
        unchecked {
            supply = primeSupply(FRANKENSTEIN)
                + primeSupply(WEREWOLF)
                + primeSupply(VAMPIRE)
                + primeSupply(ZOMBIE)
                + (_exists(OMEGA) ? 1 : 0);
        }
    }

    /**
     * @notice Gets total count of monsters burned
     * @return burned Count of monsters burned
     */
    function monstersBurned()
        public
        view
        returns (uint256 burned)
    {
        unchecked {
            burned = monsterIds.current() + totalPrimeSupply() - totalSupply;
        }
    }

    /**
     * @notice Gets state of public sale
     * @return publicSaleIsOpen True if public sale phase has begun
     */
    function publicSaleOpened()
        public
        view
        returns (bool publicSaleIsOpen)
    {
        publicSaleIsOpen =
            publicSaleOpenedEarly == true ||
            monsterIds.current() >= MAX_PRESALE_TOKEN_ID;
    }

    /// @inheritdoc	ERC165
    function supportsInterface(
        bytes4 _interfaceId
    )
        public
        view
        override (ERC721, ERC2981Base)
        returns (bool doesSupportInterface)
    {
        doesSupportInterface = super.supportsInterface(_interfaceId);
    }

    /**
     * @notice Verifies a merkle proof for an account's whitelisted tokens
     * @param _account Account to verify
     * @param _whitelistedTokens Number of whitelisted tokens for _account
     * @param _proof Merkle proof to be verified
     * @return isVerified True if the merkle proof is verified
     */
    function verifyWhitelisted(
        address _account,
        uint256 _whitelistedTokens,
        bytes32[] calldata _proof
    )
        public
        pure
        returns (bool isVerified)
    {
        bytes32 node = keccak256(
            abi.encodePacked(
                _account,
                _whitelistedTokens
            )
        );

        isVerified = MerkleProof.verify(
            _proof,
            WHITELIST_MERKLE_ROOT,
            node
        );
    }

    /**
     * @dev Base monster burning function
     * @param _tokenId Monster token ID to burn
     */
    function _burn(
        uint256 _tokenId
    )
        internal
        override
    {
        require(
            _isApprovedOrOwner(_msgSender(), _tokenId) == true,
            "not owner nor approved"
        );

        unchecked {
            totalSupply -= 1;
        }

        super._burn(
            _tokenId
        );
    }

    /**
     * @dev Base URI for computing tokenURI
     * @return Base URI string
     */
    function _baseURI()
        internal
        view
        override
        returns (string memory)
    {
        return baseURI;
    }

    /**
     * @dev Base monster minting function, calculates price with discounts
     * @param _numberOfTokens Number of monster tokens to mint
     * @param _satsForDiscount Array of Satoshible IDs for discounted mints
     */
    function _doMintTokens(
        uint256 _numberOfTokens,
        uint256[] calldata _satsForDiscount
    )
        private
    {
        require(
            saleIsActive == true,
            "Sale must be active"
        );

        require(
            _numberOfTokens >= 1,
            "Need at least 1 token"
        );

        require(
            _numberOfTokens <= 50,
            "Max 50 at a time"
        );

        require(
            _satsForDiscount.length <= _numberOfTokens,
            "Too many sats for discount"
        );

        unchecked {
            uint256 discountIndex;

            for (; discountIndex < _satsForDiscount.length; discountIndex++) {
                _useSatForDiscountMint(_satsForDiscount[discountIndex]);
            }

            uint256 totalPrice = tokenPrice * (_numberOfTokens - discountIndex)
                + discountPrice * discountIndex;

            require(
                totalPrice == msg.value,
                "Ether amount not correct"
            );
        }

        _mintTokens(
            _numberOfTokens
        );
    }

    /**
     * @dev Base monster minting function.
     * @param _numberOfTokens Number of monster tokens to mint
     */
    function _mintTokens(
        uint256 _numberOfTokens
    )
        private
    {
        unchecked {
            totalSupply += _numberOfTokens;

            for (uint256 i = 0; i < _numberOfTokens; i++) {
                monsterIds.increment();
                _safeMint(
                    _msgSender(),
                    monsterIds.current()
                );
            }
        }
    }

    /**
     * @dev Marks a Satoshible ID as having been used for a discounted mint
     * @param _satId Satoshible ID that was used for a discounted mint
     */
    function _useSatForDiscountMint(
        uint256 _satId
    )
        private
        onlySatHolder(_satId)
    {
        require(
            satIsAvailableForDiscountMint(_satId) == true,
            "Sat for discount already used"
        );

        unchecked {
            uint256 page = _satId / 256;
            uint256 shift = _satId % 256;
            satDiscountBitfields[page] &= ~(1 << shift);
        }
    }

    /**
     * @dev Marks a Satoshible ID as having been used to mint a prime
     * @param _satId Satoshible ID that was used to mint a prime
     */
    function _retireSatFromLab(
        uint256 _satId
    )
        private
    {
        unchecked {
            uint256 page = _satId / 256;
            uint256 shift = _satId % 256;
            satLabBitfields[page] &= ~(1 << shift);
        }
    }

    /**
     * @dev Initializes prime token ID offsets
     */
    function _initializePrimeIdOffsets()
        private
    {
        unchecked {
            primeIdOffset[FRANKENSTEIN] = ALPHA;
            primeIdOffset[WEREWOLF] = ALPHA + 166;
            primeIdOffset[VAMPIRE] = ALPHA + 332;
            primeIdOffset[ZOMBIE] = ALPHA + 498;
            primeIdOffset[INVALID] = ALPHA + 665;
        }
    }

    /**
     * @dev Initializes bitfields of Satoshibles available for discounted mints
     */
    function _initializeSatDiscountAvailability()
        private
    {
        unchecked {
            for (uint256 i = 0; i < 20; i++) {
                satDiscountBitfields[i] = type(uint256).max;
            }
        }
    }

    /**
     * @dev Initializes bitfields of Satoshibles available to mint primes
     */
    function _initializeSatLabAvailability()
        private
    {
        unchecked {
            for (uint256 i = 0; i < 20; i++) {
                satLabBitfields[i] = type(uint256).max;
            }
        }
    }

    /**
     * @dev Helper function used for token ID range checks when minting
     * @param _currentValue Current token ID counter value
     * @param _incrementValue Number of tokens to increment by
     * @param _maximumValue Maximum token ID value allowed
     * @return isBelowMaximum True if _maximumValue is not exceeded
     */
    function belowMaximum(
        uint256 _currentValue,
        uint256 _incrementValue,
        uint256 _maximumValue
    )
        private
        pure
        returns (bool isBelowMaximum)
    {
        unchecked {
            isBelowMaximum = _currentValue + _incrementValue <= _maximumValue;
        }
    }
}

File 2 of 17 : MerkleProof.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

library MerkleProof {
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    )
        internal
        pure
        returns (bool)
    {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        return computedHash == root;
    }
}

File 3 of 17 : IERC2981Royalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

/// @title IERC2981Royalties
/// @dev Interface for the ERC2981 - Token Royalty standard
interface IERC2981Royalties {
	/// @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 _value - 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 value sale price
	function royaltyInfo(uint256 _tokenId, uint256 _value)
		external
		view
		returns (address _receiver, uint256 _royaltyAmount);
}

File 4 of 17 : ERC2981ContractWideRoyalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

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

import "./ERC2981Base.sol";

/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
/// @dev This implementation has the same royalties for each and every tokens
abstract contract ERC2981ContractWideRoyalties is ERC2981Base {
	RoyaltyInfo private _royalties;

	/// @dev Sets token royalties
	/// @param _recipient recipient of the royalties
	/// @param _value percentage (using 2 decimals - 10000 = 100, 0 = 0)
	function _setRoyalties(
		address _recipient,
		uint256 _value
	)
		internal
	{
		require(_value <= 10000, "ERC2981Royalties: Too high");
		_royalties = RoyaltyInfo(_recipient, uint24(_value));
	}

	/// @inheritdoc	IERC2981Royalties
	function royaltyInfo(
		uint256,
		uint256 _value
	)
		external
		view
		override
		returns (address receiver, uint256 royaltyAmount)
	{
		RoyaltyInfo memory royalties = _royalties;
		receiver = royalties.recipient;
		royaltyAmount = (_value * royalties.amount) / 10000;
	}
}

File 5 of 17 : ERC2981Base.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "./IERC2981Royalties.sol";

/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
abstract contract ERC2981Base is ERC165, IERC2981Royalties {
	struct RoyaltyInfo {
		address recipient;
		uint24 amount;
	}

	/// @inheritdoc	ERC165
	function supportsInterface(bytes4 interfaceId)
		public
		view
		virtual
		override
		returns (bool)
	{
		return
			interfaceId == type(IERC2981Royalties).interfaceId ||
			super.supportsInterface(interfaceId);
	}
}

File 6 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 8 of 17 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 9 of 17 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 10 of 17 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 17 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 14 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

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

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

        _balances[to] += 1;
        _owners[tokenId] = to;

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

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

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

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

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

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 16 of 17 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 6666
  },
  "evmVersion": "london",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_initialBatchCount","type":"uint256"},{"internalType":"address","name":"_immutableSatoshible","type":"address"},{"internalType":"uint256","name":"_royaltiesPercentage","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"hasElectricity","type":"bool"}],"name":"LaboratoryStateChanged","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":"creator","type":"address"},{"indexed":true,"internalType":"uint256","name":"primeId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"satId","type":"uint256"},{"indexed":false,"internalType":"uint256[4]","name":"monsterIdsBurned","type":"uint256[4]"}],"name":"PrimeCreated","type":"event"},{"anonymous":false,"inputs":[],"name":"PublicSaleOpenedEarly","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"isActive","type":"bool"}],"name":"SaleStateChanged","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_PRESALE_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PRESALE_TOKEN_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ROYALTIES_PCT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SATOSHIBLE_CONTRACT","outputs":[{"internalType":"contract ISatoshible","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM_WALLET_A","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM_WALLET_B","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM_WALLET_C","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM_WALLET_D","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_MERKLE_ROOT","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"activateSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUriLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"discountPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_hasElectricity","type":"bool"}],"name":"electrifyLaboratory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"laboratoryHasElectricity","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockProvenanceURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintFinalPrime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_primeType","type":"uint256"},{"internalType":"uint256","name":"_satId","type":"uint256"},{"internalType":"uint256[]","name":"_monsterIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_monsterPrimeParts","type":"uint256[]"},{"internalType":"bytes32[][]","name":"_proofs","type":"bytes32[][]"}],"name":"mintPrimeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numberOfTokens","type":"uint256"},{"internalType":"uint256[]","name":"_satsForDiscount","type":"uint256[]"},{"internalType":"uint256","name":"_whitelistedTokens","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"mintTokensPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numberOfTokens","type":"uint256"},{"internalType":"uint256[]","name":"_satsForDiscount","type":"uint256[]"}],"name":"mintTokensPublicSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"monstersBurned","outputs":[{"internalType":"uint256","name":"burned","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openPublicSaleEarly","outputs":[],"stateMutability":"nonpayable","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":"primePartsMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_primeType","type":"uint256"}],"name":"primeSupply","outputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceUriLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleOpened","outputs":[{"internalType":"bool","name":"publicSaleIsOpen","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleOpenedEarly","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_value","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":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_satId","type":"uint256"}],"name":"satIsAvailableForDiscountMint","outputs":[{"internalType":"bool","name":"isAvailable","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_satId","type":"uint256"}],"name":"satIsAvailableForLab","outputs":[{"internalType":"bool","name":"isAvailable","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_satIds","type":"uint256[]"}],"name":"satsAvailableForDiscountMint","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_satIds","type":"uint256[]"}],"name":"satsAvailableForLab","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","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":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setPrimePartsMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newProvenanceURI","type":"string"}],"name":"setProvenanceURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"doesSupportInterface","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"totalPrimeSupply","outputs":[{"internalType":"uint256","name":"supply","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"},{"inputs":[{"internalType":"uint256","name":"_tokenPrice","type":"uint256"},{"internalType":"uint256","name":"_discountPrice","type":"uint256"}],"name":"updateTokenPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_monsterId","type":"uint256"},{"internalType":"uint256","name":"_monsterPrimeParts","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"verifyMonsterPrimeParts","outputs":[{"internalType":"bool","name":"isVerified","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_whitelistedTokens","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"verifyWhitelisted","outputs":[{"internalType":"bool","name":"isVerified","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistMintsUsed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_hasVerifiedToken","type":"bool"}],"name":"withdrawOther","outputs":[],"stateMutability":"nonpayable","type":"function"}]

670162ea854d0fc000600a5566ec9c58de0a8000600b90815561010060405260c08190526a139bdd0816595d0814d95d60aa1b60e09081526200004691600f9190620007fb565b506040518060600160405280602b8152602001620051d6602b913980516200007791601191602090910190620007fb565b503480156200008557600080fd5b506040516200520138038062005201833981016040819052620000a891620008a1565b604080518082018252601381527f4d6f6e73746572205361746f736869626c6573000000000000000000000000006020808301918252835180850190945260058452644d53424c5360d81b9084015281519192916200010a91600091620007fb565b50805162000120906001906020840190620007fb565b5050506200013d62000137620002fa60201b60201c565b620002fe565b6001600160a01b038216608052610258811115620001975760405162461bcd60e51b81526020600482015260126024820152710a4def2c2d8e8d2cae640e8dede40d0d2ced60731b60448201526064015b60405180910390fd5b620001a3338262000350565b620002716015602052620a29907fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aed55620a2a367f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818d55620a2adc7f07d4ff730d9753101d832555708a37d38c2c45fce8cacaefc99f06074e93fe0b55620a2b827fb3a65e8276bd33b3e4f7d6081ebd9899187264822358758dca2e2bc37b2a9c27556004600052620a2c297f8191f4eb6b8bafbfe9a5389c8d07d7f5fd81137a7ee653fc4358269845ee1d2e55565b6200027b620003ee565b620002856200041a565b620002908362000443565b6001611a0a610d058501111514620002eb5760405162461bcd60e51b815260206004820152601760248201527f576f756c6420657863656564206d617820737570706c7900000000000000000060448201526064016200018e565b5050610d050160a052620009fb565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612710811115620003a45760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f206869676800000000000060448201526064016200018e565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260068054600160a01b9093026001600160b81b0319909316909117919091179055565b60005b6014811015620004175760008181526016602052604090206000199055600101620003f1565b50565b60005b60148110156200041757600081815260176020526040902060001990556001016200041d565b600880548201905560005b8181101562000499576200046e60136200049d60201b62002ab31760201c565b62000490336200048a6013620004a660201b62002abc1760201c565b620004aa565b6001016200044e565b5050565b80546001019055565b5490565b62000499828260405180602001604052806000815250620004cc60201b60201c565b620004d8838362000544565b620004e760008484846200068c565b6200053f5760405162461bcd60e51b81526020600482015260326024820152600080516020620051b683398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016200018e565b505050565b6001600160a01b0382166200059c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016200018e565b6000818152600260205260409020546001600160a01b031615620006035760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016200018e565b6001600160a01b03821660009081526003602052604081208054600192906200062e908490620008e9565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000620006ad846001600160a01b0316620007f560201b62002ac01760201c565b15620007e957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290620006e790339089908890889060040162000910565b602060405180830381600087803b1580156200070257600080fd5b505af192505050801562000735575060408051601f3d908101601f1916820190925262000732918101906200098b565b60015b620007ce573d80801562000766576040519150601f19603f3d011682016040523d82523d6000602084013e6200076b565b606091505b508051620007c65760405162461bcd60e51b81526020600482015260326024820152600080516020620051b683398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016200018e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050620007ed565b5060015b949350505050565b3b151590565b8280546200080990620009be565b90600052602060002090601f0160209004810192826200082d576000855562000878565b82601f106200084857805160ff191683800117855562000878565b8280016001018555821562000878579182015b82811115620008785782518255916020019190600101906200085b565b50620008869291506200088a565b5090565b5b808211156200088657600081556001016200088b565b600080600060608486031215620008b757600080fd5b835160208501519093506001600160a01b0381168114620008d757600080fd5b80925050604084015190509250925092565b600082198211156200090b57634e487b7160e01b600052601160045260246000fd5b500190565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b828110156200095f5785810182015185820160a00152810162000941565b828111156200097257600060a084870101525b5050601f01601f19169190910160a00195945050505050565b6000602082840312156200099e57600080fd5b81516001600160e01b031981168114620009b757600080fd5b9392505050565b600181811c90821680620009d357607f821691505b60208210811415620009f557634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05161477962000a3d60003960008181610ab201528181610f5501526120ae01526000818161042a015281816117d101526136ff01526147796000f3fe6080604052600436106103de5760003560e01c80637ff9b5961161020d578063c87b56dd11610128578063e6e7b0ad116100bb578063ede9dddd1161008a578063f3aea1511161006f578063f3aea15114610bc9578063f4bea3c014610be9578063fd99c11814610c0957600080fd5b8063ede9dddd14610b93578063f2fde38b14610ba957600080fd5b8063e6e7b0ad14610aee578063e985e9c514610b16578063eb8d244414610b5f578063ed4d72f614610b7957600080fd5b8063d4ab2fad116100f7578063d4ab2fad14610a78578063db67e66314610a8b578063dc1bb38614610aa0578063e59d312e14610ad457600080fd5b8063c87b56dd146109e3578063ca321f5714610a03578063cc6465c014610a2b578063cf4f31c714610a5857600080fd5b80639e6405a2116101a0578063a769c2ff1161016f578063a769c2ff1461095b578063a9373d9414610983578063b88d4fde146109a3578063bd296387146109c357600080fd5b80639e6405a2146108df578063a22cb465146108f4578063a3945d5814610914578063a664eb901461092757600080fd5b80638c7ea24b116101dc5780638c7ea24b1461085f5780638da5cb5b1461087f57806395d89b411461089d57806398ebfa9a146108b257600080fd5b80637ff9b596146107f457806380c87e2e1461080a57806383b78bfc1461082a57806384ad8e8f1461084957600080fd5b806332cb6b0c116102fd57806365477dc01161029057806370a082311161025f57806370a0823114610785578063715018a6146107a557806371b9d316146107ba5780637d3dd5da146107d457600080fd5b806365477dc01461072557806368c981041461073a5780636b8dc3551461075a5780636c0360eb1461077057600080fd5b80635a208ba3116102cc5780635a208ba3146106805780635bcfbf7f146106a057806360447845146106dd5780636352211e1461070557600080fd5b806332cb6b0c1461061557806342842e0e1461062b57806353df5c7c1461064b57806355f804b31461066057600080fd5b806318160ddd11610375578063261c129f11610344578063261c129f1461058c5780632a55205a146105a15780632e1a7d4d146105e05780632e1b9bbf1461060057600080fd5b806318160ddd1461052c57806320cd5c97146105425780632251999b1461055757806323b872dd1461056c57600080fd5b8063095ea7b3116103b1578063095ea7b3146104a65780630b93ea27146104c85780631634cdfa146104f65780631670386e1461050c57600080fd5b806301ffc9a7146103e357806306f44b6a1461041857806306fdde0314610464578063081812fc14610486575b600080fd5b3480156103ef57600080fd5b506104036103fe366004613ca7565b610c46565b60405190151581526020015b60405180910390f35b34801561042457600080fd5b5061044c7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161040f565b34801561047057600080fd5b50610479610c57565b60405161040f9190613d3a565b34801561049257600080fd5b5061044c6104a1366004613d4d565b610ce9565b3480156104b257600080fd5b506104c66104c1366004613d7b565b610d94565b005b3480156104d457600080fd5b506104e86104e3366004613d4d565b610ec6565b60405190815260200161040f565b34801561050257600080fd5b506104e8600e5481565b34801561051857600080fd5b506104c6610527366004613d4d565b610eda565b34801561053857600080fd5b506104e860085481565b34801561054e57600080fd5b50610403610f39565b34801561056357600080fd5b506104e8610f85565b34801561057857600080fd5b506104c6610587366004613da7565b610f9c565b34801561059857600080fd5b506104c6611024565b3480156105ad57600080fd5b506105c16105bc366004613de8565b61108d565b604080516001600160a01b03909316835260208301919091520161040f565b3480156105ec57600080fd5b506104c66105fb366004613d4d565b6110f3565b34801561060c57600080fd5b506104c66111f6565b34801561062157600080fd5b506104e8611a0a81565b34801561063757600080fd5b506104c6610646366004613da7565b6112a7565b34801561065757600080fd5b506104c66112c2565b34801561066c57600080fd5b506104c661067b366004613e0a565b61132b565b34801561068c57600080fd5b506104c661069b366004613de8565b6113e4565b3480156106ac57600080fd5b506104036106bb366004613d4d565b6101008104600090815260166020526040902054600160ff9092161c81161490565b3480156106e957600080fd5b5061044c73f746362d8162eeb3624c17654ffaa6eb8bd7182081565b34801561071157600080fd5b5061044c610720366004613d4d565b6114ec565b34801561073157600080fd5b50610479611577565b34801561074657600080fd5b50610403610755366004613ec8565b611605565b34801561076657600080fd5b506104e8610d0581565b34801561077c57600080fd5b50610479611687565b34801561079157600080fd5b506104e86107a0366004613f1b565b611694565b3480156107b157600080fd5b506104c661172e565b3480156107c657600080fd5b506012546104039060ff1681565b3480156107e057600080fd5b506104c66107ef366004613f38565b611794565b34801561080057600080fd5b506104e8600a5481565b34801561081657600080fd5b506104c6610825366004613ff3565b611ccc565b34801561083657600080fd5b5060095461040390610100900460ff1681565b34801561085557600080fd5b506104e8600b5481565b34801561086b57600080fd5b506104c661087a366004613d7b565b611d63565b34801561088b57600080fd5b506007546001600160a01b031661044c565b3480156108a957600080fd5b50610479611e19565b3480156108be57600080fd5b506108d26108cd366004614010565b611e28565b60405161040f9190614052565b3480156108eb57600080fd5b506104e8611f07565b34801561090057600080fd5b506104c661090f366004614096565b611f82565b6104c66109223660046140cf565b612047565b34801561093357600080fd5b506104e87fdb6eea27a6a35a02d1928e9582f75c1e0a518ad5992b5cfee9cc0d86fb387b8d81565b34801561096757600080fd5b5061044c73b7c7e3809591f720f3a75fb3efa05e76e6b7b92a81565b34801561098f57600080fd5b506104c661099e366004613e0a565b61221e565b3480156109af57600080fd5b506104c66109be366004614181565b6122d7565b3480156109cf57600080fd5b506104036109de36600461427f565b612365565b3480156109ef57600080fd5b506104796109fe366004613d4d565b61241b565b348015610a0f57600080fd5b5061044c737a73f770873761054ab7757e909ae48f771379d481565b348015610a3757600080fd5b506104e8610a46366004613f1b565b600c6020526000908152604090205481565b348015610a6457600080fd5b506104c6610a73366004613ff3565b612504565b6104c6610a863660046142c3565b61259b565b348015610a9757600080fd5b506104c6612667565b348015610aac57600080fd5b506104e87f000000000000000000000000000000000000000000000000000000000000000081565b348015610ae057600080fd5b50600d546104039060ff1681565b348015610afa57600080fd5b5061044c7316659f9d2ab9565b0c07199687de3634c096539181565b348015610b2257600080fd5b50610403610b3136600461430f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b6b57600080fd5b506009546104039060ff1681565b348015610b8557600080fd5b506010546104039060ff1681565b348015610b9f57600080fd5b506104e861025881565b348015610bb557600080fd5b506104c6610bc4366004613f1b565b6127ac565b348015610bd557600080fd5b506108d2610be4366004614010565b61288e565b348015610bf557600080fd5b506104c6610c0436600461433d565b612965565b348015610c1557600080fd5b50610403610c24366004613d4d565b6101008104600090815260176020526040902054600160ff9092161c81161490565b6000610c5182612ac6565b92915050565b606060008054610c6690614390565b80601f0160208091040260200160405190810160405280929190818152602001828054610c9290614390565b8015610cdf5780601f10610cb457610100808354040283529160200191610cdf565b820191906000526020600020905b815481529060010190602001808311610cc257829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610d785760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610d9f826114ec565b9050806001600160a01b0316836001600160a01b03161415610e295760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610d6f565b336001600160a01b0382161480610e455750610e458133610b31565b610eb75760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d6f565b610ec18383612b1c565b505050565b600081815260146020526040812054610c51565b6007546001600160a01b03163314610f345760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b600e55565b60095460009060ff61010090910416151560011480610f8057507f0000000000000000000000000000000000000000000000000000000000000000610f7d60135490565b10155b905090565b6000600854610f92611f07565b6013540103905090565b610fa7335b82612ba2565b6110195760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d6f565b610ec1838383612caa565b6007546001600160a01b0316331461107e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b6010805460ff19166001179055565b604080518082019091526006546001600160a01b0381168083527401000000000000000000000000000000000000000090910462ffffff16602083018190529091600091612710906110df9086614413565b6110e99190614461565b9150509250929050565b3373f746362d8162eeb3624c17654ffaa6eb8bd7182014806111285750337316659f9d2ab9565b0c07199687de3634c0965391145b80611146575033737a73f770873761054ab7757e909ae48f771379d4145b8061116457503373b7c7e3809591f720f3a75fb3efa05e76e6b7b92a145b8061117957506007546001600160a01b031633145b6111c55760405162461bcd60e51b815260206004820152601960248201527f4e6f74206f776e6572206f72207465616d2061646472657373000000000000006044820152606401610d6f565b604051339082156108fc029083906000818181858888f193505050501580156111f2573d6000803e3d6000fd5b5050565b6007546001600160a01b031633146112505760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b600980547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790556040517f1377dc23d4501f1aea0b929337b6fa1d9bd8abc687bff8d86edf6ad3bbed2ba890600090a1565b610ec1838383604051806020016040528060008152506122d7565b6007546001600160a01b0316331461131c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b6012805460ff19166001179055565b6007546001600160a01b031633146113855760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b60125460ff16156113d85760405162461bcd60e51b815260206004820152601860248201527f426173652055524920686173206265656e206c6f636b656400000000000000006044820152606401610d6f565b610ec160118383613bc2565b6007546001600160a01b0316331461143e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b8082101561148e5760405162461bcd60e51b815260206004820152601e60248201527f646973636f756e7450726963652063616e6e6f74206265206c617267657200006044820152606401610d6f565b60095460ff16156114e15760405162461bcd60e51b815260206004820152600e60248201527f53616c65206973206163746976650000000000000000000000000000000000006044820152606401610d6f565b600a91909155600b55565b6000818152600260205260408120546001600160a01b031680610c515760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610d6f565b600f805461158490614390565b80601f01602080910402602001604051908101604052809291908181526020018280546115b090614390565b80156115fd5780601f106115d2576101008083540402835291602001916115fd565b820191906000526020600020905b8154815290600101906020018083116115e057829003601f168201915b505050505081565b6000808585604051602001611624929190918252602082015260400190565b60405160208183030381529060405280519060200120905061167d84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600e549150849050612e8f565b9695505050505050565b6011805461158490614390565b60006001600160a01b0382166117125760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610d6f565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b031633146117885760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b6117926000612f3e565b565b86336040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b03918216917f00000000000000000000000000000000000000000000000000000000000000001690636352211e9060240160206040518083038186803b15801561181357600080fd5b505afa158015611827573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184b9190614475565b6001600160a01b0316146118a15760405162461bcd60e51b815260206004820152600d60248201527f536174206e6f74206f776e6564000000000000000000000000000000000000006044820152606401610d6f565b600d5460ff1615156001146118f85760405162461bcd60e51b815260206004820152601d60248201527f5072696d65206c61626f7261746f7279206e6f7420796574206f70656e0000006044820152606401610d6f565b600489106119485760405162461bcd60e51b815260206004820152601260248201527f496e76616c6964207072696d65207479706500000000000000000000000000006044820152606401610d6f565b6000898152601560209081526040808320546014909252909120546119989190611973906001614492565b601560006119828e6001614492565b8152602001908152602001600020549101111590565b15156001146119e95760405162461bcd60e51b815260206004820181905260248201527f4e6f206d6f7265207072696d6573206c656674206f66207468697320747970656044820152606401610d6f565b610100880460009081526017602052604090205460ff89161c6001908116141515600114611a595760405162461bcd60e51b815260206004820181905260248201527f5361742068617320616c7265616479206265656e207573656420696e206c61626044820152606401610d6f565b6000611a63613c46565b6000805b89811015611bbb57611ac88b8b83818110611a8457611a846144aa565b905060200201358a8a84818110611a9d57611a9d6144aa565b90506020020135898985818110611ab657611ab66144aa565b905060200281019061075591906144d9565b1515600114611b195760405162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206d6f6e73746572207472616974732070726f6f66000000006044820152606401610d6f565b6000600f60048f028b8b85818110611b3357611b336144aa565b90506020020135901c1690508481861714611bb257611b698c8c84818110611b5d57611b5d6144aa565b90506020020135612fa8565b8b8b83818110611b7b57611b7b6144aa565b90506020020135848480600101955060048110611b9a57611b9a6144aa565b602002015293841793600f851415611bb25750611bbb565b50600101611a67565b5060019050611bcc60046002614625565b611bd69190614631565b8214611c245760405162461bcd60e51b815260206004820152601f60248201527f4e6f7420656e6f75676820706172747320666f722074686973207072696d65006044820152606401610d6f565b6101008a0460009081526017602052604090208054600160ff8d161b1916905560008b815260146020908152604080832080546001808201909255601590935292205460088054840190550101611c7b3382613015565b8a81336001600160a01b03167f9c0b604922681b0959036f766be82afbd445adc7af0eb81e0e11feba16d723fb85604051611cb69190614648565b60405180910390a4505050505050505050505050565b6007546001600160a01b03163314611d265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b600d805460ff19168215159081179091556040517f51064d25a2214095ab8c173bfb2892eadd252792db4ed7cbec69838665b988ca90600090a250565b6007546001600160a01b03163314611dbd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b610258811115611e0f5760405162461bcd60e51b815260206004820152601260248201527f526f79616c7469657320746f6f206869676800000000000000000000000000006044820152606401610d6f565b6111f2828261302f565b606060018054610c6690614390565b606060008267ffffffffffffffff811115611e4557611e45614152565b604051908082528060200260200182016040528015611e6e578160200160208202803683370190505b50905060005b83811015611eff57611eba858583818110611e9157611e916144aa565b905060200201356101008104600090815260166020526040902054600160ff9092161c81161490565b15611ef757848482818110611ed157611ed16144aa565b90506020020135828281518110611eea57611eea6144aa565b6020026020010181815250505b600101611e74565b509392505050565b620a2c2a600090815260026020527fb395403de203252ebda81cd942ea4dcf29aa2752aa5601df26a3145b3998718d546001600160a01b0316611f4b576000611f4e565b60015b60ff16611f5b6003610ec6565b611f656002610ec6565b611f6f6001610ec6565b611f796000610ec6565b01010101905090565b6001600160a01b038216331415611fdb5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d6f565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600954610100900460ff161561209f5760405162461bcd60e51b815260206004820152601160248201527f50726573616c652068617320656e6465640000000000000000000000000000006044820152606401610d6f565b6120d46120ab60135490565b877f00000000000000000000000000000000000000000000000000000000000000009101111590565b15156001146121255760405162461bcd60e51b815260206004820152601960248201527f576f756c64206578636565642070726573616c652073697a65000000000000006044820152606401610d6f565b336000908152600c602052604090205486018310156001146121895760405162461bcd60e51b815260206004820152601e60248201527f576f756c64206578636565642077686974656c697374656420636f756e7400006044820152606401610d6f565b61219533848484612365565b15156001146121e65760405162461bcd60e51b815260206004820152601760248201527f496e76616c69642077686974656c6973742070726f6f660000000000000000006044820152606401610d6f565b336000908152600c602052604081208054889290612205908490614492565b9091555061221690508686866130f4565b505050505050565b6007546001600160a01b031633146122785760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b60105460ff16156122cb5760405162461bcd60e51b815260206004820152601e60248201527f50726f76656e616e63652055524920686173206265656e206c6f636b656400006044820152606401610d6f565b610ec1600f8383613bc2565b6122e13383612ba2565b6123535760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d6f565b61235f848484846132d9565b50505050565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606086901b16602082015260348101849052600090819060540160405160208183030381529060405280519060200120905061167d8484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507fdb6eea27a6a35a02d1928e9582f75c1e0a518ad5992b5cfee9cc0d86fb387b8d9250859150612e8f9050565b6000818152600260205260409020546060906001600160a01b03166124a85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610d6f565b60006124b2613362565b905060008151116124d257604051806020016040528060008152506124fd565b806124dc84613371565b6040516020016124ed929190614679565b6040516020818303038152906040525b9392505050565b6007546001600160a01b0316331461255e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b6009805460ff19168215159081179091556040517fe333f8a36ee86e754548af2d6f50c73ff0d501e22e6c784662123dbbe493c60290600090a250565b6125a3610f39565b15156001146125f45760405162461bcd60e51b815260206004820152601b60248201527f5075626c69632073616c6520686173206e6f74207374617274656400000000006044820152606401610d6f565b61260b61260060135490565b84611a0a9101111590565b151560011461265c5760405162461bcd60e51b815260206004820152601660248201527f4e6f7420656e6f75676820746f6b656e73206c656674000000000000000000006044820152606401610d6f565b610ec18383836130f4565b6007546001600160a01b031633146126c15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b6127176126d461dead63024350ac6146a8565b6126e0906103e8614413565b6126f061dead63024350ac6146a8565b6126fa9190614492565b6000908152600260205260409020546001600160a01b0316151590565b156127645760405162461bcd60e51b815260206004820152601a60248201527f46696e616c207072696d6520616c7265616479206578697374730000000000006044820152606401610d6f565b6008805460010190556117923361278161dead63024350ac6146a8565b61278d906103e8614413565b61279d61dead63024350ac6146a8565b6127a79190614492565b613015565b6007546001600160a01b031633146128065760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b6001600160a01b0381166128825760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d6f565b61288b81612f3e565b50565b606060008267ffffffffffffffff8111156128ab576128ab614152565b6040519080825280602002602001820160405280156128d4578160200160208202803683370190505b50905060005b83811015611eff576129208585838181106128f7576128f76144aa565b905060200201356101008104600090815260176020526040902054600160ff9092161c81161490565b1561295d57848482818110612937576129376144aa565b90506020020135828281518110612950576129506144aa565b6020026020010181815250505b6001016128da565b6007546001600160a01b031633146129bf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b600181151514612a115760405162461bcd60e51b815260206004820152601460248201527f4e65656420746f2076657269667920746f6b656e0000000000000000000000006044820152606401610d6f565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301526024820184905285169063a9059cbb90604401602060405180830381600087803b158015612a7457600080fd5b505af1158015612a88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612aac91906146bc565b5050505050565b80546001019055565b5490565b3b151590565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610c515750610c51826134a3565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091558190612b69826114ec565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316612c2c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610d6f565b6000612c37836114ec565b9050806001600160a01b0316846001600160a01b03161480612c725750836001600160a01b0316612c6784610ce9565b6001600160a01b0316145b80612ca257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612cbd826114ec565b6001600160a01b031614612d395760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610d6f565b6001600160a01b038216612db45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610d6f565b612dbf600082612b1c565b6001600160a01b0383166000908152600360205260408120805460019290612de8908490614631565b90915550506001600160a01b0382166000908152600360205260408120805460019290612e16908490614492565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600081815b8551811015612f33576000868281518110612eb157612eb16144aa565b60200260200101519050808311612ef3576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612f20565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612f2b816146d9565b915050612e94565b509092149392505050565b600780546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612fb133610fa1565b15156001146130025760405162461bcd60e51b815260206004820152601660248201527f6e6f74206f776e6572206e6f7220617070726f766564000000000000000000006044820152606401610d6f565b6008805460001901905561288b81613586565b6111f2828260405180602001604052806000815250613639565b6127108111156130815760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610d6f565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260068054740100000000000000000000000000000000000000009093027fffffffffffffffffff0000000000000000000000000000000000000000000000909316909117919091179055565b60095460ff16151560011461314b5760405162461bcd60e51b815260206004820152601360248201527f53616c65206d75737420626520616374697665000000000000000000000000006044820152606401610d6f565b600183101561319c5760405162461bcd60e51b815260206004820152601560248201527f4e656564206174206c65617374203120746f6b656e00000000000000000000006044820152606401610d6f565b60328311156131ed5760405162461bcd60e51b815260206004820152601060248201527f4d617820353020617420612074696d65000000000000000000000000000000006044820152606401610d6f565b8281111561323d5760405162461bcd60e51b815260206004820152601a60248201527f546f6f206d616e79207361747320666f7220646973636f756e740000000000006044820152606401610d6f565b60005b818110156132715761326983838381811061325d5761325d6144aa565b905060200201356136c2565b600101613240565b600b54600a5482860302908202013481146132ce5760405162461bcd60e51b815260206004820152601860248201527f457468657220616d6f756e74206e6f7420636f727265637400000000000000006044820152606401610d6f565b5050610ec183613868565b6132e4848484612caa565b6132f08484848461389d565b61235f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d6f565b606060118054610c6690614390565b6060816133b157505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156133db57806133c5816146d9565b91506133d49050600a83614461565b91506133b5565b60008167ffffffffffffffff8111156133f6576133f6614152565b6040519080825280601f01601f191660200182016040528015613420576020820181803683370190505b5090505b8415612ca257613435600183614631565b9150613442600a866146a8565b61344d906030614492565b60f81b818381518110613462576134626144aa565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061349c600a86614461565b9450613424565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061353657507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c5157507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610c51565b6000613591826114ec565b905061359e600083612b1c565b6001600160a01b03811660009081526003602052604081208054600192906135c7908490614631565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6136438383613a68565b613650600084848461389d565b610ec15760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d6f565b80336040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b03918216917f00000000000000000000000000000000000000000000000000000000000000001690636352211e9060240160206040518083038186803b15801561374157600080fd5b505afa158015613755573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137799190614475565b6001600160a01b0316146137cf5760405162461bcd60e51b815260206004820152600d60248201527f536174206e6f74206f776e6564000000000000000000000000000000000000006044820152606401610d6f565b610100820460009081526016602052604090205460ff83161c600190811614151560011461383f5760405162461bcd60e51b815260206004820152601d60248201527f53617420666f7220646973636f756e7420616c726561647920757365640000006044820152606401610d6f565b50610100810460009081526016602052604090208054600160ff9093169290921b199091169055565b600880548201905560005b818110156111f257613889601380546001019055565b61389533601354613015565b600101613873565b60006001600160a01b0384163b15613a5d576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906138fa9033908990889088906004016146f4565b602060405180830381600087803b15801561391457600080fd5b505af1925050508015613962575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261395f91810190614726565b60015b613a12573d808015613990576040519150601f19603f3d011682016040523d82523d6000602084013e613995565b606091505b508051613a0a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d6f565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612ca2565b506001949350505050565b6001600160a01b038216613abe5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d6f565b6000818152600260205260409020546001600160a01b031615613b235760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d6f565b6001600160a01b0382166000908152600360205260408120805460019290613b4c908490614492565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054613bce90614390565b90600052602060002090601f016020900481019282613bf05760008555613c36565b82601f10613c095782800160ff19823516178555613c36565b82800160010185558215613c36579182015b82811115613c36578235825591602001919060010190613c1b565b50613c42929150613c64565b5090565b60405180608001604052806004906020820280368337509192915050565b5b80821115613c425760008155600101613c65565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461288b57600080fd5b600060208284031215613cb957600080fd5b81356124fd81613c79565b60005b83811015613cdf578181015183820152602001613cc7565b8381111561235f5750506000910152565b60008151808452613d08816020860160208601613cc4565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006124fd6020830184613cf0565b600060208284031215613d5f57600080fd5b5035919050565b6001600160a01b038116811461288b57600080fd5b60008060408385031215613d8e57600080fd5b8235613d9981613d66565b946020939093013593505050565b600080600060608486031215613dbc57600080fd5b8335613dc781613d66565b92506020840135613dd781613d66565b929592945050506040919091013590565b60008060408385031215613dfb57600080fd5b50508035926020909101359150565b60008060208385031215613e1d57600080fd5b823567ffffffffffffffff80821115613e3557600080fd5b818501915085601f830112613e4957600080fd5b813581811115613e5857600080fd5b866020828501011115613e6a57600080fd5b60209290920196919550909350505050565b60008083601f840112613e8e57600080fd5b50813567ffffffffffffffff811115613ea657600080fd5b6020830191508360208260051b8501011115613ec157600080fd5b9250929050565b60008060008060608587031215613ede57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115613f0357600080fd5b613f0f87828801613e7c565b95989497509550505050565b600060208284031215613f2d57600080fd5b81356124fd81613d66565b60008060008060008060008060a0898b031215613f5457600080fd5b8835975060208901359650604089013567ffffffffffffffff80821115613f7a57600080fd5b613f868c838d01613e7c565b909850965060608b0135915080821115613f9f57600080fd5b613fab8c838d01613e7c565b909650945060808b0135915080821115613fc457600080fd5b50613fd18b828c01613e7c565b999c989b5096995094979396929594505050565b801515811461288b57600080fd5b60006020828403121561400557600080fd5b81356124fd81613fe5565b6000806020838503121561402357600080fd5b823567ffffffffffffffff81111561403a57600080fd5b61404685828601613e7c565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b8181101561408a5783518352928401929184019160010161406e565b50909695505050505050565b600080604083850312156140a957600080fd5b82356140b481613d66565b915060208301356140c481613fe5565b809150509250929050565b600080600080600080608087890312156140e857600080fd5b86359550602087013567ffffffffffffffff8082111561410757600080fd5b6141138a838b01613e7c565b909750955060408901359450606089013591508082111561413357600080fd5b5061414089828a01613e7c565b979a9699509497509295939492505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000806080858703121561419757600080fd5b84356141a281613d66565b935060208501356141b281613d66565b925060408501359150606085013567ffffffffffffffff808211156141d657600080fd5b818701915087601f8301126141ea57600080fd5b8135818111156141fc576141fc614152565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171561424257614242614152565b816040528281528a602084870101111561425b57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806000806060858703121561429557600080fd5b84356142a081613d66565b935060208501359250604085013567ffffffffffffffff811115613f0357600080fd5b6000806000604084860312156142d857600080fd5b83359250602084013567ffffffffffffffff8111156142f657600080fd5b61430286828701613e7c565b9497909650939450505050565b6000806040838503121561432257600080fd5b823561432d81613d66565b915060208301356140c481613d66565b6000806000806080858703121561435357600080fd5b843561435e81613d66565b9350602085013561436e81613d66565b925060408501359150606085013561438581613fe5565b939692955090935050565b600181811c908216806143a457607f821691505b602082108114156143de577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600081600019048311821515161561442d5761442d6143e4565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261447057614470614432565b500490565b60006020828403121561448757600080fd5b81516124fd81613d66565b600082198211156144a5576144a56143e4565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261450e57600080fd5b83018035915067ffffffffffffffff82111561452957600080fd5b6020019150600581901b3603821315613ec157600080fd5b600181815b8085111561457c578160001904821115614562576145626143e4565b8085161561456f57918102915b93841c9390800290614546565b509250929050565b60008261459357506001610c51565b816145a057506000610c51565b81600181146145b657600281146145c0576145dc565b6001915050610c51565b60ff8411156145d1576145d16143e4565b50506001821b610c51565b5060208310610133831016604e8410600b84101617156145ff575081810a610c51565b6146098383614541565b806000190482111561461d5761461d6143e4565b029392505050565b60006124fd8383614584565b600082821015614643576146436143e4565b500390565b60808101818360005b6004811015614670578151835260209283019290910190600101614651565b50505092915050565b6000835161468b818460208801613cc4565b83519083019061469f818360208801613cc4565b01949350505050565b6000826146b7576146b7614432565b500690565b6000602082840312156146ce57600080fd5b81516124fd81613fe5565b60006000198214156146ed576146ed6143e4565b5060010190565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261167d6080830184613cf0565b60006020828403121561473857600080fd5b81516124fd81613c7956fea2646970667358221220d6542908d5c1f61bfc8a2709721c11b1d13d13e6a0f1f2524155931ad10bde2664736f6c634300080900334552433732313a207472616e7366657220746f206e6f6e20455243373231526568747470733a2f2f6170692e7361746f736869626c65732e636f6d2f6d6f6e73746572732f746f6b656e2f00000000000000000000000000000000000000000000000000000000000000420000000000000000000000000b0b186841c55d8a09d53db48dc8cab9dbf4dbd60000000000000000000000000000000000000000000000000000000000000258

Deployed Bytecode

0x6080604052600436106103de5760003560e01c80637ff9b5961161020d578063c87b56dd11610128578063e6e7b0ad116100bb578063ede9dddd1161008a578063f3aea1511161006f578063f3aea15114610bc9578063f4bea3c014610be9578063fd99c11814610c0957600080fd5b8063ede9dddd14610b93578063f2fde38b14610ba957600080fd5b8063e6e7b0ad14610aee578063e985e9c514610b16578063eb8d244414610b5f578063ed4d72f614610b7957600080fd5b8063d4ab2fad116100f7578063d4ab2fad14610a78578063db67e66314610a8b578063dc1bb38614610aa0578063e59d312e14610ad457600080fd5b8063c87b56dd146109e3578063ca321f5714610a03578063cc6465c014610a2b578063cf4f31c714610a5857600080fd5b80639e6405a2116101a0578063a769c2ff1161016f578063a769c2ff1461095b578063a9373d9414610983578063b88d4fde146109a3578063bd296387146109c357600080fd5b80639e6405a2146108df578063a22cb465146108f4578063a3945d5814610914578063a664eb901461092757600080fd5b80638c7ea24b116101dc5780638c7ea24b1461085f5780638da5cb5b1461087f57806395d89b411461089d57806398ebfa9a146108b257600080fd5b80637ff9b596146107f457806380c87e2e1461080a57806383b78bfc1461082a57806384ad8e8f1461084957600080fd5b806332cb6b0c116102fd57806365477dc01161029057806370a082311161025f57806370a0823114610785578063715018a6146107a557806371b9d316146107ba5780637d3dd5da146107d457600080fd5b806365477dc01461072557806368c981041461073a5780636b8dc3551461075a5780636c0360eb1461077057600080fd5b80635a208ba3116102cc5780635a208ba3146106805780635bcfbf7f146106a057806360447845146106dd5780636352211e1461070557600080fd5b806332cb6b0c1461061557806342842e0e1461062b57806353df5c7c1461064b57806355f804b31461066057600080fd5b806318160ddd11610375578063261c129f11610344578063261c129f1461058c5780632a55205a146105a15780632e1a7d4d146105e05780632e1b9bbf1461060057600080fd5b806318160ddd1461052c57806320cd5c97146105425780632251999b1461055757806323b872dd1461056c57600080fd5b8063095ea7b3116103b1578063095ea7b3146104a65780630b93ea27146104c85780631634cdfa146104f65780631670386e1461050c57600080fd5b806301ffc9a7146103e357806306f44b6a1461041857806306fdde0314610464578063081812fc14610486575b600080fd5b3480156103ef57600080fd5b506104036103fe366004613ca7565b610c46565b60405190151581526020015b60405180910390f35b34801561042457600080fd5b5061044c7f0000000000000000000000000b0b186841c55d8a09d53db48dc8cab9dbf4dbd681565b6040516001600160a01b03909116815260200161040f565b34801561047057600080fd5b50610479610c57565b60405161040f9190613d3a565b34801561049257600080fd5b5061044c6104a1366004613d4d565b610ce9565b3480156104b257600080fd5b506104c66104c1366004613d7b565b610d94565b005b3480156104d457600080fd5b506104e86104e3366004613d4d565b610ec6565b60405190815260200161040f565b34801561050257600080fd5b506104e8600e5481565b34801561051857600080fd5b506104c6610527366004613d4d565b610eda565b34801561053857600080fd5b506104e860085481565b34801561054e57600080fd5b50610403610f39565b34801561056357600080fd5b506104e8610f85565b34801561057857600080fd5b506104c6610587366004613da7565b610f9c565b34801561059857600080fd5b506104c6611024565b3480156105ad57600080fd5b506105c16105bc366004613de8565b61108d565b604080516001600160a01b03909316835260208301919091520161040f565b3480156105ec57600080fd5b506104c66105fb366004613d4d565b6110f3565b34801561060c57600080fd5b506104c66111f6565b34801561062157600080fd5b506104e8611a0a81565b34801561063757600080fd5b506104c6610646366004613da7565b6112a7565b34801561065757600080fd5b506104c66112c2565b34801561066c57600080fd5b506104c661067b366004613e0a565b61132b565b34801561068c57600080fd5b506104c661069b366004613de8565b6113e4565b3480156106ac57600080fd5b506104036106bb366004613d4d565b6101008104600090815260166020526040902054600160ff9092161c81161490565b3480156106e957600080fd5b5061044c73f746362d8162eeb3624c17654ffaa6eb8bd7182081565b34801561071157600080fd5b5061044c610720366004613d4d565b6114ec565b34801561073157600080fd5b50610479611577565b34801561074657600080fd5b50610403610755366004613ec8565b611605565b34801561076657600080fd5b506104e8610d0581565b34801561077c57600080fd5b50610479611687565b34801561079157600080fd5b506104e86107a0366004613f1b565b611694565b3480156107b157600080fd5b506104c661172e565b3480156107c657600080fd5b506012546104039060ff1681565b3480156107e057600080fd5b506104c66107ef366004613f38565b611794565b34801561080057600080fd5b506104e8600a5481565b34801561081657600080fd5b506104c6610825366004613ff3565b611ccc565b34801561083657600080fd5b5060095461040390610100900460ff1681565b34801561085557600080fd5b506104e8600b5481565b34801561086b57600080fd5b506104c661087a366004613d7b565b611d63565b34801561088b57600080fd5b506007546001600160a01b031661044c565b3480156108a957600080fd5b50610479611e19565b3480156108be57600080fd5b506108d26108cd366004614010565b611e28565b60405161040f9190614052565b3480156108eb57600080fd5b506104e8611f07565b34801561090057600080fd5b506104c661090f366004614096565b611f82565b6104c66109223660046140cf565b612047565b34801561093357600080fd5b506104e87fdb6eea27a6a35a02d1928e9582f75c1e0a518ad5992b5cfee9cc0d86fb387b8d81565b34801561096757600080fd5b5061044c73b7c7e3809591f720f3a75fb3efa05e76e6b7b92a81565b34801561098f57600080fd5b506104c661099e366004613e0a565b61221e565b3480156109af57600080fd5b506104c66109be366004614181565b6122d7565b3480156109cf57600080fd5b506104036109de36600461427f565b612365565b3480156109ef57600080fd5b506104796109fe366004613d4d565b61241b565b348015610a0f57600080fd5b5061044c737a73f770873761054ab7757e909ae48f771379d481565b348015610a3757600080fd5b506104e8610a46366004613f1b565b600c6020526000908152604090205481565b348015610a6457600080fd5b506104c6610a73366004613ff3565b612504565b6104c6610a863660046142c3565b61259b565b348015610a9757600080fd5b506104c6612667565b348015610aac57600080fd5b506104e87f0000000000000000000000000000000000000000000000000000000000000d4781565b348015610ae057600080fd5b50600d546104039060ff1681565b348015610afa57600080fd5b5061044c7316659f9d2ab9565b0c07199687de3634c096539181565b348015610b2257600080fd5b50610403610b3136600461430f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b6b57600080fd5b506009546104039060ff1681565b348015610b8557600080fd5b506010546104039060ff1681565b348015610b9f57600080fd5b506104e861025881565b348015610bb557600080fd5b506104c6610bc4366004613f1b565b6127ac565b348015610bd557600080fd5b506108d2610be4366004614010565b61288e565b348015610bf557600080fd5b506104c6610c0436600461433d565b612965565b348015610c1557600080fd5b50610403610c24366004613d4d565b6101008104600090815260176020526040902054600160ff9092161c81161490565b6000610c5182612ac6565b92915050565b606060008054610c6690614390565b80601f0160208091040260200160405190810160405280929190818152602001828054610c9290614390565b8015610cdf5780601f10610cb457610100808354040283529160200191610cdf565b820191906000526020600020905b815481529060010190602001808311610cc257829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610d785760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610d9f826114ec565b9050806001600160a01b0316836001600160a01b03161415610e295760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610d6f565b336001600160a01b0382161480610e455750610e458133610b31565b610eb75760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d6f565b610ec18383612b1c565b505050565b600081815260146020526040812054610c51565b6007546001600160a01b03163314610f345760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b600e55565b60095460009060ff61010090910416151560011480610f8057507f0000000000000000000000000000000000000000000000000000000000000d47610f7d60135490565b10155b905090565b6000600854610f92611f07565b6013540103905090565b610fa7335b82612ba2565b6110195760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d6f565b610ec1838383612caa565b6007546001600160a01b0316331461107e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b6010805460ff19166001179055565b604080518082019091526006546001600160a01b0381168083527401000000000000000000000000000000000000000090910462ffffff16602083018190529091600091612710906110df9086614413565b6110e99190614461565b9150509250929050565b3373f746362d8162eeb3624c17654ffaa6eb8bd7182014806111285750337316659f9d2ab9565b0c07199687de3634c0965391145b80611146575033737a73f770873761054ab7757e909ae48f771379d4145b8061116457503373b7c7e3809591f720f3a75fb3efa05e76e6b7b92a145b8061117957506007546001600160a01b031633145b6111c55760405162461bcd60e51b815260206004820152601960248201527f4e6f74206f776e6572206f72207465616d2061646472657373000000000000006044820152606401610d6f565b604051339082156108fc029083906000818181858888f193505050501580156111f2573d6000803e3d6000fd5b5050565b6007546001600160a01b031633146112505760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b600980547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790556040517f1377dc23d4501f1aea0b929337b6fa1d9bd8abc687bff8d86edf6ad3bbed2ba890600090a1565b610ec1838383604051806020016040528060008152506122d7565b6007546001600160a01b0316331461131c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b6012805460ff19166001179055565b6007546001600160a01b031633146113855760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b60125460ff16156113d85760405162461bcd60e51b815260206004820152601860248201527f426173652055524920686173206265656e206c6f636b656400000000000000006044820152606401610d6f565b610ec160118383613bc2565b6007546001600160a01b0316331461143e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b8082101561148e5760405162461bcd60e51b815260206004820152601e60248201527f646973636f756e7450726963652063616e6e6f74206265206c617267657200006044820152606401610d6f565b60095460ff16156114e15760405162461bcd60e51b815260206004820152600e60248201527f53616c65206973206163746976650000000000000000000000000000000000006044820152606401610d6f565b600a91909155600b55565b6000818152600260205260408120546001600160a01b031680610c515760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610d6f565b600f805461158490614390565b80601f01602080910402602001604051908101604052809291908181526020018280546115b090614390565b80156115fd5780601f106115d2576101008083540402835291602001916115fd565b820191906000526020600020905b8154815290600101906020018083116115e057829003601f168201915b505050505081565b6000808585604051602001611624929190918252602082015260400190565b60405160208183030381529060405280519060200120905061167d84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600e549150849050612e8f565b9695505050505050565b6011805461158490614390565b60006001600160a01b0382166117125760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610d6f565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b031633146117885760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b6117926000612f3e565b565b86336040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b03918216917f0000000000000000000000000b0b186841c55d8a09d53db48dc8cab9dbf4dbd61690636352211e9060240160206040518083038186803b15801561181357600080fd5b505afa158015611827573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184b9190614475565b6001600160a01b0316146118a15760405162461bcd60e51b815260206004820152600d60248201527f536174206e6f74206f776e6564000000000000000000000000000000000000006044820152606401610d6f565b600d5460ff1615156001146118f85760405162461bcd60e51b815260206004820152601d60248201527f5072696d65206c61626f7261746f7279206e6f7420796574206f70656e0000006044820152606401610d6f565b600489106119485760405162461bcd60e51b815260206004820152601260248201527f496e76616c6964207072696d65207479706500000000000000000000000000006044820152606401610d6f565b6000898152601560209081526040808320546014909252909120546119989190611973906001614492565b601560006119828e6001614492565b8152602001908152602001600020549101111590565b15156001146119e95760405162461bcd60e51b815260206004820181905260248201527f4e6f206d6f7265207072696d6573206c656674206f66207468697320747970656044820152606401610d6f565b610100880460009081526017602052604090205460ff89161c6001908116141515600114611a595760405162461bcd60e51b815260206004820181905260248201527f5361742068617320616c7265616479206265656e207573656420696e206c61626044820152606401610d6f565b6000611a63613c46565b6000805b89811015611bbb57611ac88b8b83818110611a8457611a846144aa565b905060200201358a8a84818110611a9d57611a9d6144aa565b90506020020135898985818110611ab657611ab66144aa565b905060200281019061075591906144d9565b1515600114611b195760405162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206d6f6e73746572207472616974732070726f6f66000000006044820152606401610d6f565b6000600f60048f028b8b85818110611b3357611b336144aa565b90506020020135901c1690508481861714611bb257611b698c8c84818110611b5d57611b5d6144aa565b90506020020135612fa8565b8b8b83818110611b7b57611b7b6144aa565b90506020020135848480600101955060048110611b9a57611b9a6144aa565b602002015293841793600f851415611bb25750611bbb565b50600101611a67565b5060019050611bcc60046002614625565b611bd69190614631565b8214611c245760405162461bcd60e51b815260206004820152601f60248201527f4e6f7420656e6f75676820706172747320666f722074686973207072696d65006044820152606401610d6f565b6101008a0460009081526017602052604090208054600160ff8d161b1916905560008b815260146020908152604080832080546001808201909255601590935292205460088054840190550101611c7b3382613015565b8a81336001600160a01b03167f9c0b604922681b0959036f766be82afbd445adc7af0eb81e0e11feba16d723fb85604051611cb69190614648565b60405180910390a4505050505050505050505050565b6007546001600160a01b03163314611d265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b600d805460ff19168215159081179091556040517f51064d25a2214095ab8c173bfb2892eadd252792db4ed7cbec69838665b988ca90600090a250565b6007546001600160a01b03163314611dbd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b610258811115611e0f5760405162461bcd60e51b815260206004820152601260248201527f526f79616c7469657320746f6f206869676800000000000000000000000000006044820152606401610d6f565b6111f2828261302f565b606060018054610c6690614390565b606060008267ffffffffffffffff811115611e4557611e45614152565b604051908082528060200260200182016040528015611e6e578160200160208202803683370190505b50905060005b83811015611eff57611eba858583818110611e9157611e916144aa565b905060200201356101008104600090815260166020526040902054600160ff9092161c81161490565b15611ef757848482818110611ed157611ed16144aa565b90506020020135828281518110611eea57611eea6144aa565b6020026020010181815250505b600101611e74565b509392505050565b620a2c2a600090815260026020527fb395403de203252ebda81cd942ea4dcf29aa2752aa5601df26a3145b3998718d546001600160a01b0316611f4b576000611f4e565b60015b60ff16611f5b6003610ec6565b611f656002610ec6565b611f6f6001610ec6565b611f796000610ec6565b01010101905090565b6001600160a01b038216331415611fdb5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d6f565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600954610100900460ff161561209f5760405162461bcd60e51b815260206004820152601160248201527f50726573616c652068617320656e6465640000000000000000000000000000006044820152606401610d6f565b6120d46120ab60135490565b877f0000000000000000000000000000000000000000000000000000000000000d479101111590565b15156001146121255760405162461bcd60e51b815260206004820152601960248201527f576f756c64206578636565642070726573616c652073697a65000000000000006044820152606401610d6f565b336000908152600c602052604090205486018310156001146121895760405162461bcd60e51b815260206004820152601e60248201527f576f756c64206578636565642077686974656c697374656420636f756e7400006044820152606401610d6f565b61219533848484612365565b15156001146121e65760405162461bcd60e51b815260206004820152601760248201527f496e76616c69642077686974656c6973742070726f6f660000000000000000006044820152606401610d6f565b336000908152600c602052604081208054889290612205908490614492565b9091555061221690508686866130f4565b505050505050565b6007546001600160a01b031633146122785760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b60105460ff16156122cb5760405162461bcd60e51b815260206004820152601e60248201527f50726f76656e616e63652055524920686173206265656e206c6f636b656400006044820152606401610d6f565b610ec1600f8383613bc2565b6122e13383612ba2565b6123535760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d6f565b61235f848484846132d9565b50505050565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606086901b16602082015260348101849052600090819060540160405160208183030381529060405280519060200120905061167d8484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507fdb6eea27a6a35a02d1928e9582f75c1e0a518ad5992b5cfee9cc0d86fb387b8d9250859150612e8f9050565b6000818152600260205260409020546060906001600160a01b03166124a85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610d6f565b60006124b2613362565b905060008151116124d257604051806020016040528060008152506124fd565b806124dc84613371565b6040516020016124ed929190614679565b6040516020818303038152906040525b9392505050565b6007546001600160a01b0316331461255e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b6009805460ff19168215159081179091556040517fe333f8a36ee86e754548af2d6f50c73ff0d501e22e6c784662123dbbe493c60290600090a250565b6125a3610f39565b15156001146125f45760405162461bcd60e51b815260206004820152601b60248201527f5075626c69632073616c6520686173206e6f74207374617274656400000000006044820152606401610d6f565b61260b61260060135490565b84611a0a9101111590565b151560011461265c5760405162461bcd60e51b815260206004820152601660248201527f4e6f7420656e6f75676820746f6b656e73206c656674000000000000000000006044820152606401610d6f565b610ec18383836130f4565b6007546001600160a01b031633146126c15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b6127176126d461dead63024350ac6146a8565b6126e0906103e8614413565b6126f061dead63024350ac6146a8565b6126fa9190614492565b6000908152600260205260409020546001600160a01b0316151590565b156127645760405162461bcd60e51b815260206004820152601a60248201527f46696e616c207072696d6520616c7265616479206578697374730000000000006044820152606401610d6f565b6008805460010190556117923361278161dead63024350ac6146a8565b61278d906103e8614413565b61279d61dead63024350ac6146a8565b6127a79190614492565b613015565b6007546001600160a01b031633146128065760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b6001600160a01b0381166128825760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d6f565b61288b81612f3e565b50565b606060008267ffffffffffffffff8111156128ab576128ab614152565b6040519080825280602002602001820160405280156128d4578160200160208202803683370190505b50905060005b83811015611eff576129208585838181106128f7576128f76144aa565b905060200201356101008104600090815260176020526040902054600160ff9092161c81161490565b1561295d57848482818110612937576129376144aa565b90506020020135828281518110612950576129506144aa565b6020026020010181815250505b6001016128da565b6007546001600160a01b031633146129bf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d6f565b600181151514612a115760405162461bcd60e51b815260206004820152601460248201527f4e65656420746f2076657269667920746f6b656e0000000000000000000000006044820152606401610d6f565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301526024820184905285169063a9059cbb90604401602060405180830381600087803b158015612a7457600080fd5b505af1158015612a88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612aac91906146bc565b5050505050565b80546001019055565b5490565b3b151590565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610c515750610c51826134a3565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091558190612b69826114ec565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316612c2c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610d6f565b6000612c37836114ec565b9050806001600160a01b0316846001600160a01b03161480612c725750836001600160a01b0316612c6784610ce9565b6001600160a01b0316145b80612ca257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612cbd826114ec565b6001600160a01b031614612d395760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610d6f565b6001600160a01b038216612db45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610d6f565b612dbf600082612b1c565b6001600160a01b0383166000908152600360205260408120805460019290612de8908490614631565b90915550506001600160a01b0382166000908152600360205260408120805460019290612e16908490614492565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600081815b8551811015612f33576000868281518110612eb157612eb16144aa565b60200260200101519050808311612ef3576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612f20565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612f2b816146d9565b915050612e94565b509092149392505050565b600780546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612fb133610fa1565b15156001146130025760405162461bcd60e51b815260206004820152601660248201527f6e6f74206f776e6572206e6f7220617070726f766564000000000000000000006044820152606401610d6f565b6008805460001901905561288b81613586565b6111f2828260405180602001604052806000815250613639565b6127108111156130815760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610d6f565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260068054740100000000000000000000000000000000000000009093027fffffffffffffffffff0000000000000000000000000000000000000000000000909316909117919091179055565b60095460ff16151560011461314b5760405162461bcd60e51b815260206004820152601360248201527f53616c65206d75737420626520616374697665000000000000000000000000006044820152606401610d6f565b600183101561319c5760405162461bcd60e51b815260206004820152601560248201527f4e656564206174206c65617374203120746f6b656e00000000000000000000006044820152606401610d6f565b60328311156131ed5760405162461bcd60e51b815260206004820152601060248201527f4d617820353020617420612074696d65000000000000000000000000000000006044820152606401610d6f565b8281111561323d5760405162461bcd60e51b815260206004820152601a60248201527f546f6f206d616e79207361747320666f7220646973636f756e740000000000006044820152606401610d6f565b60005b818110156132715761326983838381811061325d5761325d6144aa565b905060200201356136c2565b600101613240565b600b54600a5482860302908202013481146132ce5760405162461bcd60e51b815260206004820152601860248201527f457468657220616d6f756e74206e6f7420636f727265637400000000000000006044820152606401610d6f565b5050610ec183613868565b6132e4848484612caa565b6132f08484848461389d565b61235f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d6f565b606060118054610c6690614390565b6060816133b157505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156133db57806133c5816146d9565b91506133d49050600a83614461565b91506133b5565b60008167ffffffffffffffff8111156133f6576133f6614152565b6040519080825280601f01601f191660200182016040528015613420576020820181803683370190505b5090505b8415612ca257613435600183614631565b9150613442600a866146a8565b61344d906030614492565b60f81b818381518110613462576134626144aa565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061349c600a86614461565b9450613424565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061353657507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c5157507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610c51565b6000613591826114ec565b905061359e600083612b1c565b6001600160a01b03811660009081526003602052604081208054600192906135c7908490614631565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6136438383613a68565b613650600084848461389d565b610ec15760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d6f565b80336040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b03918216917f0000000000000000000000000b0b186841c55d8a09d53db48dc8cab9dbf4dbd61690636352211e9060240160206040518083038186803b15801561374157600080fd5b505afa158015613755573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137799190614475565b6001600160a01b0316146137cf5760405162461bcd60e51b815260206004820152600d60248201527f536174206e6f74206f776e6564000000000000000000000000000000000000006044820152606401610d6f565b610100820460009081526016602052604090205460ff83161c600190811614151560011461383f5760405162461bcd60e51b815260206004820152601d60248201527f53617420666f7220646973636f756e7420616c726561647920757365640000006044820152606401610d6f565b50610100810460009081526016602052604090208054600160ff9093169290921b199091169055565b600880548201905560005b818110156111f257613889601380546001019055565b61389533601354613015565b600101613873565b60006001600160a01b0384163b15613a5d576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906138fa9033908990889088906004016146f4565b602060405180830381600087803b15801561391457600080fd5b505af1925050508015613962575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261395f91810190614726565b60015b613a12573d808015613990576040519150601f19603f3d011682016040523d82523d6000602084013e613995565b606091505b508051613a0a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d6f565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612ca2565b506001949350505050565b6001600160a01b038216613abe5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d6f565b6000818152600260205260409020546001600160a01b031615613b235760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d6f565b6001600160a01b0382166000908152600360205260408120805460019290613b4c908490614492565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054613bce90614390565b90600052602060002090601f016020900481019282613bf05760008555613c36565b82601f10613c095782800160ff19823516178555613c36565b82800160010185558215613c36579182015b82811115613c36578235825591602001919060010190613c1b565b50613c42929150613c64565b5090565b60405180608001604052806004906020820280368337509192915050565b5b80821115613c425760008155600101613c65565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461288b57600080fd5b600060208284031215613cb957600080fd5b81356124fd81613c79565b60005b83811015613cdf578181015183820152602001613cc7565b8381111561235f5750506000910152565b60008151808452613d08816020860160208601613cc4565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006124fd6020830184613cf0565b600060208284031215613d5f57600080fd5b5035919050565b6001600160a01b038116811461288b57600080fd5b60008060408385031215613d8e57600080fd5b8235613d9981613d66565b946020939093013593505050565b600080600060608486031215613dbc57600080fd5b8335613dc781613d66565b92506020840135613dd781613d66565b929592945050506040919091013590565b60008060408385031215613dfb57600080fd5b50508035926020909101359150565b60008060208385031215613e1d57600080fd5b823567ffffffffffffffff80821115613e3557600080fd5b818501915085601f830112613e4957600080fd5b813581811115613e5857600080fd5b866020828501011115613e6a57600080fd5b60209290920196919550909350505050565b60008083601f840112613e8e57600080fd5b50813567ffffffffffffffff811115613ea657600080fd5b6020830191508360208260051b8501011115613ec157600080fd5b9250929050565b60008060008060608587031215613ede57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115613f0357600080fd5b613f0f87828801613e7c565b95989497509550505050565b600060208284031215613f2d57600080fd5b81356124fd81613d66565b60008060008060008060008060a0898b031215613f5457600080fd5b8835975060208901359650604089013567ffffffffffffffff80821115613f7a57600080fd5b613f868c838d01613e7c565b909850965060608b0135915080821115613f9f57600080fd5b613fab8c838d01613e7c565b909650945060808b0135915080821115613fc457600080fd5b50613fd18b828c01613e7c565b999c989b5096995094979396929594505050565b801515811461288b57600080fd5b60006020828403121561400557600080fd5b81356124fd81613fe5565b6000806020838503121561402357600080fd5b823567ffffffffffffffff81111561403a57600080fd5b61404685828601613e7c565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b8181101561408a5783518352928401929184019160010161406e565b50909695505050505050565b600080604083850312156140a957600080fd5b82356140b481613d66565b915060208301356140c481613fe5565b809150509250929050565b600080600080600080608087890312156140e857600080fd5b86359550602087013567ffffffffffffffff8082111561410757600080fd5b6141138a838b01613e7c565b909750955060408901359450606089013591508082111561413357600080fd5b5061414089828a01613e7c565b979a9699509497509295939492505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000806080858703121561419757600080fd5b84356141a281613d66565b935060208501356141b281613d66565b925060408501359150606085013567ffffffffffffffff808211156141d657600080fd5b818701915087601f8301126141ea57600080fd5b8135818111156141fc576141fc614152565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171561424257614242614152565b816040528281528a602084870101111561425b57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806000806060858703121561429557600080fd5b84356142a081613d66565b935060208501359250604085013567ffffffffffffffff811115613f0357600080fd5b6000806000604084860312156142d857600080fd5b83359250602084013567ffffffffffffffff8111156142f657600080fd5b61430286828701613e7c565b9497909650939450505050565b6000806040838503121561432257600080fd5b823561432d81613d66565b915060208301356140c481613d66565b6000806000806080858703121561435357600080fd5b843561435e81613d66565b9350602085013561436e81613d66565b925060408501359150606085013561438581613fe5565b939692955090935050565b600181811c908216806143a457607f821691505b602082108114156143de577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600081600019048311821515161561442d5761442d6143e4565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261447057614470614432565b500490565b60006020828403121561448757600080fd5b81516124fd81613d66565b600082198211156144a5576144a56143e4565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261450e57600080fd5b83018035915067ffffffffffffffff82111561452957600080fd5b6020019150600581901b3603821315613ec157600080fd5b600181815b8085111561457c578160001904821115614562576145626143e4565b8085161561456f57918102915b93841c9390800290614546565b509250929050565b60008261459357506001610c51565b816145a057506000610c51565b81600181146145b657600281146145c0576145dc565b6001915050610c51565b60ff8411156145d1576145d16143e4565b50506001821b610c51565b5060208310610133831016604e8410600b84101617156145ff575081810a610c51565b6146098383614541565b806000190482111561461d5761461d6143e4565b029392505050565b60006124fd8383614584565b600082821015614643576146436143e4565b500390565b60808101818360005b6004811015614670578151835260209283019290910190600101614651565b50505092915050565b6000835161468b818460208801613cc4565b83519083019061469f818360208801613cc4565b01949350505050565b6000826146b7576146b7614432565b500690565b6000602082840312156146ce57600080fd5b81516124fd81613fe5565b60006000198214156146ed576146ed6143e4565b5060010190565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261167d6080830184613cf0565b60006020828403121561473857600080fd5b81516124fd81613c7956fea2646970667358221220d6542908d5c1f61bfc8a2709721c11b1d13d13e6a0f1f2524155931ad10bde2664736f6c63430008090033

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

00000000000000000000000000000000000000000000000000000000000000420000000000000000000000000b0b186841c55d8a09d53db48dc8cab9dbf4dbd60000000000000000000000000000000000000000000000000000000000000258

-----Decoded View---------------
Arg [0] : _initialBatchCount (uint256): 66
Arg [1] : _immutableSatoshible (address): 0x0B0b186841C55D8a09d53Db48dc8cab9dbf4Dbd6
Arg [2] : _royaltiesPercentage (uint256): 600

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [1] : 0000000000000000000000000b0b186841c55d8a09d53db48dc8cab9dbf4dbd6
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000258


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

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