ETH Price: $3,321.31 (-4.05%)

Token

Synesthesia (SYNES)
 

Overview

Max Total Supply

505 SYNES

Holders

101

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
pristineventures.eth
Balance
5 SYNES
0x1EbDe0d2e17462E28244886c76f2E8D8Cd075095
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:
Synesthesia

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 10000 runs

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

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "./ColorPalette.sol";
import "./colors/Color.sol";
import "./colors/IColorProvider.sol";
import "./IMetadataRenderer.sol";
import "./tokens/ERC721Slim.sol";
import "./utils/Base64.sol";
import "./utils/Random.sol";

contract Synesthesia is ERC721Slim, ColorPalette, Ownable {
    uint256 public constant MAX_MINT_PER_TX = 20;
    uint256 public constant UNIT_PRICE = 0.055 ether;

    uint8 private constant SALE_STATE_NOT_STARTED = 0;
    uint8 private constant SALE_STATE_STARTED = 1;
    uint8 private constant SALE_STATE_CLOSED = 2;

    address public constant OPENDAO_TREASURY = 0xd08d0e994EeEf4001C63C72991Cf05918aDF191b;

    struct Config {
        uint8 saleState;
        uint16 maxSupply;
        uint128 randomSeed;
        uint104 minterSeed;
    }

    bytes32 public immutable _saltHash;
    Config public _config;
    IMetadataRenderer _renderer;

    constructor(uint16 maxSupply, bytes32 saltHash, address renderer, IColorProvider[] memory colorProviders)
        ERC721Slim("Synesthesia", "SYNES")
    {
        require(renderer != address(0), "Synesthesia: renderer shouldn't be zero address");
        require(maxSupply > 0, "Synesthesia: max supply should be larger than zero");
        require(saltHash != 0, "Synesthesia: salt hash cannot be zero");

        _setColorProviders(colorProviders);

        _config = Config({
            saleState: SALE_STATE_NOT_STARTED,
            maxSupply: maxSupply,
            randomSeed: 0,
            minterSeed: 0
        });

        _renderer = IMetadataRenderer(renderer);
        _saltHash = saltHash;
    }

    function sqeezePigmentTube(uint256 amount) external payable {
        Config memory config = _config;

        require(tx.origin == msg.sender, "Synesthesia: are you botting?");
        require(config.saleState == SALE_STATE_STARTED, "Synesthesia: sale is not yet started");
        require(amount <= MAX_MINT_PER_TX, "Synesthesia: exceeds maximum amount per transaction");
        require(amount * UNIT_PRICE <= msg.value, "Synesthesia: insufficient fund");
        require(amount + totalMinted() <= config.maxSupply, "Synesthesia: exceeds total supply");

        _safeBatchMint(msg.sender, amount);

        config.minterSeed = uint104(uint256(keccak256(abi.encodePacked(config.minterSeed, msg.sender))));
        _config = config;
    }

    function setRenderer(address renderer) external onlyOwner {
        _renderer = IMetadataRenderer(renderer);
    }

    function setColorProvier(IColorProvider[] memory colorProviders) external onlyOwner {
        _setColorProviders(colorProviders);
    }

    function setSaleState(uint8 targetSaleState) external onlyOwner {
        _config.saleState = targetSaleState;
    }

    function revealColors(string memory salt) external onlyOwner {
        require(keccak256(bytes(salt)) == _saltHash, "Synesthesia: invalid salt");
        require(_config.randomSeed == 0, "Synesthesia: already revealed");

        uint256 lastBlock = block.number - 1;
        _config.randomSeed = uint128(uint256(keccak256(abi.encodePacked(
            salt,
            _config.minterSeed,
            uint256(blockhash(lastBlock)),
            uint256(block.timestamp)))));
    }

    function withdraw() external onlyOwner {
        uint256 balance = address(this).balance;
        uint256 feedbackToOpenDAO = balance * 10 / 100;

        Address.sendValue(payable(OPENDAO_TREASURY), feedbackToOpenDAO);
        Address.sendValue(payable(msg.sender), balance - feedbackToOpenDAO);
    }

    function functionCall(address target, bytes calldata data) external payable onlyOwner {
        Address.functionCallWithValue(target, data, msg.value);
    }

    // ========================================
    //    IERC721Metadata implementations
    // ========================================

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "Synesthesia: URI query for nonexistent token");
        Config memory config = _config;

        if (_config.randomSeed == 0) {
            return _renderer.renderUnreveal(uint16(tokenId));
        } else {
            uint16 randomizedId = Random.getRandomizedId(
                uint16(tokenId),
                uint16(config.maxSupply),
                config.randomSeed);
            Color memory color = getColor(randomizedId);

            return _renderer.render(uint16(tokenId), color);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 18 : ColorPalette.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

import "./colors/Color.sol";
import "./colors/IColorProvider.sol";
import "./utils/Base64.sol";

abstract contract ColorPalette {
    struct ColorDependency {
        IColorProvider provider;
        uint96 accumulateAmount;
    }

    ColorDependency[] public _colorProviders;

    function _setColorProviders(IColorProvider[] memory colorProviders) internal {
        delete _colorProviders;

        uint96 accAmount = 0;
        for (uint i = 0; i < colorProviders.length; i++) {
            IColorProvider p = colorProviders[i];

            accAmount += uint96(p.totalAmount());
            _colorProviders.push(ColorDependency(p, accAmount));
        }
    }

    function getColor(uint16 id) public view returns (Color memory) {
        uint256 providerCount = _colorProviders.length;
        uint96 lastAccAmount = 0;

        for (uint i = 0; i < providerCount; i++) {
            ColorDependency memory dep = _colorProviders[i];

            if (id < dep.accumulateAmount) return dep.provider.getColor(id - lastAccAmount);
            lastAccAmount = dep.accumulateAmount;
        }

        revert("ColorPalette: id of color cannot exceed 16,000");
    }
}

File 5 of 18 : Color.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

struct Color {
    string rgb;
    string name;
}

File 6 of 18 : IColorProvider.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

import "./Color.sol";

abstract contract IColorProvider {
    function totalAmount() public pure virtual returns (uint96);
    function getColor(uint128 id) public pure virtual returns (Color memory);

    bytes16 private constant HEX_ALPHABET = "0123456789ABCDEF";

    function _getColor(
        bytes memory names,
        bytes memory rgbs,
        uint128 index
    ) internal pure returns (Color memory) {
        return Color({
            rgb: string(getColorRgb(rgbs, index)), 
            name: string(getColorName(names, index))
        });
    }

    function getColorName(bytes memory names, uint128 index) internal pure returns (bytes memory) {
        bytes memory result;
        uint256 startIndex = 0;
        uint256 endIndex = 0;

        // Find start index
        for (; startIndex < names.length && index > 0; startIndex++) {
            if (names[startIndex] != "|") continue;

            index--;
        }

        // Find end index. Either next delimeter or terminator.
        for (endIndex = startIndex + 1; endIndex < names.length && names[endIndex] != "|"; endIndex++) {}

        for (; startIndex < endIndex; startIndex++) {
            result = abi.encodePacked(result, names[startIndex]);
        }

        return result;
    }

    function getColorRgb(bytes memory rgbs, uint128 index) internal pure returns (bytes memory) {
        uint256 startIndex = 3 * uint256(index);

        return abi.encodePacked(
            HEX_ALPHABET[(uint8(rgbs[startIndex + 0]) >> 4) & 0xF],
            HEX_ALPHABET[uint8(rgbs[startIndex + 0]) & 0xF],
            HEX_ALPHABET[(uint8(rgbs[startIndex + 1]) >> 4) & 0xF],
            HEX_ALPHABET[uint8(rgbs[startIndex + 1]) & 0xF],
            HEX_ALPHABET[(uint8(rgbs[startIndex + 2]) >> 4) & 0xF],
            HEX_ALPHABET[uint8(rgbs[startIndex + 2]) & 0xF]);
    }
}

File 7 of 18 : IMetadataRenderer.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

import "./colors/Color.sol";

interface IMetadataRenderer {
    function renderUnreveal(uint16 tokenId) external view returns (string memory);
    function render(uint16 tokenId, Color memory color) external view returns (string memory);
}

File 8 of 18 : ERC721Slim.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension and the Enumerable extensions.
 *
 * This implementation is called `Slim` because the gas usage is extremely saved in the minting, transfer operations.
 * But as a drawback, those view functions like balanceOf and any functions from IERC721Enumerable
 * will be costly because it needs heavy iterations over the array that stores the token array.
 */
contract ERC721Slim is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    uint256 private _burntTokens = 0;
    address[] private _tokenOwners;
    mapping(uint256 => address) _tokenApprovals;

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

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

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

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

        uint256 balance = 0;
        for (uint i = 0; i < _tokenOwners.length; i++) {
            if (_tokenOwners[i] == owner) {
                balance++;
            }
        }

        return balance;
    }

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

    /**
     * @dev Safely mints `tokenId` in batch and transfers it to `to`.
     *
     * Requirements:
     *
     * - `to` must not be a zero address.
     * - `amount` must not be zero
     */
    function _safeBatchMint(address to, uint256 amount) internal returns (uint256 startId) {
        require(to != address(0), "ERC721Slim: mint to the zero address");
        require(amount > 0, "ERC721Slim: mint nothing");
        startId = _tokenOwners.length;

        for (uint256 i = 0; i < amount; i++) {
            _tokenOwners.push(to);

            emit Transfer(address(0), to, _tokenOwners.length - 1);
        }

        require(
            _checkOnERC721Received(address(0), to, startId, ""),
            "ERC721Slim: transfer to non ERC721Receiver implementer"
        );
    }

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

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

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

        uint256 tokenId = _tokenOwners.length;
        _tokenOwners.push(to);

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

        return tokenId;
    }

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

        _tokenOwners[tokenId] = address(0);
        delete _tokenApprovals[tokenId];
        _burntTokens++;

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

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

        _tokenOwners[tokenId] = to;
        _tokenApprovals[tokenId] = address(0);

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

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

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

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

    // ========================================
    //    IERC721Enumerable implementations
    // ========================================

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() public override view returns (uint256) {
        return _tokenOwners.length - _burntTokens;
    }

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId) {
        uint256 _totalSupply = _tokenOwners.length;

        for (uint i = 0; i < _totalSupply; i++) {
            if (_tokenOwners[i] != owner) continue;

            if (index == 0) {
                return i;
            }

            index--;
        }

        revert("ERC721Slim: owner index out of bounds");
    }

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256) {
        require(index < _tokenOwners.length, "ERC721Slim: global index out of bounds");
        
        // Adjusted token orders by skipping burnt tokens
        uint256 burntTokens = 0;
        for (uint256 i = 0; i < _tokenOwners.length; i++) {
            if (_tokenOwners[i] == address(0)) {
                burntTokens++;
            }

            if (i == index + burntTokens) return i;
        }
        
        revert("ERC721Slim: global index out of bounds");
    }

    // ========================================
    //    Miscellaneous functions
    // ========================================

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalMinted() public view returns (uint256) {
        return _tokenOwners.length;
    }
}

