ETH Price: $3,378.45 (+4.54%)
Gas: 4.67 Gwei
 

Overview

Max Total Supply

32 GEN

Holders

16

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
jaimek.eth
0x44167790aA6C787ffFeE17aba51bf55b46C38D06
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:
IyusdiNftOpenSea

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : IyusdiNftOpenSea.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity >=0.8.0;

import "./IyusdiNftV3.sol";
import "../utils/Console.sol";

contract IyusdiNftOpenSea is IyusdiNftV3 {

  string public name;
  string public symbol;
  string public contractURI;
  
  constructor (address _operator, address _curator, string memory _uri, string memory _name, string memory _symbol, string memory _contractURI, address _proxyRegistryAddress) 
    IyusdiNftV3(_operator, _curator, _uri, _proxyRegistryAddress) {
    name = _name;
    symbol = _symbol;
    contractURI = _contractURI;
  }

  function owner() external view returns(address) {
    return curator;
  }

  function creators(uint256 id) external view returns(address) {
    return _getOgOwner(id);
  }

  function totalSupply(uint256 id) external view returns(uint256) {
    return 1;
  }

  function tokenSupply(uint256 id) external view returns(uint256) {
    return 1;
  }

  function tokenMaxSupply(uint256 id) external view returns(uint256) {
    return 1;
  }


}

File 2 of 14 : IyusdiNftV3.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity >=0.8.0;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "./IyusdiNftV3Base.sol";
import "../utils/Console.sol";

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

contract IyusdiNftV3 is IyusdiNftV3Base, ERC1155 {

  address proxyRegistryAddress;

  constructor (address _operator, address _curator, string memory _uri, address _proxyRegistryAddress) ERC1155(_uri) {
    require(_curator != address(0) && _operator != address(0), '!param');
    proxyRegistryAddress = _proxyRegistryAddress;
    curator = _curator;
    operators[_operator] = true;
    setApprovalForAll(_operator, true);
    _mint(_curator, CURATOR_ID, 1, "");
    emit CuratorMinted(_curator, CURATOR_ID);
  }

  function isApprovedForAll(address _owner, address _operator) public view virtual override returns(bool isOperator) {
    ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
    if (address(proxyRegistry.proxies(_owner)) == _operator) {
      return true;
    }
    return ERC1155.isApprovedForAll(_owner, _operator);
  }

  function setOperator(address operator, bool set) onlyCurator external {
    require(operator != address(0), '!operator');
    operators[operator] = set;
    setApprovalForAll(operator, set);
  }

  function owns(uint256 id, address owner) external view returns(bool) {
    return balanceOf(owner, id) > 0;
  }

  function mintOriginal(address owner, bytes memory data) external returns(uint256 id) {
    id = _mintOriginal(owner, data);
    _mint(owner, id, 1, "");
  }

  function mintPrint(uint256 og, address to, bytes memory data) external returns(uint256 id) {
    id = _mintPrint(og, to, data);
    _mint(to, id, 1, "");
  }

  function burnPrint(address from, uint256 id) external {
    _burnPrint(from, id);
    _burn(from, id, 1);
  }

  function _isPrintOwner(uint256 id) internal view returns(bool) {
    return balanceOf(msg.sender, id) > 0;
  }

  function _canTransfer(uint256 id, address _operator) internal view returns(bool) {
    if (operators[_operator] || _isOgId(id) || _isPrintOwner(id)) {
      return true;
    } else {
      uint256 og = _getOgId(id);
      return canTransfer[og];
    }
  }

  /***********************************|
  |        Hooks                      |
  |__________________________________*/
  function _beforeTokenTransfer(
    address _operator,
    address from,
    address to,
    uint256[] memory ids,
    uint256[] memory amounts,
    bytes memory data
  ) internal virtual override {
    super._beforeTokenTransfer(_operator, from, to, ids, amounts, data);

    for (uint256 i = 0; i < ids.length; i++) {
      uint256 id = ids[i];
      require(_canTransfer(id, _operator), '!transfer');
      if (id == CURATOR_ID) {
        curator = to;
      } else if (_isOgId(id)) {
        originalOwner[id] = to;   
      }
    }
  }

  /**
      * @dev See {IERC165-supportsInterface}.
      */
  function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
    return ERC1155.supportsInterface(interfaceId);
  }

}

File 3 of 14 : IyusdiNftV3Base.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity >=0.8.0;

contract IyusdiNftV3Base {

  event FeedItem(
    uint256 indexed id,
    uint256 indexed hash,
    uint256 timestamp,
    bytes data
  );

  event CuratorMinted(
    address owner,
    uint256 id
  );

  event OriginalMinted(
    address indexed owner,
    uint256 indexed id
  );

  event PrintMinted(
    address indexed owner,
    uint256 indexed og,
    uint256 indexed id
  );

  event PrintBurned(
    address from,
    uint256 id
  );

  struct Original {
    uint64 mintedPrints;
    uint64 printIndex;
  }

  uint256 public constant OG_MASK     = 0x00000000000000000000000000000000ffffffffffffffffffffffffffffffff;
  uint256 public constant OG_INV_MASK = 0xffffffffffffffffffffffffffffffff00000000000000000000000000000000;
  uint256 public constant CURATOR_ID  = 0x8000000000000000000000000000000000000000000000000000000000000000;

  address public curator;
  Original[] public originals;
  mapping (address => bool) public operators;
  mapping (uint256 => bool) public canTransfer;
  mapping (uint256 => address) public originalOwner;

  modifier onlyCurator() {
    require(msg.sender == curator, "!curator");
    _;
  }

  function _getOgOwner(uint256 id) internal view returns (address) {
    return id == CURATOR_ID ? curator : originalOwner[_getOgId(id)];
  }

  function originalIndex(uint256 id) external pure returns(uint256) {
    uint256 og = _getOgId(id);
    return (og >> 128) - 1;
  }

  function originalMintedPrints(uint256 id) external view returns(uint256) {
    uint256 og = _getOgId(id);
    uint256 idx = (og >> 128) - 1;
    return originals[idx].mintedPrints;
  }

  function post(uint256 id, uint256 hash, bytes memory data) external {
    require(_isOperator(), '!operator');
    uint256 og = _getOgId(id);
    address _owner = _getOgOwner(og);
    require(_owner != address(0), '!owner');
    emit FeedItem(id, hash, block.timestamp, data);
  }

  function getOgId(uint256 id) external pure returns (uint256) {
    return _getOgId(id);
  }

  function _getOgId(uint256 id) internal pure returns (uint256) {
    return id & OG_INV_MASK;
  }

  function isOgId(uint256 id) external pure returns (bool) {
    return _isOgId(id);
  }

  function _isOgId(uint256 id) internal pure returns (bool) {
    return (id & OG_MASK) == 0;
  }

  function isPrintId(uint256 id) external pure returns (bool) {
    return _isPrintId(id);
  }

  function _isPrintId(uint256 id) internal pure returns (bool) {
    return (id & OG_MASK) > 0;
  }

  function _isCurator() internal view returns(bool) {
    return msg.sender == curator;
  }

  function _isOperator() internal view returns(bool) {
    return operators[msg.sender];
  }

  function _mintOriginal(address _owner, bytes memory data) internal returns(uint256 id) {
    require(_isOperator() && _owner != address(0), '!parm');
    originals.push(Original(0, 0));
    id = originals.length << 128;
    originalOwner[id] = _owner;
    emit OriginalMinted(_owner, id);
    emit FeedItem(id, 0, block.timestamp, data);
  }

  function _mintPrint(uint256 og, address to, bytes memory data) internal returns(uint256 id) {
    require(_isOperator() && _isOgId(og), '!ogId');
    uint256 idx = (og >> 128) - 1;
    Original storage original = originals[idx];
    original.mintedPrints++;
    original.printIndex++;
    id = og | original.printIndex;
    emit PrintMinted(to, og, id);
    emit FeedItem(id, 0, block.timestamp, data);
  }

  function _burnPrint(address from, uint256 id) internal {
    require(_isOperator() && _isPrintId(id), '!printId');
    uint256 og = _getOgId(id);
    uint256 idx = (og >> 128) - 1;
    Original storage original = originals[idx];
    original.mintedPrints = original.mintedPrints - 1;
    emit PrintBurned(from, id);
  }

  function allowTransfers(uint256 id, bool can) external {
    require(_isOperator(), '!operator');
    uint256 og = _getOgId(id);
    canTransfer[og] = can;
  }

}

