ETH Price: $2,228.11 (-6.81%)

Token

 

Overview

Max Total Supply

0

Holders

62

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

0x1edc84d2e38ffcb648243a40aa692b4c6623fb5f
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:
Pasqua1155

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 12 : Pasqua1155.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

contract Pasqua1155 is ERC1155, IERC1155Receiver, Ownable, Pausable {
    using Strings for uint256;

    address proxyRegistryAddress;

    address private artist = 0x82eB534E1e9104Ea836a3ec62d9930cDB39d705f;

    address private developer = 0xC7f3Dd2Dcce430F18661A61dB3DC9E81D9AC1C07;

    uint256 private _defaultPrice = 1 ether;

    uint256 public saleStart;

    mapping(uint256 => uint256) tokenIdToPrice;

    modifier saleActive() {
        require(saleStart != 0 && block.timestamp >= saleStart);
        _;
    }

    constructor(
        address _proxyRegistryAddress,
        uint256[] memory tokenIds,
        uint256[] memory amounts,
        uint256 startTime
    ) ERC1155("ipfs://bafybeid547lfrskhxaoytgsj7fz4zyyto4dtv3bsnvvsky553opq52skmq/") {
        proxyRegistryAddress = _proxyRegistryAddress;
        saleStart = startTime;
        _mint(artist, 0, 1, "");
        _mint(0x427548722F21bB986853c1e085Aa0A1449c3b162, 4, 1, "");
        _mintBatch(address(this), tokenIds, amounts, "");
    }

    function buy(uint256 id) public payable saleActive {
        require(balanceOf(address(this), id) > 0, "Token not available");
        require(balanceOf(msg.sender, id) < 2, "You already own 2 tokens");
        require(msg.value == tokenPrice(id), "Ether value sent is not correct");

        _safeTransferFrom(address(this), msg.sender, id, 1, "");
    }

    /**
     * @notice Buy several tokens in one batch, although max 2 per tokenId per address
     */
    function buyBatch(uint256[] memory ids, uint256[] memory amounts) public payable saleActive {
        uint256 price = 0;
        for (uint256 i = 0; i < ids.length; i += 1) {
            uint256 balanceSender = balanceOf(address(msg.sender), ids[i]);
            // max 2 tokens per address
            uint256 canBuy = balanceSender > 2 ? 0 : 2 - balanceSender;
            // check how many tokens are available, if more than canBuy set to canBuy
            uint256 available = balanceOf(address(this), ids[i]) > canBuy ? canBuy : balanceOf(address(this), ids[i]);
            // edit amount if too high
            amounts[i] = available < amounts[i] ? available : amounts[i];
            // calculate price on edited amount
            price += tokenPrice(ids[i]) * amounts[i];
        }
        // if calculated price is 0, that means that the selected ids were not available
        require(price > 0, "Tokens not available");
        require(msg.value >= price, "Ether value sent is not correct");

        // Send back money if we got too much
        if (price < msg.value) {
            (bool ok, ) = payable(msg.sender).call{ value: msg.value - price }("");
            require(ok);
        }
        _safeBatchTransferFrom(address(this), msg.sender, ids, amounts, "");
    }

    function setURI(string memory newuri) public onlyOwner {
        _setURI(newuri);
    }

    function setDefaultTokenPrice(uint256 price) public onlyOwner {
        _defaultPrice = price;
    }

    /**
     * @notice Use to set another price than default for specific tokenId
     */
    function setTokenPrice(uint256 id, uint256 price) public onlyOwner {
        tokenIdToPrice[id] = price;
    }

    function tokenPrice(uint256 id) public view returns (uint256) {
        return tokenIdToPrice[id] == 0 ? _defaultPrice : tokenIdToPrice[id];
    }

    function setSaleStart(uint256 startIn) public onlyOwner {
        saleStart = startIn > 0 ? block.timestamp + startIn : 0;
    }

    function saleStarted() public view returns (bool) {
        return saleStart != 0 && block.timestamp >= saleStart;
    }

    function uri(uint256 id) public view virtual override returns (string memory) {
        string memory baseURI = super.uri(id);
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, id.toString())) : "";
    }

    function pause() public onlyOwner {
        _pause();
    }

    function unpause() public onlyOwner {
        _unpause();
    }

    function mint(
        address account,
        uint256 id,
        uint256 amount
    ) public onlyOwner {
        _mint(account, id, amount, "");
    }

    function mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts
    ) public onlyOwner {
        _mintBatch(to, ids, amounts, "");
    }

    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal override whenNotPaused {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }

    function withdraw() public onlyOwner {
        require(artist != address(0), "Artist not set");
        require(developer != address(0), "Developer not set");

        uint256 amount = address(this).balance;
        require(amount > 0, "No money in contract");

        uint256 devShare = amount / 5;
        uint256 artistShare = amount - devShare;

        (bool successArtist, ) = artist.call{ value: artistShare }("");
        (bool successDev, ) = developer.call{ value: devShare }("");
        require(successArtist && successDev, "Failed to send money");
    }

    function setArtist(address _artist) public onlyOwner {
        artist = _artist;
    }

    function setDeveloper(address _developer) public onlyOwner {
        developer = _developer;
    }

    /**
     * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-free listings.
     */
    function isApprovedForAll(address _owner, address _operator) public view override returns (bool isOperator) {
        // Whitelist OpenSea proxy contract for easy trading.
        ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
        if (address(proxyRegistry.proxies(_owner)) == _operator) {
            return true;
        }

        return ERC1155.isApprovedForAll(_owner, _operator);
    }

    function onERC1155Received(
        address,
        address,
        uint256,
        uint256,
        bytes calldata
    ) external pure override returns (bytes4) {
        return this.onERC1155Received.selector;
    }

    function onERC1155BatchReceived(
        address,
        address,
        uint256[] calldata,
        uint256[] calldata,
        bytes calldata
    ) external pure override returns (bytes4) {
        return this.onERC1155BatchReceived.selector;
    }
}