File 9 of 18 : Base64.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

library Base64 {
    string constant private B64_ALPHABET = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';

    function encode(bytes memory _data) internal pure returns (string memory result) {
        if (_data.length == 0) return '';
        string memory _table = B64_ALPHABET;
        uint256 _encodedLen = 4 * ((_data.length + 2) / 3);
        result = new string(_encodedLen + 32);

        assembly {
            mstore(result, _encodedLen)
            let tablePtr := add(_table, 1)
            let dataPtr := _data
            let endPtr := add(dataPtr, mload(_data))
            let resultPtr := add(result, 32)

            for {} lt(dataPtr, endPtr) {}
            {
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)
                mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F)))))
                resultPtr := add(resultPtr, 1)
                mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F)))))
                resultPtr := add(resultPtr, 1)
                mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(6, input), 0x3F)))))
                resultPtr := add(resultPtr, 1)
                mstore(resultPtr, shl(248, mload(add(tablePtr, and(input, 0x3F)))))
                resultPtr := add(resultPtr, 1)
            }
            
            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;
    }
}

File 10 of 18 : Random.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

/**
 * @dev A pesudo-random number generator that built based on LCG algorithm.
 */
library Random {
    uint256 private constant A = 48271;
    uint256 private constant M = type(uint32).max;
    uint256 private constant C = 0;

    /**
     * @dev Map a number between [0, `idMax`) to another number in the range of [0, `idMax`) randomly
     * with a determined `randomSeed`
     */
    function getRandomizedId(
        uint16 id,
        uint16 idMax,
        uint256 randomSeed
    ) internal pure returns (uint16) {
        uint16[] memory newIdSeq = new uint16[](idMax);
        uint256 seed = randomSeed;

        for (uint16 i = 0; i < idMax; i++) newIdSeq[i] = i;

        for (uint16 i = 0; i < idMax; i++) {
            // LCG
            unchecked { seed = (A * seed + C) % M; }

            uint16 iToSwap = uint16(seed % idMax);
            uint16 temp = newIdSeq[i];
            newIdSeq[i] = newIdSeq[iToSwap];
            newIdSeq[iToSwap] = temp;
        }

        return newIdSeq[id];
    }
}