File 4 of 14 : Console.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity >=0.6.12;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

library Console {
  bool constant PROD = false;

  function concat(string memory a, string memory b) internal pure returns(string memory)
  {
    return string(abi.encodePacked(a, b));
  }

  function concat(string memory a, string memory b, string memory c) internal pure returns(string memory)
  {
    return string(abi.encodePacked(a, b, c));
  }

  event LogBalance(string, uint);
  function logBalance(address token, address to) internal {
    if (PROD) return;
    emit LogBalance(ERC20(token).symbol(), ERC20(token).balanceOf(to));
  }

  function logBalance(string memory s, address token, address to) internal {
    if (PROD) return;
    emit LogBalance(string(abi.encodePacked(s, '/', ERC20(token).symbol())), ERC20(token).balanceOf(to));
  }

  event LogUint(string, uint);
  function log(string memory s, uint x) internal {
    if (PROD) return;
    emit LogUint(s, x);
  }

  function log(string memory s, string memory t, uint x) internal {
    if (PROD) return;
    emit LogUint(concat(s, t), x);
  }
    
  function log(string memory s, string memory t, string memory u, uint x) internal {
    if (PROD) return;
    emit LogUint(concat(s, t, u), x);
  }
    
  event LogInt(string, int);
  function log(string memory s, int x) internal {
    if (PROD) return;
    emit LogInt(s, x);
  }
  
  event LogBytes(string, bytes);
  function log(string memory s, bytes memory x) internal {
    if (PROD) return;
    emit LogBytes(s, x);
  }
  
  event LogBytes32(string, bytes32);
  function log(string memory s, bytes32 x) internal {
    if (PROD) return;
    emit LogBytes32(s, x);
  }

  event LogAddress(string, address);
  function log(string memory s, address x) internal {
    if (PROD) return;
    emit LogAddress(s, x);
  }

  event LogBool(string, bool);
  function log(string memory s, bool x) internal {
    if (PROD) return;
    emit LogBool(s, x);
  }
}