File 2 of 12 : ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(account != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][account] += amount;
        emit TransferSingle(operator, address(0), account, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `account`
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 accountBalance = _balances[id][account];
        require(accountBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][account] = accountBalance - amount;
        }

        emit TransferSingle(operator, account, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 accountBalance = _balances[id][account];
            require(accountBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][account] = accountBalance - amount;
            }
        }

        emit TransferBatch(operator, account, address(0), ids, amounts);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 3 of 12 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 5 of 12 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 6 of 12 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 7 of 12 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 8 of 12 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 9 of 12 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 11 of 12 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256","name":"startTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"buyBatch","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isOperator","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_artist","type":"address"}],"name":"setArtist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setDefaultTokenPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_developer","type":"address"}],"name":"setDeveloper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startIn","type":"uint256"}],"name":"setSaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setTokenPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600580546001600160a01b03199081167382eb534e1e9104ea836a3ec62d9930cdb39d705f179091556006805490911673c7f3dd2dcce430f18661a61db3dc9e81d9ac1c07179055670de0b6b3a76400006007553480156200006557600080fd5b5060405162003e5738038062003e57833981016040819052620000889162000a03565b60405180608001604052806043815260200162003dd460439139620000ad8162000178565b50620000b93362000191565b6003805460ff60a01b19169055600480546001600160a01b0319166001600160a01b03868116919091179091556008829055600554604080516020810190915260008082526200011293929092169190600190620001e3565b6200014b73427548722f21bb986853c1e085aa0a1449c3b1626004600160405180602001604052806000815250620001e360201b60201c565b6200016e30848460405180602001604052806000815250620002f960201b60201c565b5050505062000d95565b80516200018d9060029060208401906200088f565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038416620002385760405162461bcd60e51b8152602060048201526021602482015260008051602062003e178339815191526044820152607360f81b60648201526084015b60405180910390fd5b336200025e816000876200024c88620004d3565b6200025788620004d3565b8762000521565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906200029090849062000aab565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4620002f2816000878787876200059a565b5050505050565b6001600160a01b0384166200034a5760405162461bcd60e51b8152602060048201526021602482015260008051602062003e178339815191526044820152607360f81b60648201526084016200022f565b8151835114620003ae5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016200022f565b33620003c08160008787878762000521565b60005b84518110156200046757838181518110620003e257620003e262000ac6565b602002602001015160008087848151811062000402576200040262000ac6565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546200044c919062000aab565b909155508190506200045e8162000adc565b915050620003c3565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051620004ba92919062000b37565b60405180910390a4620002f2816000878787876200076f565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811062000510576200051062000ac6565b602090810291909101015292915050565b62000535600354600160a01b900460ff1690565b15620005775760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016200022f565b620005928686868686866200059260201b620016a41760201c565b505050505050565b620005b9846001600160a01b03166200088960201b620016ac1760201c565b15620005925760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190620005f5908990899088908890889060040162000bb9565b602060405180830381600087803b1580156200061057600080fd5b505af192505050801562000643575060408051601f3d908101601f19168201909252620006409181019062000c00565b60015b62000704576200065262000c33565b806308c379a014156200069357506200066a62000c50565b8062000677575062000695565b8060405162461bcd60e51b81526004016200022f919062000cdf565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016200022f565b6001600160e01b0319811663f23a6e6160e01b14620007665760405162461bcd60e51b8152602060048201526028602482015260008051602062003e378339815191526044820152676420746f6b656e7360c01b60648201526084016200022f565b50505050505050565b6200078e846001600160a01b03166200088960201b620016ac1760201c565b15620005925760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190620007ca908990899088908890889060040162000cf4565b602060405180830381600087803b158015620007e557600080fd5b505af192505050801562000818575060408051601f3d908101601f19168201909252620008159181019062000c00565b60015b62000827576200065262000c33565b6001600160e01b0319811663bc197c8160e01b14620007665760405162461bcd60e51b8152602060048201526028602482015260008051602062003e378339815191526044820152676420746f6b656e7360c01b60648201526084016200022f565b3b151590565b8280546200089d9062000d58565b90600052602060002090601f016020900481019282620008c157600085556200090c565b82601f10620008dc57805160ff19168380011785556200090c565b828001600101855582156200090c579182015b828111156200090c578251825591602001919060010190620008ef565b506200091a9291506200091e565b5090565b5b808211156200091a57600081556001016200091f565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b038111828210171562000973576200097362000935565b6040525050565b600082601f8301126200098c57600080fd5b815160206001600160401b03821115620009aa57620009aa62000935565b8160051b604051620009bf838301826200094b565b92835284810182019282810187851115620009d957600080fd5b83870192505b84831015620009f85782518152918301918301620009df565b509695505050505050565b6000806000806080858703121562000a1a57600080fd5b84516001600160a01b038116811462000a3257600080fd5b60208601519094506001600160401b038082111562000a5057600080fd5b62000a5e888389016200097a565b9450604087015191508082111562000a7557600080fd5b5062000a84878288016200097a565b606096909601519497939650505050565b634e487b7160e01b600052601160045260246000fd5b6000821982111562000ac15762000ac162000a95565b500190565b634e487b7160e01b600052603260045260246000fd5b600060001982141562000af35762000af362000a95565b5060010190565b600081518084526020808501945080840160005b8381101562000b2c5781518752958201959082019060010162000b0e565b509495945050505050565b60408152600062000b4c604083018562000afa565b828103602084015262000b60818562000afa565b95945050505050565b6000815180845260005b8181101562000b915760208185018101518683018201520162000b73565b8181111562000ba4576000602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009062000bf59083018462000b69565b979650505050505050565b60006020828403121562000c1357600080fd5b81516001600160e01b03198116811462000c2c57600080fd5b9392505050565b600060033d111562000c4d5760046000803e5060005160e01c5b90565b600060443d101562000c5f5790565b6040516003193d81016004833e81513d6001600160401b03808311602484018310171562000c8f57505050505090565b828501915081518181111562000ca85750505050505090565b843d870101602082850101111562000cc35750505050505090565b62000cd4602082860101876200094b565b509095945050505050565b60208152600062000c2c602083018462000b69565b6001600160a01b0386811682528516602082015260a06040820181905260009062000d229083018662000afa565b828103606084015262000d36818662000afa565b9050828103608084015262000d4c818562000b69565b98975050505050505050565b600181811c9082168062000d6d57607f821691505b6020821081141562000d8f57634e487b7160e01b600052602260045260246000fd5b50919050565b61302f8062000da56000396000f3fe6080604052600436106101cc5760003560e01c80638456cb59116100f7578063d81d0a1511610095578063f23a6e6111610064578063f23a6e6114610524578063f242432a14610551578063f2fde38b14610571578063ff70fa491461059157600080fd5b8063d81d0a15146104b1578063d96a094a146104d1578063e985e9c5146104e4578063eb685c471461050457600080fd5b8063ab0bcc41116100d1578063ab0bcc4114610413578063bc197c8114610429578063d4c9753314610471578063d4ddce8a1461049157600080fd5b80638456cb59146103b65780638da5cb5b146103cb578063a22cb465146103f357600080fd5b80633ccfd60b1161016f5780635c474f9e1161013e5780635c474f9e1461035a5780635c975abb1461036f578063715018a61461038e57806379bea7ee146103a357600080fd5b80633ccfd60b146102e35780633f4ba83a146102f857806349c9215e1461030d5780634e1273f41461032d57600080fd5b80630e89341c116101ab5780630e89341c14610256578063156e29f6146102835780632eb2c2d6146102a35780632f181f54146102c357600080fd5b8062fdd58e146101d157806301ffc9a71461020457806302fe530514610234575b600080fd5b3480156101dd57600080fd5b506101f16101ec3660046124f2565b6105b1565b6040519081526020015b60405180910390f35b34801561021057600080fd5b5061022461021f366004612534565b61065d565b60405190151581526020016101fb565b34801561024057600080fd5b5061025461024f3660046125f2565b6106ad565b005b34801561026257600080fd5b5061027661027136600461263b565b610701565b6040516101fb91906126b0565b34801561028f57600080fd5b5061025461029e3660046126c3565b610760565b3480156102af57600080fd5b506102546102be3660046127ad565b6107c8565b3480156102cf57600080fd5b506102546102de36600461263b565b61086a565b3480156102ef57600080fd5b506102546108d1565b34801561030457600080fd5b50610254610b3c565b34801561031957600080fd5b5061025461032836600461263b565b610b8e565b34801561033957600080fd5b5061034d61034836600461285b565b610bdb565b6040516101fb9190612963565b34801561036657600080fd5b50610224610d19565b34801561037b57600080fd5b50600354600160a01b900460ff16610224565b34801561039a57600080fd5b50610254610d35565b6102546103b1366004612976565b610d87565b3480156103c257600080fd5b50610254611011565b3480156103d757600080fd5b506003546040516001600160a01b0390911681526020016101fb565b3480156103ff57600080fd5b5061025461040e3660046129c3565b611061565b34801561041f57600080fd5b506101f160085481565b34801561043557600080fd5b50610458610444366004612a8f565b63bc197c8160e01b98975050505050505050565b6040516001600160e01b031990911681526020016101fb565b34801561047d57600080fd5b5061025461048c366004612b4e565b61114c565b34801561049d57600080fd5b506101f16104ac36600461263b565b6111c3565b3480156104bd57600080fd5b506102546104cc366004612b6b565b6111f3565b6102546104df36600461263b565b611256565b3480156104f057600080fd5b506102246104ff366004612be1565b611398565b34801561051057600080fd5b5061025461051f366004612c0f565b61146b565b34801561053057600080fd5b5061045861053f366004612c31565b63f23a6e6160e01b9695505050505050565b34801561055d57600080fd5b5061025461056c366004612cad565b6114c5565b34801561057d57600080fd5b5061025461058c366004612b4e565b611560565b34801561059d57600080fd5b506102546105ac366004612b4e565b61162d565b60006001600160a01b0383166106345760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061068e57506001600160e01b031982166303a24d0760e21b145b8061065757506301ffc9a760e01b6001600160e01b0319831614610657565b6003546001600160a01b031633146106f55760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b6106fe816116b2565b50565b6060600061070e836116c9565b9050600081511161072e5760405180602001604052806000815250610759565b806107388461175d565b604051602001610749929190612d16565b6040516020818303038152906040525b9392505050565b6003546001600160a01b031633146107a85760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b6107c383838360405180602001604052806000815250611873565b505050565b6001600160a01b0385163314806107e457506107e48533611398565b6108565760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606482015260840161062b565b6108638585858585611983565b5050505050565b6003546001600160a01b031633146108b25760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b600081116108c15760006108cb565b6108cb8142612d5b565b60085550565b6003546001600160a01b031633146109195760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b6005546001600160a01b03166109715760405162461bcd60e51b815260206004820152600e60248201527f417274697374206e6f7420736574000000000000000000000000000000000000604482015260640161062b565b6006546001600160a01b03166109c95760405162461bcd60e51b815260206004820152601160248201527f446576656c6f706572206e6f7420736574000000000000000000000000000000604482015260640161062b565b4780610a175760405162461bcd60e51b815260206004820152601460248201527f4e6f206d6f6e657920696e20636f6e7472616374000000000000000000000000604482015260640161062b565b6000610a24600583612d89565b90506000610a328284612d9d565b6005546040519192506000916001600160a01b039091169083908381818185875af1925050503d8060008114610a84576040519150601f19603f3d011682016040523d82523d6000602084013e610a89565b606091505b50506006546040519192506000916001600160a01b039091169085908381818185875af1925050503d8060008114610add576040519150601f19603f3d011682016040523d82523d6000602084013e610ae2565b606091505b50509050818015610af05750805b6108635760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e64206d6f6e6579000000000000000000000000604482015260640161062b565b6003546001600160a01b03163314610b845760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b610b8c611be7565b565b6003546001600160a01b03163314610bd65760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b600755565b60608151835114610c545760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d617463680000000000000000000000000000000000000000000000606482015260840161062b565b6000835167ffffffffffffffff811115610c7057610c70612551565b604051908082528060200260200182016040528015610c99578160200160208202803683370190505b50905060005b8451811015610d1157610ce4858281518110610cbd57610cbd612db4565b6020026020010151858381518110610cd757610cd7612db4565b60200260200101516105b1565b828281518110610cf657610cf6612db4565b6020908102919091010152610d0a81612dca565b9050610c9f565b509392505050565b6000600854600014158015610d3057506008544210155b905090565b6003546001600160a01b03163314610d7d5760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b610b8c6000611c8d565b60085415801590610d9a57506008544210155b610da357600080fd5b6000805b8351811015610eee576000610dc833868481518110610cd757610cd7612db4565b9050600060028211610de457610ddf826002612d9d565b610de7565b60005b9050600081610e0230898781518110610cd757610cd7612db4565b11610e2257610e1d30888681518110610cd757610cd7612db4565b610e24565b815b9050858481518110610e3857610e38612db4565b60200260200101518110610e6557858481518110610e5857610e58612db4565b6020026020010151610e67565b805b868581518110610e7957610e79612db4565b602002602001018181525050858481518110610e9757610e97612db4565b6020026020010151610ec1888681518110610eb457610eb4612db4565b60200260200101516111c3565b610ecb9190612de5565b610ed59086612d5b565b9450505050600181610ee79190612d5b565b9050610da7565b5060008111610f3f5760405162461bcd60e51b815260206004820152601460248201527f546f6b656e73206e6f7420617661696c61626c65000000000000000000000000604482015260640161062b565b80341015610f8f5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604482015260640161062b565b34811015610ff557600033610fa48334612d9d565b604051600081818185875af1925050503d8060008114610fe0576040519150601f19603f3d011682016040523d82523d6000602084013e610fe5565b606091505b5050905080610ff357600080fd5b505b6107c33033858560405180602001604052806000815250611983565b6003546001600160a01b031633146110595760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b610b8c611cec565b336001600160a01b03831614156110e05760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c660000000000000000000000000000000000000000000000606482015260840161062b565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6003546001600160a01b031633146111945760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b6005805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600081815260096020526040812054156111eb57600082815260096020526040902054610657565b505060075490565b6003546001600160a01b0316331461123b5760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b6107c383838360405180602001604052806000815250611d74565b6008541580159061126957506008544210155b61127257600080fd5b600061127e30836105b1565b116112cb5760405162461bcd60e51b815260206004820152601360248201527f546f6b656e206e6f7420617661696c61626c6500000000000000000000000000604482015260640161062b565b60026112d733836105b1565b106113245760405162461bcd60e51b815260206004820152601860248201527f596f7520616c7265616479206f776e203220746f6b656e730000000000000000604482015260640161062b565b61132d816111c3565b341461137b5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604482015260640161062b565b6106fe303383600160405180602001604052806000815250611f49565b6004805460405163c455279160e01b81526001600160a01b038581169382019390935260009291821691841690829063c45527919060240160206040518083038186803b1580156113e857600080fd5b505afa1580156113fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114209190612e04565b6001600160a01b03161415611439576001915050610657565b6001600160a01b0380851660009081526001602090815260408083209387168352929052205460ff165b949350505050565b6003546001600160a01b031633146114b35760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b60009182526009602052604090912055565b6001600160a01b0385163314806114e157506114e18533611398565b6115535760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f7665640000000000000000000000000000000000000000000000606482015260840161062b565b6108638585858585611f49565b6003546001600160a01b031633146115a85760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b6001600160a01b0381166116245760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161062b565b6106fe81611c8d565b6003546001600160a01b031633146116755760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b6006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b505050505050565b3b151590565b80516116c5906002906020840190612444565b5050565b6060600280546116d890612e21565b80601f016020809104026020016040519081016040528092919081815260200182805461170490612e21565b80156117515780601f1061172657610100808354040283529160200191611751565b820191906000526020600020905b81548152906001019060200180831161173457829003601f168201915b50505050509050919050565b6060816117815750506040805180820190915260018152600360fc1b602082015290565b8160005b81156117ab578061179581612dca565b91506117a49050600a83612d89565b9150611785565b60008167ffffffffffffffff8111156117c6576117c6612551565b6040519080825280601f01601f1916602001820160405280156117f0576020820181803683370190505b5090505b841561146357611805600183612d9d565b9150611812600a86612e5c565b61181d906030612d5b565b60f81b81838151811061183257611832612db4565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061186c600a86612d89565b94506117f4565b6001600160a01b0384166118d35760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161062b565b336118f3816000876118e4886120e7565b6118ed886120e7565b87612132565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611923908490612d5b565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461086381600087878787612184565b81518351146119e55760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b606482015260840161062b565b6001600160a01b038416611a495760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161062b565b33611a58818787878787612132565b60005b8451811015611b81576000858281518110611a7857611a78612db4565b602002602001015190506000858381518110611a9657611a96612db4565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611b295760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b606482015260840161062b565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611b66908490612d5b565b9250508190555050505080611b7a90612dca565b9050611a5b565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611bd1929190612e70565b60405180910390a46116a4818787878787612339565b600354600160a01b900460ff16611c405760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161062b565b6003805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600380546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600354600160a01b900460ff1615611d395760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161062b565b6003805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611c703390565b6001600160a01b038416611dd45760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161062b565b8151835114611e365760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b606482015260840161062b565b33611e4681600087878787612132565b60005b8451811015611ee157838181518110611e6457611e64612db4565b6020026020010151600080878481518110611e8157611e81612db4565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254611ec99190612d5b565b90915550819050611ed981612dca565b915050611e49565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611f32929190612e70565b60405180910390a461086381600087878787612339565b6001600160a01b038416611fad5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161062b565b33611fbd8187876118e4886120e7565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156120415760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b606482015260840161062b565b6000858152602081815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061207e908490612d5b565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46120de828888888888612184565b50505050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061212157612121612db4565b602090810291909101015292915050565b600354600160a01b900460ff161561217f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161062b565b6116a4565b6001600160a01b0384163b156116a45760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906121c89089908990889088908890600401612e9e565b602060405180830381600087803b1580156121e257600080fd5b505af1925050508015612212575060408051601f3d908101601f1916820190925261220f91810190612ee1565b60015b6122c85761221e612efe565b806308c379a014156122585750612233612f1a565b8061223e575061225a565b8060405162461bcd60e51b815260040161062b91906126b0565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e746572000000000000000000000000606482015260840161062b565b6001600160e01b0319811663f23a6e6160e01b146120de5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b606482015260840161062b565b6001600160a01b0384163b156116a45760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061237d9089908990889088908890600401612fa4565b602060405180830381600087803b15801561239757600080fd5b505af19250505080156123c7575060408051601f3d908101601f191682019092526123c491810190612ee1565b60015b6123d35761221e612efe565b6001600160e01b0319811663bc197c8160e01b146120de5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b606482015260840161062b565b82805461245090612e21565b90600052602060002090601f01602090048101928261247257600085556124b8565b82601f1061248b57805160ff19168380011785556124b8565b828001600101855582156124b8579182015b828111156124b857825182559160200191906001019061249d565b506124c49291506124c8565b5090565b5b808211156124c457600081556001016124c9565b6001600160a01b03811681146106fe57600080fd5b6000806040838503121561250557600080fd5b8235612510816124dd565b946020939093013593505050565b6001600160e01b0319811681146106fe57600080fd5b60006020828403121561254657600080fd5b81356107598161251e565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff8111828210171561258d5761258d612551565b6040525050565b600067ffffffffffffffff8311156125ae576125ae612551565b6040516125c5601f8501601f191660200182612567565b8091508381528484840111156125da57600080fd5b83836020830137600060208583010152509392505050565b60006020828403121561260457600080fd5b813567ffffffffffffffff81111561261b57600080fd5b8201601f8101841361262c57600080fd5b61146384823560208401612594565b60006020828403121561264d57600080fd5b5035919050565b60005b8381101561266f578181015183820152602001612657565b8381111561267e576000848401525b50505050565b6000815180845261269c816020860160208601612654565b601f01601f19169290920160200192915050565b6020815260006107596020830184612684565b6000806000606084860312156126d857600080fd5b83356126e3816124dd565b95602085013595506040909401359392505050565b600067ffffffffffffffff82111561271257612712612551565b5060051b60200190565b600082601f83011261272d57600080fd5b8135602061273a826126f8565b6040516127478282612567565b83815260059390931b850182019282810191508684111561276757600080fd5b8286015b84811015612782578035835291830191830161276b565b509695505050505050565b600082601f83011261279e57600080fd5b61075983833560208501612594565b600080600080600060a086880312156127c557600080fd5b85356127d0816124dd565b945060208601356127e0816124dd565b9350604086013567ffffffffffffffff808211156127fd57600080fd5b61280989838a0161271c565b9450606088013591508082111561281f57600080fd5b61282b89838a0161271c565b9350608088013591508082111561284157600080fd5b5061284e8882890161278d565b9150509295509295909350565b6000806040838503121561286e57600080fd5b823567ffffffffffffffff8082111561288657600080fd5b818501915085601f83011261289a57600080fd5b813560206128a7826126f8565b6040516128b48282612567565b83815260059390931b85018201928281019150898411156128d457600080fd5b948201945b838610156128fb5785356128ec816124dd565b825294820194908201906128d9565b9650508601359250508082111561291157600080fd5b5061291e8582860161271c565b9150509250929050565b600081518084526020808501945080840160005b838110156129585781518752958201959082019060010161293c565b509495945050505050565b6020815260006107596020830184612928565b6000806040838503121561298957600080fd5b823567ffffffffffffffff808211156129a157600080fd5b6129ad8683870161271c565b9350602085013591508082111561291157600080fd5b600080604083850312156129d657600080fd5b82356129e1816124dd565b9150602083013580151581146129f657600080fd5b809150509250929050565b60008083601f840112612a1357600080fd5b50813567ffffffffffffffff811115612a2b57600080fd5b6020830191508360208260051b8501011115612a4657600080fd5b9250929050565b60008083601f840112612a5f57600080fd5b50813567ffffffffffffffff811115612a7757600080fd5b602083019150836020828501011115612a4657600080fd5b60008060008060008060008060a0898b031215612aab57600080fd5b8835612ab6816124dd565b97506020890135612ac6816124dd565b9650604089013567ffffffffffffffff80821115612ae357600080fd5b612aef8c838d01612a01565b909850965060608b0135915080821115612b0857600080fd5b612b148c838d01612a01565b909650945060808b0135915080821115612b2d57600080fd5b50612b3a8b828c01612a4d565b999c989b5096995094979396929594505050565b600060208284031215612b6057600080fd5b8135610759816124dd565b600080600060608486031215612b8057600080fd5b8335612b8b816124dd565b9250602084013567ffffffffffffffff80821115612ba857600080fd5b612bb48783880161271c565b93506040860135915080821115612bca57600080fd5b50612bd78682870161271c565b9150509250925092565b60008060408385031215612bf457600080fd5b8235612bff816124dd565b915060208301356129f6816124dd565b60008060408385031215612c2257600080fd5b50508035926020909101359150565b60008060008060008060a08789031215612c4a57600080fd5b8635612c55816124dd565b95506020870135612c65816124dd565b94506040870135935060608701359250608087013567ffffffffffffffff811115612c8f57600080fd5b612c9b89828a01612a4d565b979a9699509497509295939492505050565b600080600080600060a08688031215612cc557600080fd5b8535612cd0816124dd565b94506020860135612ce0816124dd565b93506040860135925060608601359150608086013567ffffffffffffffff811115612d0a57600080fd5b61284e8882890161278d565b60008351612d28818460208801612654565b835190830190612d3c818360208801612654565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b60008219821115612d6e57612d6e612d45565b500190565b634e487b7160e01b600052601260045260246000fd5b600082612d9857612d98612d73565b500490565b600082821015612daf57612daf612d45565b500390565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612dde57612dde612d45565b5060010190565b6000816000190483118215151615612dff57612dff612d45565b500290565b600060208284031215612e1657600080fd5b8151610759816124dd565b600181811c90821680612e3557607f821691505b60208210811415612e5657634e487b7160e01b600052602260045260246000fd5b50919050565b600082612e6b57612e6b612d73565b500690565b604081526000612e836040830185612928565b8281036020840152612e958185612928565b95945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152612ed660a0830184612684565b979650505050505050565b600060208284031215612ef357600080fd5b81516107598161251e565b600060033d1115612f175760046000803e5060005160e01c5b90565b600060443d1015612f285790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715612f5857505050505090565b8285019150815181811115612f705750505050505090565b843d8701016020828501011115612f8a5750505050505090565b612f9960208286010187612567565b509095945050505050565b60006001600160a01b03808816835280871660208401525060a06040830152612fd060a0830186612928565b8281036060840152612fe28186612928565b90508281036080840152612ff68185612684565b9897505050505050505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a164736f6c6343000809000a697066733a2f2f62616679626569643534376c6672736b6878616f797467736a37667a347a7979746f346474763362736e7676736b793535336f70713532736b6d712f455243313135353a206d696e7420746f20746865207a65726f20616464726573455243313135353a204552433131353552656365697665722072656a65637465000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000061804e4800000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000000000000000000000000000000000000000000c