File 11 of 18 : 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 12 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, 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 13 of 18 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 14 of 18 : 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 15 of 18 : 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 16 of 18 : 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 17 of 18 : 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 18 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint16","name":"maxSupply","type":"uint16"},{"internalType":"bytes32","name":"saltHash","type":"bytes32"},{"internalType":"address","name":"renderer","type":"address"},{"internalType":"contract IColorProvider[]","name":"colorProviders","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_MINT_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPENDAO_TREASURY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNIT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_colorProviders","outputs":[{"internalType":"contract IColorProvider","name":"provider","type":"address"},{"internalType":"uint96","name":"accumulateAmount","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_config","outputs":[{"internalType":"uint8","name":"saleState","type":"uint8"},{"internalType":"uint16","name":"maxSupply","type":"uint16"},{"internalType":"uint128","name":"randomSeed","type":"uint128"},{"internalType":"uint104","name":"minterSeed","type":"uint104"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_saltHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","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":"target","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"functionCall","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":"uint16","name":"id","type":"uint16"}],"name":"getColor","outputs":[{"components":[{"internalType":"string","name":"rgb","type":"string"},{"internalType":"string","name":"name","type":"string"}],"internalType":"struct Color","name":"","type":"tuple"}],"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":"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":"string","name":"salt","type":"string"}],"name":"revealColors","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":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IColorProvider[]","name":"colorProviders","type":"address[]"}],"name":"setColorProvier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"renderer","type":"address"}],"name":"setRenderer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"targetSaleState","type":"uint8"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sqeezePigmentTube","outputs":[],"stateMutability":"payable","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405260006002553480156200001657600080fd5b5060405162003fb838038062003fb8833981016040819052620000399162000516565b604080518082018252600b81526a53796e657374686573696160a81b60208083019182528351808501909452600584526453594e455360d81b90840152815191929162000089916000916200040f565b5080516200009f9060019060208401906200040f565b505050620000bc620000b66200026b60201b60201c565b6200026f565b6001600160a01b038216620001305760405162461bcd60e51b815260206004820152602f60248201527f53796e65737468657369613a2072656e64657265722073686f756c646e27742060448201526e6265207a65726f206164647265737360881b60648201526084015b60405180910390fd5b60008461ffff1611620001a15760405162461bcd60e51b815260206004820152603260248201527f53796e65737468657369613a206d617820737570706c792073686f756c64206260448201527165206c6172676572207468616e207a65726f60701b606482015260840162000127565b82620001fe5760405162461bcd60e51b815260206004820152602560248201527f53796e65737468657369613a2073616c7420686173682063616e6e6f74206265604482015264207a65726f60d81b606482015260840162000127565b6200020981620002c1565b506040805160808082018352600080835261ffff96909616602083018190529282018690526060909101949094526101000262ffffff16600855600980546001600160a01b0319166001600160a01b039290921691909117905590526200070b565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620002cf600660006200049e565b6000805b82518110156200040a576000838281518110620002f457620002f462000624565b60200260200101519050806001600160a01b0316631a39d8ef6040518163ffffffff1660e01b815260040160206040518083038186803b1580156200033857600080fd5b505afa1580156200034d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200037391906200063a565b6200037f908462000682565b604080518082019091526001600160a01b0392831681526001600160601b03808316602083019081526006805460018101825560009190915292519051909116600160a01b029316929092177ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f909201919091559150806200040181620006b0565b915050620002d3565b505050565b8280546200041d90620006ce565b90600052602060002090601f0160209004810192826200044157600085556200048c565b82601f106200045c57805160ff19168380011785556200048c565b828001600101855582156200048c579182015b828111156200048c5782518255916020019190600101906200046f565b506200049a929150620004c1565b5090565b5080546000825590600052602060002090810190620004be9190620004c1565b50565b5b808211156200049a5760008155600101620004c2565b6001600160a01b0381168114620004be57600080fd5b634e487b7160e01b600052604160045260246000fd5b80516200051181620004d8565b919050565b600080600080608085870312156200052d57600080fd5b845161ffff811681146200054057600080fd5b80945050602080860151935060408601516200055c81620004d8565b60608701519093506001600160401b03808211156200057a57600080fd5b818801915088601f8301126200058f57600080fd5b815181811115620005a457620005a4620004ee565b8060051b604051601f19603f83011681018181108582111715620005cc57620005cc620004ee565b60405291825284820192508381018501918b831115620005eb57600080fd5b938501935b828510156200061457620006048562000504565b84529385019392850192620005f0565b989b979a50959850505050505050565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156200064d57600080fd5b81516001600160601b03811681146200066557600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b60006001600160601b03828116848216808303821115620006a757620006a76200066c565b01949350505050565b6000600019821415620006c757620006c76200066c565b5060010190565b600181811c90821680620006e357607f821691505b602082108114156200070557634e487b7160e01b600052602260045260246000fd5b50919050565b60805161388a6200072e60003960008181610364015261128e015261388a6000f3fe6080604052600436106102195760003560e01c80636352211e1161011d578063a22cb465116100b0578063b88d4fde1161007f578063e985e9c511610064578063e985e9c5146106ba578063ed24369014610703578063f2fde38b1461072b57600080fd5b8063b88d4fde1461067a578063c87b56dd1461069a57600080fd5b8063a22cb4651461060a578063a2309ff81461062a578063a30cc6c31461063f578063afa40bbd1461065f57600080fd5b80638da5cb5b116100ec5780638da5cb5b146105af5780638ecad721146105cd57806395d89b41146105e2578063a0b5ffb0146105f757600080fd5b80636352211e1461050e57806370a082311461052e578063715018a61461054e57806381b60d131461056357600080fd5b80632c7165b9116101b05780633ccfd60b1161017f5780634f6ccce7116101645780634f6ccce7146104ae57806356d3163d146104ce5780635a67de07146104ee57600080fd5b80633ccfd60b1461047957806342842e0e1461048e57600080fd5b80632c7165b9146103525780632ed42bf7146103865780632f745c591461043957806334c4163c1461045957600080fd5b806316fcc9ec116101ec57806316fcc9ec146102cf57806318160ddd146102e257806323b872dd1461030557806329a347171461032557600080fd5b806301ffc9a71461021e57806306fdde0314610253578063081812fc14610275578063095ea7b3146102ad575b600080fd5b34801561022a57600080fd5b5061023e610239366004612ea7565b61074b565b60405190151581526020015b60405180910390f35b34801561025f57600080fd5b5061026861087c565b60405161024a9190612f1c565b34801561028157600080fd5b50610295610290366004612f2f565b61090e565b6040516001600160a01b03909116815260200161024a565b3480156102b957600080fd5b506102cd6102c8366004612f5d565b6109ac565b005b6102cd6102dd366004612f2f565b610ade565b3480156102ee57600080fd5b506102f7610ec8565b60405190815260200161024a565b34801561031157600080fd5b506102cd610320366004612f89565b610edf565b34801561033157600080fd5b50610345610340366004612fca565b610f66565b60405161024a919061301c565b34801561035e57600080fd5b506102f77f000000000000000000000000000000000000000000000000000000000000000081565b34801561039257600080fd5b506008546103ec9060ff811690610100810461ffff1690630100000081046fffffffffffffffffffffffffffffffff169073010000000000000000000000000000000000000090046cffffffffffffffffffffffffff1684565b6040805160ff909516855261ffff90931660208501526fffffffffffffffffffffffffffffffff909116918301919091526cffffffffffffffffffffffffff16606082015260800161024a565b34801561044557600080fd5b506102f7610454366004612f5d565b611142565b34801561046557600080fd5b506102cd6104743660046130f5565b61122b565b34801561048557600080fd5b506102cd611417565b34801561049a57600080fd5b506102cd6104a9366004612f89565b6114c2565b3480156104ba57600080fd5b506102f76104c9366004612f2f565b6114dd565b3480156104da57600080fd5b506102cd6104e936600461313e565b611645565b3480156104fa57600080fd5b506102cd61050936600461315b565b6116d9565b34801561051a57600080fd5b50610295610529366004612f2f565b611767565b34801561053a57600080fd5b506102f761054936600461313e565b611883565b34801561055a57600080fd5b506102cd61196e565b34801561056f57600080fd5b5061058361057e366004612f2f565b6119d4565b604080516001600160a01b0390931683526bffffffffffffffffffffffff90911660208301520161024a565b3480156105bb57600080fd5b506007546001600160a01b0316610295565b3480156105d957600080fd5b506102f7601481565b3480156105ee57600080fd5b50610268611a25565b6102cd61060536600461317e565b611a34565b34801561061657600080fd5b506102cd610625366004613203565b611ad6565b34801561063657600080fd5b506003546102f7565b34801561064b57600080fd5b506102cd61065a366004613241565b611ae1565b34801561066b57600080fd5b506102f766c3663566a5800081565b34801561068657600080fd5b506102cd6106953660046132f3565b611b47565b3480156106a657600080fd5b506102686106b5366004612f2f565b611bcf565b3480156106c657600080fd5b5061023e6106d5366004613373565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561070f57600080fd5b5061029573d08d0e994eeef4001c63c72991cf05918adf191b81565b34801561073757600080fd5b506102cd61074636600461313e565b611e42565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806107de57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061082a57507fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000145b8061087657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60606000805461088b906133a1565b80601f01602080910402602001604051908101604052809291908181526020018280546108b7906133a1565b80156109045780601f106108d957610100808354040283529160200191610904565b820191906000526020600020905b8154815290600101906020018083116108e757829003601f168201915b5050505050905090565b600061091982611f21565b6109905760405162461bcd60e51b815260206004820152603060248201527f455243373231536c696d3a20617070726f76656420717565727920666f72206e60448201527f6f6e6578697374656e7420746f6b656e0000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006109b782611767565b9050806001600160a01b0316836001600160a01b03161415610a415760405162461bcd60e51b815260206004820152602560248201527f455243373231536c696d3a20617070726f76616c20746f2063757272656e742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610987565b336001600160a01b0382161480610a5d5750610a5d81336106d5565b610acf5760405162461bcd60e51b815260206004820152603c60248201527f455243373231536c696d3a20617070726f76652063616c6c6572206973206e6f60448201527f74206f776e6572206e6f7220617070726f76656420666f7220616c6c000000006064820152608401610987565b610ad98383611f6b565b505050565b6040805160808101825260085460ff81168252610100810461ffff166020830152630100000081046fffffffffffffffffffffffffffffffff16928201929092527301000000000000000000000000000000000000009091046cffffffffffffffffffffffffff166060820152333214610b9a5760405162461bcd60e51b815260206004820152601d60248201527f53796e65737468657369613a2061726520796f7520626f7474696e673f0000006044820152606401610987565b805160ff16600114610c135760405162461bcd60e51b8152602060048201526024808201527f53796e65737468657369613a2073616c65206973206e6f74207965742073746160448201527f72746564000000000000000000000000000000000000000000000000000000006064820152608401610987565b6014821115610c8a5760405162461bcd60e51b815260206004820152603360248201527f53796e65737468657369613a2065786365656473206d6178696d756d20616d6f60448201527f756e7420706572207472616e73616374696f6e000000000000000000000000006064820152608401610987565b34610c9c66c3663566a580008461341e565b1115610cea5760405162461bcd60e51b815260206004820152601e60248201527f53796e65737468657369613a20696e73756666696369656e742066756e6400006044820152606401610987565b806020015161ffff16610cfc60035490565b610d06908461345b565b1115610d7a5760405162461bcd60e51b815260206004820152602160248201527f53796e65737468657369613a206578636565647320746f74616c20737570706c60448201527f79000000000000000000000000000000000000000000000000000000000000006064820152608401610987565b610d843383612006565b50806060015133604051602001610df192919060989290921b7fffffffffffffffffffffffffff0000000000000000000000000000000000000016825260601b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016600d82015260210190565b60408051601f1981840301815291815281516020928301206cffffffffffffffffffffffffff166060840181905283516008805494860151959093015173010000000000000000000000000000000000000090920272ffffffffffffffffffffffffffffffffffffff6fffffffffffffffffffffffffffffffff9093166301000000029290921662ffffff61ffff909616610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000090951660ff9092169190911793909317939093169190911791909117905550565b600254600354600091610eda91613473565b905090565b610ee9338261222a565b610f5b5760405162461bcd60e51b815260206004820152603560248201527f455243373231536c696d3a207472616e736665722063616c6c6572206973206e60448201527f6f74206f776e6572206e6f7220617070726f76656400000000000000000000006064820152608401610987565b610ad9838383612325565b60408051808201909152606080825260208201526006546000805b828110156110d357600060068281548110610f9e57610f9e61348a565b6000918252602091829020604080518082019091529101546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff16918101829052915061ffff871610156110bb5780516001600160a01b031663a5d77bae6110198561ffff8a166134b9565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526bffffffffffffffffffffffff909116600482015260240160006040518083038186803b15801561107557600080fd5b505afa158015611089573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110b1919081019061352b565b9695505050505050565b602001519150806110cb816135d2565b915050610f81565b5060405162461bcd60e51b815260206004820152602e60248201527f436f6c6f7250616c657474653a206964206f6620636f6c6f722063616e6e6f7460448201527f206578636565642031362c3030300000000000000000000000000000000000006064820152608401610987565b600354600090815b818110156111bc57846001600160a01b03166003828154811061116f5761116f61348a565b6000918252602090912001546001600160a01b03161461118e576111aa565b8361119c5791506108769050565b836111a68161360b565b9450505b806111b4816135d2565b91505061114a565b5060405162461bcd60e51b815260206004820152602560248201527f455243373231536c696d3a206f776e657220696e646578206f7574206f66206260448201527f6f756e64730000000000000000000000000000000000000000000000000000006064820152608401610987565b6007546001600160a01b031633146112855760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610987565b805160208201207f0000000000000000000000000000000000000000000000000000000000000000146112fa5760405162461bcd60e51b815260206004820152601960248201527f53796e65737468657369613a20696e76616c69642073616c74000000000000006044820152606401610987565b600854630100000090046fffffffffffffffffffffffffffffffff16156113635760405162461bcd60e51b815260206004820152601d60248201527f53796e65737468657369613a20616c72656164792072657665616c65640000006044820152606401610987565b6000611370600143613473565b6008546040519192506113b391849173010000000000000000000000000000000000000090046cffffffffffffffffffffffffff16908440904290602001613640565b60408051601f198184030181529190528051602090910120600880546fffffffffffffffffffffffffffffffff9092166301000000027fffffffffffffffffffffffffff00000000000000000000000000000000ffffff9092169190911790555050565b6007546001600160a01b031633146114715760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610987565b476000606461148183600a61341e565b61148b91906136c6565b90506114ab73d08d0e994eeef4001c63c72991cf05918adf191b8261250c565b6114be336114b98385613473565b61250c565b5050565b610ad983838360405180602001604052806000815250611b47565b60035460009082106115575760405162461bcd60e51b815260206004820152602660248201527f455243373231536c696d3a20676c6f62616c20696e646578206f7574206f662060448201527f626f756e647300000000000000000000000000000000000000000000000000006064820152608401610987565b6000805b6003548110156115d65760006001600160a01b0316600382815481106115835761158361348a565b6000918252602090912001546001600160a01b031614156115ac57816115a8816135d2565b9250505b6115b6828561345b565b8114156115c4579392505050565b806115ce816135d2565b91505061155b565b5060405162461bcd60e51b815260206004820152602660248201527f455243373231536c696d3a20676c6f62616c20696e646578206f7574206f662060448201527f626f756e647300000000000000000000000000000000000000000000000000006064820152608401610987565b6007546001600160a01b0316331461169f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610987565b600980547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6007546001600160a01b031633146117335760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610987565b600880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff92909216919091179055565b600061177282611f21565b6117e45760405162461bcd60e51b815260206004820152602d60248201527f455243373231536c696d3a206f776e657220717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608401610987565b6000600383815481106117f9576117f961348a565b6000918252602090912001546001600160a01b03169050806108765760405162461bcd60e51b815260206004820152602d60248201527f455243373231536c696d3a206f776e657220717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608401610987565b60006001600160a01b0382166119015760405162461bcd60e51b815260206004820152602e60248201527f455243373231536c696d3a2062616c616e636520717565727920666f7220746860448201527f65207a65726f20616464726573730000000000000000000000000000000000006064820152608401610987565b6000805b60035481101561196757836001600160a01b03166003828154811061192c5761192c61348a565b6000918252602090912001546001600160a01b031614156119555781611951816135d2565b9250505b8061195f816135d2565b915050611905565b5092915050565b6007546001600160a01b031633146119c85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610987565b6119d26000612625565b565b600681815481106119e457600080fd5b6000918252602090912001546001600160a01b03811691507401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1682565b60606001805461088b906133a1565b6007546001600160a01b03163314611a8e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610987565b611ad08383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525034925061268f915050565b50505050565b6114be3383836126b5565b6007546001600160a01b03163314611b3b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610987565b611b44816127a2565b50565b611b51338361222a565b611bc35760405162461bcd60e51b815260206004820152603560248201527f455243373231536c696d3a207472616e736665722063616c6c6572206973206e60448201527f6f74206f776e6572206e6f7220617070726f76656400000000000000000000006064820152608401610987565b611ad0848484846128f2565b6060611bda82611f21565b611c4c5760405162461bcd60e51b815260206004820152602c60248201527f53796e65737468657369613a2055524920717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610987565b6040805160808101825260085460ff81168252610100810461ffff166020830152630100000081046fffffffffffffffffffffffffffffffff1692820183905273010000000000000000000000000000000000000090046cffffffffffffffffffffffffff16606082015290611d5f576009546040517fd44ba39000000000000000000000000000000000000000000000000000000000815261ffff851660048201526001600160a01b039091169063d44ba3909060240160006040518083038186803b158015611d1c57600080fd5b505afa158015611d30573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611d5891908101906136da565b9392505050565b6000611d8684836020015184604001516fffffffffffffffffffffffffffffffff1661297b565b90506000611d9382610f66565b6009546040517fc66a46ee0000000000000000000000000000000000000000000000000000000081529192506001600160a01b03169063c66a46ee90611ddf908890859060040161370f565b60006040518083038186803b158015611df757600080fd5b505afa158015611e0b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e3391908101906136da565b95945050505050565b50919050565b6007546001600160a01b03163314611e9c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610987565b6001600160a01b038116611f185760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610987565b611b4481612625565b60035460009082108015610876575060006001600160a01b031660038381548110611f4e57611f4e61348a565b6000918252602090912001546001600160a01b0316141592915050565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038416908117909155600380548392919083908110611fc557611fc561348a565b60009182526020822001546040516001600160a01b03909116917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a45050565b60006001600160a01b0383166120835760405162461bcd60e51b8152602060048201526024808201527f455243373231536c696d3a206d696e7420746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610987565b600082116120d35760405162461bcd60e51b815260206004820152601860248201527f455243373231536c696d3a206d696e74206e6f7468696e6700000000000000006044820152606401610987565b5060035460005b8281101561219b57600380546001808201835560008390527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b90910180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03881617905590546121539190613473565b6040516001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480612193816135d2565b9150506120da565b506121b86000848360405180602001604052806000815250612b22565b6108765760405162461bcd60e51b815260206004820152603660248201527f455243373231536c696d3a207472616e7366657220746f206e6f6e204552433760448201527f3231526563656976657220696d706c656d656e746572000000000000000000006064820152608401610987565b600061223582611f21565b6122a75760405162461bcd60e51b815260206004820152603060248201527f455243373231536c696d3a206f70657261746f7220717565727920666f72206e60448201527f6f6e6578697374656e7420746f6b656e000000000000000000000000000000006064820152608401610987565b60006122b283611767565b9050806001600160a01b0316846001600160a01b031614806122ed5750836001600160a01b03166122e28461090e565b6001600160a01b0316145b8061231d57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661233882611767565b6001600160a01b0316146123b45760405162461bcd60e51b815260206004820152602960248201527f455243373231536c696d3a207472616e736665722066726f6d20696e636f727260448201527f656374206f776e657200000000000000000000000000000000000000000000006064820152608401610987565b6001600160a01b0382166124305760405162461bcd60e51b815260206004820152602860248201527f455243373231536c696d3a207472616e7366657220746f20746865207a65726f60448201527f20616464726573730000000000000000000000000000000000000000000000006064820152608401610987565b81600382815481106124445761244461348a565b6000918252602080832090910180546001600160a01b039485167fffffffffffffffffffffffff0000000000000000000000000000000000000000918216179091558483526004909152604080832080549092169091555183928616907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925908390a480826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b8047101561255c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610987565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146125a9576040519150601f19603f3d011682016040523d82523d6000602084013e6125ae565b606091505b5050905080610ad95760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610987565b600780546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606061231d84848460405180606001604052806029815260200161382c60299139612ccf565b816001600160a01b0316836001600160a01b031614156127175760405162461bcd60e51b815260206004820152601d60248201527f455243373231536c696d3a20617070726f766520746f2063616c6c65720000006044820152606401610987565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6127ae60066000612e47565b6000805b8251811015610ad95760008382815181106127cf576127cf61348a565b60200260200101519050806001600160a01b0316631a39d8ef6040518163ffffffff1660e01b815260040160206040518083038186803b15801561281257600080fd5b505afa158015612826573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061284a919061372c565b612854908461375a565b604080518082019091526001600160a01b0392831681526bffffffffffffffffffffffff80831660208301908152600680546001810182556000919091529251905190911674010000000000000000000000000000000000000000029316929092177ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f909201919091559150806128ea816135d2565b9150506127b2565b6128fd848484612325565b61290984848484612b22565b611ad05760405162461bcd60e51b815260206004820152603660248201527f455243373231536c696d3a207472616e7366657220746f206e6f6e204552433760448201527f3231526563656976657220696d706c656d656e746572000000000000000000006064820152608401610987565b6000808361ffff1667ffffffffffffffff81111561299b5761299b61302f565b6040519080825280602002602001820160405280156129c4578160200160208202803683370190505b5090508260005b8561ffff168161ffff161015612a175780838261ffff16815181106129f2576129f261348a565b61ffff9092166020928302919091019091015280612a0f8161378a565b9150506129cb565b5060005b8561ffff168161ffff161015612af85763ffffffff61bc8f83020691506000612a4861ffff8816846137ac565b90506000848361ffff1681518110612a6257612a6261348a565b60200260200101519050848261ffff1681518110612a8257612a8261348a565b6020026020010151858461ffff1681518110612aa057612aa061348a565b602002602001019061ffff16908161ffff168152505080858361ffff1681518110612acd57612acd61348a565b602002602001019061ffff16908161ffff168152505050508080612af09061378a565b915050612a1b565b50818661ffff1681518110612b0f57612b0f61348a565b6020026020010151925050509392505050565b60006001600160a01b0384163b15612cc4576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612b7f9033908990889088906004016137c0565b602060405180830381600087803b158015612b9957600080fd5b505af1925050508015612bc9575060408051601f3d908101601f19168201909252612bc6918101906137f2565b60015b612c79573d808015612bf7576040519150601f19603f3d011682016040523d82523d6000602084013e612bfc565b606091505b508051612c715760405162461bcd60e51b815260206004820152603660248201527f455243373231536c696d3a207472616e7366657220746f206e6f6e204552433760448201527f3231526563656976657220696d706c656d656e746572000000000000000000006064820152608401610987565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061231d565b506001949350505050565b606082471015612d475760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610987565b843b612d955760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610987565b600080866001600160a01b03168587604051612db1919061380f565b60006040518083038185875af1925050503d8060008114612dee576040519150601f19603f3d011682016040523d82523d6000602084013e612df3565b606091505b5091509150612e03828286612e0e565b979650505050505050565b60608315612e1d575081611d58565b825115612e2d5782518084602001fd5b8160405162461bcd60e51b81526004016109879190612f1c565b5080546000825590600052602060002090810190611b4491905b80821115612e755760008155600101612e61565b5090565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611b4457600080fd5b600060208284031215612eb957600080fd5b8135611d5881612e79565b60005b83811015612edf578181015183820152602001612ec7565b83811115611ad05750506000910152565b60008151808452612f08816020860160208601612ec4565b601f01601f19169290920160200192915050565b602081526000611d586020830184612ef0565b600060208284031215612f4157600080fd5b5035919050565b6001600160a01b0381168114611b4457600080fd5b60008060408385031215612f7057600080fd5b8235612f7b81612f48565b946020939093013593505050565b600080600060608486031215612f9e57600080fd5b8335612fa981612f48565b92506020840135612fb981612f48565b929592945050506040919091013590565b600060208284031215612fdc57600080fd5b813561ffff81168114611d5857600080fd5b60008151604084526130036040850182612ef0565b905060208301518482036020860152611e338282612ef0565b602081526000611d586020830184612fee565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156130875761308761302f565b604052919050565b600067ffffffffffffffff8211156130a9576130a961302f565b50601f01601f191660200190565b60006130ca6130c58461308f565b61305e565b90508281528383830111156130de57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561310757600080fd5b813567ffffffffffffffff81111561311e57600080fd5b8201601f8101841361312f57600080fd5b61231d848235602084016130b7565b60006020828403121561315057600080fd5b8135611d5881612f48565b60006020828403121561316d57600080fd5b813560ff81168114611d5857600080fd5b60008060006040848603121561319357600080fd5b833561319e81612f48565b9250602084013567ffffffffffffffff808211156131bb57600080fd5b818601915086601f8301126131cf57600080fd5b8135818111156131de57600080fd5b8760208285010111156131f057600080fd5b6020830194508093505050509250925092565b6000806040838503121561321657600080fd5b823561322181612f48565b91506020830135801515811461323657600080fd5b809150509250929050565b6000602080838503121561325457600080fd5b823567ffffffffffffffff8082111561326c57600080fd5b818501915085601f83011261328057600080fd5b8135818111156132925761329261302f565b8060051b91506132a384830161305e565b81815291830184019184810190888411156132bd57600080fd5b938501935b838510156132e757843592506132d783612f48565b82825293850193908501906132c2565b98975050505050505050565b6000806000806080858703121561330957600080fd5b843561331481612f48565b9350602085013561332481612f48565b925060408501359150606085013567ffffffffffffffff81111561334757600080fd5b8501601f8101871361335857600080fd5b613367878235602084016130b7565b91505092959194509250565b6000806040838503121561338657600080fd5b823561339181612f48565b9150602083013561323681612f48565b600181811c908216806133b557607f821691505b60208210811415611e3c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613456576134566133ef565b500290565b6000821982111561346e5761346e6133ef565b500190565b600082821015613485576134856133ef565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006bffffffffffffffffffffffff838116908316818110156134de576134de6133ef565b039392505050565b600082601f8301126134f757600080fd5b81516135056130c58261308f565b81815284602083860101111561351a57600080fd5b61231d826020830160208701612ec4565b60006020828403121561353d57600080fd5b815167ffffffffffffffff8082111561355557600080fd5b908301906040828603121561356957600080fd5b6040516040810181811083821117156135845761358461302f565b60405282518281111561359657600080fd5b6135a2878286016134e6565b8252506020830151828111156135b757600080fd5b6135c3878286016134e6565b60208301525095945050505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613604576136046133ef565b5060010190565b60008161361a5761361a6133ef565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b60008551613652818460208a01612ec4565b60989590951b7fffffffffffffffffffffffffff000000000000000000000000000000000000001691909401908152600d810192909252602d820152604d0192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826136d5576136d5613697565b500490565b6000602082840312156136ec57600080fd5b815167ffffffffffffffff81111561370357600080fd5b61231d848285016134e6565b61ffff8316815260406020820152600061231d6040830184612fee565b60006020828403121561373e57600080fd5b81516bffffffffffffffffffffffff81168114611d5857600080fd5b60006bffffffffffffffffffffffff808316818516808303821115613781576137816133ef565b01949350505050565b600061ffff808316818114156137a2576137a26133ef565b6001019392505050565b6000826137bb576137bb613697565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526110b16080830184612ef0565b60006020828403121561380457600080fd5b8151611d5881612e79565b60008251613821818460208701612ec4565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212203ae254c80b6fc85b3a818d1394641ecfd7ad5c6b8c6920e6318af5826ddcdaff64736f6c634300080900330000000000000000000000000000000000000000000000000000000000003e804cbe0fbbea537aea6714ced2b500d2ef5c78fd23ad028ff97f3952c2b6c1f991000000000000000000000000b64460bedd3c21b3d720f36514ff2af069a03004000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000020000000000000000000000005aeb2b1c0b990c934fe942daae926706f547390b000000000000000000000000968a62e92f02a4934eaad9923959d58ef6e64492