File 5 of 14 : 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(to != address(0), "ERC1155: transfer to the zero address");
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        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");
        _balances[id][from] = fromBalance - amount;
        _balances[id][to] += amount;

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

        _doSafeTransferAcceptanceCheck(operator, 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(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );

        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");
            _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 (uint 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");
        _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 (uint 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");
            _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(to).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(to).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 6 of 14 : 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 7 of 14 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * _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 8 of 14 : 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 14 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The defaut value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overloaded;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        _approve(sender, _msgSender(), currentAllowance - amount);

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        _approve(_msgSender(), spender, currentAllowance - subtractedValue);

        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        _balances[sender] = senderBalance - amount;
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        _balances[account] = accountBalance - amount;
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

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

File 10 of 14 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 11 of 14 : 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;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 12 of 14 : 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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 13 of 14 : 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 14 of 14 : 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
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"_curator","type":"address"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_contractURI","type":"string"},{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"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":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"CuratorMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"hash","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"FeedItem","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"OriginalMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"PrintBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"og","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"PrintMinted","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"},{"inputs":[],"name":"CURATOR_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OG_INV_MASK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OG_MASK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bool","name":"can","type":"bool"}],"name":"allowTransfers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"burnPrint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"canTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"creators","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getOgId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","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":"uint256","name":"id","type":"uint256"}],"name":"isOgId","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"isPrintId","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintOriginal","outputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"og","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintPrint","outputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"operators","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"originalIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"originalMintedPrints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"originalOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"originals","outputs":[{"internalType":"uint64","name":"mintedPrints","type":"uint64"},{"internalType":"uint64","name":"printIndex","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"owns","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"hash","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"post","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"set","type":"bool"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b50604051620034ad380380620034ad8339810160408190526200003491620009e6565b86868683816200004481620001b8565b506001600160a01b038316158015906200006657506001600160a01b03841615155b620000a15760405162461bcd60e51b815260206004820152600660248201526521706172616d60d01b60448201526064015b60405180910390fd5b600880546001600160a01b038084166001600160a01b0319928316179092556000805486841692169190911781559085168152600260205260409020805460ff19166001908117909155620000f8908590620001d1565b6200012083600160ff1b600160405180602001604052806000815250620002ee60201b60201c565b604080516001600160a01b0385168152600160ff1b60208201527fe74a6f928b1c4c1bb939a1d64b8abd0113cc5cf29d57bd11d5602d3c29a1f6eb910160405180910390a1505085516200017e9250600991506020870190620008b2565b5082516200019490600a906020860190620008b2565b508151620001aa90600b906020850190620008b2565b505050505050505062000d45565b8051620001cd906007906020840190620008b2565b5050565b6001600160a01b038216620001e562000420565b6001600160a01b03161415620002505760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840162000098565b80600660006200025f62000420565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155620002a562000420565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051620002e2911515815260200190565b60405180910390a35050565b6001600160a01b038416620003505760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840162000098565b60006200035c62000420565b90506200038381600087620003718862000425565b6200037c8862000425565b8762000481565b60008481526005602090815260408083206001600160a01b038916845290915281208054859290620003b790849062000b8e565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46200041981600087878787620005a6565b5050505050565b335b90565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106200046e57634e487b7160e01b600052603260045260246000fd5b602090810291909101015290505b919050565b6200049c8686868686866200078360201b620009b61760201c565b60005b83518110156200059d576000848281518110620004cc57634e487b7160e01b600052603260045260246000fd5b60200260200101519050620004e881896200078b60201b60201c565b620005225760405162461bcd60e51b815260206004820152600960248201526810ba3930b739b332b960b91b604482015260640162000098565b600160ff1b8114156200055057600080546001600160a01b0319166001600160a01b03881617905562000587565b6001600160801b0381166200058757600081815260046020526040902080546001600160a01b0319166001600160a01b0388161790555b5080620005948162000c48565b9150506200049f565b50505050505050565b620005c5846001600160a01b03166200080060201b620011ea1760201c565b15620007835760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619062000601908990899088908890889060040162000b32565b602060405180830381600087803b1580156200061c57600080fd5b505af19250505080156200064f575060408051601f3d908101601f191682019092526200064c9181019062000ad3565b60015b62000710576200065e62000c92565b806308c379a014156200069f57506200067662000caa565b80620006835750620006a1565b8060405162461bcd60e51b815260040162000098919062000b79565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e746572000000000000000000000000606482015260840162000098565b6001600160e01b0319811663f23a6e6160e01b146200059d5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b606482015260840162000098565b505050505050565b6001600160a01b03811660009081526002602052604081205460ff1680620007ba57506001600160801b038316155b80620007cc5750620007cc8362000806565b15620007db57506001620007fa565b506001600160801b0319821660009081526003602052604090205460ff165b92915050565b3b151590565b6000806200081533846200081c565b1192915050565b60006001600160a01b0383166200088a5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b606482015260840162000098565b5060009081526005602090815260408083206001600160a01b03949094168352929052205490565b828054620008c09062000bdc565b90600052602060002090601f016020900481019282620008e457600085556200092f565b82601f10620008ff57805160ff19168380011785556200092f565b828001600101855582156200092f579182015b828111156200092f57825182559160200191906001019062000912565b506200093d92915062000941565b5090565b5b808211156200093d576000815560010162000942565b80516001600160a01b03811681146200047c57600080fd5b600082601f83011262000981578081fd5b81516001600160401b038111156200099d576200099d62000c7c565b604051620009b6601f8301601f19166020018262000c19565b818152846020838601011115620009cb578283fd5b620009de82602083016020870162000ba9565b949350505050565b600080600080600080600060e0888a03121562000a01578283fd5b62000a0c8862000958565b965062000a1c6020890162000958565b60408901519096506001600160401b038082111562000a39578485fd5b62000a478b838c0162000970565b965060608a015191508082111562000a5d578485fd5b62000a6b8b838c0162000970565b955060808a015191508082111562000a81578485fd5b62000a8f8b838c0162000970565b945060a08a015191508082111562000aa5578384fd5b5062000ab48a828b0162000970565b92505062000ac560c0890162000958565b905092959891949750929550565b60006020828403121562000ae5578081fd5b81516001600160e01b03198116811462000afd578182fd5b9392505050565b6000815180845262000b1e81602086016020860162000ba9565b601f01601f19169290920160200192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009062000b6e9083018462000b04565b979650505050505050565b60006020825262000afd602083018462000b04565b6000821982111562000ba45762000ba462000c66565b500190565b60005b8381101562000bc657818101518382015260200162000bac565b8381111562000bd6576000848401525b50505050565b60028104600182168062000bf157607f821691505b6020821081141562000c1357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b038111828210171562000c415762000c4162000c7c565b6040525050565b600060001982141562000c5f5762000c5f62000c66565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156200042257600481823e5160e01c90565b600060443d101562000cbc5762000422565b6040516003193d81016004833e81513d6001600160401b03808311602484018310171562000cef57505050505062000422565b828501915081518181111562000d0b5750505050505062000422565b843d870101602082850101111562000d295750505050505062000422565b62000d3a6020828601018762000c19565b509094505050505090565b6127588062000d556000396000f3fe608060405234801561001057600080fd5b506004361061021a5760003560e01c80636e8c8e3911610125578063bddc3b87116100ad578063e66f53b71161007c578063e66f53b7146104c6578063e8a3d485146104d9578063e985e9c5146104e1578063f242432a146104f4578063f508baa8146105075761021a565b8063bddc3b8714610482578063cd53d08e1461048d578063d86da278146104a0578063da8fa146146104b35761021a565b8063966fdaf4116100f4578063966fdaf414610416578063a0b89fcc14610429578063a22cb4651461043c578063ac446a2d1461044f578063bd85b0391461021f5761021a565b80636e8c8e39146103e05780638da5cb5b146103f35780639147cd11146103fb57806395d89b411461040e5761021a565b806340bb154d116101a857806350ecc77d1161017757806350ecc77d14610385578063558a7297146103985780635a2d8fab146103ab5780635f26dad7146103be5780635fe0d490146103cd5761021a565b806340bb154d146102ee578063481780d71461032f5780634d4f6ea9146103425780634e1273f4146103655761021a565b80630e89341c116101ef5780630e89341c1461029057806313e7c9d8146102a35780632693ebf21461021f5780632eb2c2d6146102c6578063314de2f5146102db5761021a565b80624221f01461021f578062fdd58e1461024557806301ffc9a71461025857806306fdde031461027b575b600080fd5b61023261022d366004612183565b610515565b6040519081526020015b60405180910390f35b610232610253366004612044565b61051d565b61026b61026636600461212f565b6105b9565b604051901515815260200161023c565b6102836105c4565b60405161023c91906123d7565b61028361029e366004612183565b610652565b61026b6102b1366004611e60565b60026020526000908152604090205460ff1681565b6102d96102d4366004611eb4565b6106e6565b005b6102d96102e9366004612044565b6109be565b6103176102fc366004612183565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161023c565b61023261033d366004612183565b6109d8565b61026b610350366004612183565b60036020526000908152604090205460ff1681565b61037861037336600461206f565b6109fb565b60405161023c9190612396565b61026b610393366004612183565b610b5c565b6102d96103a6366004611fc3565b610b6f565b61026b6103b9366004612183565b610c08565b6102326001600160801b031981565b61026b6103db36600461219b565b610c1a565b6102326103ee366004611ff7565b610c2f565b610317610c59565b610232610409366004612183565b610c69565b610283610c7b565b6102326104243660046121bf565b610c88565b610232610437366004612183565b610cb3565b6102d961044a366004611fc3565b610d10565b61046261045d366004612183565b610df4565b604080516001600160401b0393841681529290911660208301520161023c565b610232600160ff1b81565b61031761049b366004612183565b610e29565b6102d96104ae366004612215565b610e34565b6102d96104c1366004612237565b610e92565b600054610317906001600160a01b031681565b610283610f5a565b61026b6104ef366004611e7c565b610f67565b6102d9610502366004611f5d565b611037565b6102326001600160801b0381565b60015b919050565b60006001600160a01b03831661058e5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526005602090815260408083206001600160a01b03861684529091529020545b92915050565b60006105b3826111f0565b600980546105d190612577565b80601f01602080910402602001604051908101604052809291908181526020018280546105fd90612577565b801561064a5780601f1061061f5761010080835404028352916020019161064a565b820191906000526020600020905b81548152906001019060200180831161062d57829003601f168201915b505050505081565b60606007805461066190612577565b80601f016020809104026020016040519081016040528092919081815260200182805461068d90612577565b80156106da5780601f106106af576101008083540402835291602001916106da565b820191906000526020600020905b8154815290600101906020018083116106bd57829003601f168201915b50505050509050919050565b81518351146107485760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610585565b6001600160a01b03841661076e5760405162461bcd60e51b815260040161058590612455565b6001600160a01b03851633148061078a575061078a85336104ef565b6107f15760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610585565b33610800818787878787611240565b60005b845181101561095057600085828151811061082e57634e487b7160e01b600052603260045260246000fd5b60200260200101519050600085838151811061085a57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526005835260408082206001600160a01b038e1683529093529190912054909150818110156108ab5760405162461bcd60e51b81526004016105859061249a565b6108b58282612538565b6005600085815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002081905550816005600085815260200190815260200160002060008b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546109359190612520565b9250508190555050505080610949906125de565b9050610803565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516109a09291906123a9565b60405180910390a46109b681878787878761132f565b505050505050565b6109c8828261149a565b6109d4828260016115c3565b5050565b60006001600160801b031982166109f46001608085901c612538565b9392505050565b60608151835114610a605760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610585565b600083516001600160401b03811115610a8957634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610ab2578160200160208202803683370190505b50905060005b8451811015610b5457610b19858281518110610ae457634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610b0c57634e487b7160e01b600052603260045260246000fd5b602002602001015161051d565b828281518110610b3957634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610b4d816125de565b9050610ab8565b509392505050565b60006001600160801b03821615156105b3565b6000546001600160a01b03163314610bb45760405162461bcd60e51b815260206004820152600860248201526710b1bab930ba37b960c11b6044820152606401610585565b6001600160a01b038216610bda5760405162461bcd60e51b815260040161058590612432565b6001600160a01b0382166000908152600260205260409020805460ff19168215151790556109d48282610d10565b60006001600160801b038216156105b3565b600080610c27838561051d565b119392505050565b6000610c3b8383611748565b90506105b383826001604051806020016040528060008152506118c9565b6000546001600160a01b03165b90565b60006001600160801b031982166105b3565b600a80546105d190612577565b6000610c958484846119d3565b90506109f483826001604051806020016040528060008152506118c9565b60006001600160801b0319821681610cd06001608086901c612538565b905060018181548110610cf357634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160401b0316949350505050565b336001600160a01b0383161415610d7b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610585565b3360008181526006602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610de8911515815260200190565b60405180910390a35050565b60018181548110610e0457600080fd5b6000918252602090912001546001600160401b038082169250600160401b9091041682565b60006105b382611b86565b3360009081526002602052604090205460ff16610e635760405162461bcd60e51b815260040161058590612432565b60006001600160801b031983166000908152600360205260409020805460ff1916921515929092179091555050565b3360009081526002602052604090205460ff16610ec15760405162461bcd60e51b815260040161058590612432565b6001600160801b031983166000610ed782611b86565b90506001600160a01b038116610f185760405162461bcd60e51b815260206004820152600660248201526510b7bbb732b960d11b6044820152606401610585565b83857f2b6d8e42070a492f4bd718fb5dcff97afb9bf6a6fba87cb00d84825d4936d8a34286604051610f4b9291906124e4565b60405180910390a35050505050565b600b80546105d190612577565b60085460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b158015610fb457600080fd5b505afa158015610fc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fec9190612167565b6001600160a01b031614156110055760019150506105b3565b6001600160a01b0380851660009081526006602090815260408083209387168352929052205460ff165b949350505050565b6001600160a01b03841661105d5760405162461bcd60e51b815260040161058590612455565b6001600160a01b038516331480611079575061107985336104ef565b6110d75760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610585565b336110f68187876110e788611bcc565b6110f088611bcc565b87611240565b60008481526005602090815260408083206001600160a01b038a168452909152902054838110156111395760405162461bcd60e51b81526004016105859061249a565b6111438482612538565b60008681526005602090815260408083206001600160a01b038c81168552925280832093909355881681529081208054869290611181908490612520565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46111e1828888888888611c25565b50505050505050565b3b151590565b60006001600160e01b03198216636cdb3d1360e11b148061122157506001600160e01b031982166303a24d0760e21b145b806105b357506301ffc9a760e01b6001600160e01b03198316146105b3565b60005b83518110156111e157600084828151811061126e57634e487b7160e01b600052603260045260246000fd5b602002602001015190506112828189611cef565b6112ba5760405162461bcd60e51b815260206004820152600960248201526810ba3930b739b332b960b91b6044820152606401610585565b600160ff1b8114156112e657600080546001600160a01b0319166001600160a01b03881617905561131c565b6001600160801b03811661131c57600081815260046020526040902080546001600160a01b0319166001600160a01b0388161790555b5080611327816125de565b915050611243565b6001600160a01b0384163b156109b65760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061137390899089908890889088906004016122f3565b602060405180830381600087803b15801561138d57600080fd5b505af19250505080156113bd575060408051601f3d908101601f191682019092526113ba9181019061214b565b60015b61146a576113c961264c565b806308c379a0141561140357506113de612663565b806113e95750611405565b8060405162461bcd60e51b815260040161058591906123d7565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610585565b6001600160e01b0319811663bc197c8160e01b146111e15760405162461bcd60e51b8152600401610585906123ea565b3360009081526002602052604090205460ff1680156114c157506001600160801b03811615155b6114f85760405162461bcd60e51b8152602060048201526008602482015267085c1c9a5b9d125960c21b6044820152606401610585565b6001600160801b0319811660006115146001608085901c612538565b905060006001828154811061153957634e487b7160e01b600052603260045260246000fd5b6000918252602090912001805490915061155e906001906001600160401b031661254f565b815467ffffffffffffffff19166001600160401b0391909116178155604080516001600160a01b0387168152602081018690527fba1040ea34299d890daee4604bb239944429a4125b50d65c2ddb875fd4cff2ac910160405180910390a15050505050565b6001600160a01b0383166116255760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610585565b336116548185600061163687611bcc565b61163f87611bcc565b60405180602001604052806000815250611240565b60008381526005602090815260408083206001600160a01b0388168452909152902054828110156116d35760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610585565b6116dd8382612538565b60008581526005602090815260408083206001600160a01b038a811680865291845282852095909555815189815292830188905292938616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b3360009081526002602052604081205460ff16801561176f57506001600160a01b03831615155b6117a35760405162461bcd60e51b8152602060048201526005602482015264217061726d60d81b6044820152606401610585565b506040805180820182526000808252602080830182815260018054808201825581855294517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf69095018054925167ffffffffffffffff199093166001600160401b03968716176fffffffffffffffff00000000000000001916600160401b969093169590950291909117909355915460801b808252600490925282812080546001600160a01b0319166001600160a01b03871690811790915592519192839290917f430d3670600509abb2ab11c4f0209961c2d706a329219f6a93ced4d5ffa6662791a36000817f2b6d8e42070a492f4bd718fb5dcff97afb9bf6a6fba87cb00d84825d4936d8a342856040516118bb9291906124e4565b60405180910390a392915050565b6001600160a01b0384166119295760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610585565b3361193a816000876110e788611bcc565b60008481526005602090815260408083206001600160a01b03891684529091528120805485929061196c908490612520565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46119cc81600087878787611c25565b5050505050565b3360009081526002602052604081205460ff1680156119f957506001600160801b038416155b611a2d5760405162461bcd60e51b8152602060048201526005602482015264085bd9d25960da1b6044820152606401610585565b6000611a3e6001608087901c612538565b9050600060018281548110611a6357634e487b7160e01b600052603260045260246000fd5b6000918252602082200180549092506001600160401b0316908290611a87836125f9565b82546101009290920a6001600160401b038181021990931691831602179091558254600160401b9004169050816008611abf836125f9565b91906101000a8154816001600160401b0302191690836001600160401b03160217905550508060000160089054906101000a90046001600160401b03166001600160401b0316861792508286866001600160a01b03167f78117db0a44e18b1d42102beef6061f83efef17a59f7c622628c7e841913ea2d60405160405180910390a46000837f2b6d8e42070a492f4bd718fb5dcff97afb9bf6a6fba87cb00d84825d4936d8a34287604051611b759291906124e4565b60405180910390a350509392505050565b6000600160ff1b8214611bbb576001600160801b031982166000908152600460205260409020546001600160a01b03166105b3565b50506000546001600160a01b031690565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611c1457634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b156109b65760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611c699089908990889088908890600401612351565b602060405180830381600087803b158015611c8357600080fd5b505af1925050508015611cb3575060408051601f3d908101601f19168201909252611cb09181019061214b565b60015b611cbf576113c961264c565b6001600160e01b0319811663f23a6e6160e01b146111e15760405162461bcd60e51b8152600401610585906123ea565b6001600160a01b03811660009081526002602052604081205460ff1680611d1d57506001600160801b038316155b80611d2c5750611d2c83611d5c565b15611d39575060016105b3565b506001600160801b0319821660009081526003602052604090205460ff166105b3565b600080611d69338461051d565b1192915050565b600082601f830112611d80578081fd5b81356020611d8d826124fd565b604051611d9a82826125b2565b838152828101915085830183850287018401881015611db7578586fd5b855b85811015611dd557813584529284019290840190600101611db9565b5090979650505050505050565b8035801515811461051857600080fd5b600082601f830112611e02578081fd5b81356001600160401b03811115611e1b57611e1b612636565b604051611e32601f8301601f1916602001826125b2565b818152846020838601011115611e46578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215611e71578081fd5b81356109f4816126f4565b60008060408385031215611e8e578081fd5b8235611e99816126f4565b91506020830135611ea9816126f4565b809150509250929050565b600080600080600060a08688031215611ecb578081fd5b8535611ed6816126f4565b94506020860135611ee6816126f4565b935060408601356001600160401b0380821115611f01578283fd5b611f0d89838a01611d70565b94506060880135915080821115611f22578283fd5b611f2e89838a01611d70565b93506080880135915080821115611f43578283fd5b50611f5088828901611df2565b9150509295509295909350565b600080600080600060a08688031215611f74578081fd5b8535611f7f816126f4565b94506020860135611f8f816126f4565b9350604086013592506060860135915060808601356001600160401b03811115611fb7578182fd5b611f5088828901611df2565b60008060408385031215611fd5578182fd5b8235611fe0816126f4565b9150611fee60208401611de2565b90509250929050565b60008060408385031215612009578182fd5b8235612014816126f4565b915060208301356001600160401b0381111561202e578182fd5b61203a85828601611df2565b9150509250929050565b60008060408385031215612056578182fd5b8235612061816126f4565b946020939093013593505050565b60008060408385031215612081578182fd5b82356001600160401b0380821115612097578384fd5b818501915085601f8301126120aa578384fd5b813560206120b7826124fd565b6040516120c482826125b2565b8381528281019150858301838502870184018b10156120e1578889fd5b8896505b8487101561210c5780356120f8816126f4565b8352600196909601959183019183016120e5565b5096505086013592505080821115612122578283fd5b5061203a85828601611d70565b600060208284031215612140578081fd5b81356109f48161270c565b60006020828403121561215c578081fd5b81516109f48161270c565b600060208284031215612178578081fd5b81516109f4816126f4565b600060208284031215612194578081fd5b5035919050565b600080604083850312156121ad578182fd5b823591506020830135611ea9816126f4565b6000806000606084860312156121d3578081fd5b8335925060208401356121e5816126f4565b915060408401356001600160401b038111156121ff578182fd5b61220b86828701611df2565b9150509250925092565b60008060408385031215612227578182fd5b82359150611fee60208401611de2565b60008060006060848603121561224b578081fd5b833592506020840135915060408401356001600160401b038111156121ff578182fd5b6000815180845260208085019450808401835b8381101561229d57815187529582019590820190600101612281565b509495945050505050565b60008151808452815b818110156122cd576020818501810151868301820152016122b1565b818111156122de5782602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b0386811682528516602082015260a06040820181905260009061231f9083018661226e565b8281036060840152612331818661226e565b9050828103608084015261234581856122a8565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061238b908301846122a8565b979650505050505050565b6000602082526109f4602083018461226e565b6000604082526123bc604083018561226e565b82810360208401526123ce818561226e565b95945050505050565b6000602082526109f460208301846122a8565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526009908201526810b7b832b930ba37b960b91b604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60008382526040602083015261102f60408301846122a8565b60006001600160401b0382111561251657612516612636565b5060209081020190565b6000821982111561253357612533612620565b500190565b60008282101561254a5761254a612620565b500390565b60006001600160401b038381169083168181101561256f5761256f612620565b039392505050565b60028104600182168061258b57607f821691505b602082108114156125ac57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b03811182821017156125d7576125d7612636565b6040525050565b60006000198214156125f2576125f2612620565b5060010190565b60006001600160401b038083168181141561261657612616612620565b6001019392505050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115610c6657600481823e5160e01c90565b600060443d101561267357610c66565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156126a4575050505050610c66565b82850191508151818111156126be57505050505050610c66565b843d87010160208285010111156126da57505050505050610c66565b6126e9602082860101876125b2565b509094505050505090565b6001600160a01b038116811461270957600080fd5b50565b6001600160e01b03198116811461270957600080fdfea2646970667358221220d810afb8d3a26b9c7486f38256c8dc7d773e7647f5cf4c0a80e8c235c868da6264736f6c63430008020033000000000000000000000000769e5c77738a2e1e9e61420b4e1f64d057e46c16000000000000000000000000a3b6759fff7384699bf3b8f1f008ca0ec478366900000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000002768747470733a2f2f6979757364692e64657369676e2f6170692f6d657461646174612f7b69647d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a47656e6572617469766500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000347454e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002d68747470733a2f2f6979757364692e64657369676e2f6170692f6d657461646174612f636f6e7472616374563300000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061021a5760003560e01c80636e8c8e3911610125578063bddc3b87116100ad578063e66f53b71161007c578063e66f53b7146104c6578063e8a3d485146104d9578063e985e9c5146104e1578063f242432a146104f4578063f508baa8146105075761021a565b8063bddc3b8714610482578063cd53d08e1461048d578063d86da278146104a0578063da8fa146146104b35761021a565b8063966fdaf4116100f4578063966fdaf414610416578063a0b89fcc14610429578063a22cb4651461043c578063ac446a2d1461044f578063bd85b0391461021f5761021a565b80636e8c8e39146103e05780638da5cb5b146103f35780639147cd11146103fb57806395d89b411461040e5761021a565b806340bb154d116101a857806350ecc77d1161017757806350ecc77d14610385578063558a7297146103985780635a2d8fab146103ab5780635f26dad7146103be5780635fe0d490146103cd5761021a565b806340bb154d146102ee578063481780d71461032f5780634d4f6ea9146103425780634e1273f4146103655761021a565b80630e89341c116101ef5780630e89341c1461029057806313e7c9d8146102a35780632693ebf21461021f5780632eb2c2d6146102c6578063314de2f5146102db5761021a565b80624221f01461021f578062fdd58e1461024557806301ffc9a71461025857806306fdde031461027b575b600080fd5b61023261022d366004612183565b610515565b6040519081526020015b60405180910390f35b610232610253366004612044565b61051d565b61026b61026636600461212f565b6105b9565b604051901515815260200161023c565b6102836105c4565b60405161023c91906123d7565b61028361029e366004612183565b610652565b61026b6102b1366004611e60565b60026020526000908152604090205460ff1681565b6102d96102d4366004611eb4565b6106e6565b005b6102d96102e9366004612044565b6109be565b6103176102fc366004612183565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161023c565b61023261033d366004612183565b6109d8565b61026b610350366004612183565b60036020526000908152604090205460ff1681565b61037861037336600461206f565b6109fb565b60405161023c9190612396565b61026b610393366004612183565b610b5c565b6102d96103a6366004611fc3565b610b6f565b61026b6103b9366004612183565b610c08565b6102326001600160801b031981565b61026b6103db36600461219b565b610c1a565b6102326103ee366004611ff7565b610c2f565b610317610c59565b610232610409366004612183565b610c69565b610283610c7b565b6102326104243660046121bf565b610c88565b610232610437366004612183565b610cb3565b6102d961044a366004611fc3565b610d10565b61046261045d366004612183565b610df4565b604080516001600160401b0393841681529290911660208301520161023c565b610232600160ff1b81565b61031761049b366004612183565b610e29565b6102d96104ae366004612215565b610e34565b6102d96104c1366004612237565b610e92565b600054610317906001600160a01b031681565b610283610f5a565b61026b6104ef366004611e7c565b610f67565b6102d9610502366004611f5d565b611037565b6102326001600160801b0381565b60015b919050565b60006001600160a01b03831661058e5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526005602090815260408083206001600160a01b03861684529091529020545b92915050565b60006105b3826111f0565b600980546105d190612577565b80601f01602080910402602001604051908101604052809291908181526020018280546105fd90612577565b801561064a5780601f1061061f5761010080835404028352916020019161064a565b820191906000526020600020905b81548152906001019060200180831161062d57829003601f168201915b505050505081565b60606007805461066190612577565b80601f016020809104026020016040519081016040528092919081815260200182805461068d90612577565b80156106da5780601f106106af576101008083540402835291602001916106da565b820191906000526020600020905b8154815290600101906020018083116106bd57829003601f168201915b50505050509050919050565b81518351146107485760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610585565b6001600160a01b03841661076e5760405162461bcd60e51b815260040161058590612455565b6001600160a01b03851633148061078a575061078a85336104ef565b6107f15760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610585565b33610800818787878787611240565b60005b845181101561095057600085828151811061082e57634e487b7160e01b600052603260045260246000fd5b60200260200101519050600085838151811061085a57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526005835260408082206001600160a01b038e1683529093529190912054909150818110156108ab5760405162461bcd60e51b81526004016105859061249a565b6108b58282612538565b6005600085815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002081905550816005600085815260200190815260200160002060008b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546109359190612520565b9250508190555050505080610949906125de565b9050610803565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516109a09291906123a9565b60405180910390a46109b681878787878761132f565b505050505050565b6109c8828261149a565b6109d4828260016115c3565b5050565b60006001600160801b031982166109f46001608085901c612538565b9392505050565b60608151835114610a605760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610585565b600083516001600160401b03811115610a8957634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610ab2578160200160208202803683370190505b50905060005b8451811015610b5457610b19858281518110610ae457634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610b0c57634e487b7160e01b600052603260045260246000fd5b602002602001015161051d565b828281518110610b3957634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610b4d816125de565b9050610ab8565b509392505050565b60006001600160801b03821615156105b3565b6000546001600160a01b03163314610bb45760405162461bcd60e51b815260206004820152600860248201526710b1bab930ba37b960c11b6044820152606401610585565b6001600160a01b038216610bda5760405162461bcd60e51b815260040161058590612432565b6001600160a01b0382166000908152600260205260409020805460ff19168215151790556109d48282610d10565b60006001600160801b038216156105b3565b600080610c27838561051d565b119392505050565b6000610c3b8383611748565b90506105b383826001604051806020016040528060008152506118c9565b6000546001600160a01b03165b90565b60006001600160801b031982166105b3565b600a80546105d190612577565b6000610c958484846119d3565b90506109f483826001604051806020016040528060008152506118c9565b60006001600160801b0319821681610cd06001608086901c612538565b905060018181548110610cf357634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160401b0316949350505050565b336001600160a01b0383161415610d7b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610585565b3360008181526006602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610de8911515815260200190565b60405180910390a35050565b60018181548110610e0457600080fd5b6000918252602090912001546001600160401b038082169250600160401b9091041682565b60006105b382611b86565b3360009081526002602052604090205460ff16610e635760405162461bcd60e51b815260040161058590612432565b60006001600160801b031983166000908152600360205260409020805460ff1916921515929092179091555050565b3360009081526002602052604090205460ff16610ec15760405162461bcd60e51b815260040161058590612432565b6001600160801b031983166000610ed782611b86565b90506001600160a01b038116610f185760405162461bcd60e51b815260206004820152600660248201526510b7bbb732b960d11b6044820152606401610585565b83857f2b6d8e42070a492f4bd718fb5dcff97afb9bf6a6fba87cb00d84825d4936d8a34286604051610f4b9291906124e4565b60405180910390a35050505050565b600b80546105d190612577565b60085460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b158015610fb457600080fd5b505afa158015610fc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fec9190612167565b6001600160a01b031614156110055760019150506105b3565b6001600160a01b0380851660009081526006602090815260408083209387168352929052205460ff165b949350505050565b6001600160a01b03841661105d5760405162461bcd60e51b815260040161058590612455565b6001600160a01b038516331480611079575061107985336104ef565b6110d75760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610585565b336110f68187876110e788611bcc565b6110f088611bcc565b87611240565b60008481526005602090815260408083206001600160a01b038a168452909152902054838110156111395760405162461bcd60e51b81526004016105859061249a565b6111438482612538565b60008681526005602090815260408083206001600160a01b038c81168552925280832093909355881681529081208054869290611181908490612520565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46111e1828888888888611c25565b50505050505050565b3b151590565b60006001600160e01b03198216636cdb3d1360e11b148061122157506001600160e01b031982166303a24d0760e21b145b806105b357506301ffc9a760e01b6001600160e01b03198316146105b3565b60005b83518110156111e157600084828151811061126e57634e487b7160e01b600052603260045260246000fd5b602002602001015190506112828189611cef565b6112ba5760405162461bcd60e51b815260206004820152600960248201526810ba3930b739b332b960b91b6044820152606401610585565b600160ff1b8114156112e657600080546001600160a01b0319166001600160a01b03881617905561131c565b6001600160801b03811661131c57600081815260046020526040902080546001600160a01b0319166001600160a01b0388161790555b5080611327816125de565b915050611243565b6001600160a01b0384163b156109b65760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061137390899089908890889088906004016122f3565b602060405180830381600087803b15801561138d57600080fd5b505af19250505080156113bd575060408051601f3d908101601f191682019092526113ba9181019061214b565b60015b61146a576113c961264c565b806308c379a0141561140357506113de612663565b806113e95750611405565b8060405162461bcd60e51b815260040161058591906123d7565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610585565b6001600160e01b0319811663bc197c8160e01b146111e15760405162461bcd60e51b8152600401610585906123ea565b3360009081526002602052604090205460ff1680156114c157506001600160801b03811615155b6114f85760405162461bcd60e51b8152602060048201526008602482015267085c1c9a5b9d125960c21b6044820152606401610585565b6001600160801b0319811660006115146001608085901c612538565b905060006001828154811061153957634e487b7160e01b600052603260045260246000fd5b6000918252602090912001805490915061155e906001906001600160401b031661254f565b815467ffffffffffffffff19166001600160401b0391909116178155604080516001600160a01b0387168152602081018690527fba1040ea34299d890daee4604bb239944429a4125b50d65c2ddb875fd4cff2ac910160405180910390a15050505050565b6001600160a01b0383166116255760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610585565b336116548185600061163687611bcc565b61163f87611bcc565b60405180602001604052806000815250611240565b60008381526005602090815260408083206001600160a01b0388168452909152902054828110156116d35760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610585565b6116dd8382612538565b60008581526005602090815260408083206001600160a01b038a811680865291845282852095909555815189815292830188905292938616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b3360009081526002602052604081205460ff16801561176f57506001600160a01b03831615155b6117a35760405162461bcd60e51b8152602060048201526005602482015264217061726d60d81b6044820152606401610585565b506040805180820182526000808252602080830182815260018054808201825581855294517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf69095018054925167ffffffffffffffff199093166001600160401b03968716176fffffffffffffffff00000000000000001916600160401b969093169590950291909117909355915460801b808252600490925282812080546001600160a01b0319166001600160a01b03871690811790915592519192839290917f430d3670600509abb2ab11c4f0209961c2d706a329219f6a93ced4d5ffa6662791a36000817f2b6d8e42070a492f4bd718fb5dcff97afb9bf6a6fba87cb00d84825d4936d8a342856040516118bb9291906124e4565b60405180910390a392915050565b6001600160a01b0384166119295760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610585565b3361193a816000876110e788611bcc565b60008481526005602090815260408083206001600160a01b03891684529091528120805485929061196c908490612520565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46119cc81600087878787611c25565b5050505050565b3360009081526002602052604081205460ff1680156119f957506001600160801b038416155b611a2d5760405162461bcd60e51b8152602060048201526005602482015264085bd9d25960da1b6044820152606401610585565b6000611a3e6001608087901c612538565b9050600060018281548110611a6357634e487b7160e01b600052603260045260246000fd5b6000918252602082200180549092506001600160401b0316908290611a87836125f9565b82546101009290920a6001600160401b038181021990931691831602179091558254600160401b9004169050816008611abf836125f9565b91906101000a8154816001600160401b0302191690836001600160401b03160217905550508060000160089054906101000a90046001600160401b03166001600160401b0316861792508286866001600160a01b03167f78117db0a44e18b1d42102beef6061f83efef17a59f7c622628c7e841913ea2d60405160405180910390a46000837f2b6d8e42070a492f4bd718fb5dcff97afb9bf6a6fba87cb00d84825d4936d8a34287604051611b759291906124e4565b60405180910390a350509392505050565b6000600160ff1b8214611bbb576001600160801b031982166000908152600460205260409020546001600160a01b03166105b3565b50506000546001600160a01b031690565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611c1457634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b156109b65760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611c699089908990889088908890600401612351565b602060405180830381600087803b158015611c8357600080fd5b505af1925050508015611cb3575060408051601f3d908101601f19168201909252611cb09181019061214b565b60015b611cbf576113c961264c565b6001600160e01b0319811663f23a6e6160e01b146111e15760405162461bcd60e51b8152600401610585906123ea565b6001600160a01b03811660009081526002602052604081205460ff1680611d1d57506001600160801b038316155b80611d2c5750611d2c83611d5c565b15611d39575060016105b3565b506001600160801b0319821660009081526003602052604090205460ff166105b3565b600080611d69338461051d565b1192915050565b600082601f830112611d80578081fd5b81356020611d8d826124fd565b604051611d9a82826125b2565b838152828101915085830183850287018401881015611db7578586fd5b855b85811015611dd557813584529284019290840190600101611db9565b5090979650505050505050565b8035801515811461051857600080fd5b600082601f830112611e02578081fd5b81356001600160401b03811115611e1b57611e1b612636565b604051611e32601f8301601f1916602001826125b2565b818152846020838601011115611e46578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215611e71578081fd5b81356109f4816126f4565b60008060408385031215611e8e578081fd5b8235611e99816126f4565b91506020830135611ea9816126f4565b809150509250929050565b600080600080600060a08688031215611ecb578081fd5b8535611ed6816126f4565b94506020860135611ee6816126f4565b935060408601356001600160401b0380821115611f01578283fd5b611f0d89838a01611d70565b94506060880135915080821115611f22578283fd5b611f2e89838a01611d70565b93506080880135915080821115611f43578283fd5b50611f5088828901611df2565b9150509295509295909350565b600080600080600060a08688031215611f74578081fd5b8535611f7f816126f4565b94506020860135611f8f816126f4565b9350604086013592506060860135915060808601356001600160401b03811115611fb7578182fd5b611f5088828901611df2565b60008060408385031215611fd5578182fd5b8235611fe0816126f4565b9150611fee60208401611de2565b90509250929050565b60008060408385031215612009578182fd5b8235612014816126f4565b915060208301356001600160401b0381111561202e578182fd5b61203a85828601611df2565b9150509250929050565b60008060408385031215612056578182fd5b8235612061816126f4565b946020939093013593505050565b60008060408385031215612081578182fd5b82356001600160401b0380821115612097578384fd5b818501915085601f8301126120aa578384fd5b813560206120b7826124fd565b6040516120c482826125b2565b8381528281019150858301838502870184018b10156120e1578889fd5b8896505b8487101561210c5780356120f8816126f4565b8352600196909601959183019183016120e5565b5096505086013592505080821115612122578283fd5b5061203a85828601611d70565b600060208284031215612140578081fd5b81356109f48161270c565b60006020828403121561215c578081fd5b81516109f48161270c565b600060208284031215612178578081fd5b81516109f4816126f4565b600060208284031215612194578081fd5b5035919050565b600080604083850312156121ad578182fd5b823591506020830135611ea9816126f4565b6000806000606084860312156121d3578081fd5b8335925060208401356121e5816126f4565b915060408401356001600160401b038111156121ff578182fd5b61220b86828701611df2565b9150509250925092565b60008060408385031215612227578182fd5b82359150611fee60208401611de2565b60008060006060848603121561224b578081fd5b833592506020840135915060408401356001600160401b038111156121ff578182fd5b6000815180845260208085019450808401835b8381101561229d57815187529582019590820190600101612281565b509495945050505050565b60008151808452815b818110156122cd576020818501810151868301820152016122b1565b818111156122de5782602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b0386811682528516602082015260a06040820181905260009061231f9083018661226e565b8281036060840152612331818661226e565b9050828103608084015261234581856122a8565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061238b908301846122a8565b979650505050505050565b6000602082526109f4602083018461226e565b6000604082526123bc604083018561226e565b82810360208401526123ce818561226e565b95945050505050565b6000602082526109f460208301846122a8565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526009908201526810b7b832b930ba37b960b91b604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60008382526040602083015261102f60408301846122a8565b60006001600160401b0382111561251657612516612636565b5060209081020190565b6000821982111561253357612533612620565b500190565b60008282101561254a5761254a612620565b500390565b60006001600160401b038381169083168181101561256f5761256f612620565b039392505050565b60028104600182168061258b57607f821691505b602082108114156125ac57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b03811182821017156125d7576125d7612636565b6040525050565b60006000198214156125f2576125f2612620565b5060010190565b60006001600160401b038083168181141561261657612616612620565b6001019392505050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115610c6657600481823e5160e01c90565b600060443d101561267357610c66565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156126a4575050505050610c66565b82850191508151818111156126be57505050505050610c66565b843d87010160208285010111156126da57505050505050610c66565b6126e9602082860101876125b2565b509094505050505090565b6001600160a01b038116811461270957600080fd5b50565b6001600160e01b03198116811461270957600080fdfea2646970667358221220d810afb8d3a26b9c7486f38256c8dc7d773e7647f5cf4c0a80e8c235c868da6264736f6c63430008020033

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

000000000000000000000000769e5c77738a2e1e9e61420b4e1f64d057e46c16000000000000000000000000a3b6759fff7384699bf3b8f1f008ca0ec478366900000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000002768747470733a2f2f6979757364692e64657369676e2f6170692f6d657461646174612f7b69647d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a47656e6572617469766500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000347454e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002d68747470733a2f2f6979757364692e64657369676e2f6170692f6d657461646174612f636f6e7472616374563300000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _operator (address): 0x769e5C77738a2E1E9e61420B4E1f64d057E46c16
Arg [1] : _curator (address): 0xA3b6759FfF7384699bF3b8f1f008cA0ec4783669
Arg [2] : _uri (string): https://iyusdi.design/api/metadata/{id}
Arg [3] : _name (string): Generative
Arg [4] : _symbol (string): GEN
Arg [5] : _contractURI (string): https://iyusdi.design/api/metadata/contractV3
Arg [6] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 000000000000000000000000769e5c77738a2e1e9e61420b4e1f64d057e46c16
Arg [1] : 000000000000000000000000a3b6759fff7384699bf3b8f1f008ca0ec4783669
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [5] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [6] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000027
Arg [8] : 68747470733a2f2f6979757364692e64657369676e2f6170692f6d6574616461
Arg [9] : 74612f7b69647d00000000000000000000000000000000000000000000000000
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [11] : 47656e6572617469766500000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [13] : 47454e0000000000000000000000000000000000000000000000000000000000
Arg [14] : 000000000000000000000000000000000000000000000000000000000000002d
Arg [15] : 68747470733a2f2f6979757364692e64657369676e2f6170692f6d6574616461
Arg [16] : 74612f636f6e7472616374563300000000000000000000000000000000000000


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.