Deployed Bytecode

0x6080604052600436106101cc5760003560e01c80638456cb59116100f7578063d81d0a1511610095578063f23a6e6111610064578063f23a6e6114610524578063f242432a14610551578063f2fde38b14610571578063ff70fa491461059157600080fd5b8063d81d0a15146104b1578063d96a094a146104d1578063e985e9c5146104e4578063eb685c471461050457600080fd5b8063ab0bcc41116100d1578063ab0bcc4114610413578063bc197c8114610429578063d4c9753314610471578063d4ddce8a1461049157600080fd5b80638456cb59146103b65780638da5cb5b146103cb578063a22cb465146103f357600080fd5b80633ccfd60b1161016f5780635c474f9e1161013e5780635c474f9e1461035a5780635c975abb1461036f578063715018a61461038e57806379bea7ee146103a357600080fd5b80633ccfd60b146102e35780633f4ba83a146102f857806349c9215e1461030d5780634e1273f41461032d57600080fd5b80630e89341c116101ab5780630e89341c14610256578063156e29f6146102835780632eb2c2d6146102a35780632f181f54146102c357600080fd5b8062fdd58e146101d157806301ffc9a71461020457806302fe530514610234575b600080fd5b3480156101dd57600080fd5b506101f16101ec3660046124f2565b6105b1565b6040519081526020015b60405180910390f35b34801561021057600080fd5b5061022461021f366004612534565b61065d565b60405190151581526020016101fb565b34801561024057600080fd5b5061025461024f3660046125f2565b6106ad565b005b34801561026257600080fd5b5061027661027136600461263b565b610701565b6040516101fb91906126b0565b34801561028f57600080fd5b5061025461029e3660046126c3565b610760565b3480156102af57600080fd5b506102546102be3660046127ad565b6107c8565b3480156102cf57600080fd5b506102546102de36600461263b565b61086a565b3480156102ef57600080fd5b506102546108d1565b34801561030457600080fd5b50610254610b3c565b34801561031957600080fd5b5061025461032836600461263b565b610b8e565b34801561033957600080fd5b5061034d61034836600461285b565b610bdb565b6040516101fb9190612963565b34801561036657600080fd5b50610224610d19565b34801561037b57600080fd5b50600354600160a01b900460ff16610224565b34801561039a57600080fd5b50610254610d35565b6102546103b1366004612976565b610d87565b3480156103c257600080fd5b50610254611011565b3480156103d757600080fd5b506003546040516001600160a01b0390911681526020016101fb565b3480156103ff57600080fd5b5061025461040e3660046129c3565b611061565b34801561041f57600080fd5b506101f160085481565b34801561043557600080fd5b50610458610444366004612a8f565b63bc197c8160e01b98975050505050505050565b6040516001600160e01b031990911681526020016101fb565b34801561047d57600080fd5b5061025461048c366004612b4e565b61114c565b34801561049d57600080fd5b506101f16104ac36600461263b565b6111c3565b3480156104bd57600080fd5b506102546104cc366004612b6b565b6111f3565b6102546104df36600461263b565b611256565b3480156104f057600080fd5b506102246104ff366004612be1565b611398565b34801561051057600080fd5b5061025461051f366004612c0f565b61146b565b34801561053057600080fd5b5061045861053f366004612c31565b63f23a6e6160e01b9695505050505050565b34801561055d57600080fd5b5061025461056c366004612cad565b6114c5565b34801561057d57600080fd5b5061025461058c366004612b4e565b611560565b34801561059d57600080fd5b506102546105ac366004612b4e565b61162d565b60006001600160a01b0383166106345760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061068e57506001600160e01b031982166303a24d0760e21b145b8061065757506301ffc9a760e01b6001600160e01b0319831614610657565b6003546001600160a01b031633146106f55760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b6106fe816116b2565b50565b6060600061070e836116c9565b9050600081511161072e5760405180602001604052806000815250610759565b806107388461175d565b604051602001610749929190612d16565b6040516020818303038152906040525b9392505050565b6003546001600160a01b031633146107a85760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b6107c383838360405180602001604052806000815250611873565b505050565b6001600160a01b0385163314806107e457506107e48533611398565b6108565760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606482015260840161062b565b6108638585858585611983565b5050505050565b6003546001600160a01b031633146108b25760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b600081116108c15760006108cb565b6108cb8142612d5b565b60085550565b6003546001600160a01b031633146109195760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b6005546001600160a01b03166109715760405162461bcd60e51b815260206004820152600e60248201527f417274697374206e6f7420736574000000000000000000000000000000000000604482015260640161062b565b6006546001600160a01b03166109c95760405162461bcd60e51b815260206004820152601160248201527f446576656c6f706572206e6f7420736574000000000000000000000000000000604482015260640161062b565b4780610a175760405162461bcd60e51b815260206004820152601460248201527f4e6f206d6f6e657920696e20636f6e7472616374000000000000000000000000604482015260640161062b565b6000610a24600583612d89565b90506000610a328284612d9d565b6005546040519192506000916001600160a01b039091169083908381818185875af1925050503d8060008114610a84576040519150601f19603f3d011682016040523d82523d6000602084013e610a89565b606091505b50506006546040519192506000916001600160a01b039091169085908381818185875af1925050503d8060008114610add576040519150601f19603f3d011682016040523d82523d6000602084013e610ae2565b606091505b50509050818015610af05750805b6108635760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e64206d6f6e6579000000000000000000000000604482015260640161062b565b6003546001600160a01b03163314610b845760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b610b8c611be7565b565b6003546001600160a01b03163314610bd65760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b600755565b60608151835114610c545760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d617463680000000000000000000000000000000000000000000000606482015260840161062b565b6000835167ffffffffffffffff811115610c7057610c70612551565b604051908082528060200260200182016040528015610c99578160200160208202803683370190505b50905060005b8451811015610d1157610ce4858281518110610cbd57610cbd612db4565b6020026020010151858381518110610cd757610cd7612db4565b60200260200101516105b1565b828281518110610cf657610cf6612db4565b6020908102919091010152610d0a81612dca565b9050610c9f565b509392505050565b6000600854600014158015610d3057506008544210155b905090565b6003546001600160a01b03163314610d7d5760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b610b8c6000611c8d565b60085415801590610d9a57506008544210155b610da357600080fd5b6000805b8351811015610eee576000610dc833868481518110610cd757610cd7612db4565b9050600060028211610de457610ddf826002612d9d565b610de7565b60005b9050600081610e0230898781518110610cd757610cd7612db4565b11610e2257610e1d30888681518110610cd757610cd7612db4565b610e24565b815b9050858481518110610e3857610e38612db4565b60200260200101518110610e6557858481518110610e5857610e58612db4565b6020026020010151610e67565b805b868581518110610e7957610e79612db4565b602002602001018181525050858481518110610e9757610e97612db4565b6020026020010151610ec1888681518110610eb457610eb4612db4565b60200260200101516111c3565b610ecb9190612de5565b610ed59086612d5b565b9450505050600181610ee79190612d5b565b9050610da7565b5060008111610f3f5760405162461bcd60e51b815260206004820152601460248201527f546f6b656e73206e6f7420617661696c61626c65000000000000000000000000604482015260640161062b565b80341015610f8f5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604482015260640161062b565b34811015610ff557600033610fa48334612d9d565b604051600081818185875af1925050503d8060008114610fe0576040519150601f19603f3d011682016040523d82523d6000602084013e610fe5565b606091505b5050905080610ff357600080fd5b505b6107c33033858560405180602001604052806000815250611983565b6003546001600160a01b031633146110595760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b610b8c611cec565b336001600160a01b03831614156110e05760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c660000000000000000000000000000000000000000000000606482015260840161062b565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6003546001600160a01b031633146111945760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b6005805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600081815260096020526040812054156111eb57600082815260096020526040902054610657565b505060075490565b6003546001600160a01b0316331461123b5760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b6107c383838360405180602001604052806000815250611d74565b6008541580159061126957506008544210155b61127257600080fd5b600061127e30836105b1565b116112cb5760405162461bcd60e51b815260206004820152601360248201527f546f6b656e206e6f7420617661696c61626c6500000000000000000000000000604482015260640161062b565b60026112d733836105b1565b106113245760405162461bcd60e51b815260206004820152601860248201527f596f7520616c7265616479206f776e203220746f6b656e730000000000000000604482015260640161062b565b61132d816111c3565b341461137b5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604482015260640161062b565b6106fe303383600160405180602001604052806000815250611f49565b6004805460405163c455279160e01b81526001600160a01b038581169382019390935260009291821691841690829063c45527919060240160206040518083038186803b1580156113e857600080fd5b505afa1580156113fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114209190612e04565b6001600160a01b03161415611439576001915050610657565b6001600160a01b0380851660009081526001602090815260408083209387168352929052205460ff165b949350505050565b6003546001600160a01b031633146114b35760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b60009182526009602052604090912055565b6001600160a01b0385163314806114e157506114e18533611398565b6115535760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f7665640000000000000000000000000000000000000000000000606482015260840161062b565b6108638585858585611f49565b6003546001600160a01b031633146115a85760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b6001600160a01b0381166116245760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161062b565b6106fe81611c8d565b6003546001600160a01b031633146116755760405162461bcd60e51b81526020600482018190526024820152600080516020613003833981519152604482015260640161062b565b6006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b505050505050565b3b151590565b80516116c5906002906020840190612444565b5050565b6060600280546116d890612e21565b80601f016020809104026020016040519081016040528092919081815260200182805461170490612e21565b80156117515780601f1061172657610100808354040283529160200191611751565b820191906000526020600020905b81548152906001019060200180831161173457829003601f168201915b50505050509050919050565b6060816117815750506040805180820190915260018152600360fc1b602082015290565b8160005b81156117ab578061179581612dca565b91506117a49050600a83612d89565b9150611785565b60008167ffffffffffffffff8111156117c6576117c6612551565b6040519080825280601f01601f1916602001820160405280156117f0576020820181803683370190505b5090505b841561146357611805600183612d9d565b9150611812600a86612e5c565b61181d906030612d5b565b60f81b81838151811061183257611832612db4565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061186c600a86612d89565b94506117f4565b6001600160a01b0384166118d35760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161062b565b336118f3816000876118e4886120e7565b6118ed886120e7565b87612132565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611923908490612d5b565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461086381600087878787612184565b81518351146119e55760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b606482015260840161062b565b6001600160a01b038416611a495760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161062b565b33611a58818787878787612132565b60005b8451811015611b81576000858281518110611a7857611a78612db4565b602002602001015190506000858381518110611a9657611a96612db4565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611b295760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b606482015260840161062b565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611b66908490612d5b565b9250508190555050505080611b7a90612dca565b9050611a5b565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611bd1929190612e70565b60405180910390a46116a4818787878787612339565b600354600160a01b900460ff16611c405760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161062b565b6003805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600380546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600354600160a01b900460ff1615611d395760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161062b565b6003805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611c703390565b6001600160a01b038416611dd45760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161062b565b8151835114611e365760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b606482015260840161062b565b33611e4681600087878787612132565b60005b8451811015611ee157838181518110611e6457611e64612db4565b6020026020010151600080878481518110611e8157611e81612db4565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254611ec99190612d5b565b90915550819050611ed981612dca565b915050611e49565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611f32929190612e70565b60405180910390a461086381600087878787612339565b6001600160a01b038416611fad5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161062b565b33611fbd8187876118e4886120e7565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156120415760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b606482015260840161062b565b6000858152602081815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061207e908490612d5b565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46120de828888888888612184565b50505050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061212157612121612db4565b602090810291909101015292915050565b600354600160a01b900460ff161561217f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161062b565b6116a4565b6001600160a01b0384163b156116a45760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906121c89089908990889088908890600401612e9e565b602060405180830381600087803b1580156121e257600080fd5b505af1925050508015612212575060408051601f3d908101601f1916820190925261220f91810190612ee1565b60015b6122c85761221e612efe565b806308c379a014156122585750612233612f1a565b8061223e575061225a565b8060405162461bcd60e51b815260040161062b91906126b0565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e746572000000000000000000000000606482015260840161062b565b6001600160e01b0319811663f23a6e6160e01b146120de5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b606482015260840161062b565b6001600160a01b0384163b156116a45760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061237d9089908990889088908890600401612fa4565b602060405180830381600087803b15801561239757600080fd5b505af19250505080156123c7575060408051601f3d908101601f191682019092526123c491810190612ee1565b60015b6123d35761221e612efe565b6001600160e01b0319811663bc197c8160e01b146120de5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b606482015260840161062b565b82805461245090612e21565b90600052602060002090601f01602090048101928261247257600085556124b8565b82601f1061248b57805160ff19168380011785556124b8565b828001600101855582156124b8579182015b828111156124b857825182559160200191906001019061249d565b506124c49291506124c8565b5090565b5b808211156124c457600081556001016124c9565b6001600160a01b03811681146106fe57600080fd5b6000806040838503121561250557600080fd5b8235612510816124dd565b946020939093013593505050565b6001600160e01b0319811681146106fe57600080fd5b60006020828403121561254657600080fd5b81356107598161251e565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff8111828210171561258d5761258d612551565b6040525050565b600067ffffffffffffffff8311156125ae576125ae612551565b6040516125c5601f8501601f191660200182612567565b8091508381528484840111156125da57600080fd5b83836020830137600060208583010152509392505050565b60006020828403121561260457600080fd5b813567ffffffffffffffff81111561261b57600080fd5b8201601f8101841361262c57600080fd5b61146384823560208401612594565b60006020828403121561264d57600080fd5b5035919050565b60005b8381101561266f578181015183820152602001612657565b8381111561267e576000848401525b50505050565b6000815180845261269c816020860160208601612654565b601f01601f19169290920160200192915050565b6020815260006107596020830184612684565b6000806000606084860312156126d857600080fd5b83356126e3816124dd565b95602085013595506040909401359392505050565b600067ffffffffffffffff82111561271257612712612551565b5060051b60200190565b600082601f83011261272d57600080fd5b8135602061273a826126f8565b6040516127478282612567565b83815260059390931b850182019282810191508684111561276757600080fd5b8286015b84811015612782578035835291830191830161276b565b509695505050505050565b600082601f83011261279e57600080fd5b61075983833560208501612594565b600080600080600060a086880312156127c557600080fd5b85356127d0816124dd565b945060208601356127e0816124dd565b9350604086013567ffffffffffffffff808211156127fd57600080fd5b61280989838a0161271c565b9450606088013591508082111561281f57600080fd5b61282b89838a0161271c565b9350608088013591508082111561284157600080fd5b5061284e8882890161278d565b9150509295509295909350565b6000806040838503121561286e57600080fd5b823567ffffffffffffffff8082111561288657600080fd5b818501915085601f83011261289a57600080fd5b813560206128a7826126f8565b6040516128b48282612567565b83815260059390931b85018201928281019150898411156128d457600080fd5b948201945b838610156128fb5785356128ec816124dd565b825294820194908201906128d9565b9650508601359250508082111561291157600080fd5b5061291e8582860161271c565b9150509250929050565b600081518084526020808501945080840160005b838110156129585781518752958201959082019060010161293c565b509495945050505050565b6020815260006107596020830184612928565b6000806040838503121561298957600080fd5b823567ffffffffffffffff808211156129a157600080fd5b6129ad8683870161271c565b9350602085013591508082111561291157600080fd5b600080604083850312156129d657600080fd5b82356129e1816124dd565b9150602083013580151581146129f657600080fd5b809150509250929050565b60008083601f840112612a1357600080fd5b50813567ffffffffffffffff811115612a2b57600080fd5b6020830191508360208260051b8501011115612a4657600080fd5b9250929050565b60008083601f840112612a5f57600080fd5b50813567ffffffffffffffff811115612a7757600080fd5b602083019150836020828501011115612a4657600080fd5b60008060008060008060008060a0898b031215612aab57600080fd5b8835612ab6816124dd565b97506020890135612ac6816124dd565b9650604089013567ffffffffffffffff80821115612ae357600080fd5b612aef8c838d01612a01565b909850965060608b0135915080821115612b0857600080fd5b612b148c838d01612a01565b909650945060808b0135915080821115612b2d57600080fd5b50612b3a8b828c01612a4d565b999c989b5096995094979396929594505050565b600060208284031215612b6057600080fd5b8135610759816124dd565b600080600060608486031215612b8057600080fd5b8335612b8b816124dd565b9250602084013567ffffffffffffffff80821115612ba857600080fd5b612bb48783880161271c565b93506040860135915080821115612bca57600080fd5b50612bd78682870161271c565b9150509250925092565b60008060408385031215612bf457600080fd5b8235612bff816124dd565b915060208301356129f6816124dd565b60008060408385031215612c2257600080fd5b50508035926020909101359150565b60008060008060008060a08789031215612c4a57600080fd5b8635612c55816124dd565b95506020870135612c65816124dd565b94506040870135935060608701359250608087013567ffffffffffffffff811115612c8f57600080fd5b612c9b89828a01612a4d565b979a9699509497509295939492505050565b600080600080600060a08688031215612cc557600080fd5b8535612cd0816124dd565b94506020860135612ce0816124dd565b93506040860135925060608601359150608086013567ffffffffffffffff811115612d0a57600080fd5b61284e8882890161278d565b60008351612d28818460208801612654565b835190830190612d3c818360208801612654565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b60008219821115612d6e57612d6e612d45565b500190565b634e487b7160e01b600052601260045260246000fd5b600082612d9857612d98612d73565b500490565b600082821015612daf57612daf612d45565b500390565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612dde57612dde612d45565b5060010190565b6000816000190483118215151615612dff57612dff612d45565b500290565b600060208284031215612e1657600080fd5b8151610759816124dd565b600181811c90821680612e3557607f821691505b60208210811415612e5657634e487b7160e01b600052602260045260246000fd5b50919050565b600082612e6b57612e6b612d73565b500690565b604081526000612e836040830185612928565b8281036020840152612e958185612928565b95945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152612ed660a0830184612684565b979650505050505050565b600060208284031215612ef357600080fd5b81516107598161251e565b600060033d1115612f175760046000803e5060005160e01c5b90565b600060443d1015612f285790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715612f5857505050505090565b8285019150815181811115612f705750505050505090565b843d8701016020828501011115612f8a5750505050505090565b612f9960208286010187612567565b509095945050505050565b60006001600160a01b03808816835280871660208401525060a06040830152612fd060a0830186612928565b8281036060840152612fe28186612928565b90508281036080840152612ff68185612684565b9897505050505050505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a164736f6c6343000809000a

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

000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000061804e4800000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000000000000000000000000000000000000000000c

-----Decoded View---------------
Arg [0] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [1] : tokenIds (uint256[]): 0,1,2,3,4,5
Arg [2] : amounts (uint256[]): 11,12,12,12,11,12
Arg [3] : startTime (uint256): 1635798600

-----Encoded View---------------
18 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : 0000000000000000000000000000000000000000000000000000000061804e48
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [12] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [13] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [14] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [15] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [16] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [17] : 000000000000000000000000000000000000000000000000000000000000000c


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.