Deployed Bytecode

0x6080604052600436106102195760003560e01c80636352211e1161011d578063a22cb465116100b0578063b88d4fde1161007f578063e985e9c511610064578063e985e9c5146106ba578063ed24369014610703578063f2fde38b1461072b57600080fd5b8063b88d4fde1461067a578063c87b56dd1461069a57600080fd5b8063a22cb4651461060a578063a2309ff81461062a578063a30cc6c31461063f578063afa40bbd1461065f57600080fd5b80638da5cb5b116100ec5780638da5cb5b146105af5780638ecad721146105cd57806395d89b41146105e2578063a0b5ffb0146105f757600080fd5b80636352211e1461050e57806370a082311461052e578063715018a61461054e57806381b60d131461056357600080fd5b80632c7165b9116101b05780633ccfd60b1161017f5780634f6ccce7116101645780634f6ccce7146104ae57806356d3163d146104ce5780635a67de07146104ee57600080fd5b80633ccfd60b1461047957806342842e0e1461048e57600080fd5b80632c7165b9146103525780632ed42bf7146103865780632f745c591461043957806334c4163c1461045957600080fd5b806316fcc9ec116101ec57806316fcc9ec146102cf57806318160ddd146102e257806323b872dd1461030557806329a347171461032557600080fd5b806301ffc9a71461021e57806306fdde0314610253578063081812fc14610275578063095ea7b3146102ad575b600080fd5b34801561022a57600080fd5b5061023e610239366004612ea7565b61074b565b60405190151581526020015b60405180910390f35b34801561025f57600080fd5b5061026861087c565b60405161024a9190612f1c565b34801561028157600080fd5b50610295610290366004612f2f565b61090e565b6040516001600160a01b03909116815260200161024a565b3480156102b957600080fd5b506102cd6102c8366004612f5d565b6109ac565b005b6102cd6102dd366004612f2f565b610ade565b3480156102ee57600080fd5b506102f7610ec8565b60405190815260200161024a565b34801561031157600080fd5b506102cd610320366004612f89565b610edf565b34801561033157600080fd5b50610345610340366004612fca565b610f66565b60405161024a919061301c565b34801561035e57600080fd5b506102f77f4cbe0fbbea537aea6714ced2b500d2ef5c78fd23ad028ff97f3952c2b6c1f99181565b34801561039257600080fd5b506008546103ec9060ff811690610100810461ffff1690630100000081046fffffffffffffffffffffffffffffffff169073010000000000000000000000000000000000000090046cffffffffffffffffffffffffff1684565b6040805160ff909516855261ffff90931660208501526fffffffffffffffffffffffffffffffff909116918301919091526cffffffffffffffffffffffffff16606082015260800161024a565b34801561044557600080fd5b506102f7610454366004612f5d565b611142565b34801561046557600080fd5b506102cd6104743660046130f5565b61122b565b34801561048557600080fd5b506102cd611417565b34801561049a57600080fd5b506102cd6104a9366004612f89565b6114c2565b3480156104ba57600080fd5b506102f76104c9366004612f2f565b6114dd565b3480156104da57600080fd5b506102cd6104e936600461313e565b611645565b3480156104fa57600080fd5b506102cd61050936600461315b565b6116d9565b34801561051a57600080fd5b50610295610529366004612f2f565b611767565b34801561053a57600080fd5b506102f761054936600461313e565b611883565b34801561055a57600080fd5b506102cd61196e565b34801561056f57600080fd5b5061058361057e366004612f2f565b6119d4565b604080516001600160a01b0390931683526bffffffffffffffffffffffff90911660208301520161024a565b3480156105bb57600080fd5b506007546001600160a01b0316610295565b3480156105d957600080fd5b506102f7601481565b3480156105ee57600080fd5b50610268611a25565b6102cd61060536600461317e565b611a34565b34801561061657600080fd5b506102cd610625366004613203565b611ad6565b34801561063657600080fd5b506003546102f7565b34801561064b57600080fd5b506102cd61065a366004613241565b611ae1565b34801561066b57600080fd5b506102f766c3663566a5800081565b34801561068657600080fd5b506102cd6106953660046132f3565b611b47565b3480156106a657600080fd5b506102686106b5366004612f2f565b611bcf565b3480156106c657600080fd5b5061023e6106d5366004613373565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561070f57600080fd5b5061029573d08d0e994eeef4001c63c72991cf05918adf191b81565b34801561073757600080fd5b506102cd61074636600461313e565b611e42565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806107de57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061082a57507fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000145b8061087657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60606000805461088b906133a1565b80601f01602080910402602001604051908101604052809291908181526020018280546108b7906133a1565b80156109045780601f106108d957610100808354040283529160200191610904565b820191906000526020600020905b8154815290600101906020018083116108e757829003601f168201915b5050505050905090565b600061091982611f21565b6109905760405162461bcd60e51b815260206004820152603060248201527f455243373231536c696d3a20617070726f76656420717565727920666f72206e60448201527f6f6e6578697374656e7420746f6b656e0000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006109b782611767565b9050806001600160a01b0316836001600160a01b03161415610a415760405162461bcd60e51b815260206004820152602560248201527f455243373231536c696d3a20617070726f76616c20746f2063757272656e742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610987565b336001600160a01b0382161480610a5d5750610a5d81336106d5565b610acf5760405162461bcd60e51b815260206004820152603c60248201527f455243373231536c696d3a20617070726f76652063616c6c6572206973206e6f60448201527f74206f776e6572206e6f7220617070726f76656420666f7220616c6c000000006064820152608401610987565b610ad98383611f6b565b505050565b6040805160808101825260085460ff81168252610100810461ffff166020830152630100000081046fffffffffffffffffffffffffffffffff16928201929092527301000000000000000000000000000000000000009091046cffffffffffffffffffffffffff166060820152333214610b9a5760405162461bcd60e51b815260206004820152601d60248201527f53796e65737468657369613a2061726520796f7520626f7474696e673f0000006044820152606401610987565b805160ff16600114610c135760405162461bcd60e51b8152602060048201526024808201527f53796e65737468657369613a2073616c65206973206e6f74207965742073746160448201527f72746564000000000000000000000000000000000000000000000000000000006064820152608401610987565b6014821115610c8a5760405162461bcd60e51b815260206004820152603360248201527f53796e65737468657369613a2065786365656473206d6178696d756d20616d6f60448201527f756e7420706572207472616e73616374696f6e000000000000000000000000006064820152608401610987565b34610c9c66c3663566a580008461341e565b1115610cea5760405162461bcd60e51b815260206004820152601e60248201527f53796e65737468657369613a20696e73756666696369656e742066756e6400006044820152606401610987565b806020015161ffff16610cfc60035490565b610d06908461345b565b1115610d7a5760405162461bcd60e51b815260206004820152602160248201527f53796e65737468657369613a206578636565647320746f74616c20737570706c60448201527f79000000000000000000000000000000000000000000000000000000000000006064820152608401610987565b610d843383612006565b50806060015133604051602001610df192919060989290921b7fffffffffffffffffffffffffff0000000000000000000000000000000000000016825260601b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016600d82015260210190565b60408051601f1981840301815291815281516020928301206cffffffffffffffffffffffffff166060840181905283516008805494860151959093015173010000000000000000000000000000000000000090920272ffffffffffffffffffffffffffffffffffffff6fffffffffffffffffffffffffffffffff9093166301000000029290921662ffffff61ffff909616610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000090951660ff9092169190911793909317939093169190911791909117905550565b600254600354600091610eda91613473565b905090565b610ee9338261222a565b610f5b5760405162461bcd60e51b815260206004820152603560248201527f455243373231536c696d3a207472616e736665722063616c6c6572206973206e60448201527f6f74206f776e6572206e6f7220617070726f76656400000000000000000000006064820152608401610987565b610ad9838383612325565b60408051808201909152606080825260208201526006546000805b828110156110d357600060068281548110610f9e57610f9e61348a565b6000918252602091829020604080518082019091529101546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff16918101829052915061ffff871610156110bb5780516001600160a01b031663a5d77bae6110198561ffff8a166134b9565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526bffffffffffffffffffffffff909116600482015260240160006040518083038186803b15801561107557600080fd5b505afa158015611089573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110b1919081019061352b565b9695505050505050565b602001519150806110cb816135d2565b915050610f81565b5060405162461bcd60e51b815260206004820152602e60248201527f436f6c6f7250616c657474653a206964206f6620636f6c6f722063616e6e6f7460448201527f206578636565642031362c3030300000000000000000000000000000000000006064820152608401610987565b600354600090815b818110156111bc57846001600160a01b03166003828154811061116f5761116f61348a565b6000918252602090912001546001600160a01b03161461118e576111aa565b8361119c5791506108769050565b836111a68161360b565b9450505b806111b4816135d2565b91505061114a565b5060405162461bcd60e51b815260206004820152602560248201527f455243373231536c696d3a206f776e657220696e646578206f7574206f66206260448201527f6f756e64730000000000000000000000000000000000000000000000000000006064820152608401610987565b6007546001600160a01b031633146112855760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610987565b805160208201207f4cbe0fbbea537aea6714ced2b500d2ef5c78fd23ad028ff97f3952c2b6c1f991146112fa5760405162461bcd60e51b815260206004820152601960248201527f53796e65737468657369613a20696e76616c69642073616c74000000000000006044820152606401610987565b600854630100000090046fffffffffffffffffffffffffffffffff16156113635760405162461bcd60e51b815260206004820152601d60248201527f53796e65737468657369613a20616c72656164792072657665616c65640000006044820152606401610987565b6000611370600143613473565b6008546040519192506113b391849173010000000000000000000000000000000000000090046cffffffffffffffffffffffffff16908440904290602001613640565b60408051601f198184030181529190528051602090910120600880546fffffffffffffffffffffffffffffffff9092166301000000027fffffffffffffffffffffffffff00000000000000000000000000000000ffffff9092169190911790555050565b6007546001600160a01b031633146114715760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610987565b476000606461148183600a61341e565b61148b91906136c6565b90506114ab73d08d0e994eeef4001c63c72991cf05918adf191b8261250c565b6114be336114b98385613473565b61250c565b5050565b610ad983838360405180602001604052806000815250611b47565b60035460009082106115575760405162461bcd60e51b815260206004820152602660248201527f455243373231536c696d3a20676c6f62616c20696e646578206f7574206f662060448201527f626f756e647300000000000000000000000000000000000000000000000000006064820152608401610987565b6000805b6003548110156115d65760006001600160a01b0316600382815481106115835761158361348a565b6000918252602090912001546001600160a01b031614156115ac57816115a8816135d2565b9250505b6115b6828561345b565b8114156115c4579392505050565b806115ce816135d2565b91505061155b565b5060405162461bcd60e51b815260206004820152602660248201527f455243373231536c696d3a20676c6f62616c20696e646578206f7574206f662060448201527f626f756e647300000000000000000000000000000000000000000000000000006064820152608401610987565b6007546001600160a01b0316331461169f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610987565b600980547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6007546001600160a01b031633146117335760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610987565b600880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff92909216919091179055565b600061177282611f21565b6117e45760405162461bcd60e51b815260206004820152602d60248201527f455243373231536c696d3a206f776e657220717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608401610987565b6000600383815481106117f9576117f961348a565b6000918252602090912001546001600160a01b03169050806108765760405162461bcd60e51b815260206004820152602d60248201527f455243373231536c696d3a206f776e657220717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608401610987565b60006001600160a01b0382166119015760405162461bcd60e51b815260206004820152602e60248201527f455243373231536c696d3a2062616c616e636520717565727920666f7220746860448201527f65207a65726f20616464726573730000000000000000000000000000000000006064820152608401610987565b6000805b60035481101561196757836001600160a01b03166003828154811061192c5761192c61348a565b6000918252602090912001546001600160a01b031614156119555781611951816135d2565b9250505b8061195f816135d2565b915050611905565b5092915050565b6007546001600160a01b031633146119c85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610987565b6119d26000612625565b565b600681815481106119e457600080fd5b6000918252602090912001546001600160a01b03811691507401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1682565b60606001805461088b906133a1565b6007546001600160a01b03163314611a8e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610987565b611ad08383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525034925061268f915050565b50505050565b6114be3383836126b5565b6007546001600160a01b03163314611b3b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610987565b611b44816127a2565b50565b611b51338361222a565b611bc35760405162461bcd60e51b815260206004820152603560248201527f455243373231536c696d3a207472616e736665722063616c6c6572206973206e60448201527f6f74206f776e6572206e6f7220617070726f76656400000000000000000000006064820152608401610987565b611ad0848484846128f2565b6060611bda82611f21565b611c4c5760405162461bcd60e51b815260206004820152602c60248201527f53796e65737468657369613a2055524920717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610987565b6040805160808101825260085460ff81168252610100810461ffff166020830152630100000081046fffffffffffffffffffffffffffffffff1692820183905273010000000000000000000000000000000000000090046cffffffffffffffffffffffffff16606082015290611d5f576009546040517fd44ba39000000000000000000000000000000000000000000000000000000000815261ffff851660048201526001600160a01b039091169063d44ba3909060240160006040518083038186803b158015611d1c57600080fd5b505afa158015611d30573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611d5891908101906136da565b9392505050565b6000611d8684836020015184604001516fffffffffffffffffffffffffffffffff1661297b565b90506000611d9382610f66565b6009546040517fc66a46ee0000000000000000000000000000000000000000000000000000000081529192506001600160a01b03169063c66a46ee90611ddf908890859060040161370f565b60006040518083038186803b158015611df757600080fd5b505afa158015611e0b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e3391908101906136da565b95945050505050565b50919050565b6007546001600160a01b03163314611e9c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610987565b6001600160a01b038116611f185760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610987565b611b4481612625565b60035460009082108015610876575060006001600160a01b031660038381548110611f4e57611f4e61348a565b6000918252602090912001546001600160a01b0316141592915050565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038416908117909155600380548392919083908110611fc557611fc561348a565b60009182526020822001546040516001600160a01b03909116917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a45050565b60006001600160a01b0383166120835760405162461bcd60e51b8152602060048201526024808201527f455243373231536c696d3a206d696e7420746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610987565b600082116120d35760405162461bcd60e51b815260206004820152601860248201527f455243373231536c696d3a206d696e74206e6f7468696e6700000000000000006044820152606401610987565b5060035460005b8281101561219b57600380546001808201835560008390527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b90910180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03881617905590546121539190613473565b6040516001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480612193816135d2565b9150506120da565b506121b86000848360405180602001604052806000815250612b22565b6108765760405162461bcd60e51b815260206004820152603660248201527f455243373231536c696d3a207472616e7366657220746f206e6f6e204552433760448201527f3231526563656976657220696d706c656d656e746572000000000000000000006064820152608401610987565b600061223582611f21565b6122a75760405162461bcd60e51b815260206004820152603060248201527f455243373231536c696d3a206f70657261746f7220717565727920666f72206e60448201527f6f6e6578697374656e7420746f6b656e000000000000000000000000000000006064820152608401610987565b60006122b283611767565b9050806001600160a01b0316846001600160a01b031614806122ed5750836001600160a01b03166122e28461090e565b6001600160a01b0316145b8061231d57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661233882611767565b6001600160a01b0316146123b45760405162461bcd60e51b815260206004820152602960248201527f455243373231536c696d3a207472616e736665722066726f6d20696e636f727260448201527f656374206f776e657200000000000000000000000000000000000000000000006064820152608401610987565b6001600160a01b0382166124305760405162461bcd60e51b815260206004820152602860248201527f455243373231536c696d3a207472616e7366657220746f20746865207a65726f60448201527f20616464726573730000000000000000000000000000000000000000000000006064820152608401610987565b81600382815481106124445761244461348a565b6000918252602080832090910180546001600160a01b039485167fffffffffffffffffffffffff0000000000000000000000000000000000000000918216179091558483526004909152604080832080549092169091555183928616907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925908390a480826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b8047101561255c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610987565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146125a9576040519150601f19603f3d011682016040523d82523d6000602084013e6125ae565b606091505b5050905080610ad95760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610987565b600780546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606061231d84848460405180606001604052806029815260200161382c60299139612ccf565b816001600160a01b0316836001600160a01b031614156127175760405162461bcd60e51b815260206004820152601d60248201527f455243373231536c696d3a20617070726f766520746f2063616c6c65720000006044820152606401610987565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6127ae60066000612e47565b6000805b8251811015610ad95760008382815181106127cf576127cf61348a565b60200260200101519050806001600160a01b0316631a39d8ef6040518163ffffffff1660e01b815260040160206040518083038186803b15801561281257600080fd5b505afa158015612826573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061284a919061372c565b612854908461375a565b604080518082019091526001600160a01b0392831681526bffffffffffffffffffffffff80831660208301908152600680546001810182556000919091529251905190911674010000000000000000000000000000000000000000029316929092177ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f909201919091559150806128ea816135d2565b9150506127b2565b6128fd848484612325565b61290984848484612b22565b611ad05760405162461bcd60e51b815260206004820152603660248201527f455243373231536c696d3a207472616e7366657220746f206e6f6e204552433760448201527f3231526563656976657220696d706c656d656e746572000000000000000000006064820152608401610987565b6000808361ffff1667ffffffffffffffff81111561299b5761299b61302f565b6040519080825280602002602001820160405280156129c4578160200160208202803683370190505b5090508260005b8561ffff168161ffff161015612a175780838261ffff16815181106129f2576129f261348a565b61ffff9092166020928302919091019091015280612a0f8161378a565b9150506129cb565b5060005b8561ffff168161ffff161015612af85763ffffffff61bc8f83020691506000612a4861ffff8816846137ac565b90506000848361ffff1681518110612a6257612a6261348a565b60200260200101519050848261ffff1681518110612a8257612a8261348a565b6020026020010151858461ffff1681518110612aa057612aa061348a565b602002602001019061ffff16908161ffff168152505080858361ffff1681518110612acd57612acd61348a565b602002602001019061ffff16908161ffff168152505050508080612af09061378a565b915050612a1b565b50818661ffff1681518110612b0f57612b0f61348a565b6020026020010151925050509392505050565b60006001600160a01b0384163b15612cc4576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612b7f9033908990889088906004016137c0565b602060405180830381600087803b158015612b9957600080fd5b505af1925050508015612bc9575060408051601f3d908101601f19168201909252612bc6918101906137f2565b60015b612c79573d808015612bf7576040519150601f19603f3d011682016040523d82523d6000602084013e612bfc565b606091505b508051612c715760405162461bcd60e51b815260206004820152603660248201527f455243373231536c696d3a207472616e7366657220746f206e6f6e204552433760448201527f3231526563656976657220696d706c656d656e746572000000000000000000006064820152608401610987565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061231d565b506001949350505050565b606082471015612d475760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610987565b843b612d955760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610987565b600080866001600160a01b03168587604051612db1919061380f565b60006040518083038185875af1925050503d8060008114612dee576040519150601f19603f3d011682016040523d82523d6000602084013e612df3565b606091505b5091509150612e03828286612e0e565b979650505050505050565b60608315612e1d575081611d58565b825115612e2d5782518084602001fd5b8160405162461bcd60e51b81526004016109879190612f1c565b5080546000825590600052602060002090810190611b4491905b80821115612e755760008155600101612e61565b5090565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611b4457600080fd5b600060208284031215612eb957600080fd5b8135611d5881612e79565b60005b83811015612edf578181015183820152602001612ec7565b83811115611ad05750506000910152565b60008151808452612f08816020860160208601612ec4565b601f01601f19169290920160200192915050565b602081526000611d586020830184612ef0565b600060208284031215612f4157600080fd5b5035919050565b6001600160a01b0381168114611b4457600080fd5b60008060408385031215612f7057600080fd5b8235612f7b81612f48565b946020939093013593505050565b600080600060608486031215612f9e57600080fd5b8335612fa981612f48565b92506020840135612fb981612f48565b929592945050506040919091013590565b600060208284031215612fdc57600080fd5b813561ffff81168114611d5857600080fd5b60008151604084526130036040850182612ef0565b905060208301518482036020860152611e338282612ef0565b602081526000611d586020830184612fee565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156130875761308761302f565b604052919050565b600067ffffffffffffffff8211156130a9576130a961302f565b50601f01601f191660200190565b60006130ca6130c58461308f565b61305e565b90508281528383830111156130de57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561310757600080fd5b813567ffffffffffffffff81111561311e57600080fd5b8201601f8101841361312f57600080fd5b61231d848235602084016130b7565b60006020828403121561315057600080fd5b8135611d5881612f48565b60006020828403121561316d57600080fd5b813560ff81168114611d5857600080fd5b60008060006040848603121561319357600080fd5b833561319e81612f48565b9250602084013567ffffffffffffffff808211156131bb57600080fd5b818601915086601f8301126131cf57600080fd5b8135818111156131de57600080fd5b8760208285010111156131f057600080fd5b6020830194508093505050509250925092565b6000806040838503121561321657600080fd5b823561322181612f48565b91506020830135801515811461323657600080fd5b809150509250929050565b6000602080838503121561325457600080fd5b823567ffffffffffffffff8082111561326c57600080fd5b818501915085601f83011261328057600080fd5b8135818111156132925761329261302f565b8060051b91506132a384830161305e565b81815291830184019184810190888411156132bd57600080fd5b938501935b838510156132e757843592506132d783612f48565b82825293850193908501906132c2565b98975050505050505050565b6000806000806080858703121561330957600080fd5b843561331481612f48565b9350602085013561332481612f48565b925060408501359150606085013567ffffffffffffffff81111561334757600080fd5b8501601f8101871361335857600080fd5b613367878235602084016130b7565b91505092959194509250565b6000806040838503121561338657600080fd5b823561339181612f48565b9150602083013561323681612f48565b600181811c908216806133b557607f821691505b60208210811415611e3c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613456576134566133ef565b500290565b6000821982111561346e5761346e6133ef565b500190565b600082821015613485576134856133ef565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006bffffffffffffffffffffffff838116908316818110156134de576134de6133ef565b039392505050565b600082601f8301126134f757600080fd5b81516135056130c58261308f565b81815284602083860101111561351a57600080fd5b61231d826020830160208701612ec4565b60006020828403121561353d57600080fd5b815167ffffffffffffffff8082111561355557600080fd5b908301906040828603121561356957600080fd5b6040516040810181811083821117156135845761358461302f565b60405282518281111561359657600080fd5b6135a2878286016134e6565b8252506020830151828111156135b757600080fd5b6135c3878286016134e6565b60208301525095945050505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613604576136046133ef565b5060010190565b60008161361a5761361a6133ef565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b60008551613652818460208a01612ec4565b60989590951b7fffffffffffffffffffffffffff000000000000000000000000000000000000001691909401908152600d810192909252602d820152604d0192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826136d5576136d5613697565b500490565b6000602082840312156136ec57600080fd5b815167ffffffffffffffff81111561370357600080fd5b61231d848285016134e6565b61ffff8316815260406020820152600061231d6040830184612fee565b60006020828403121561373e57600080fd5b81516bffffffffffffffffffffffff81168114611d5857600080fd5b60006bffffffffffffffffffffffff808316818516808303821115613781576137816133ef565b01949350505050565b600061ffff808316818114156137a2576137a26133ef565b6001019392505050565b6000826137bb576137bb613697565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526110b16080830184612ef0565b60006020828403121561380457600080fd5b8151611d5881612e79565b60008251613821818460208701612ec4565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212203ae254c80b6fc85b3a818d1394641ecfd7ad5c6b8c6920e6318af5826ddcdaff64736f6c63430008090033

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

