ETH Price: $2,673.23 (+1.36%)

Token

Kinetic Spectrum (SPCTR)
 

Overview

Max Total Supply

181 SPCTR

Holders

71

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
loz.eth
Balance
3 SPCTR
0x3932F608f69Eeb3e58EE067BE0b03CA4d82da6Fb
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
KineticSpectrum

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Multiple files format)

File 10 of 20: KineticSpectrum.sol
//SPDX-License-Identifier: CC0
pragma solidity ^0.8.12;

// Name: Kinetic Spectrum Minter
// Description: Contract that mints tokens and store seeds
// Twitter: @KineticSpectrum
// Design: biron.eth
// Buidl: himlate.eth
//_______________________________________________________________________________________________________________________________________
//_____/\\\\\\\\\\\______________________________________________________________________________________________________________________
//____/\\\/////////\\\___________________________________________________________________________________________________________________
//____\//\\\______\///____/\\\\\\\\\___________________________________/\\\______________________________________________________________
//______\////\\\__________/\\\/////\\\_____/\\\\\\\\______/\\\\\\\\__/\\\\\\\\\\\__/\\/\\\\\\\___/\\\____/\\\____/\\\\\__/\\\\\__________
//__________\////\\\______\/\\\\\\\\\\____/\\\/////\\\___/\\\//////__\////\\\////__\/\\\/////\\\_\/\\\___\/\\\__/\\\///\\\\\///\\\_______
//_______________\////\\\___\/\\\//////____/\\\\\\\\\\\___/\\\____________\/\\\______\/\\\___\///__\/\\\___\/\\\_\/\\\_\//\\\__\/\\\_____
//________/\\\______\//\\\__\/\\\_________\//\\///////___\//\\\___________\/\\\_/\\__\/\\\_________\/\\\___\/\\\_\/\\\__\/\\\__\/\\\_____
//________\///\\\\\\\\\\\/___\/\\\__________\//\\\\\\\\\\__\///\\\\\\\\____\//\\\\\___\/\\\_________\//\\\\\\\\\__\/\\\__\/\\\__\/\\\____
//___________\///////////_____\///____________\//////////_____\////////______\/////____\///___________\/////////___\///___\///___\///____
//_______________________________________________________________________________________________________________________________________
//_______________________________________________________________________________________________________________________________________
//_______________________________________________________________________________________________________________________________________

import "./ERC721A.sol";
import "./ReentrancyGuard.sol";
import "./Ownable.sol";
import "./MerkleProof.sol";
import "./Utils.sol";
import "./SpectrumGeneratorInterface.sol";