0000000000000000000000000000000000000000000000000000000000003e804cbe0fbbea537aea6714ced2b500d2ef5c78fd23ad028ff97f3952c2b6c1f991000000000000000000000000b64460bedd3c21b3d720f36514ff2af069a03004000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000020000000000000000000000005aeb2b1c0b990c934fe942daae926706f547390b000000000000000000000000968a62e92f02a4934eaad9923959d58ef6e64492

-----Decoded View---------------
Arg [0] : maxSupply (uint16): 16000
Arg [1] : saltHash (bytes32): 0x4cbe0fbbea537aea6714ced2b500d2ef5c78fd23ad028ff97f3952c2b6c1f991
Arg [2] : renderer (address): 0xb64460Bedd3c21B3d720f36514ff2af069A03004
Arg [3] : colorProviders (address[]): 0x5AeB2B1c0b990C934FE942dAae926706F547390B,0x968a62E92F02A4934eaaD9923959D58eF6E64492

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000003e80
Arg [1] : 4cbe0fbbea537aea6714ced2b500d2ef5c78fd23ad028ff97f3952c2b6c1f991
Arg [2] : 000000000000000000000000b64460bedd3c21b3d720f36514ff2af069a03004
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [5] : 0000000000000000000000005aeb2b1c0b990c934fe942daae926706f547390b
Arg [6] : 000000000000000000000000968a62e92f02a4934eaad9923959d58ef6e64492


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.