contract KineticSpectrum is ERC721A, Ownable, ReentrancyGuard {
    uint256 public constant MAX_SPECTRUMS = 1111;
    uint256 public constant MAX_FOUNDER = 20;
    uint256 public constant PRICE = 0.03 ether;
    uint256 public constant FRIENDS_PRICE = 0.02 ether;

    bool public isFriendSale = false;
    bool public isPublicSale = false;

    bytes32 private root;

    mapping(uint256 => uint256) public seeds;
    mapping(address => uint256) public mintedAddress;
    mapping(address => bool) public founders;

    SpectrumGeneratorInterface public spectrumGenerator;

    constructor(SpectrumGeneratorInterface _spectrumGenerator)
        ERC721A("Kinetic Spectrum", "SPCTR")
    {
        spectrumGenerator = _spectrumGenerator;
    }

    function _createSeed(uint256 _tokenId, address _address)
        internal
        view
        returns (uint256)
    {
        return
            uint256(
                keccak256(
                    abi.encodePacked(
                        _tokenId,
                        _address,
                        utils.getRandomInteger("spectrum", _tokenId, 0, 42069),
                        block.difficulty,
                        block.timestamp
                    )
                )
            );
    }

    function tokenURI(uint256 _tokenId)
        public
        view
        override
        returns (string memory)
    {
        require(_tokenId < _totalMinted(), "TokenId not yet minted");
        return spectrumGenerator.tokenURI(_tokenId, seeds[_tokenId]);
    }

    function mint(uint256 _q) external payable nonReentrant {
        require(isPublicSale, "Sale has not started");
        require(_q > 0, "You should mint one");
        require(_currentIndex <= MAX_SPECTRUMS, "All metavatars minted");
        require(
            _currentIndex + _q <= MAX_SPECTRUMS,
            "Minting exceeds max supply"
        );
        require(PRICE * _q <= msg.value, "Min 0.03eth per Spectrum");
        uint256 currentTokenId = _currentIndex;

        _safeMint(msg.sender, _q);
        mintedAddress[msg.sender] += _q;

        for (uint8 i = 0; i < _q; i++) {
            seeds[currentTokenId] = _createSeed(currentTokenId, msg.sender);

            currentTokenId++;
        }
    }

    function friendMint(uint256 _q, bytes32[] calldata _merkleProof)
        external
        payable
        nonReentrant
    {
        require(isFriendSale, "Sale has not started or has finished");
        require(_q > 0, "You should mint one");
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(
            MerkleProof.verify(_merkleProof, root, leaf),
            "This address is not in friendlist"
        );
        require(_currentIndex <= MAX_SPECTRUMS, "All metavatars minted");
        require(
            _currentIndex + _q <= MAX_SPECTRUMS,
            "Minting exceeds max supply"
        );
        require(FRIENDS_PRICE * _q <= msg.value, "Min 0.02eth per Spectrum");

        uint256 currentTokenId = _currentIndex;

        _safeMint(msg.sender, _q);
        mintedAddress[msg.sender] += _q;

        for (uint8 i = 0; i < _q; i++) {
            seeds[currentTokenId] = _createSeed(currentTokenId, msg.sender);

            currentTokenId++;
        }
    }

    function foundersMint(uint256 _q) external payable nonReentrant {
        require(founders[msg.sender], "You are not a founder");
        require(_currentIndex <= MAX_SPECTRUMS, "All metavatars minted");
        require(
            _currentIndex + _q <= MAX_SPECTRUMS,
            "Minting exceeds max supply"
        );
        require(mintedAddress[msg.sender] + _q <= MAX_FOUNDER, "Max reached");
        uint256 currentTokenId = _currentIndex;

        _safeMint(msg.sender, _q);
        mintedAddress[msg.sender] += _q;

        for (uint8 i = 0; i < _q; i++) {
            seeds[currentTokenId] = _createSeed(currentTokenId, msg.sender);

            currentTokenId++;
        }
    }

    function airdrop(address _address) external onlyOwner {
        require(_currentIndex <= MAX_SPECTRUMS, "All metavatars minted");
        require(
            _currentIndex + 1 <= MAX_SPECTRUMS,
            "Minting exceeds max supply"
        );
        seeds[_currentIndex] = _createSeed(_currentIndex, msg.sender);
        mintedAddress[_address] += 1;
        _safeMint(_address, 1);
    }

    function addFounder(address _address) external onlyOwner {
        founders[_address] = true;
    }

    function withdraw() external payable onlyOwner {
        payable(owner()).transfer(address(this).balance);
    }

    function startFriendSale() external onlyOwner {
        isFriendSale = true;
    }

    function stopFriendSale() external onlyOwner {
        isFriendSale = false;
    }

    function startPublicSale() external onlyOwner {
        isPublicSale = true;
    }

    function stopPublicSale() external onlyOwner {
        isPublicSale = false;
    }

    function setRoot(bytes32 _root) external onlyOwner {
        root = _root;
    }

    function setGenerator(SpectrumGeneratorInterface _spectrumGenerator)
        external
        onlyOwner
    {
        spectrumGenerator = _spectrumGenerator;
    }
}

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 2 of 20: Base64.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides functions for encoding/decoding base64
library Base64 {
    string internal constant TABLE_ENCODE =
        "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
    bytes internal constant TABLE_DECODE =
        hex"0000000000000000000000000000000000000000000000000000000000000000"
        hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000"
        hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000"
        hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000";

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return "";

        // load the table into memory
        string memory table = TABLE_ENCODE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 3 bytes at a time
            for {

            } lt(dataPtr, endPtr) {

            } {
                // read 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // write 4 characters
                mstore8(
                    resultPtr,
                    mload(add(tablePtr, and(shr(18, input), 0x3F)))
                )
                resultPtr := add(resultPtr, 1)
                mstore8(
                    resultPtr,
                    mload(add(tablePtr, and(shr(12, input), 0x3F)))
                )
                resultPtr := add(resultPtr, 1)
                mstore8(
                    resultPtr,
                    mload(add(tablePtr, and(shr(6, input), 0x3F)))
                )
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1)
            }

            // padding with '='
            switch mod(mload(data), 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }
        }

        return result;
    }

    function decode(string memory _data) internal pure returns (bytes memory) {
        bytes memory data = bytes(_data);

        if (data.length == 0) return new bytes(0);
        require(data.length % 4 == 0, "invalid base64 decoder input");

        // load the table into memory
        bytes memory table = TABLE_DECODE;

        // every 4 characters represent 3 bytes
        uint256 decodedLen = (data.length / 4) * 3;

        // add some extra buffer at the end required for the writing
        bytes memory result = new bytes(decodedLen + 32);

        assembly {
            // padding with '='
            let lastBytes := mload(add(data, mload(data)))
            if eq(and(lastBytes, 0xFF), 0x3d) {
                decodedLen := sub(decodedLen, 1)
                if eq(and(lastBytes, 0xFFFF), 0x3d3d) {
                    decodedLen := sub(decodedLen, 1)
                }
            }

            // set the actual output length
            mstore(result, decodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 4 characters at a time
            for {

            } lt(dataPtr, endPtr) {

            } {
                // read 4 characters
                dataPtr := add(dataPtr, 4)
                let input := mload(dataPtr)

                // write 3 bytes
                let output := add(
                    add(
                        shl(
                            18,
                            and(
                                mload(add(tablePtr, and(shr(24, input), 0xFF))),
                                0xFF
                            )
                        ),
                        shl(
                            12,
                            and(
                                mload(add(tablePtr, and(shr(16, input), 0xFF))),
                                0xFF
                            )
                        )
                    ),
                    add(
                        shl(
                            6,
                            and(
                                mload(add(tablePtr, and(shr(8, input), 0xFF))),
                                0xFF
                            )
                        ),
                        and(mload(add(tablePtr, and(input, 0xFF))), 0xFF)
                    )
                )
                mstore(resultPtr, shl(232, output))
                resultPtr := add(resultPtr, 3)
            }
        }

        return result;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 5 of 20: ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

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

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

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

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

    /**
     * @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 override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

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

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

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId)
        internal
        view
        returns (TokenOwnership memory)
    {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr && curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _ownershipOf(tokenId).addr;
    }

    /**
     * @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)
    {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        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 override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

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

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId)
        public
        view
        override
        returns (address)
    {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

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

        _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 {
        _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 {
        _transfer(from, to, tokenId);
        if (
            to.isContract() &&
            !_checkContractOnERC721Received(from, to, tokenId, _data)
        ) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex &&
            !_ownerships[tokenId].burned;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, "");
    }

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

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

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (
                        !_checkContractOnERC721Received(
                            address(0),
                            to,
                            updatedIndex++,
                            _data
                        )
                    ) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

    /**
     * @dev This is equivalent to _burn(tokenId, false)
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

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

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try
            IERC721Receiver(to).onERC721Received(
                _msgSender(),
                from,
                tokenId,
                _data
            )
        returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

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

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

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

pragma solidity ^0.8.0;

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

File 7 of 20: IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "./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 8 of 20: IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";

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

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

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

File 9 of 20: IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

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

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

pragma solidity ^0.8.0;

import "./Context.sol";

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 14 of 20: SpectrumDetails.sol
//SPDX-License-Identifier: CC0
pragma solidity ^0.8.12;

// Name: Kinetic Spectrum Details
// Description: Contract that holds and returns shape details
// Twitter: @KineticSpectrum
// Design: biron.eth
// Buidl: himlate.eth
//_______________________________________________________________________________________________________________________________________
//_____/\\\\\\\\\\\______________________________________________________________________________________________________________________
//____/\\\/////////\\\___________________________________________________________________________________________________________________
//____\//\\\______\///____/\\\\\\\\\___________________________________/\\\______________________________________________________________
//______\////\\\__________/\\\/////\\\_____/\\\\\\\\______/\\\\\\\\__/\\\\\\\\\\\__/\\/\\\\\\\___/\\\____/\\\____/\\\\\__/\\\\\__________
//__________\////\\\______\/\\\\\\\\\\____/\\\/////\\\___/\\\//////__\////\\\////__\/\\\/////\\\_\/\\\___\/\\\__/\\\///\\\\\///\\\_______
//_______________\////\\\___\/\\\//////____/\\\\\\\\\\\___/\\\____________\/\\\______\/\\\___\///__\/\\\___\/\\\_\/\\\_\//\\\__\/\\\_____
//________/\\\______\//\\\__\/\\\_________\//\\///////___\//\\\___________\/\\\_/\\__\/\\\_________\/\\\___\/\\\_\/\\\__\/\\\__\/\\\_____
//________\///\\\\\\\\\\\/___\/\\\__________\//\\\\\\\\\\__\///\\\\\\\\____\//\\\\\___\/\\\_________\//\\\\\\\\\__\/\\\__\/\\\__\/\\\____
//___________\///////////_____\///____________\//////////_____\////////______\/////____\///___________\/////////___\///___\///___\///____
//_______________________________________________________________________________________________________________________________________
//_______________________________________________________________________________________________________________________________________
//_______________________________________________________________________________________________________________________________________

import "./SpectrumDetailsInterface.sol";

contract SpectrumDetails is SpectrumDetailsInterface {
    string constant commonSingle =
        '<path fill-rule="evenodd" clip-rule="evenodd" d="M500 880C709.868 880 880 709.868 880 500C880 290.132 709.868 120 500 120C290.132 120 120 290.132 120 500C120 709.868 290.132 880 500 880ZM500 900C720.914 900 900 720.914 900 500C900 279.086 720.914 100 500 100C279.086 100 100 279.086 100 500C100 720.914 279.086 900 500 900Z" fill="white"/>';
    string constant commonDouble =
        '<path fill-rule="evenodd" clip-rule="evenodd" d="M880 500C880 709.868 709.868 880 500 880C290.132 880 120 709.868 120 500C120 290.132 290.132 120 500 120C709.868 120 880 290.132 880 500ZM900 500C900 720.914 720.914 900 500 900C279.086 900 100 720.914 100 500C100 279.086 279.086 100 500 100C720.914 100 900 279.086 900 500ZM760 500C760 643.594 643.594 760 500 760C356.406 760 240 643.594 240 500C240 356.406 356.406 240 500 240C643.594 240 760 356.406 760 500ZM780 500C780 654.64 654.64 780 500 780C345.36 780 220 654.64 220 500C220 345.36 345.36 220 500 220C654.64 220 780 345.36 780 500Z" fill="white"/>';
    string constant commonTriple =
        '<path fill-rule="evenodd" clip-rule="evenodd" d="M500 880C709.868 880 880 709.868 880 500C880 290.132 709.868 120 500 120C290.132 120 120 290.132 120 500C120 709.868 290.132 880 500 880ZM500 900C720.914 900 900 720.914 900 500C900 279.086 720.914 100 500 100C279.086 100 100 279.086 100 500C100 720.914 279.086 900 500 900ZM500 760C643.594 760 760 643.594 760 500C760 356.406 643.594 240 500 240C356.406 240 240 356.406 240 500C240 643.594 356.406 760 500 760ZM500 780C654.64 780 780 654.64 780 500C780 345.36 654.64 220 500 220C345.36 220 220 345.36 220 500C220 654.64 345.36 780 500 780ZM640 500C640 577.32 577.32 640 500 640C422.68 640 360 577.32 360 500C360 422.68 422.68 360 500 360C577.32 360 640 422.68 640 500ZM660 500C660 588.366 588.366 660 500 660C411.634 660 340 588.366 340 500C340 411.634 411.634 340 500 340C588.366 340 660 411.634 660 500Z" fill="white"/>';
    string constant rareSingle =
        '<path fill-rule="evenodd" clip-rule="evenodd" d="M500 960C754.051 960 960 754.051 960 500C960 245.949 754.051 40 500 40C245.949 40 40 245.949 40 500C40 754.051 245.949 960 500 960ZM500 980C765.097 980 980 765.097 980 500C980 234.903 765.097 20 500 20C234.903 20 20 234.903 20 500C20 765.097 234.903 980 500 980Z" fill="white"/>';
    string constant rareDouble =
        '<path fill-rule="evenodd" clip-rule="evenodd" d="M960 500C960 754.051 754.051 960 500 960C245.949 960 40 754.051 40 500C40 245.949 245.949 40 500 40C754.051 40 960 245.949 960 500ZM980 500C980 765.097 765.097 980 500 980C234.903 980 20 765.097 20 500C20 234.903 234.903 20 500 20C765.097 20 980 234.903 980 500ZM920 500C920 731.96 731.96 920 500 920C268.04 920 80 731.96 80 500C80 268.04 268.04 80 500 80C731.96 80 920 268.04 920 500ZM940 500C940 743.005 743.005 940 500 940C256.995 940 60 743.005 60 500C60 256.995 256.995 60 500 60C743.005 60 940 256.995 940 500Z" fill="white"/>';
    string constant rareTriple =
        '<path fill-rule="evenodd" clip-rule="evenodd" d="M500 960C754.051 960 960 754.051 960 500C960 245.949 754.051 40 500 40C245.949 40 40 245.949 40 500C40 754.051 245.949 960 500 960ZM500 980C765.097 980 980 765.097 980 500C980 234.903 765.097 20 500 20C234.903 20 20 234.903 20 500C20 765.097 234.903 980 500 980ZM500 920C731.96 920 920 731.96 920 500C920 268.04 731.96 80 500 80C268.04 80 80 268.04 80 500C80 731.96 268.04 920 500 920ZM500 940C743.005 940 940 743.005 940 500C940 256.995 743.005 60 500 60C256.995 60 60 256.995 60 500C60 743.005 256.995 940 500 940ZM880 500C880 709.868 709.868 880 500 880C290.132 880 120 709.868 120 500C120 290.132 290.132 120 500 120C709.868 120 880 290.132 880 500ZM900 500C900 720.914 720.914 900 500 900C279.086 900 100 720.914 100 500C100 279.086 279.086 100 500 100C720.914 100 900 279.086 900 500Z" fill="white"/>';
    string constant epicSingle =
        '<path fill-rule="evenodd" clip-rule="evenodd" d="M500 900C720.914 900 900 720.914 900 500C900 279.086 720.914 100 500 100C279.086 100 100 279.086 100 500C100 720.914 279.086 900 500 900ZM500 1000C776.142 1000 1000 776.142 1000 500C1000 223.858 776.142 0 500 0C223.858 0 0 223.858 0 500C0 776.142 223.858 1000 500 1000Z" fill="white"/>';
    string constant epicDouble =
        '<path fill-rule="evenodd" clip-rule="evenodd" d="M499 799C664.685 799 799 664.685 799 499C799 333.315 664.685 199 499 199C333.315 199 199 333.315 199 499C199 664.685 333.315 799 499 799ZM499 899C719.914 899 899 719.914 899 499C899 278.086 719.914 99 499 99C278.086 99 99 278.086 99 499C99 719.914 278.086 899 499 899Z" fill="white"/>';
    string constant epicTriple =
        '<path fill-rule="evenodd" clip-rule="evenodd" d="M800 500C800 665.685 665.685 800 500 800C334.315 800 200 665.685 200 500C200 334.315 334.315 200 500 200C665.685 200 800 334.315 800 500ZM900 500C900 720.914 720.914 900 500 900C279.086 900 100 720.914 100 500C100 279.086 279.086 100 500 100C720.914 100 900 279.086 900 500ZM601 501C601 556.228 556.228 601 501 601C445.772 601 401 556.228 401 501C401 445.772 445.772 401 501 401C556.228 401 601 445.772 601 501ZM701 501C701 611.457 611.457 701 501 701C390.543 701 301 611.457 301 501C301 390.543 390.543 301 501 301C611.457 301 701 390.543 701 501Z" fill="white"/>';
    string constant legendary =
        '<path fill-rule="evenodd" clip-rule="evenodd" d="M995 500C995 773.381 773.381 995 500 995C226.619 995 5 773.381 5 500C5 226.619 226.619 5 500 5C773.381 5 995 226.619 995 500ZM1000 500C1000 776.142 776.142 1000 500 1000C223.858 1000 0 776.142 0 500C0 223.858 223.858 0 500 0C776.142 0 1000 223.858 1000 500ZM500 975C762.335 975 975 762.335 975 500C975 237.665 762.335 25 500 25C237.665 25 25 237.665 25 500C25 762.335 237.665 975 500 975ZM500 980C765.097 980 980 765.097 980 500C980 234.903 765.097 20 500 20C234.903 20 20 234.903 20 500C20 765.097 234.903 980 500 980ZM500 790C660.163 790 790 660.163 790 500C790 339.837 660.163 210 500 210C339.837 210 210 339.837 210 500C210 660.163 339.837 790 500 790ZM500 840C687.777 840 840 687.777 840 500C840 312.223 687.777 160 500 160C312.223 160 160 312.223 160 500C160 687.777 312.223 840 500 840ZM500 955C751.29 955 955 751.29 955 500C955 248.71 751.29 45 500 45C248.71 45 45 248.71 45 500C45 751.29 248.71 955 500 955ZM500 960C754.051 960 960 754.051 960 500C960 245.949 754.051 40 500 40C245.949 40 40 245.949 40 500C40 754.051 245.949 960 500 960ZM935 500C935 740.244 740.244 935 500 935C259.756 935 65 740.244 65 500C65 259.756 259.756 65 500 65C740.244 65 935 259.756 935 500ZM940 500C940 743.005 743.005 940 500 940C256.995 940 60 743.005 60 500C60 256.995 256.995 60 500 60C743.005 60 940 256.995 940 500ZM500 915C729.198 915 915 729.198 915 500C915 270.802 729.198 85 500 85C270.802 85 85 270.802 85 500C85 729.198 270.802 915 500 915ZM500 920C731.96 920 920 731.96 920 500C920 268.04 731.96 80 500 80C268.04 80 80 268.04 80 500C80 731.96 268.04 920 500 920ZM895 500C895 718.152 718.152 895 500 895C281.848 895 105 718.152 105 500C105 281.848 281.848 105 500 105C718.152 105 895 281.848 895 500ZM900 500C900 720.914 720.914 900 500 900C279.086 900 100 720.914 100 500C100 279.086 279.086 100 500 100C720.914 100 900 279.086 900 500ZM500 875C707.107 875 875 707.107 875 500C875 292.893 707.107 125 500 125C292.893 125 125 292.893 125 500C125 707.107 292.893 875 500 875ZM500 880C709.868 880 880 709.868 880 500C880 290.132 709.868 120 500 120C290.132 120 120 290.132 120 500C120 709.868 290.132 880 500 880ZM855 500C855 696.061 696.061 855 500 855C303.939 855 145 696.061 145 500C145 303.939 303.939 145 500 145C696.061 145 855 303.939 855 500ZM860 500C860 698.823 698.823 860 500 860C301.177 860 140 698.823 140 500C140 301.177 301.177 140 500 140C698.823 140 860 301.177 860 500Z" fill="white"/>';
    string constant impossible =
        '<path fill-rule="evenodd" clip-rule="evenodd" d="M910 500C910 726.437 726.437 910 500 910C273.563 910 90 726.437 90 500C90 273.563 273.563 90 500 90C726.437 90 910 273.563 910 500ZM990 500C990 770.62 770.62 990 500 990C229.38 990 10 770.62 10 500C10 229.38 229.38 10 500 10C770.62 10 990 229.38 990 500ZM880 500C880 709.868 709.868 880 500 880C290.132 880 120 709.868 120 500C120 290.132 290.132 120 500 120C709.868 120 880 290.132 880 500ZM900 500C900 720.914 720.914 900 500 900C279.086 900 100 720.914 100 500C100 279.086 279.086 100 500 100C720.914 100 900 279.086 900 500ZM500 700C610.457 700 700 610.457 700 500C700 389.543 610.457 300 500 300C389.543 300 300 389.543 300 500C300 610.457 389.543 700 500 700ZM500 720C621.503 720 720 621.503 720 500C720 378.498 621.503 280 500 280C378.497 280 280 378.498 280 500C280 621.503 378.497 720 500 720ZM550 500C550 527.614 527.614 550 500 550C472.386 550 450 527.614 450 500C450 472.386 472.386 450 500 450C527.614 450 550 472.386 550 500ZM690 500C690 604.934 604.934 690 500 690C395.066 690 310 604.934 310 500C310 395.066 395.066 310 500 310C604.934 310 690 395.066 690 500ZM500 220C511.046 220 520 211.046 520 200C520 188.954 511.046 180 500 180C488.954 180 480 188.954 480 200C480 211.046 488.954 220 500 220ZM537.75 213.259C532.28 228.834 517.444 240 500 240C482.557 240 467.721 228.834 462.25 213.26C460.997 229.72 449.557 244.345 432.708 248.859C415.858 253.374 398.637 246.428 389.322 232.799C392.373 249.022 385.108 266.111 370 274.833C354.893 283.556 336.461 281.303 323.936 270.549C331.082 285.43 328.488 303.817 316.152 316.153C303.818 328.487 285.432 331.082 270.552 323.938C281.304 336.463 283.555 354.893 274.834 370C266.111 385.107 249.022 392.372 232.798 389.321C246.427 398.636 253.374 415.857 248.859 432.707C244.344 449.557 229.719 460.997 213.259 462.25C228.834 467.72 240 482.556 240 500C240 517.444 228.834 532.28 213.259 537.75C229.719 539.003 244.345 550.443 248.86 567.293C253.374 584.143 246.428 601.363 232.8 610.678C249.023 607.628 266.111 614.893 274.833 630C283.555 645.106 281.303 663.537 270.551 676.061C285.432 668.916 303.819 671.511 316.153 683.846C328.488 696.181 331.083 714.568 323.938 729.449C336.462 718.697 354.893 716.445 369.999 725.167C385.107 733.889 392.372 750.979 389.321 767.202C398.635 753.573 415.857 746.626 432.707 751.141C449.557 755.656 460.998 770.282 462.25 786.741C467.72 771.166 482.556 759.998 500.001 759.998C517.445 759.998 532.28 771.164 537.751 786.738C539.004 770.279 550.444 755.655 567.293 751.14C584.143 746.626 601.364 753.572 610.678 767.2C607.628 750.977 614.893 733.889 630 725.167C645.108 716.444 663.539 718.697 676.064 729.45C668.917 714.569 671.512 696.181 683.847 683.846C696.182 671.511 714.568 668.916 729.448 676.06C718.697 663.536 716.445 645.106 725.167 630C733.889 614.893 750.976 607.628 767.198 610.677C753.571 601.362 746.626 584.142 751.141 567.294C755.656 550.444 770.281 539.004 786.741 537.751C771.166 532.281 760 517.445 760 500.001C760 482.556 771.167 467.72 786.742 462.25C770.281 460.998 755.655 449.558 751.14 432.708C746.625 415.858 753.571 398.638 767.199 389.323C750.976 392.372 733.889 385.107 725.167 370.001C716.445 354.893 718.698 336.461 729.452 323.936C714.571 331.082 696.183 328.488 683.848 316.152C671.513 303.818 668.918 285.432 676.063 270.551C663.538 281.303 645.107 283.555 630 274.834C614.893 266.111 607.628 249.023 610.678 232.799C601.364 246.428 584.143 253.375 567.293 248.86C550.443 244.345 539.003 229.719 537.75 213.259ZM217.655 616.951C200.499 628.623 195.009 651.74 205.551 670C216.093 688.26 238.859 695.063 257.545 686.042C243.996 701.757 244.676 725.506 259.585 740.415C274.493 755.323 298.243 756.003 313.958 742.454C304.936 761.141 311.739 783.906 329.999 794.449C348.26 804.991 371.378 799.5 383.05 782.342C379.171 802.728 391.635 822.958 412.002 828.415C432.369 833.872 453.278 822.585 460.111 802.991C461.642 823.685 478.916 839.998 500.001 839.998C521.085 839.998 538.359 823.686 539.891 802.994C546.725 822.585 567.633 833.871 587.999 828.414C608.365 822.957 620.829 802.729 616.951 782.344C628.624 799.5 651.74 804.991 670 794.449C688.261 783.906 695.064 761.139 686.041 742.452C701.756 756.003 725.507 755.323 740.416 740.414C755.324 725.506 756.004 701.757 742.456 686.042C761.143 695.062 783.907 688.259 794.449 670C804.991 651.741 799.501 628.625 782.347 616.952C802.731 620.828 822.958 608.365 828.415 587.999C833.872 567.633 822.585 546.725 802.993 539.89C823.686 538.36 840 521.085 840 500.001C840 478.916 823.686 461.641 802.992 460.111C822.584 453.277 833.871 432.368 828.414 412.002C822.957 391.636 802.73 379.173 782.346 383.049C799.501 371.377 804.991 348.26 794.449 330.001C783.906 311.74 761.14 304.937 742.453 313.96C756.005 298.245 755.326 274.493 740.416 259.584C725.507 244.675 701.758 243.995 686.043 257.545C695.063 238.858 688.26 216.094 670 205.552C651.74 195.009 628.623 200.5 616.951 217.657C620.828 197.272 608.365 177.043 587.998 171.586C567.632 166.129 546.724 177.415 539.89 197.007C538.359 176.314 521.085 160 500 160C478.916 160 461.642 176.313 460.11 197.006C453.275 177.414 432.368 166.128 412.002 171.585C391.636 177.042 379.172 197.271 383.05 217.656C371.378 200.5 348.261 195.009 330 205.551C311.74 216.094 304.937 238.86 313.959 257.547C298.244 243.996 274.493 244.675 259.584 259.584C244.675 274.493 243.995 298.242 257.544 313.957C238.858 304.937 216.094 311.74 205.552 330C195.009 348.26 200.501 371.378 217.658 383.05C197.272 379.171 177.042 391.635 171.585 412.002C166.128 432.368 177.415 453.276 197.007 460.111C176.314 461.641 160 478.916 160 500C160 521.085 176.314 538.359 197.007 539.89C177.415 546.724 166.128 567.632 171.586 587.999C177.043 608.365 197.271 620.828 217.655 616.951ZM726.274 302.01C718.464 309.821 705.8 309.821 697.99 302.01C690.179 294.2 690.179 281.536 697.99 273.726C705.8 265.915 718.464 265.915 726.274 273.726C734.084 281.536 734.084 294.2 726.274 302.01ZM780 500.001C780 511.046 788.954 520.001 800 520.001C811.046 520.001 820 511.046 820 500.001C820 488.955 811.046 480.001 800 480.001C788.954 480.001 780 488.955 780 500.001ZM697.99 726.272C690.179 718.462 690.179 705.798 697.99 697.988C705.8 690.177 718.463 690.177 726.274 697.988C734.084 705.798 734.084 718.462 726.274 726.272C718.463 734.083 705.8 734.083 697.99 726.272ZM500.001 819.998C511.047 819.998 520.001 811.044 520.001 799.998C520.001 788.953 511.047 779.998 500.001 779.998C488.955 779.998 480.001 788.953 480.001 799.998C480.001 811.044 488.955 819.998 500.001 819.998ZM302.011 726.272C294.201 734.083 281.538 734.083 273.727 726.272C265.917 718.462 265.917 705.799 273.727 697.988C281.537 690.178 294.201 690.178 302.011 697.988C309.822 705.799 309.822 718.462 302.011 726.272ZM180 500C180 511.046 188.954 520 200 520C211.046 520 220 511.046 220 500C220 488.955 211.046 480 200 480C188.954 480 180 488.955 180 500ZM273.726 302.011C265.915 294.2 265.915 281.537 273.726 273.726C281.536 265.916 294.2 265.916 302.01 273.726C309.821 281.537 309.821 294.2 302.01 302.011C294.2 309.821 281.536 309.821 273.726 302.011ZM360 257.513C369.566 251.99 372.844 239.758 367.321 230.192C361.798 220.626 349.566 217.349 340 222.872C330.435 228.395 327.157 240.626 332.68 250.192C338.203 259.758 350.435 263.036 360 257.513ZM596.964 215.399C594.105 226.068 583.139 232.4 572.469 229.541C561.8 226.682 555.468 215.716 558.327 205.046C561.186 194.377 572.153 188.045 582.822 190.904C593.491 193.763 599.823 204.73 596.964 215.399ZM742.488 360.001C748.011 369.566 760.242 372.844 769.808 367.321C779.374 361.798 782.652 349.566 777.129 340.001C771.606 330.435 759.374 327.157 749.808 332.68C740.242 338.203 736.965 350.435 742.488 360.001ZM784.601 596.965C773.932 594.106 767.6 583.139 770.459 572.47C773.318 561.801 784.285 555.469 794.954 558.328C805.623 561.187 811.955 572.153 809.096 582.823C806.237 593.492 795.271 599.824 784.601 596.965ZM660 777.128C669.566 771.605 672.844 759.373 667.321 749.807C661.798 740.242 649.566 736.964 640 742.487C630.435 748.01 627.157 760.242 632.68 769.807C638.203 779.373 650.435 782.651 660 777.128ZM441.673 794.954C438.814 805.624 427.848 811.955 417.178 809.096C406.509 806.238 400.177 795.271 403.036 784.602C405.895 773.932 416.862 767.601 427.531 770.459C438.2 773.318 444.532 784.285 441.673 794.954ZM222.871 660C228.394 669.566 240.626 672.844 250.192 667.321C259.758 661.798 263.035 649.566 257.512 640C251.99 630.434 239.758 627.157 230.192 632.68C220.626 638.203 217.349 650.434 222.871 660ZM205.046 441.673C194.376 438.814 188.045 427.848 190.904 417.178C193.762 406.509 204.729 400.177 215.398 403.036C226.068 405.895 232.399 416.862 229.541 427.531C226.682 438.2 215.715 444.532 205.046 441.673ZM257.513 360C263.036 350.434 259.759 338.202 250.193 332.679C240.627 327.156 228.395 330.434 222.872 340C217.349 349.565 220.627 361.797 230.193 367.32C239.759 372.843 251.99 369.565 257.513 360ZM441.674 205.046C444.532 215.715 438.201 226.682 427.531 229.541C416.862 232.4 405.895 226.068 403.036 215.399C400.178 204.729 406.509 193.763 417.179 190.904C427.848 188.045 438.815 194.377 441.674 205.046ZM640 257.513C649.566 263.036 661.798 259.758 667.321 250.193C672.844 240.627 669.566 228.395 660 222.872C650.435 217.349 638.203 220.627 632.68 230.193C627.157 239.758 630.435 251.99 640 257.513ZM794.954 441.673C784.284 444.532 773.318 438.201 770.459 427.531C767.6 416.862 773.932 405.895 784.601 403.036C795.27 400.177 806.237 406.509 809.096 417.178C811.955 427.848 805.623 438.814 794.954 441.673ZM777.129 660C782.651 650.434 779.374 638.202 769.808 632.679C760.242 627.156 748.01 630.434 742.487 640C736.965 649.565 740.242 661.797 749.808 667.32C759.374 672.843 771.606 669.565 777.129 660ZM596.965 784.601C599.823 795.27 593.492 806.237 582.822 809.096C572.153 811.955 561.186 805.623 558.328 794.954C555.469 784.284 561.8 773.318 572.47 770.459C583.139 767.6 594.106 773.932 596.965 784.601ZM339.999 777.128C349.565 782.651 361.797 779.373 367.32 769.807C372.843 760.242 369.565 748.01 359.999 742.487C350.434 736.964 338.202 740.242 332.679 749.807C327.156 759.373 330.434 771.605 339.999 777.128ZM215.399 596.964C204.73 599.823 193.763 593.492 190.904 582.822C188.045 572.153 194.377 561.186 205.046 558.327C215.715 555.468 226.682 561.8 229.541 572.469C232.4 583.139 226.068 594.105 215.399 596.964Z" fill="white"/><animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 500 500" to="360 500 500" dur="60s" additive="sum" repeatCount="indefinite" />';
    string constant founder =
        '<path d="M1001 501H901C901 280.086 721.914 101 501 101C280.086 101 101 280.086 101 501H1C1 224.858 224.858 1 501 1C777.142 1 1001 224.858 1001 501Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M396 501H296C296 614.218 387.782 706 501 706C614.218 706 706 614.218 706 501H606C606 443.01 558.99 396 501 396C443.01 396 396 443.01 396 501ZM396 501C396 558.99 443.01 606 501 606C558.99 606 606 558.99 606 501H396Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M201 501H101C101 721.914 280.086 901 501 901C721.914 901 901 721.914 901 501H801C801 335.315 666.685 201 501 201C335.315 201 201 335.315 201 501ZM296 501H201C201 666.685 335.315 801 501 801C666.685 801 801 666.685 801 501H706C706 387.782 614.218 296 501 296C387.782 296 296 387.782 296 501Z" fill="white"/><animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 500 500" to="360 500 500" dur="120s" additive="sum" repeatCount="indefinite" />';

    function getDetail(uint256 _d)
        external
        pure
        returns (string memory, string memory)
    {
        string memory detail;
        string memory name;

        if (_d < 2) {
            detail = "";
            name = "Perfect";
        } else if (_d < 4) {
            detail = impossible;
            name = "Impossible";
        } else if (_d < 8) {
            detail = legendary;
            name = "Legendary";
        } else if (_d < 15) {
            detail = epicTriple;
            name = "Epic Triple";
        } else if (_d < 23) {
            detail = epicDouble;
            name = "Epic Double";
        } else if (_d < 29) {
            detail = epicSingle;
            name = "Epic Single";
        } else if (_d < 38) {
            detail = rareTriple;
            name = "Rare Triple";
        } else if (_d < 47) {
            detail = rareDouble;
            name = "Rare Double";
        } else if (_d < 56) {
            detail = rareSingle;
            name = "Rare Single";
        } else if (_d < 68) {
            detail = commonTriple;
            name = "Common Triple";
        } else if (_d < 80) {
            detail = commonDouble;
            name = "Common Double";
        } else if (_d < 92) {
            detail = commonSingle;
            name = "Common Single";
        } else if (_d == 92) {
            detail = founder;
            name = "Founder: himlate.eth";
        } else if (_d == 93) {
            detail = founder;
            name = "Founder: biron.eth";
        }

        return (
            string.concat(
                '<g style="mix-blend-mode:difference">',
                detail,
                "</g>"
            ),
            name
        );
    }
}

File 15 of 20: SpectrumDetailsInterface.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.12;

// Name: Spectrum Details Interface
// Design: biron.eth
// Buidl: himlate.eth
//_______________________________________________________________________________________________________________________________________
//_____/\\\\\\\\\\\______________________________________________________________________________________________________________________
//____/\\\/////////\\\___________________________________________________________________________________________________________________
//____\//\\\______\///____/\\\\\\\\\___________________________________/\\\______________________________________________________________
//______\////\\\__________/\\\/////\\\_____/\\\\\\\\______/\\\\\\\\__/\\\\\\\\\\\__/\\/\\\\\\\___/\\\____/\\\____/\\\\\__/\\\\\__________
//__________\////\\\______\/\\\\\\\\\\____/\\\/////\\\___/\\\//////__\////\\\////__\/\\\/////\\\_\/\\\___\/\\\__/\\\///\\\\\///\\\_______
//_______________\////\\\___\/\\\//////____/\\\\\\\\\\\___/\\\____________\/\\\______\/\\\___\///__\/\\\___\/\\\_\/\\\_\//\\\__\/\\\_____
//________/\\\______\//\\\__\/\\\_________\//\\///////___\//\\\___________\/\\\_/\\__\/\\\_________\/\\\___\/\\\_\/\\\__\/\\\__\/\\\_____
//________\///\\\\\\\\\\\/___\/\\\__________\//\\\\\\\\\\__\///\\\\\\\\____\//\\\\\___\/\\\_________\//\\\\\\\\\__\/\\\__\/\\\__\/\\\____
//___________\///////////_____\///____________\//////////_____\////////______\/////____\///___________\/////////___\///___\///___\///____
//_______________________________________________________________________________________________________________________________________
//_______________________________________________________________________________________________________________________________________
//_______________________________________________________________________________________________________________________________________

interface SpectrumDetailsInterface {
    function getDetail(uint256 _detail)
        external
        view
        returns (string memory, string memory);
}

File 16 of 20: SpectrumGenerator.sol
//SPDX-License-Identifier: CC0
pragma solidity ^0.8.12;

// Name: Kinetic Spectrum Generator
// Description: Contract that generate each Kinetic Spectrum based on a seed
// Twitter: @KineticSpectrum
// Design: biron.eth
// Buidl: himlate.eth
//_______________________________________________________________________________________________________________________________________
//_____/\\\\\\\\\\\______________________________________________________________________________________________________________________
//____/\\\/////////\\\___________________________________________________________________________________________________________________
//____\//\\\______\///____/\\\\\\\\\___________________________________/\\\______________________________________________________________
//______\////\\\__________/\\\/////\\\_____/\\\\\\\\______/\\\\\\\\__/\\\\\\\\\\\__/\\/\\\\\\\___/\\\____/\\\____/\\\\\__/\\\\\__________
//__________\////\\\______\/\\\\\\\\\\____/\\\/////\\\___/\\\//////__\////\\\////__\/\\\/////\\\_\/\\\___\/\\\__/\\\///\\\\\///\\\_______
//_______________\////\\\___\/\\\//////____/\\\\\\\\\\\___/\\\____________\/\\\______\/\\\___\///__\/\\\___\/\\\_\/\\\_\//\\\__\/\\\_____
//________/\\\______\//\\\__\/\\\_________\//\\///////___\//\\\___________\/\\\_/\\__\/\\\_________\/\\\___\/\\\_\/\\\__\/\\\__\/\\\_____
//________\///\\\\\\\\\\\/___\/\\\__________\//\\\\\\\\\\__\///\\\\\\\\____\//\\\\\___\/\\\_________\//\\\\\\\\\__\/\\\__\/\\\__\/\\\____
//___________\///////////_____\///____________\//////////_____\////////______\/////____\///___________\/////////___\///___\///___\///____
//_______________________________________________________________________________________________________________________________________
//_______________________________________________________________________________________________________________________________________
//_______________________________________________________________________________________________________________________________________

import "./SVG.sol";
import "./Utils.sol";
import "./Base64.sol";
import "./SpectrumGeneratorInterface.sol";
import "./SpectrumDetailsInterface.sol";

contract SpectrumGenerator is SpectrumGeneratorInterface {
    uint256 private MIN_LAYERS = 2;
    uint256 private MAX_LAYERS = 6;
    uint256 private MIN_DURATION = 10;
    uint256 private MAX_DURATION = 30;

    SpectrumDetailsInterface public spectrumDetails;

    mapping(uint256 => string) private _tokenURIs;

    uint256 public tokenCounter;

    constructor(SpectrumDetailsInterface _spectrumDetails) {
        spectrumDetails = _spectrumDetails;
    }

    function createLayer(
        string memory _name,
        string memory _duration,
        string memory _rgb
    ) internal pure returns (string memory) {
        return
            string.concat(
                svg.g(
                    string.concat(
                        svg.prop("style", "mix-blend-mode: multiply")
                    ),
                    string.concat(
                        svg.circle(
                            string.concat(
                                svg.prop("cx", "500"),
                                svg.prop("cy", "500"),
                                svg.prop("r", "500"),
                                svg.prop(
                                    "fill",
                                    string.concat("url(#", _name, ")")
                                )
                            ),
                            utils.NULL
                        ),
                        svg.animateTransform(
                            string.concat(
                                svg.prop("attributeType", "xml"),
                                svg.prop("attributeName", "transform"),
                                svg.prop("type", "rotate"),
                                svg.prop("from", "360 500 500"),
                                svg.prop("to", "0 500 500"),
                                svg.prop("dur", string.concat(_duration, "s")),
                                svg.prop("additive", "sum"),
                                svg.prop("repeatCount", "indefinite")
                            )
                        )
                    )
                ),
                svg.defs(
                    utils.NULL,
                    svg.radialGradient(
                        string.concat(
                            svg.prop("id", _name),
                            svg.prop("cx", "0"),
                            svg.prop("cy", "0"),
                            svg.prop("r", "1"),
                            svg.prop("gradientUnits", "userSpaceOnUse"),
                            svg.prop(
                                "gradientTransform",
                                "translate(500) rotate(90) scale(1000)"
                            )
                        ),
                        string.concat(
                            svg.gradientStop(0, _rgb, utils.NULL),
                            svg.gradientStop(
                                100,
                                _rgb,
                                string.concat(svg.prop("stop-opacity", "0"))
                            )
                        )
                    )
                )
            );
    }

    function _getLayers(uint256 seed, uint256 d)
        private
        view
        returns (string memory, string memory)
    {
        uint256 i;
        uint256 iterations = utils.getRandomInteger(
            "iterations",
            seed,
            MIN_LAYERS,
            MAX_LAYERS
        );
        string memory layers;
        string memory layersMeta;

        while (i < iterations) {
            string memory id = utils.uint2str(i);
            uint256 duration = utils.getRandomInteger(
                id,
                seed,
                MIN_DURATION,
                MAX_DURATION
            );
            uint256 r = utils.getRandomInteger(
                string.concat("r_", id),
                seed,
                0,
                255
            );
            uint256[3] memory arr = [r, 0, 255];
            uint256[3] memory shuffledArr = utils.shuffle(arr, i + d);

            layers = string.concat(
                layers,
                createLayer(
                    string.concat("layer_", id),
                    utils.uint2str(duration),
                    string.concat(
                        "rgb(",
                        utils.uint2str(shuffledArr[0]),
                        ",",
                        utils.uint2str(shuffledArr[1]),
                        ",",
                        utils.uint2str(shuffledArr[2]),
                        ")"
                    )
                )
            );

            layersMeta = string.concat(
                layersMeta,
                _createAttribute(
                    "Layer Color",
                    string.concat(
                        utils.uint2str(shuffledArr[0]),
                        ",",
                        utils.uint2str(shuffledArr[1]),
                        ",",
                        utils.uint2str(shuffledArr[2])
                    ),
                    true
                ),
                _createAttribute("Layer Speed", utils.uint2str(duration), true)
            );

            i++;
        }

        return (
            layers,
            string.concat(
                _createAttribute("Layers", utils.uint2str(iterations), true),
                layersMeta
            )
        );
    }

    function _createSvg(uint256 _seed, uint256 _tokenId)
        internal
        view
        returns (string memory, string memory)
    {
        uint256 d = _tokenId < 2
            ? 92 + _tokenId
            : utils.getRandomInteger("_detail", _seed, 1, 92);
        (string memory detail, string memory detailName) = spectrumDetails
            .getDetail(d);
        (string memory layers, string memory layersMeta) = _getLayers(_seed, d);

        string memory stringSvg = string.concat(
            '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1000 1000">',
            svg.circle(
                string.concat(
                    svg.prop("cx", "500"),
                    svg.prop("cy", "500"),
                    svg.prop("r", "500"),
                    svg.prop("fill", "#fff")
                ),
                utils.NULL
            ),
            layers,
            detail,
            "</svg>"
        );

        return (
            string(
                abi.encodePacked(
                    "data:image/svg+xml;base64,",
                    Base64.encode(bytes(stringSvg))
                )
            ),
            string.concat(
                '"attributes":[',
                _createAttribute("Detail", detailName, false),
                layersMeta,
                "]"
            )
        );
    }

    function _createAttribute(
        string memory _type,
        string memory _value,
        bool _leadingComma
    ) internal pure returns (string memory) {
        return
            string.concat(
                _leadingComma ? "," : "",
                '{"trait_type":"',
                _type,
                '","value":"',
                _value,
                '"}'
            );
    }

    function _prepareMetadata(
        uint256 tokenId,
        string memory image,
        string memory attributes
    ) internal pure returns (string memory) {
        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    Base64.encode(
                        bytes(
                            abi.encodePacked(
                                '{"name":"Spectrum #',
                                utils.uint2str(tokenId),
                                '", "description":"Kinetic Spectrums is a collection of dynamic, ever changing artworks stored on the Ethereum Network. Each Spectrum is made by combining 2 to 5 layers of color. These layers multiply with each other and slowly rotate at a different speeds meaning your NFT is constantly changing color and evolving the longer you watch it.", ',
                                attributes,
                                ', "image":"',
                                image,
                                '"}'
                            )
                        )
                    )
                )
            );
    }

    function tokenURI(uint256 _tokenId, uint256 _seed)
        external
        view
        returns (string memory)
    {
        (string memory svg64, string memory attributes) = _createSvg(
            _seed,
            _tokenId
        );

        return _prepareMetadata(_tokenId, svg64, attributes);
    }
}

File 17 of 20: SpectrumGeneratorInterface.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.12;

// Name: Spectrum Interface
// Design: biron.eth
// Buidl: himlate.eth
//_______________________________________________________________________________________________________________________________________
//_____/\\\\\\\\\\\______________________________________________________________________________________________________________________
//____/\\\/////////\\\___________________________________________________________________________________________________________________
//____\//\\\______\///____/\\\\\\\\\___________________________________/\\\______________________________________________________________
//______\////\\\__________/\\\/////\\\_____/\\\\\\\\______/\\\\\\\\__/\\\\\\\\\\\__/\\/\\\\\\\___/\\\____/\\\____/\\\\\__/\\\\\__________
//__________\////\\\______\/\\\\\\\\\\____/\\\/////\\\___/\\\//////__\////\\\////__\/\\\/////\\\_\/\\\___\/\\\__/\\\///\\\\\///\\\_______
//_______________\////\\\___\/\\\//////____/\\\\\\\\\\\___/\\\____________\/\\\______\/\\\___\///__\/\\\___\/\\\_\/\\\_\//\\\__\/\\\_____
//________/\\\______\//\\\__\/\\\_________\//\\///////___\//\\\___________\/\\\_/\\__\/\\\_________\/\\\___\/\\\_\/\\\__\/\\\__\/\\\_____
//________\///\\\\\\\\\\\/___\/\\\__________\//\\\\\\\\\\__\///\\\\\\\\____\//\\\\\___\/\\\_________\//\\\\\\\\\__\/\\\__\/\\\__\/\\\____
//___________\///////////_____\///____________\//////////_____\////////______\/////____\///___________\/////////___\///___\///___\///____
//_______________________________________________________________________________________________________________________________________
//_______________________________________________________________________________________________________________________________________
//_______________________________________________________________________________________________________________________________________

interface SpectrumGeneratorInterface {
    function tokenURI(uint256 _tokenId, uint256 _seed)
        external
        view
        returns (string memory);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 19 of 20: SVG.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
import "./Utils.sol";

// Core SVG utilitiy library which helps us construct
// onchain SVG's with a simple, web-like API.
library svg {
    /* MAIN ELEMENTS */
    function g(string memory _props, string memory _children)
        internal
        pure
        returns (string memory)
    {
        return el("g", _props, _children);
    }

    function defs(string memory _props, string memory _children)
        internal
        pure
        returns (string memory)
    {
        return el("defs", _props, _children);
    }

    function circle(string memory _props, string memory _children)
        internal
        pure
        returns (string memory)
    {
        return el("circle", _props, _children);
    }

    /* GRADIENTS */
    function radialGradient(string memory _props, string memory _children)
        internal
        pure
        returns (string memory)
    {
        return el("radialGradient", _props, _children);
    }

    function gradientStop(
        uint256 offset,
        string memory stopColor,
        string memory _props
    ) internal pure returns (string memory) {
        return
            el(
                "stop",
                string.concat(
                    prop("stop-color", stopColor),
                    " ",
                    prop("offset", string.concat(utils.uint2str(offset), "%")),
                    " ",
                    _props
                ),
                utils.NULL
            );
    }

    function animateTransform(string memory _props)
        internal
        pure
        returns (string memory)
    {
        return el("animateTransform", _props, utils.NULL);
    }

    /* COMMON */
    // A generic element, can be used to construct any SVG (or HTML) element
    function el(
        string memory _tag,
        string memory _props,
        string memory _children
    ) internal pure returns (string memory) {
        return
            string.concat(
                "<",
                _tag,
                " ",
                _props,
                ">",
                _children,
                "</",
                _tag,
                ">"
            );
    }

    // an SVG attribute
    function prop(string memory _key, string memory _val)
        internal
        pure
        returns (string memory)
    {
        return string.concat(_key, "=", '"', _val, '" ');
    }
}

File 20 of 20: Utils.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

// Core utils used extensively to format CSS and numbers.
library utils {
    // used to simulate empty strings
    string internal constant NULL = "";

    function rgbaString(string memory _rgb, string memory _a)
        internal
        pure
        returns (string memory)
    {
        string memory formattedA = stringsEqual(_a, "100")
            ? "1"
            : string.concat("0.", _a);

        return string.concat("rgba(", _rgb, ",", formattedA, ")");
    }

    // formats generic rgba color in css
    function rgba(
        uint256 _r,
        uint256 _g,
        uint256 _b,
        string memory _a
    ) internal pure returns (string memory) {
        string memory formattedA = stringsEqual(_a, "100")
            ? "1"
            : string.concat("0.", _a);

        return
            string.concat(
                "rgba(",
                utils.uint2str(_r),
                ",",
                utils.uint2str(_g),
                ",",
                utils.uint2str(_b),
                ",",
                formattedA,
                ")"
            );
    }

    function rgbaFromArray(uint256[3] memory _arr, string memory _a)
        internal
        pure
        returns (string memory)
    {
        return rgba(_arr[0], _arr[1], _arr[2], _a);
    }

    // checks if two strings are equal
    function stringsEqual(string memory _a, string memory _b)
        internal
        pure
        returns (bool)
    {
        return
            keccak256(abi.encodePacked(_a)) == keccak256(abi.encodePacked(_b));
    }

    // converts an unsigned integer to a string
    function uint2str(uint256 _i)
        internal
        pure
        returns (string memory _uintAsString)
    {
        if (_i == 0) {
            return "0";
        }
        uint256 j = _i;
        uint256 len;
        while (j != 0) {
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint256 k = len;
        while (_i != 0) {
            k = k - 1;
            uint8 temp = (48 + uint8(_i - (_i / 10) * 10));
            bytes1 b1 = bytes1(temp);
            bstr[k] = b1;
            _i /= 10;
        }
        return string(bstr);
    }

    // get a random integer in a range of ints
    function getRandomInteger(
        string memory _name,
        uint256 _seed,
        uint256 _min,
        uint256 _max
    ) internal pure returns (uint256) {
        if (_max <= _min) return _min;
        return
            (uint256(keccak256(abi.encodePacked(_name, _seed))) %
                (_max - _min)) + _min;
    }

    // suffle an array of uints
    function shuffle(uint256[3] memory _arr, uint256 _seed)
        internal
        view
        returns (uint256[3] memory)
    {
        for (uint256 i = 0; i < _arr.length; i++) {
            uint256 n = i +
                (uint256(keccak256(abi.encodePacked(block.timestamp, _seed))) %
                    (_arr.length - i));
            uint256 temp = _arr[n];
            _arr[n] = _arr[i];
            _arr[i] = temp;
        }

        return _arr;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract SpectrumGeneratorInterface","name":"_spectrumGenerator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"FRIENDS_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FOUNDER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SPECTRUMS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addFounder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"airdrop","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":[{"internalType":"address","name":"","type":"address"}],"name":"founders","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_q","type":"uint256"}],"name":"foundersMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_q","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"friendMint","outputs":[],"stateMutability":"payable","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":"isFriendSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_q","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"seeds","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":"contract SpectrumGeneratorInterface","name":"_spectrumGenerator","type":"address"}],"name":"setGenerator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"spectrumGenerator","outputs":[{"internalType":"contract SpectrumGeneratorInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startFriendSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopFriendSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

6080604052600a805461ffff191690553480156200001c57600080fd5b5060405162002631380380620026318339810160408190526200003f91620001df565b604080518082018252601081526f4b696e6574696320537065637472756d60801b60208083019182528351808501909452600584526429a821aa2960d91b908401528151919291620000949160029162000139565b508051620000aa90600390602084019062000139565b50506000805550620000bc33620000e7565b6001600955600f80546001600160a01b0319166001600160a01b03929092169190911790556200024d565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001479062000211565b90600052602060002090601f0160209004810192826200016b5760008555620001b6565b82601f106200018657805160ff1916838001178555620001b6565b82800160010185558215620001b6579182015b82811115620001b657825182559160200191906001019062000199565b50620001c4929150620001c8565b5090565b5b80821115620001c45760008155600101620001c9565b600060208284031215620001f257600080fd5b81516001600160a01b03811681146200020a57600080fd5b9392505050565b600181811c908216806200022657607f821691505b6020821081036200024757634e487b7160e01b600052602260045260246000fd5b50919050565b6123d4806200025d6000396000f3fe6080604052600436106102305760003560e01c8063837e7fed1161012e578063da1b91c3116100ab578063ee0e9c0d1161006f578063ee0e9c0d14610656578063ef4ec04714610671578063f0503e8014610691578063f1d71e2a146106be578063f2fde38b146106d357600080fd5b8063da1b91c314610588578063dab5f3401461059d578063de6746a5146105bd578063e985e9c5146105ed578063edc912191461063657600080fd5b8063a22cb465116100f2578063a22cb465146104ef578063a5a865dc1461050f578063b88d4fde1461052e578063c87b56dd1461054e578063cc12a7f01461056e57600080fd5b8063837e7fed146104785780638d859f3e1461048e5780638da5cb5b146104a957806395d89b41146104c7578063a0712d68146104dc57600080fd5b806323b872dd116101bc5780634a7c7e4b116101805780634a7c7e4b146103d6578063630303c6146103f65780636352211e1461042357806370a0823114610443578063715018a61461046357600080fd5b806323b872dd146103665780632a1add4f146103865780633ccfd60b1461039b57806342842e0e146103a35780634619fd10146103c357600080fd5b8063095ea7b311610203578063095ea7b3146102db5780630c1c972a146102fb578063119251be1461031057806318160ddd1461032357806321860a051461034657600080fd5b806301ffc9a71461023557806306fdde031461026a57806307ae242e1461028c578063081812fc146102a3575b600080fd5b34801561024157600080fd5b50610255610250366004611d84565b6106f3565b60405190151581526020015b60405180910390f35b34801561027657600080fd5b5061027f610745565b6040516102619190611e00565b34801561029857600080fd5b506102a16107d7565b005b3480156102af57600080fd5b506102c36102be366004611e13565b610819565b6040516001600160a01b039091168152602001610261565b3480156102e757600080fd5b506102a16102f6366004611e41565b61085d565b34801561030757600080fd5b506102a16108ea565b6102a161031e366004611e6d565b610925565b34801561032f57600080fd5b50600154600054035b604051908152602001610261565b34801561035257600080fd5b506102a1610361366004611eec565b610bf9565b34801561037257600080fd5b506102a1610381366004611f09565b610cd1565b34801561039257600080fd5b50610338601481565b6102a1610cdc565b3480156103af57600080fd5b506102a16103be366004611f09565b610d3f565b6102a16103d1366004611e13565b610d5a565b3480156103e257600080fd5b506102a16103f1366004611eec565b610f08565b34801561040257600080fd5b50610338610411366004611eec565b600d6020526000908152604090205481565b34801561042f57600080fd5b506102c361043e366004611e13565b610f54565b34801561044f57600080fd5b5061033861045e366004611eec565b610f66565b34801561046f57600080fd5b506102a1610fb5565b34801561048457600080fd5b5061033861045781565b34801561049a57600080fd5b50610338666a94d74f43000081565b3480156104b557600080fd5b506008546001600160a01b03166102c3565b3480156104d357600080fd5b5061027f610feb565b6102a16104ea366004611e13565b610ffa565b3480156104fb57600080fd5b506102a161050a366004611f4a565b6111e1565b34801561051b57600080fd5b50600a5461025590610100900460ff1681565b34801561053a57600080fd5b506102a1610549366004611ff7565b611276565b34801561055a57600080fd5b5061027f610569366004611e13565b6112c7565b34801561057a57600080fd5b50600a546102559060ff1681565b34801561059457600080fd5b506102a16113a2565b3480156105a957600080fd5b506102a16105b8366004611e13565b6113d9565b3480156105c957600080fd5b506102556105d8366004611eec565b600e6020526000908152604090205460ff1681565b3480156105f957600080fd5b506102556106083660046120a6565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561064257600080fd5b50600f546102c3906001600160a01b031681565b34801561066257600080fd5b5061033866470de4df82000081565b34801561067d57600080fd5b506102a161068c366004611eec565b611408565b34801561069d57600080fd5b506103386106ac366004611e13565b600c6020526000908152604090205481565b3480156106ca57600080fd5b506102a1611456565b3480156106df57600080fd5b506102a16106ee366004611eec565b61148c565b60006001600160e01b031982166380ac58cd60e01b148061072457506001600160e01b03198216635b5e139f60e01b145b8061073f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060028054610754906120d4565b80601f0160208091040260200160405190810160405280929190818152602001828054610780906120d4565b80156107cd5780601f106107a2576101008083540402835291602001916107cd565b820191906000526020600020905b8154815290600101906020018083116107b057829003601f168201915b5050505050905090565b6008546001600160a01b0316331461080a5760405162461bcd60e51b81526004016108019061210e565b60405180910390fd5b600a805460ff19166001179055565b600061082482611524565b610841576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061086882610f54565b9050806001600160a01b0316836001600160a01b03160361089c5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906108bc57506108ba8133610608565b155b156108da576040516367d9dca160e11b815260040160405180910390fd5b6108e583838361154f565b505050565b6008546001600160a01b031633146109145760405162461bcd60e51b81526004016108019061210e565b600a805461ff001916610100179055565b6002600954036109475760405162461bcd60e51b815260040161080190612143565b6002600955600a5460ff166109aa5760405162461bcd60e51b8152602060048201526024808201527f53616c6520686173206e6f742073746172746564206f72206861732066696e696044820152631cda195960e21b6064820152608401610801565b600083116109f05760405162461bcd60e51b8152602060048201526013602482015272596f752073686f756c64206d696e74206f6e6560681b6044820152606401610801565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610a6a83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b5491508490506115ab565b610ac05760405162461bcd60e51b815260206004820152602160248201527f546869732061646472657373206973206e6f7420696e20667269656e646c69736044820152601d60fa1b6064820152608401610801565b6104576000541115610ae45760405162461bcd60e51b81526004016108019061217a565b61045784600054610af591906121bf565b1115610b135760405162461bcd60e51b8152600401610801906121d7565b34610b258566470de4df82000061220e565b1115610b735760405162461bcd60e51b815260206004820152601860248201527f4d696e20302e30326574682070657220537065637472756d00000000000000006044820152606401610801565b600054610b8033866115c1565b336000908152600d602052604081208054879290610b9f9084906121bf565b90915550600090505b858160ff161015610bec57610bbd82336115df565b6000838152600c602052604090205581610bd68161222d565b9250508080610be490612246565b915050610ba8565b5050600160095550505050565b6008546001600160a01b03163314610c235760405162461bcd60e51b81526004016108019061210e565b6104576000541115610c475760405162461bcd60e51b81526004016108019061217a565b6104576000546001610c5991906121bf565b1115610c775760405162461bcd60e51b8152600401610801906121d7565b610c83600054336115df565b600080548152600c60209081526040808320939093556001600160a01b0384168252600d9052908120805460019290610cbd9084906121bf565b90915550610cce90508160016115c1565b50565b6108e583838361166d565b6008546001600160a01b03163314610d065760405162461bcd60e51b81526004016108019061210e565b6008546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610cce573d6000803e3d6000fd5b6108e583838360405180602001604052806000815250611276565b600260095403610d7c5760405162461bcd60e51b815260040161080190612143565b6002600955336000908152600e602052604090205460ff16610dd85760405162461bcd60e51b81526020600482015260156024820152742cb7ba9030b932903737ba1030903337bab73232b960591b6044820152606401610801565b6104576000541115610dfc5760405162461bcd60e51b81526004016108019061217a565b61045781600054610e0d91906121bf565b1115610e2b5760405162461bcd60e51b8152600401610801906121d7565b336000908152600d6020526040902054601490610e499083906121bf565b1115610e855760405162461bcd60e51b815260206004820152600b60248201526a13585e081c995858da195960aa1b6044820152606401610801565b600054610e9233836115c1565b336000908152600d602052604081208054849290610eb19084906121bf565b90915550600090505b828160ff161015610efe57610ecf82336115df565b6000838152600c602052604090205581610ee88161222d565b9250508080610ef690612246565b915050610eba565b5050600160095550565b6008546001600160a01b03163314610f325760405162461bcd60e51b81526004016108019061210e565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6000610f5f8261185d565b5192915050565b60006001600160a01b038216610f8f576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610fdf5760405162461bcd60e51b81526004016108019061210e565b610fe96000611979565b565b606060038054610754906120d4565b60026009540361101c5760405162461bcd60e51b815260040161080190612143565b6002600955600a54610100900460ff1661106f5760405162461bcd60e51b815260206004820152601460248201527314d85b19481a185cc81b9bdd081cdd185c9d195960621b6044820152606401610801565b600081116110b55760405162461bcd60e51b8152602060048201526013602482015272596f752073686f756c64206d696e74206f6e6560681b6044820152606401610801565b61045760005411156110d95760405162461bcd60e51b81526004016108019061217a565b610457816000546110ea91906121bf565b11156111085760405162461bcd60e51b8152600401610801906121d7565b3461111a82666a94d74f43000061220e565b11156111685760405162461bcd60e51b815260206004820152601860248201527f4d696e20302e30336574682070657220537065637472756d00000000000000006044820152606401610801565b60005461117533836115c1565b336000908152600d6020526040812080548492906111949084906121bf565b90915550600090505b828160ff161015610efe576111b282336115df565b6000838152600c6020526040902055816111cb8161222d565b92505080806111d990612246565b91505061119d565b336001600160a01b0383160361120a5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61128184848461166d565b6001600160a01b0383163b151580156112a357506112a1848484846119cb565b155b156112c1576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606112d260005490565b82106113195760405162461bcd60e51b8152602060048201526016602482015275151bdad95b9259081b9bdd081e595d081b5a5b9d195960521b6044820152606401610801565b600f546000838152600c6020526040908190205490516392cb829d60e01b81526004810185905260248101919091526001600160a01b03909116906392cb829d90604401600060405180830381865afa15801561137a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261073f9190810190612265565b6008546001600160a01b031633146113cc5760405162461bcd60e51b81526004016108019061210e565b600a805461ff0019169055565b6008546001600160a01b031633146114035760405162461bcd60e51b81526004016108019061210e565b600b55565b6008546001600160a01b031633146114325760405162461bcd60e51b81526004016108019061210e565b6001600160a01b03166000908152600e60205260409020805460ff19166001179055565b6008546001600160a01b031633146114805760405162461bcd60e51b81526004016108019061210e565b600a805460ff19169055565b6008546001600160a01b031633146114b65760405162461bcd60e51b81526004016108019061210e565b6001600160a01b03811661151b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610801565b610cce81611979565b600080548210801561073f575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000826115b88584611ab7565b14949350505050565b6115db828260405180602001604052806000815250611b2b565b5050565b6000828261161260405180604001604052806008815260200167737065637472756d60c01b81525086600061a455611b38565b60408051602081019490945260609290921b6bffffffffffffffffffffffff191691830191909152605482015244607482015242609482015260b40160408051601f1981840301815291905280516020909101209392505050565b60006116788261185d565b9050836001600160a01b031681600001516001600160a01b0316146116af5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806116cd57506116cd8533610608565b806116e85750336116dd84610819565b6001600160a01b0316145b90508061170857604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661172f57604051633a954ecd60e21b815260040160405180910390fd5b61173b6000848761154f565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611811576000548214611811578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60408051606081018252600080825260208201819052918101919091528160005481101561196057600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff1615159181018290529061195e5780516001600160a01b0316156118f4579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215611959579392505050565b6118f4565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611a009033908990889088906004016122d3565b6020604051808303816000875af1925050508015611a3b575060408051601f3d908101601f19168201909252611a3891810190612310565b60015b611a99573d808015611a69576040519150601f19603f3d011682016040523d82523d6000602084013e611a6e565b606091505b508051600003611a91576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b600081815b8451811015611b23576000858281518110611ad957611ad961232d565b60200260200101519050808311611aff5760008381526020829052604090209250611b10565b600081815260208490526040902092505b5080611b1b8161222d565b915050611abc565b509392505050565b6108e58383836001611b9c565b6000828211611b48575081611aaf565b82611b538184612343565b8686604051602001611b6692919061235a565b6040516020818303038152906040528051906020012060001c611b89919061237c565b611b9391906121bf565b95945050505050565b6000546001600160a01b038516611bc557604051622e076360e81b815260040160405180910390fd5b83600003611be65760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015611c9857506001600160a01b0387163b15155b15611d20575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611ce960008884806001019550886119cb565b611d06576040516368d2bf6b60e11b815260040160405180910390fd5b808203611c9e578260005414611d1b57600080fd5b611d65565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808203611d21575b50600055611856565b6001600160e01b031981168114610cce57600080fd5b600060208284031215611d9657600080fd5b8135611da181611d6e565b9392505050565b60005b83811015611dc3578181015183820152602001611dab565b838111156112c15750506000910152565b60008151808452611dec816020860160208601611da8565b601f01601f19169290920160200192915050565b602081526000611da16020830184611dd4565b600060208284031215611e2557600080fd5b5035919050565b6001600160a01b0381168114610cce57600080fd5b60008060408385031215611e5457600080fd5b8235611e5f81611e2c565b946020939093013593505050565b600080600060408486031215611e8257600080fd5b83359250602084013567ffffffffffffffff80821115611ea157600080fd5b818601915086601f830112611eb557600080fd5b813581811115611ec457600080fd5b8760208260051b8501011115611ed957600080fd5b6020830194508093505050509250925092565b600060208284031215611efe57600080fd5b8135611da181611e2c565b600080600060608486031215611f1e57600080fd5b8335611f2981611e2c565b92506020840135611f3981611e2c565b929592945050506040919091013590565b60008060408385031215611f5d57600080fd5b8235611f6881611e2c565b915060208301358015158114611f7d57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611fc757611fc7611f88565b604052919050565b600067ffffffffffffffff821115611fe957611fe9611f88565b50601f01601f191660200190565b6000806000806080858703121561200d57600080fd5b843561201881611e2c565b9350602085013561202881611e2c565b925060408501359150606085013567ffffffffffffffff81111561204b57600080fd5b8501601f8101871361205c57600080fd5b803561206f61206a82611fcf565b611f9e565b81815288602083850101111561208457600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b600080604083850312156120b957600080fd5b82356120c481611e2c565b91506020830135611f7d81611e2c565b600181811c908216806120e857607f821691505b60208210810361210857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b602080825260159082015274105b1b081b595d185d985d185c9cc81b5a5b9d1959605a1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156121d2576121d26121a9565b500190565b6020808252601a908201527f4d696e74696e672065786365656473206d617820737570706c79000000000000604082015260600190565b6000816000190483118215151615612228576122286121a9565b500290565b60006001820161223f5761223f6121a9565b5060010190565b600060ff821660ff810361225c5761225c6121a9565b60010192915050565b60006020828403121561227757600080fd5b815167ffffffffffffffff81111561228e57600080fd5b8201601f8101841361229f57600080fd5b80516122ad61206a82611fcf565b8181528560208385010111156122c257600080fd5b611b93826020830160208601611da8565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061230690830184611dd4565b9695505050505050565b60006020828403121561232257600080fd5b8151611da181611d6e565b634e487b7160e01b600052603260045260246000fd5b600082821015612355576123556121a9565b500390565b6000835161236c818460208801611da8565b9190910191825250602001919050565b60008261239957634e487b7160e01b600052601260045260246000fd5b50069056fea264697066735822122049b4fbb22edf373e91b30e66f4dd458cfb890eb546075055dae8b4c7181cbbef64736f6c634300080d00330000000000000000000000008152ac20a72d5dd599cc43a079699a042288c413

Deployed Bytecode

0x6080604052600436106102305760003560e01c8063837e7fed1161012e578063da1b91c3116100ab578063ee0e9c0d1161006f578063ee0e9c0d14610656578063ef4ec04714610671578063f0503e8014610691578063f1d71e2a146106be578063f2fde38b146106d357600080fd5b8063da1b91c314610588578063dab5f3401461059d578063de6746a5146105bd578063e985e9c5146105ed578063edc912191461063657600080fd5b8063a22cb465116100f2578063a22cb465146104ef578063a5a865dc1461050f578063b88d4fde1461052e578063c87b56dd1461054e578063cc12a7f01461056e57600080fd5b8063837e7fed146104785780638d859f3e1461048e5780638da5cb5b146104a957806395d89b41146104c7578063a0712d68146104dc57600080fd5b806323b872dd116101bc5780634a7c7e4b116101805780634a7c7e4b146103d6578063630303c6146103f65780636352211e1461042357806370a0823114610443578063715018a61461046357600080fd5b806323b872dd146103665780632a1add4f146103865780633ccfd60b1461039b57806342842e0e146103a35780634619fd10146103c357600080fd5b8063095ea7b311610203578063095ea7b3146102db5780630c1c972a146102fb578063119251be1461031057806318160ddd1461032357806321860a051461034657600080fd5b806301ffc9a71461023557806306fdde031461026a57806307ae242e1461028c578063081812fc146102a3575b600080fd5b34801561024157600080fd5b50610255610250366004611d84565b6106f3565b60405190151581526020015b60405180910390f35b34801561027657600080fd5b5061027f610745565b6040516102619190611e00565b34801561029857600080fd5b506102a16107d7565b005b3480156102af57600080fd5b506102c36102be366004611e13565b610819565b6040516001600160a01b039091168152602001610261565b3480156102e757600080fd5b506102a16102f6366004611e41565b61085d565b34801561030757600080fd5b506102a16108ea565b6102a161031e366004611e6d565b610925565b34801561032f57600080fd5b50600154600054035b604051908152602001610261565b34801561035257600080fd5b506102a1610361366004611eec565b610bf9565b34801561037257600080fd5b506102a1610381366004611f09565b610cd1565b34801561039257600080fd5b50610338601481565b6102a1610cdc565b3480156103af57600080fd5b506102a16103be366004611f09565b610d3f565b6102a16103d1366004611e13565b610d5a565b3480156103e257600080fd5b506102a16103f1366004611eec565b610f08565b34801561040257600080fd5b50610338610411366004611eec565b600d6020526000908152604090205481565b34801561042f57600080fd5b506102c361043e366004611e13565b610f54565b34801561044f57600080fd5b5061033861045e366004611eec565b610f66565b34801561046f57600080fd5b506102a1610fb5565b34801561048457600080fd5b5061033861045781565b34801561049a57600080fd5b50610338666a94d74f43000081565b3480156104b557600080fd5b506008546001600160a01b03166102c3565b3480156104d357600080fd5b5061027f610feb565b6102a16104ea366004611e13565b610ffa565b3480156104fb57600080fd5b506102a161050a366004611f4a565b6111e1565b34801561051b57600080fd5b50600a5461025590610100900460ff1681565b34801561053a57600080fd5b506102a1610549366004611ff7565b611276565b34801561055a57600080fd5b5061027f610569366004611e13565b6112c7565b34801561057a57600080fd5b50600a546102559060ff1681565b34801561059457600080fd5b506102a16113a2565b3480156105a957600080fd5b506102a16105b8366004611e13565b6113d9565b3480156105c957600080fd5b506102556105d8366004611eec565b600e6020526000908152604090205460ff1681565b3480156105f957600080fd5b506102556106083660046120a6565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561064257600080fd5b50600f546102c3906001600160a01b031681565b34801561066257600080fd5b5061033866470de4df82000081565b34801561067d57600080fd5b506102a161068c366004611eec565b611408565b34801561069d57600080fd5b506103386106ac366004611e13565b600c6020526000908152604090205481565b3480156106ca57600080fd5b506102a1611456565b3480156106df57600080fd5b506102a16106ee366004611eec565b61148c565b60006001600160e01b031982166380ac58cd60e01b148061072457506001600160e01b03198216635b5e139f60e01b145b8061073f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060028054610754906120d4565b80601f0160208091040260200160405190810160405280929190818152602001828054610780906120d4565b80156107cd5780601f106107a2576101008083540402835291602001916107cd565b820191906000526020600020905b8154815290600101906020018083116107b057829003601f168201915b5050505050905090565b6008546001600160a01b0316331461080a5760405162461bcd60e51b81526004016108019061210e565b60405180910390fd5b600a805460ff19166001179055565b600061082482611524565b610841576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061086882610f54565b9050806001600160a01b0316836001600160a01b03160361089c5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906108bc57506108ba8133610608565b155b156108da576040516367d9dca160e11b815260040160405180910390fd5b6108e583838361154f565b505050565b6008546001600160a01b031633146109145760405162461bcd60e51b81526004016108019061210e565b600a805461ff001916610100179055565b6002600954036109475760405162461bcd60e51b815260040161080190612143565b6002600955600a5460ff166109aa5760405162461bcd60e51b8152602060048201526024808201527f53616c6520686173206e6f742073746172746564206f72206861732066696e696044820152631cda195960e21b6064820152608401610801565b600083116109f05760405162461bcd60e51b8152602060048201526013602482015272596f752073686f756c64206d696e74206f6e6560681b6044820152606401610801565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610a6a83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b5491508490506115ab565b610ac05760405162461bcd60e51b815260206004820152602160248201527f546869732061646472657373206973206e6f7420696e20667269656e646c69736044820152601d60fa1b6064820152608401610801565b6104576000541115610ae45760405162461bcd60e51b81526004016108019061217a565b61045784600054610af591906121bf565b1115610b135760405162461bcd60e51b8152600401610801906121d7565b34610b258566470de4df82000061220e565b1115610b735760405162461bcd60e51b815260206004820152601860248201527f4d696e20302e30326574682070657220537065637472756d00000000000000006044820152606401610801565b600054610b8033866115c1565b336000908152600d602052604081208054879290610b9f9084906121bf565b90915550600090505b858160ff161015610bec57610bbd82336115df565b6000838152600c602052604090205581610bd68161222d565b9250508080610be490612246565b915050610ba8565b5050600160095550505050565b6008546001600160a01b03163314610c235760405162461bcd60e51b81526004016108019061210e565b6104576000541115610c475760405162461bcd60e51b81526004016108019061217a565b6104576000546001610c5991906121bf565b1115610c775760405162461bcd60e51b8152600401610801906121d7565b610c83600054336115df565b600080548152600c60209081526040808320939093556001600160a01b0384168252600d9052908120805460019290610cbd9084906121bf565b90915550610cce90508160016115c1565b50565b6108e583838361166d565b6008546001600160a01b03163314610d065760405162461bcd60e51b81526004016108019061210e565b6008546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610cce573d6000803e3d6000fd5b6108e583838360405180602001604052806000815250611276565b600260095403610d7c5760405162461bcd60e51b815260040161080190612143565b6002600955336000908152600e602052604090205460ff16610dd85760405162461bcd60e51b81526020600482015260156024820152742cb7ba9030b932903737ba1030903337bab73232b960591b6044820152606401610801565b6104576000541115610dfc5760405162461bcd60e51b81526004016108019061217a565b61045781600054610e0d91906121bf565b1115610e2b5760405162461bcd60e51b8152600401610801906121d7565b336000908152600d6020526040902054601490610e499083906121bf565b1115610e855760405162461bcd60e51b815260206004820152600b60248201526a13585e081c995858da195960aa1b6044820152606401610801565b600054610e9233836115c1565b336000908152600d602052604081208054849290610eb19084906121bf565b90915550600090505b828160ff161015610efe57610ecf82336115df565b6000838152600c602052604090205581610ee88161222d565b9250508080610ef690612246565b915050610eba565b5050600160095550565b6008546001600160a01b03163314610f325760405162461bcd60e51b81526004016108019061210e565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6000610f5f8261185d565b5192915050565b60006001600160a01b038216610f8f576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610fdf5760405162461bcd60e51b81526004016108019061210e565b610fe96000611979565b565b606060038054610754906120d4565b60026009540361101c5760405162461bcd60e51b815260040161080190612143565b6002600955600a54610100900460ff1661106f5760405162461bcd60e51b815260206004820152601460248201527314d85b19481a185cc81b9bdd081cdd185c9d195960621b6044820152606401610801565b600081116110b55760405162461bcd60e51b8152602060048201526013602482015272596f752073686f756c64206d696e74206f6e6560681b6044820152606401610801565b61045760005411156110d95760405162461bcd60e51b81526004016108019061217a565b610457816000546110ea91906121bf565b11156111085760405162461bcd60e51b8152600401610801906121d7565b3461111a82666a94d74f43000061220e565b11156111685760405162461bcd60e51b815260206004820152601860248201527f4d696e20302e30336574682070657220537065637472756d00000000000000006044820152606401610801565b60005461117533836115c1565b336000908152600d6020526040812080548492906111949084906121bf565b90915550600090505b828160ff161015610efe576111b282336115df565b6000838152600c6020526040902055816111cb8161222d565b92505080806111d990612246565b91505061119d565b336001600160a01b0383160361120a5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61128184848461166d565b6001600160a01b0383163b151580156112a357506112a1848484846119cb565b155b156112c1576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606112d260005490565b82106113195760405162461bcd60e51b8152602060048201526016602482015275151bdad95b9259081b9bdd081e595d081b5a5b9d195960521b6044820152606401610801565b600f546000838152600c6020526040908190205490516392cb829d60e01b81526004810185905260248101919091526001600160a01b03909116906392cb829d90604401600060405180830381865afa15801561137a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261073f9190810190612265565b6008546001600160a01b031633146113cc5760405162461bcd60e51b81526004016108019061210e565b600a805461ff0019169055565b6008546001600160a01b031633146114035760405162461bcd60e51b81526004016108019061210e565b600b55565b6008546001600160a01b031633146114325760405162461bcd60e51b81526004016108019061210e565b6001600160a01b03166000908152600e60205260409020805460ff19166001179055565b6008546001600160a01b031633146114805760405162461bcd60e51b81526004016108019061210e565b600a805460ff19169055565b6008546001600160a01b031633146114b65760405162461bcd60e51b81526004016108019061210e565b6001600160a01b03811661151b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610801565b610cce81611979565b600080548210801561073f575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000826115b88584611ab7565b14949350505050565b6115db828260405180602001604052806000815250611b2b565b5050565b6000828261161260405180604001604052806008815260200167737065637472756d60c01b81525086600061a455611b38565b60408051602081019490945260609290921b6bffffffffffffffffffffffff191691830191909152605482015244607482015242609482015260b40160408051601f1981840301815291905280516020909101209392505050565b60006116788261185d565b9050836001600160a01b031681600001516001600160a01b0316146116af5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806116cd57506116cd8533610608565b806116e85750336116dd84610819565b6001600160a01b0316145b90508061170857604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661172f57604051633a954ecd60e21b815260040160405180910390fd5b61173b6000848761154f565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611811576000548214611811578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60408051606081018252600080825260208201819052918101919091528160005481101561196057600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff1615159181018290529061195e5780516001600160a01b0316156118f4579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215611959579392505050565b6118f4565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611a009033908990889088906004016122d3565b6020604051808303816000875af1925050508015611a3b575060408051601f3d908101601f19168201909252611a3891810190612310565b60015b611a99573d808015611a69576040519150601f19603f3d011682016040523d82523d6000602084013e611a6e565b606091505b508051600003611a91576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b600081815b8451811015611b23576000858281518110611ad957611ad961232d565b60200260200101519050808311611aff5760008381526020829052604090209250611b10565b600081815260208490526040902092505b5080611b1b8161222d565b915050611abc565b509392505050565b6108e58383836001611b9c565b6000828211611b48575081611aaf565b82611b538184612343565b8686604051602001611b6692919061235a565b6040516020818303038152906040528051906020012060001c611b89919061237c565b611b9391906121bf565b95945050505050565b6000546001600160a01b038516611bc557604051622e076360e81b815260040160405180910390fd5b83600003611be65760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015611c9857506001600160a01b0387163b15155b15611d20575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611ce960008884806001019550886119cb565b611d06576040516368d2bf6b60e11b815260040160405180910390fd5b808203611c9e578260005414611d1b57600080fd5b611d65565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808203611d21575b50600055611856565b6001600160e01b031981168114610cce57600080fd5b600060208284031215611d9657600080fd5b8135611da181611d6e565b9392505050565b60005b83811015611dc3578181015183820152602001611dab565b838111156112c15750506000910152565b60008151808452611dec816020860160208601611da8565b601f01601f19169290920160200192915050565b602081526000611da16020830184611dd4565b600060208284031215611e2557600080fd5b5035919050565b6001600160a01b0381168114610cce57600080fd5b60008060408385031215611e5457600080fd5b8235611e5f81611e2c565b946020939093013593505050565b600080600060408486031215611e8257600080fd5b83359250602084013567ffffffffffffffff80821115611ea157600080fd5b818601915086601f830112611eb557600080fd5b813581811115611ec457600080fd5b8760208260051b8501011115611ed957600080fd5b6020830194508093505050509250925092565b600060208284031215611efe57600080fd5b8135611da181611e2c565b600080600060608486031215611f1e57600080fd5b8335611f2981611e2c565b92506020840135611f3981611e2c565b929592945050506040919091013590565b60008060408385031215611f5d57600080fd5b8235611f6881611e2c565b915060208301358015158114611f7d57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611fc757611fc7611f88565b604052919050565b600067ffffffffffffffff821115611fe957611fe9611f88565b50601f01601f191660200190565b6000806000806080858703121561200d57600080fd5b843561201881611e2c565b9350602085013561202881611e2c565b925060408501359150606085013567ffffffffffffffff81111561204b57600080fd5b8501601f8101871361205c57600080fd5b803561206f61206a82611fcf565b611f9e565b81815288602083850101111561208457600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b600080604083850312156120b957600080fd5b82356120c481611e2c565b91506020830135611f7d81611e2c565b600181811c908216806120e857607f821691505b60208210810361210857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b602080825260159082015274105b1b081b595d185d985d185c9cc81b5a5b9d1959605a1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156121d2576121d26121a9565b500190565b6020808252601a908201527f4d696e74696e672065786365656473206d617820737570706c79000000000000604082015260600190565b6000816000190483118215151615612228576122286121a9565b500290565b60006001820161223f5761223f6121a9565b5060010190565b600060ff821660ff810361225c5761225c6121a9565b60010192915050565b60006020828403121561227757600080fd5b815167ffffffffffffffff81111561228e57600080fd5b8201601f8101841361229f57600080fd5b80516122ad61206a82611fcf565b8181528560208385010111156122c257600080fd5b611b93826020830160208601611da8565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061230690830184611dd4565b9695505050505050565b60006020828403121561232257600080fd5b8151611da181611d6e565b634e487b7160e01b600052603260045260246000fd5b600082821015612355576123556121a9565b500390565b6000835161236c818460208801611da8565b9190910191825250602001919050565b60008261239957634e487b7160e01b600052601260045260246000fd5b50069056fea264697066735822122049b4fbb22edf373e91b30e66f4dd458cfb890eb546075055dae8b4c7181cbbef64736f6c634300080d0033

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

0000000000000000000000008152ac20a72d5dd599cc43a079699a042288c413

-----Decoded View---------------
Arg [0] : _spectrumGenerator (address): 0x8152AC20a72d5dd599CC43A079699a042288c413

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000008152ac20a72d5dd599cc43a079699a042288c413


Deployed Bytecode Sourcemap

2190:5183:9:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4309:344:4;;;;;;;;;;-1:-1:-1;4309:344:4;;;;;:::i;:::-;;:::i;:::-;;;565:14:20;;558:22;540:41;;528:2;513:18;4309:344:4;;;;;;;;7409:98;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;6770:82:9:-;;;;;;;;;;;;;:::i;:::-;;8953:236:4;;;;;;;;;;-1:-1:-1;8953:236:4;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1692:32:20;;;1674:51;;1662:2;1647:18;8953:236:4;1528:203:20;8530:362:4;;;;;;;;;;-1:-1:-1;8530:362:4;;;;;:::i;:::-;;:::i;6946:82:9:-;;;;;;;;;;;;;:::i;4442:1003::-;;;;;;:::i;:::-;;:::i;3580:297:4:-;;;;;;;;;;-1:-1:-1;3830:12:4;;3624:7;3814:13;:28;3580:297;;;3026:25:20;;;3014:2;2999:18;3580:297:4;2880:177:20;6148:393:9;;;;;;;;;;-1:-1:-1;6148:393:9;;;;;:::i;:::-;;:::i;9900:164:4:-;;;;;;;;;;-1:-1:-1;9900:164:4;;;;;:::i;:::-;;:::i;2308:40:9:-;;;;;;;;;;;;2346:2;2308:40;;6652:112;;;:::i;10130:179:4:-;;;;;;;;;;-1:-1:-1;10130:179:4;;;;;:::i;:::-;;:::i;5451:691:9:-;;;;;;:::i;:::-;;:::i;7208:163::-;;;;;;;;;;-1:-1:-1;7208:163:9;;;;;:::i;:::-;;:::i;2609:48::-;;;;;;;;;;-1:-1:-1;2609:48:9;;;;;:::i;:::-;;;;;;;;;;;;;;7224:123:4;;;;;;;;;;-1:-1:-1;7224:123:4;;;;;:::i;:::-;;:::i;4712:203::-;;;;;;;;;;-1:-1:-1;4712:203:4;;;;;:::i;:::-;;:::i;1683:101:11:-;;;;;;;;;;;;;:::i;2258:44:9:-;;;;;;;;;;;;2298:4;2258:44;;2354:42;;;;;;;;;;;;2386:10;2354:42;;1051:85:11;;;;;;;;;;-1:-1:-1;1123:6:11;;-1:-1:-1;;;;;1123:6:11;1051:85;;7571:102:4;;;;;;;;;;;;;:::i;3723:713:9:-;;;;;;:::i;:::-;;:::i;9256:310:4:-;;;;;;;;;;-1:-1:-1;9256:310:4;;;;;:::i;:::-;;:::i;2497:32:9:-;;;;;;;;;;-1:-1:-1;2497:32:9;;;;;;;;;;;10375:393:4;;;;;;;;;;-1:-1:-1;10375:393:4;;;;;:::i;:::-;;:::i;3453:264:9:-;;;;;;;;;;-1:-1:-1;3453:264:9;;;;;:::i;:::-;;:::i;2459:32::-;;;;;;;;;;-1:-1:-1;2459:32:9;;;;;;;;7034:82;;;;;;;;;;;;;:::i;7122:80::-;;;;;;;;;;-1:-1:-1;7122:80:9;;;;;:::i;:::-;;:::i;2663:40::-;;;;;;;;;;-1:-1:-1;2663:40:9;;;;;:::i;:::-;;;;;;;;;;;;;;;;9632:206:4;;;;;;;;;;-1:-1:-1;9632:206:4;;;;;:::i;:::-;-1:-1:-1;;;;;9796:25:4;;;9769:4;9796:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;9632:206;2710:51:9;;;;;;;;;;-1:-1:-1;2710:51:9;;;;-1:-1:-1;;;;;2710:51:9;;;2402:50;;;;;;;;;;;;2442:10;2402:50;;6547:99;;;;;;;;;;-1:-1:-1;6547:99:9;;;;;:::i;:::-;;:::i;2563:40::-;;;;;;;;;;-1:-1:-1;2563:40:9;;;;;:::i;:::-;;;;;;;;;;;;;;6858:82;;;;;;;;;;;;;:::i;1933:232:11:-;;;;;;;;;;-1:-1:-1;1933:232:11;;;;;:::i;:::-;;:::i;4309:344:4:-;4451:4;-1:-1:-1;;;;;;4490:40:4;;-1:-1:-1;;;4490:40:4;;:104;;-1:-1:-1;;;;;;;4546:48:4;;-1:-1:-1;;;4546:48:4;4490:104;:156;;;-1:-1:-1;;;;;;;;;;981:40:3;;;4610:36:4;4471:175;4309:344;-1:-1:-1;;4309:344:4:o;7409:98::-;7463:13;7495:5;7488:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7409:98;:::o;6770:82:9:-;1123:6:11;;-1:-1:-1;;;;;1123:6:11;719:10:2;1263:23:11;1255:68;;;;-1:-1:-1;;;1255:68:11;;;;;;;:::i;:::-;;;;;;;;;6826:12:9::1;:19:::0;;-1:-1:-1;;6826:19:9::1;6841:4;6826:19;::::0;;6770:82::o;8953:236:4:-;9053:7;9081:16;9089:7;9081;:16::i;:::-;9076:64;;9106:34;;-1:-1:-1;;;9106:34:4;;;;;;;;;;;9076:64;-1:-1:-1;9158:24:4;;;;:15;:24;;;;;;-1:-1:-1;;;;;9158:24:4;;8953:236::o;8530:362::-;8602:13;8618:24;8634:7;8618:15;:24::i;:::-;8602:40;;8662:5;-1:-1:-1;;;;;8656:11:4;:2;-1:-1:-1;;;;;8656:11:4;;8652:48;;8676:24;;-1:-1:-1;;;8676:24:4;;;;;;;;;;;8652:48;719:10:2;-1:-1:-1;;;;;8715:21:4;;;;;;:63;;-1:-1:-1;8741:37:4;8758:5;719:10:2;9632:206:4;:::i;8741:37::-;8740:38;8715:63;8711:136;;;8801:35;;-1:-1:-1;;;8801:35:4;;;;;;;;;;;8711:136;8857:28;8866:2;8870:7;8879:5;8857:8;:28::i;:::-;8592:300;8530:362;;:::o;6946:82:9:-;1123:6:11;;-1:-1:-1;;;;;1123:6:11;719:10:2;1263:23:11;1255:68;;;;-1:-1:-1;;;1255:68:11;;;;;;;:::i;:::-;7002:12:9::1;:19:::0;;-1:-1:-1;;7002:19:9::1;;;::::0;;6946:82::o;4442:1003::-;1744:1:12;2325:7;;:19;2317:63;;;;-1:-1:-1;;;2317:63:12;;;;;;;:::i;:::-;1744:1;2455:7;:18;4583:12:9::1;::::0;::::1;;4575:61;;;::::0;-1:-1:-1;;;4575:61:9;;8236:2:20;4575:61:9::1;::::0;::::1;8218:21:20::0;8275:2;8255:18;;;8248:30;8314:34;8294:18;;;8287:62;-1:-1:-1;;;8365:18:20;;;8358:34;8409:19;;4575:61:9::1;8034:400:20::0;4575:61:9::1;4659:1;4654:2;:6;4646:38;;;::::0;-1:-1:-1;;;4646:38:9;;8641:2:20;4646:38:9::1;::::0;::::1;8623:21:20::0;8680:2;8660:18;;;8653:30;-1:-1:-1;;;8699:18:20;;;8692:49;8758:18;;4646:38:9::1;8439:343:20::0;4646:38:9::1;4719:28;::::0;-1:-1:-1;;4736:10:9::1;8936:2:20::0;8932:15;8928:53;4719:28:9::1;::::0;::::1;8916:66:20::0;4694:12:9::1;::::0;8998::20;;4719:28:9::1;;;;;;;;;;;;4709:39;;;;;;4694:54;;4779:44;4798:12;;4779:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;;4812:4:9::1;::::0;;-1:-1:-1;4818:4:9;;-1:-1:-1;4779:18:9::1;:44::i;:::-;4758:124;;;::::0;-1:-1:-1;;;4758:124:9;;9223:2:20;4758:124:9::1;::::0;::::1;9205:21:20::0;9262:2;9242:18;;;9235:30;9301:34;9281:18;;;9274:62;-1:-1:-1;;;9352:18:20;;;9345:31;9393:19;;4758:124:9::1;9021:397:20::0;4758:124:9::1;2298:4;4900:13;;:30;;4892:64;;;;-1:-1:-1::0;;;4892:64:9::1;;;;;;;:::i;:::-;2298:4;5003:2;4987:13;;:18;;;;:::i;:::-;:35;;4966:108;;;;-1:-1:-1::0;;;4966:108:9::1;;;;;;;:::i;:::-;5114:9;5092:18;5108:2:::0;2442:10:::1;5092:18;:::i;:::-;:31;;5084:68;;;::::0;-1:-1:-1;;;5084:68:9;;10768:2:20;5084:68:9::1;::::0;::::1;10750:21:20::0;10807:2;10787:18;;;10780:30;10846:26;10826:18;;;10819:54;10890:18;;5084:68:9::1;10566:348:20::0;5084:68:9::1;5163:22;5188:13:::0;5212:25:::1;5222:10;5234:2:::0;5212:9:::1;:25::i;:::-;5261:10;5247:25;::::0;;;:13:::1;:25;::::0;;;;:31;;5276:2;;5247:25;:31:::1;::::0;5276:2;;5247:31:::1;:::i;:::-;::::0;;;-1:-1:-1;5294:7:9::1;::::0;-1:-1:-1;5289:150:9::1;5311:2;5307:1;:6;;;5289:150;;;5358:39;5370:14;5386:10;5358:11;:39::i;:::-;5334:21;::::0;;;:5:::1;:21;::::0;;;;:63;5340:14;5412:16:::1;5340:14:::0;5412:16:::1;:::i;:::-;;;;5315:3;;;;;:::i;:::-;;;;5289:150;;;-1:-1:-1::0;;1701:1:12;2628:7;:22;-1:-1:-1;;;;4442:1003:9:o;6148:393::-;1123:6:11;;-1:-1:-1;;;;;1123:6:11;719:10:2;1263:23:11;1255:68;;;;-1:-1:-1;;;1255:68:11;;;;;;;:::i;:::-;2298:4:9::1;6220:13;;:30;;6212:64;;;;-1:-1:-1::0;;;6212:64:9::1;;;;;;;:::i;:::-;2298:4;6307:13;;6323:1;6307:17;;;;:::i;:::-;:34;;6286:107;;;;-1:-1:-1::0;;;6286:107:9::1;;;;;;;:::i;:::-;6426:38;6438:13;;6453:10;6426:11;:38::i;:::-;6403:20;6409:13:::0;;6403:20;;:5:::1;:20;::::0;;;;;;;:61;;;;-1:-1:-1;;;;;6474:23:9;::::1;::::0;;:13:::1;:23:::0;;;;;:28;;6501:1:::1;::::0;6403:20;6474:28:::1;::::0;6501:1;;6474:28:::1;:::i;:::-;::::0;;;-1:-1:-1;6512:22:9::1;::::0;-1:-1:-1;6522:8:9;6532:1:::1;6512:9;:22::i;:::-;6148:393:::0;:::o;9900:164:4:-;10029:28;10039:4;10045:2;10049:7;10029:9;:28::i;6652:112:9:-;1123:6:11;;-1:-1:-1;;;;;1123:6:11;719:10:2;1263:23:11;1255:68;;;;-1:-1:-1;;;1255:68:11;;;;;;;:::i;:::-;1123:6;;6709:48:9::1;::::0;-1:-1:-1;;;;;1123:6:11;;;;6735:21:9::1;6709:48:::0;::::1;;;::::0;::::1;::::0;;;6735:21;1123:6:11;6709:48:9;::::1;;;;;;;;;;;;;::::0;::::1;;;;10130:179:4::0;10263:39;10280:4;10286:2;10290:7;10263:39;;;;;;;;;;;;:16;:39::i;5451:691:9:-;1744:1:12;2325:7;;:19;2317:63;;;;-1:-1:-1;;;2317:63:12;;;;;;;:::i;:::-;1744:1;2455:7;:18;5542:10:9::1;5533:20;::::0;;;:8:::1;:20;::::0;;;;;::::1;;5525:54;;;::::0;-1:-1:-1;;;5525:54:9;;11441:2:20;5525:54:9::1;::::0;::::1;11423:21:20::0;11480:2;11460:18;;;11453:30;-1:-1:-1;;;11499:18:20;;;11492:51;11560:18;;5525:54:9::1;11239:345:20::0;5525:54:9::1;2298:4;5597:13;;:30;;5589:64;;;;-1:-1:-1::0;;;5589:64:9::1;;;;;;;:::i;:::-;2298:4;5700:2;5684:13;;:18;;;;:::i;:::-;:35;;5663:108;;;;-1:-1:-1::0;;;5663:108:9::1;;;;;;;:::i;:::-;5803:10;5789:25;::::0;;;:13:::1;:25;::::0;;;;;2346:2:::1;::::0;5789:30:::1;::::0;5817:2;;5789:30:::1;:::i;:::-;:45;;5781:69;;;::::0;-1:-1:-1;;;5781:69:9;;11791:2:20;5781:69:9::1;::::0;::::1;11773:21:20::0;11830:2;11810:18;;;11803:30;-1:-1:-1;;;11849:18:20;;;11842:41;11900:18;;5781:69:9::1;11589:335:20::0;5781:69:9::1;5860:22;5885:13:::0;5909:25:::1;5919:10;5931:2:::0;5909:9:::1;:25::i;:::-;5958:10;5944:25;::::0;;;:13:::1;:25;::::0;;;;:31;;5973:2;;5944:25;:31:::1;::::0;5973:2;;5944:31:::1;:::i;:::-;::::0;;;-1:-1:-1;5991:7:9::1;::::0;-1:-1:-1;5986:150:9::1;6008:2;6004:1;:6;;;5986:150;;;6055:39;6067:14;6083:10;6055:11;:39::i;:::-;6031:21;::::0;;;:5:::1;:21;::::0;;;;:63;6037:14;6109:16:::1;6037:14:::0;6109:16:::1;:::i;:::-;;;;6012:3;;;;;:::i;:::-;;;;5986:150;;;-1:-1:-1::0;;1701:1:12;2628:7;:22;-1:-1:-1;5451:691:9:o;7208:163::-;1123:6:11;;-1:-1:-1;;;;;1123:6:11;719:10:2;1263:23:11;1255:68;;;;-1:-1:-1;;;1255:68:11;;;;;;;:::i;:::-;7326:17:9::1;:38:::0;;-1:-1:-1;;;;;;7326:38:9::1;-1:-1:-1::0;;;;;7326:38:9;;;::::1;::::0;;;::::1;::::0;;7208:163::o;7224:123:4:-;7288:7;7314:21;7327:7;7314:12;:21::i;:::-;:26;;7224:123;-1:-1:-1;;7224:123:4:o;4712:203::-;4776:7;-1:-1:-1;;;;;4799:19:4;;4795:60;;4827:28;;-1:-1:-1;;;4827:28:4;;;;;;;;;;;4795:60;-1:-1:-1;;;;;;4880:19:4;;;;;:12;:19;;;;;:27;;;;4712:203::o;1683:101:11:-;1123:6;;-1:-1:-1;;;;;1123:6:11;719:10:2;1263:23:11;1255:68;;;;-1:-1:-1;;;1255:68:11;;;;;;;:::i;:::-;1747:30:::1;1774:1;1747:18;:30::i;:::-;1683:101::o:0;7571:102:4:-;7627:13;7659:7;7652:14;;;;;:::i;3723:713:9:-;1744:1:12;2325:7;;:19;2317:63;;;;-1:-1:-1;;;2317:63:12;;;;;;;:::i;:::-;1744:1;2455:7;:18;3797:12:9::1;::::0;::::1;::::0;::::1;;;3789:45;;;::::0;-1:-1:-1;;;3789:45:9;;12131:2:20;3789:45:9::1;::::0;::::1;12113:21:20::0;12170:2;12150:18;;;12143:30;-1:-1:-1;;;12189:18:20;;;12182:50;12249:18;;3789:45:9::1;11929:344:20::0;3789:45:9::1;3857:1;3852:2;:6;3844:38;;;::::0;-1:-1:-1;;;3844:38:9;;8641:2:20;3844:38:9::1;::::0;::::1;8623:21:20::0;8680:2;8660:18;;;8653:30;-1:-1:-1;;;8699:18:20;;;8692:49;8758:18;;3844:38:9::1;8439:343:20::0;3844:38:9::1;2298:4;3900:13;;:30;;3892:64;;;;-1:-1:-1::0;;;3892:64:9::1;;;;;;;:::i;:::-;2298:4;4003:2;3987:13;;:18;;;;:::i;:::-;:35;;3966:108;;;;-1:-1:-1::0;;;3966:108:9::1;;;;;;;:::i;:::-;4106:9;4092:10;4100:2:::0;2386:10:::1;4092;:::i;:::-;:23;;4084:60;;;::::0;-1:-1:-1;;;4084:60:9;;12480:2:20;4084:60:9::1;::::0;::::1;12462:21:20::0;12519:2;12499:18;;;12492:30;12558:26;12538:18;;;12531:54;12602:18;;4084:60:9::1;12278:348:20::0;4084:60:9::1;4154:22;4179:13:::0;4203:25:::1;4213:10;4225:2:::0;4203:9:::1;:25::i;:::-;4252:10;4238:25;::::0;;;:13:::1;:25;::::0;;;;:31;;4267:2;;4238:25;:31:::1;::::0;4267:2;;4238:31:::1;:::i;:::-;::::0;;;-1:-1:-1;4285:7:9::1;::::0;-1:-1:-1;4280:150:9::1;4302:2;4298:1;:6;;;4280:150;;;4349:39;4361:14;4377:10;4349:11;:39::i;:::-;4325:21;::::0;;;:5:::1;:21;::::0;;;;:63;4331:14;4403:16:::1;4331:14:::0;4403:16:::1;:::i;:::-;;;;4306:3;;;;;:::i;:::-;;;;4280:150;;9256:310:4::0;719:10:2;-1:-1:-1;;;;;9382:24:4;;;9378:54;;9415:17;;-1:-1:-1;;;9415:17:4;;;;;;;;;;;9378:54;719:10:2;9443:32:4;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;9443:42:4;;;;;;;;;;;;:53;;-1:-1:-1;;9443:53:4;;;;;;;;;;9511:48;;540:41:20;;;9443:42:4;;719:10:2;9511:48:4;;513:18:20;9511:48:4;;;;;;;9256:310;;:::o;10375:393::-;10536:28;10546:4;10552:2;10556:7;10536:9;:28::i;:::-;-1:-1:-1;;;;;10591:13:4;;1465:19:0;:23;;10591:88:4;;;;;10623:56;10654:4;10660:2;10664:7;10673:5;10623:30;:56::i;:::-;10622:57;10591:88;10574:188;;;10711:40;;-1:-1:-1;;;10711:40:4;;;;;;;;;;;10574:188;10375:393;;;;:::o;3453:264:9:-;3551:13;3599:14;4012:7:4;4194:13;;3965:277;3599:14:9;3588:8;:25;3580:60;;;;-1:-1:-1;;;3580:60:9;;12833:2:20;3580:60:9;;;12815:21:20;12872:2;12852:18;;;12845:30;-1:-1:-1;;;12891:18:20;;;12884:52;12953:18;;3580:60:9;12631:346:20;3580:60:9;3657:17;;;3694:15;;;:5;:15;;;;;;;;3657:53;;-1:-1:-1;;;3657:53:9;;;;;13156:25:20;;;13197:18;;;13190:34;;;;-1:-1:-1;;;;;3657:17:9;;;;:26;;13129:18:20;;3657:53:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3657:53:9;;;;;;;;;;;;:::i;7034:82::-;1123:6:11;;-1:-1:-1;;;;;1123:6:11;719:10:2;1263:23:11;1255:68;;;;-1:-1:-1;;;1255:68:11;;;;;;;:::i;:::-;7089:12:9::1;:20:::0;;-1:-1:-1;;7089:20:9::1;::::0;;7034:82::o;7122:80::-;1123:6:11;;-1:-1:-1;;;;;1123:6:11;719:10:2;1263:23:11;1255:68;;;;-1:-1:-1;;;1255:68:11;;;;;;;:::i;:::-;7183:4:9::1;:12:::0;7122:80::o;6547:99::-;1123:6:11;;-1:-1:-1;;;;;1123:6:11;719:10:2;1263:23:11;1255:68;;;;-1:-1:-1;;;1255:68:11;;;;;;;:::i;:::-;-1:-1:-1;;;;;6614:18:9::1;;::::0;;;:8:::1;:18;::::0;;;;:25;;-1:-1:-1;;6614:25:9::1;6635:4;6614:25;::::0;;6547:99::o;6858:82::-;1123:6:11;;-1:-1:-1;;;;;1123:6:11;719:10:2;1263:23:11;1255:68;;;;-1:-1:-1;;;1255:68:11;;;;;;;:::i;:::-;6913:12:9::1;:20:::0;;-1:-1:-1;;6913:20:9::1;::::0;;6858:82::o;1933:232:11:-;1123:6;;-1:-1:-1;;;;;1123:6:11;719:10:2;1263:23:11;1255:68;;;;-1:-1:-1;;;1255:68:11;;;;;;;:::i;:::-;-1:-1:-1;;;;;2034:22:11;::::1;2013:107;;;::::0;-1:-1:-1;;;2013:107:11;;14077:2:20;2013:107:11::1;::::0;::::1;14059:21:20::0;14116:2;14096:18;;;14089:30;14155:34;14135:18;;;14128:62;-1:-1:-1;;;14206:18:20;;;14199:36;14252:19;;2013:107:11::1;13875:402:20::0;2013:107:11::1;2130:28;2149:8;2130:18;:28::i;11014:208:4:-:0;11071:4;11158:13;;11148:7;:23;11106:109;;;;-1:-1:-1;;11188:20:4;;;;:11;:20;;;;;:27;-1:-1:-1;;;11188:27:4;;;;11187:28;;11014:208::o;19174:189::-;19284:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;19284:29:4;-1:-1:-1;;;;;19284:29:4;;;;;;;;;19328:28;;19284:24;;19328:28;;;;;;;19174:189;;;:::o;862:184:10:-;983:4;1035;1006:25;1019:5;1026:4;1006:12;:25::i;:::-;:33;;862:184;-1:-1:-1;;;;862:184:10:o;11228:102:4:-;11296:27;11306:2;11310:8;11296:27;;;;;;;;;;;;:9;:27::i;:::-;11228:102;;:::o;2937:510:9:-;3041:7;3181:8;3215;3249:54;;;;;;;;;;;;;;-1:-1:-1;;;3249:54:9;;;3284:8;3294:1;3297:5;3249:22;:54::i;:::-;3139:269;;;;;;14523:19:20;;;;14580:2;14576:15;;;;-1:-1:-1;;14572:53:20;14558:12;;;14551:75;;;;14642:12;;;14635:28;3329:16:9;14679:12:20;;;14672:28;3371:15:9;14716:13:20;;;14709:29;14754:13;;3139:269:9;;;-1:-1:-1;;3139:269:9;;;;;;;;;3108:318;;3139:269;3108:318;;;;;2937:510;-1:-1:-1;;;2937:510:9:o;14244:2082:4:-;14354:35;14392:21;14405:7;14392:12;:21::i;:::-;14354:59;;14450:4;-1:-1:-1;;;;;14428:26:4;:13;:18;;;-1:-1:-1;;;;;14428:26:4;;14424:67;;14463:28;;-1:-1:-1;;;14463:28:4;;;;;;;;;;;14424:67;14502:22;719:10:2;-1:-1:-1;;;;;14528:20:4;;;;:72;;-1:-1:-1;14564:36:4;14581:4;719:10:2;9632:206:4;:::i;14564:36::-;14528:124;;;-1:-1:-1;719:10:2;14616:20:4;14628:7;14616:11;:20::i;:::-;-1:-1:-1;;;;;14616:36:4;;14528:124;14502:151;;14669:17;14664:66;;14695:35;;-1:-1:-1;;;14695:35:4;;;;;;;;;;;14664:66;-1:-1:-1;;;;;14744:16:4;;14740:52;;14769:23;;-1:-1:-1;;;14769:23:4;;;;;;;;;;;14740:52;14908:35;14925:1;14929:7;14938:4;14908:8;:35::i;:::-;-1:-1:-1;;;;;15233:18:4;;;;;;;:12;:18;;;;;;;;:31;;-1:-1:-1;;15233:31:4;;;;;;;-1:-1:-1;;15233:31:4;;;;;;;15278:16;;;;;;;;;:29;;;;;;;;-1:-1:-1;15278:29:4;;;;;;;;;;;15356:20;;;:11;:20;;;;;;15390:18;;-1:-1:-1;;;;;;15422:49:4;;;;-1:-1:-1;;;15455:15:4;15422:49;;;;;;;;;;15741:11;;15800:24;;;;;15842:13;;15356:20;;15800:24;;15842:13;15838:377;;16049:13;;16034:11;:28;16030:171;;16086:20;;16154:28;;;;16128:54;;-1:-1:-1;;;16128:54:4;-1:-1:-1;;;;;;16128:54:4;;;-1:-1:-1;;;;;16086:20:4;;16128:54;;;;16030:171;15209:1016;;;16259:7;16255:2;-1:-1:-1;;;;;16240:27:4;16249:4;-1:-1:-1;;;;;16240:27:4;;;;;;;;;;;16277:42;14344:1982;;14244:2082;;;:::o;6055:1112::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;6193:7:4;6273:13;;6266:4;:20;6235:868;;;6306:31;6340:17;;;:11;:17;;;;;;;;;6306:51;;;;;;;;;-1:-1:-1;;;;;6306:51:4;;;;-1:-1:-1;;;6306:51:4;;;;;;;;;;;-1:-1:-1;;;6306:51:4;;;;;;;;;;;;;;6375:714;;6424:14;;-1:-1:-1;;;;;6424:28:4;;6420:99;;6487:9;6055:1112;-1:-1:-1;;;6055:1112:4:o;6420:99::-;-1:-1:-1;;;6855:6:4;6899:17;;;;:11;:17;;;;;;;;;6887:29;;;;;;;;;-1:-1:-1;;;;;6887:29:4;;;;;-1:-1:-1;;;6887:29:4;;;;;;;;;;;-1:-1:-1;;;6887:29:4;;;;;;;;;;;;;6946:28;6942:107;;7013:9;6055:1112;-1:-1:-1;;;6055:1112:4:o;6942:107::-;6816:255;;;6288:815;6235:868;7129:31;;-1:-1:-1;;;7129:31:4;;;;;;;;;;;2319:187:11;2411:6;;;-1:-1:-1;;;;;2427:17:11;;;-1:-1:-1;;;;;;2427:17:11;;;;;;;2459:40;;2411:6;;;2427:17;2411:6;;2459:40;;2392:16;;2459:40;2382:124;2319:187;:::o;19844:748:4:-;20034:150;;-1:-1:-1;;;20034:150:4;;20002:4;;-1:-1:-1;;;;;20034:36:4;;;;;:150;;719:10:2;;20118:4:4;;20140:7;;20165:5;;20034:150;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;20034:150:4;;;;;;;;-1:-1:-1;;20034:150:4;;;;;;;;;;;;:::i;:::-;;;20018:568;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20351:6;:13;20368:1;20351:18;20347:229;;20396:40;;-1:-1:-1;;;20396:40:4;;;;;;;;;;;20347:229;20536:6;20530:13;20521:6;20517:2;20513:15;20506:38;20018:568;-1:-1:-1;;;;;;20238:55:4;-1:-1:-1;;;20238:55:4;;-1:-1:-1;20018:568:4;19844:748;;;;;;:::o;1398:690:10:-;1505:7;1551:4;1505:7;1565:488;1589:5;:12;1585:1;:16;1565:488;;;1622:20;1645:5;1651:1;1645:8;;;;;;;;:::i;:::-;;;;;;;1622:31;;1687:12;1671;:28;1667:376;;2186:13;2238:15;;;2273:4;2266:15;;;2319:4;2303:21;;1797:57;;1667:376;;;2186:13;2238:15;;;2273:4;2266:15;;;2319:4;2303:21;;1971:57;;1667:376;-1:-1:-1;1603:3:10;;;;:::i;:::-;;;;1565:488;;;-1:-1:-1;2069:12:10;1398:690;-1:-1:-1;;;1398:690:10:o;11681:157:4:-;11799:32;11805:2;11809:8;11819:5;11826:4;11799:5;:32::i;2307:326:19:-;2458:7;2489:4;2481;:12;2477:29;;-1:-1:-1;2502:4:19;2495:11;;2477:29;2622:4;2606:11;2622:4;2606;:11;:::i;:::-;2571:5;2578;2554:30;;;;;;;;;:::i;:::-;;;;;;;;;;;;;2544:41;;;;;;2536:50;;:82;;;;:::i;:::-;2535:91;;;;:::i;:::-;2516:110;2307:326;-1:-1:-1;;;;;2307:326:19:o;12085:1917:4:-;12218:20;12241:13;-1:-1:-1;;;;;12268:16:4;;12264:48;;12293:19;;-1:-1:-1;;;12293:19:4;;;;;;;;;;;12264:48;12326:8;12338:1;12326:13;12322:44;;12348:18;;-1:-1:-1;;;12348:18:4;;;;;;;;;;;12322:44;-1:-1:-1;;;;;12709:16:4;;;;;;:12;:16;;;;;;;;:44;;-1:-1:-1;;12767:49:4;;12709:44;;;;;;;;12767:49;;;;-1:-1:-1;;12709:44:4;;;;;;12767:49;;;;;;;;;;;;;;;;12831:25;;;:11;:25;;;;;;:35;;-1:-1:-1;;;;;;12880:66:4;;;;-1:-1:-1;;;12930:15:4;12880:66;;;;;;;;;;12831:25;13024:23;;;13066:4;:23;;;;-1:-1:-1;;;;;;13074:13:4;;1465:19:0;:23;;13074:15:4;13062:812;;;13109:493;13139:38;;13164:12;;-1:-1:-1;;;;;13139:38:4;;;13156:1;;13139:38;;13156:1;;13139:38;13229:207;13297:1;13329:2;13361:14;;;;;;13405:5;13229:30;:207::i;:::-;13199:356;;13492:40;;-1:-1:-1;;;13492:40:4;;;;;;;;;;;13199:356;13597:3;13581:12;:19;13109:493;;13681:12;13664:13;;:29;13660:43;;13695:8;;;13660:43;13062:812;;;13742:118;13772:40;;13797:14;;;;;-1:-1:-1;;;;;13772:40:4;;;13789:1;;13772:40;;13789:1;;13772:40;13855:3;13839:12;:19;13742:118;;13062:812;-1:-1:-1;13887:13:4;:28;13935:60;10375:393;14:131:20;-1:-1:-1;;;;;;88:32:20;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;:::-;384:5;150:245;-1:-1:-1;;;150:245:20:o;592:258::-;664:1;674:113;688:6;685:1;682:13;674:113;;;764:11;;;758:18;745:11;;;738:39;710:2;703:10;674:113;;;805:6;802:1;799:13;796:48;;;-1:-1:-1;;840:1:20;822:16;;815:27;592:258::o;855:::-;897:3;935:5;929:12;962:6;957:3;950:19;978:63;1034:6;1027:4;1022:3;1018:14;1011:4;1004:5;1000:16;978:63;:::i;:::-;1095:2;1074:15;-1:-1:-1;;1070:29:20;1061:39;;;;1102:4;1057:50;;855:258;-1:-1:-1;;855:258:20:o;1118:220::-;1267:2;1256:9;1249:21;1230:4;1287:45;1328:2;1317:9;1313:18;1305:6;1287:45;:::i;1343:180::-;1402:6;1455:2;1443:9;1434:7;1430:23;1426:32;1423:52;;;1471:1;1468;1461:12;1423:52;-1:-1:-1;1494:23:20;;1343:180;-1:-1:-1;1343:180:20:o;1736:131::-;-1:-1:-1;;;;;1811:31:20;;1801:42;;1791:70;;1857:1;1854;1847:12;1872:315;1940:6;1948;2001:2;1989:9;1980:7;1976:23;1972:32;1969:52;;;2017:1;2014;2007:12;1969:52;2056:9;2043:23;2075:31;2100:5;2075:31;:::i;:::-;2125:5;2177:2;2162:18;;;;2149:32;;-1:-1:-1;;;1872:315:20:o;2192:683::-;2287:6;2295;2303;2356:2;2344:9;2335:7;2331:23;2327:32;2324:52;;;2372:1;2369;2362:12;2324:52;2408:9;2395:23;2385:33;;2469:2;2458:9;2454:18;2441:32;2492:18;2533:2;2525:6;2522:14;2519:34;;;2549:1;2546;2539:12;2519:34;2587:6;2576:9;2572:22;2562:32;;2632:7;2625:4;2621:2;2617:13;2613:27;2603:55;;2654:1;2651;2644:12;2603:55;2694:2;2681:16;2720:2;2712:6;2709:14;2706:34;;;2736:1;2733;2726:12;2706:34;2789:7;2784:2;2774:6;2771:1;2767:14;2763:2;2759:23;2755:32;2752:45;2749:65;;;2810:1;2807;2800:12;2749:65;2841:2;2837;2833:11;2823:21;;2863:6;2853:16;;;;;2192:683;;;;;:::o;3062:247::-;3121:6;3174:2;3162:9;3153:7;3149:23;3145:32;3142:52;;;3190:1;3187;3180:12;3142:52;3229:9;3216:23;3248:31;3273:5;3248:31;:::i;3314:456::-;3391:6;3399;3407;3460:2;3448:9;3439:7;3435:23;3431:32;3428:52;;;3476:1;3473;3466:12;3428:52;3515:9;3502:23;3534:31;3559:5;3534:31;:::i;:::-;3584:5;-1:-1:-1;3641:2:20;3626:18;;3613:32;3654:33;3613:32;3654:33;:::i;:::-;3314:456;;3706:7;;-1:-1:-1;;;3760:2:20;3745:18;;;;3732:32;;3314:456::o;4062:416::-;4127:6;4135;4188:2;4176:9;4167:7;4163:23;4159:32;4156:52;;;4204:1;4201;4194:12;4156:52;4243:9;4230:23;4262:31;4287:5;4262:31;:::i;:::-;4312:5;-1:-1:-1;4369:2:20;4354:18;;4341:32;4411:15;;4404:23;4392:36;;4382:64;;4442:1;4439;4432:12;4382:64;4465:7;4455:17;;;4062:416;;;;;:::o;4483:127::-;4544:10;4539:3;4535:20;4532:1;4525:31;4575:4;4572:1;4565:15;4599:4;4596:1;4589:15;4615:275;4686:2;4680:9;4751:2;4732:13;;-1:-1:-1;;4728:27:20;4716:40;;4786:18;4771:34;;4807:22;;;4768:62;4765:88;;;4833:18;;:::i;:::-;4869:2;4862:22;4615:275;;-1:-1:-1;4615:275:20:o;4895:186::-;4943:4;4976:18;4968:6;4965:30;4962:56;;;4998:18;;:::i;:::-;-1:-1:-1;5064:2:20;5043:15;-1:-1:-1;;5039:29:20;5070:4;5035:40;;4895:186::o;5086:1016::-;5181:6;5189;5197;5205;5258:3;5246:9;5237:7;5233:23;5229:33;5226:53;;;5275:1;5272;5265:12;5226:53;5314:9;5301:23;5333:31;5358:5;5333:31;:::i;:::-;5383:5;-1:-1:-1;5440:2:20;5425:18;;5412:32;5453:33;5412:32;5453:33;:::i;:::-;5505:7;-1:-1:-1;5559:2:20;5544:18;;5531:32;;-1:-1:-1;5614:2:20;5599:18;;5586:32;5641:18;5630:30;;5627:50;;;5673:1;5670;5663:12;5627:50;5696:22;;5749:4;5741:13;;5737:27;-1:-1:-1;5727:55:20;;5778:1;5775;5768:12;5727:55;5814:2;5801:16;5839:48;5855:31;5883:2;5855:31;:::i;:::-;5839:48;:::i;:::-;5910:2;5903:5;5896:17;5950:7;5945:2;5940;5936;5932:11;5928:20;5925:33;5922:53;;;5971:1;5968;5961:12;5922:53;6026:2;6021;6017;6013:11;6008:2;6001:5;5997:14;5984:45;6070:1;6065:2;6060;6053:5;6049:14;6045:23;6038:34;6091:5;6081:15;;;;;5086:1016;;;;;;;:::o;6292:388::-;6360:6;6368;6421:2;6409:9;6400:7;6396:23;6392:32;6389:52;;;6437:1;6434;6427:12;6389:52;6476:9;6463:23;6495:31;6520:5;6495:31;:::i;:::-;6545:5;-1:-1:-1;6602:2:20;6587:18;;6574:32;6615:33;6574:32;6615:33;:::i;6928:380::-;7007:1;7003:12;;;;7050;;;7071:61;;7125:4;7117:6;7113:17;7103:27;;7071:61;7178:2;7170:6;7167:14;7147:18;7144:38;7141:161;;7224:10;7219:3;7215:20;7212:1;7205:31;7259:4;7256:1;7249:15;7287:4;7284:1;7277:15;7141:161;;6928:380;;;:::o;7313:356::-;7515:2;7497:21;;;7534:18;;;7527:30;7593:34;7588:2;7573:18;;7566:62;7660:2;7645:18;;7313:356::o;7674:355::-;7876:2;7858:21;;;7915:2;7895:18;;;7888:30;7954:33;7949:2;7934:18;;7927:61;8020:2;8005:18;;7674:355::o;9423:345::-;9625:2;9607:21;;;9664:2;9644:18;;;9637:30;-1:-1:-1;;;9698:2:20;9683:18;;9676:51;9759:2;9744:18;;9423:345::o;9773:127::-;9834:10;9829:3;9825:20;9822:1;9815:31;9865:4;9862:1;9855:15;9889:4;9886:1;9879:15;9905:128;9945:3;9976:1;9972:6;9969:1;9966:13;9963:39;;;9982:18;;:::i;:::-;-1:-1:-1;10018:9:20;;9905:128::o;10038:350::-;10240:2;10222:21;;;10279:2;10259:18;;;10252:30;10318:28;10313:2;10298:18;;10291:56;10379:2;10364:18;;10038:350::o;10393:168::-;10433:7;10499:1;10495;10491:6;10487:14;10484:1;10481:21;10476:1;10469:9;10462:17;10458:45;10455:71;;;10506:18;;:::i;:::-;-1:-1:-1;10546:9:20;;10393:168::o;10919:135::-;10958:3;10979:17;;;10976:43;;10999:18;;:::i;:::-;-1:-1:-1;11046:1:20;11035:13;;10919:135::o;11059:175::-;11096:3;11140:4;11133:5;11129:16;11169:4;11160:7;11157:17;11154:43;;11177:18;;:::i;:::-;11226:1;11213:15;;11059:175;-1:-1:-1;;11059:175:20:o;13235:635::-;13315:6;13368:2;13356:9;13347:7;13343:23;13339:32;13336:52;;;13384:1;13381;13374:12;13336:52;13417:9;13411:16;13450:18;13442:6;13439:30;13436:50;;;13482:1;13479;13472:12;13436:50;13505:22;;13558:4;13550:13;;13546:27;-1:-1:-1;13536:55:20;;13587:1;13584;13577:12;13536:55;13616:2;13610:9;13641:48;13657:31;13685:2;13657:31;:::i;13641:48::-;13712:2;13705:5;13698:17;13752:7;13747:2;13742;13738;13734:11;13730:20;13727:33;13724:53;;;13773:1;13770;13763:12;13724:53;13786:54;13837:2;13832;13825:5;13821:14;13816:2;13812;13808:11;13786:54;:::i;14778:489::-;-1:-1:-1;;;;;15047:15:20;;;15029:34;;15099:15;;15094:2;15079:18;;15072:43;15146:2;15131:18;;15124:34;;;15194:3;15189:2;15174:18;;15167:31;;;14972:4;;15215:46;;15241:19;;15233:6;15215:46;:::i;:::-;15207:54;14778:489;-1:-1:-1;;;;;;14778:489:20:o;15272:249::-;15341:6;15394:2;15382:9;15373:7;15369:23;15365:32;15362:52;;;15410:1;15407;15400:12;15362:52;15442:9;15436:16;15461:30;15485:5;15461:30;:::i;15526:127::-;15587:10;15582:3;15578:20;15575:1;15568:31;15618:4;15615:1;15608:15;15642:4;15639:1;15632:15;15658:125;15698:4;15726:1;15723;15720:8;15717:34;;;15731:18;;:::i;:::-;-1:-1:-1;15768:9:20;;15658:125::o;15788:372::-;15947:3;15985:6;15979:13;16001:53;16047:6;16042:3;16035:4;16027:6;16023:17;16001:53;:::i;:::-;16076:16;;;;16101:21;;;-1:-1:-1;16149:4:20;16138:16;;15788:372;-1:-1:-1;15788:372:20:o;16165:209::-;16197:1;16223;16213:132;;16267:10;16262:3;16258:20;16255:1;16248:31;16302:4;16299:1;16292:15;16330:4;16327:1;16320:15;16213:132;-1:-1:-1;16359:9:20;;16165:209::o

Swarm Source

ipfs://49b4fbb22edf373e91b30e66f4dd458cfb890eb546075055dae8b4c7181cbbef
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.